Add benchmark inputs for atan
[platform/upstream/glibc.git] / ChangeLog
1 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
2
3         * benchtests/Makefile (bench): Add atan and slowatan.
4         * benchtests/atan-inputs: New file.
5         * benchtests/slowatan-inputs: New file.
6         * benchtests/slowatan.c: New file.
7
8         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
9         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
10         its value.
11
12         [BZ #15305]
13         * sysdeps/unix/sysv/linux/kernel-features.h
14         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
15         __ASSUME_XFS_RESTRICTED_CHOWN.
16         * sysdeps/unix/sysv/linux/pathconf.c
17         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
18         Save and restore errno.
19
20 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
21
22         [BZ #15327]
23         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
24         arguments using __kernel_casinh.
25         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
26         arguments using __kernel_casinhf.
27         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
28         arguments using __kernel_casinhl.
29         * math/libm-test.inc (cacosh_test): Add more tests.
30         * sysdeps/i386/fpu/libm-test-ulps: Update.
31         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32
33 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34
35         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
36         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
37
38         * bench/Makefile (bench): Add sin and slowsin.
39         * benchtests/sin-inputs: New file.
40         * benchtests/slowsin-inputs: New file.
41         * benchtests/slowsin.c: New file.
42
43         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
44         (bench): Add slowexp and slowpow.
45         (exp-ITER): Increase iterations.
46         (pow-ITER): Likewise.
47         * benchtests/exp-inputs: Change input.
48         * benchtests/pow-inputs: Likewise.
49         * benchtests/slowexp-inputs: New file.
50         * benchtests/slowexp.c: New file.
51         * benchtests/slowpow-inputs: New file.
52         * benchtests/slowpow.c: New file.
53
54 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55
56         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
57         instructions.
58         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
59         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
60         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
61         * benchtests/Makefile: Add rint benchtest.
62         * benchtests/rint-inputs: Input for rint benchtest.
63
64 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
65
66         * Versions.def (libm): Add GLIBC_2.18.
67         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
68         hidden libm prototypes.
69         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
70         * math/Makefile (libm-calls): Add s_issignaling.
71         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
72         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
73         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
74         declaration.
75         * math/math.h [__USE_GNU] (issignaling): New macro.
76         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
77         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
78         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
79         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
80         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
81         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
82         * manual/arith.texi (issignaling): New section.
83         * manual/libm-err-tab.pl (@all_functions): Update comment.
84         * math/gen-libm-test.pl (parse_args): Apply special handling for
85         issignaling.
86         * math/libm-test.inc (print_float, issignaling_test): New
87         functions.
88         (check_float_internal): Add issignaling checks.
89         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
90         default definition.
91         * sysdeps/powerpc/math-tests.h: New file.
92         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
93         tests.
94         * math/test-snan.c (TEST_FUNC): Likewise.
95
96 2013-03-30  David S. Miller  <davem@davemloft.net>
97
98         * po/de.po: Update from translation team.
99
100 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
101
102         [BZ #10357]
103         * math/k_casinh.c (__kernel_casinh): Handle arguments with
104         imaginary part less than 1.0 and real part less than 0.5
105         specially.
106         * math/k_casinhf.c (__kernel_casinhf): Likewise.
107         * math/k_casinhl.c (__kernel_casinhl): Likewise.
108         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
109         (cacos_test): Add more tests.
110         (casin_test): Likewise.
111         (casinh_test): Likewise.
112         * sysdeps/i386/fpu/libm-test-ulps: Update.
113         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
114
115 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
116
117         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
118         ONE with its value.
119
120         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
121         (__pow_mp): Replace ONE and MONE with their values.
122         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
123         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
124         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
125         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
126         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
127         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
128
129         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
130
131         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
132         (__pow_mp): Replace ZERO and MZERO with their values.
133         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
134         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
135         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
136         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
137         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
138         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
139         (__sqr): Likewise.
140
141         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
142
143         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
144
145 2013-03-28  Roland McGrath  <roland@hack.frob.com>
146
147         * include/stdlib.h [!SHARED] (__call_tls_dtors):
148         Declare with __attribute__ ((weak)).
149         * stdlib/exit.c (__libc_atexit) [!SHARED]:
150         Call __call_tls_dtors only if it's not NULL.
151
152 2013-03-28  Roland McGrath  <roland@hack.frob.com>
153
154         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
155         didn't do it already, then set _dl_phdr and _dl_phnum based on the
156         magic __ehdr_start linker symbol if it's defined.
157         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
158         them up here if it was already done.
159
160         * elf/dl-support.c (_dl_phdr): Make pointer to const.
161         (_dl_aux_init): Use const in cast when setting it.
162         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
163         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
164         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
165
166         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
167         Declare them here.
168         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
169         * csu/libc-tls.c: Nor here.
170         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
171
172         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
173         (__libc_message): Never call vsyslog.
174
175 2013-03-28  Alan Modra  <amodra@gmail.com>
176
177         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
178         Define as empty.
179         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
180         Likewise.
181
182 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
183
184         [BZ #15214]
185         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
186         underflow.
187         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
188
189 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
190
191         [BZ #15304]
192         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
193         Don't add gid passed as argument.
194
195         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
196
197 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
198
199         [BZ #15307]
200         * math/k_casinh.c (__kernel_casinh): Handle arguments with
201         imaginary part between 1.0 and 1.5 and real part less than 0.5
202         specially.
203         * math/k_casinhf.c (__kernel_casinhf): Likewise.
204         * math/k_casinhl.c (__kernel_casinhl): Likewise.
205         * math/libm-test.inc (cacos_test): Add more tests.
206         (casin_test): Likewise.
207         (casinh_test): Likewise.
208         * sysdeps/i386/fpu/libm-test-ulps: Update.
209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
210
211 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
212
213         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
214         constants.
215         (norm): Likewise.
216         (denorm): Likewise.
217         (__dbl_mp): Likewise.
218         (add_magnitudes): Likewise.
219         (sub_magnitudes): Likewise.
220         (__add): Likewise.
221         (__sub): Likewise.
222         (__mul): Likewise.
223         (__sqr): Likewise.
224         (__inv): Likewise.
225         (__dvd): Likewise.
226
227         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
228         commented code.
229         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
230         (__dubcos): Likewise.
231         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
232         (__ieee754_acos): Likewise.
233         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
234         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
235         (__exp1): Likewise.
236         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
237         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
238         (log1): Likewise.
239         (my_log2): Likewise.
240         (checkint): Likewise.
241         * sysdeps/ieee754/dbl-64/e_remainder.c
242         (__ieee754_remainder): Likewise.
243         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
244         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
245         (bsloww): Likewise.
246         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
247
248         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
249         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
250         MANTISSA_STORE_T to store computations on mantissa.  Use
251         macros for rounding and division.
252         (denorm): Likewise.
253         (__dbl_mp): Likewise.
254         (add_magnitudes): Likewise.
255         (sub_magnitudes): Likewise.
256         (__mul): Likewise.
257         (__sqr): Likewise.
258         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
259         powers of two in terms of TWOPOW macro.
260         (mp_no): Make type of mantissa as MANTISSA_T.
261         [!RADIXI]: Define RADIXI.
262         [!TWO52]: Define TWO52.
263         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
264
265 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
266
267         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
268         llroundl symbol when building for PPC32.
269
270 2013-03-24  Mark H Weaver  <mhw@netris.org>
271
272         * manual/arith.texi (Normalization Functions): Fix prototypes for
273         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
274
275 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
276
277         [BZ #13889]
278         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
279         high value to check if expl overflow.
280         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
281         to check for underflow and overflow.
282         * math/libm-test.inc: Add exp test.
283
284 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
285
286         [BZ #11120]
287         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
288         with NOT_IN_libc.
289
290 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
291
292         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
293         symbol.
294
295 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
296
297         * math/gen-libm-test.pl (parse_args, special_functions): Properly
298         wrap blocks consisting of several statements.
299
300         * sysdeps/generic/math-tests.h: New file.
301         * sysdeps/i386/fpu/math-tests.h: Likewise.
302         * math/test-snan.c: Include it.
303         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
304
305 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
306
307         [BZ #15285]
308         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
309         (__ieee754_j0l): Do not improve calculations using cos of twice
310         input for inputs above LDBL_MAX / 2.0L.
311         (__ieee754_y0l): Likewise.
312         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
313         (__ieee754_j1l): Do not improve calculations using cos of twice
314         input for inputs above LDBL_MAX / 2.0L.
315         (__ieee754_y1l): Likewise.
316         * math/libm-test.inc (j0_test): Add another test.
317         (j1_test): Likewise.
318         (y0_test): Likewise.
319         (y1_test): Likewise.
320         * sysdeps/i386/fpu/libm-test-ulps: Update.
321
322 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
323
324         * Rules ($(objpfx)bench-%.c): Include code from a C source
325         file.
326
327 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
328
329         [BZ #15287]
330         * math/k_casinh.c (__kernel_casinh): Handle arguments with
331         imaginary part 1.0 and real part less than 0.5 specially.
332         * math/k_casinhf.c (__kernel_casinhf): Likewise.
333         * math/k_casinhl.c (__kernel_casinhl): Likewise.
334         * math/libm-test.inc (cacos_test): Add more tests.
335         (casin_test): Likewise.
336         (casinh_test): Likewise.
337         * sysdeps/i386/fpu/libm-test-ulps: Update.
338         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
339
340 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
341
342         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
343         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
344
345 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
346
347         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
348         * config.make.in (config-cflags-sse4): Remove variable.
349         (config-cflags-avx): Likewise.
350         (config-cflags-sse2avx): Likewise.
351         (config-cflags-novzeroupper): Likewise.
352         (config-asflags-i686): Likewise.
353         (have-mfma4): Likewise.
354         (have-as-vis3): Likewise.
355         (MIG): Likewise.
356         * configure.in (MIG): Do not AC_SUBST.
357         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
358         (libc_cv_cc_sse4): Do not AC_SUBST.
359         (libc_cv_cc_avx): Likewise.
360         (libc_cv_cc_sse2avx): Likewise.
361         (libc_cv_cc_novzeroupper): Likewise.
362         (libc_cv_cc_fma4): Likewise.
363         (libc_cv_as_i686): Likewise.
364         (libc_cv_sparc_as_vis3): Likewise.
365         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
366         LIBC_CONFIG_VAR.
367         (config-asflags-i686): Likewise.
368         (config-cflags-avx): Likewise.
369         (config-cflags-sse2avx): Likewise.
370         (have-mfma4): Likewise.
371         (config-cflags-novzeroupper): Likewise.
372         * sysdeps/mach/configure.in (MIG): Likewise.
373         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
374         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
375         LIBC_CONFIG_VAR.
376         (config-cflags-avx): Likewise.
377         (config-cflags-sse2avx): Likewise.
378         (have-mfma4): Likewise.
379         (config-cflags-novzeroupper): Likewise.
380         * configure: Regenerated.
381         * sysdeps/i386/configure: Likewise.
382         * sysdeps/mach/configure: Likewise.
383         * sysdeps/sparc/configure: Likewise.
384         * sysdeps/x86_64/configure: Likewise.
385
386 2013-03-20  Roland McGrath  <roland@hack.frob.com>
387
388         [BZ #14812]
389         * locale/programs/localedef.c (options): Put N_ translation marker
390         on argument names, not just descriptions.
391
392 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
393
394         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
395
396 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
397
398         [BZ #14176]
399         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
400
401 2013-03-19  Roland McGrath  <roland@hack.frob.com>
402
403         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
404         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
405         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
406         [!BEFORE_ABORT] (before_abort): New function.
407         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
408         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
409         (writev_for_fatal): New function.
410         (WRITEV_FOR_FATAL): New macro; call that.
411         (backtrace_and_maps): New function.
412         (BEFORE_ABORT): New macro; call that.
413         (struct str_list): Type removed.
414         (__libc_message, __libc_fatal): Functions removed.
415         Include <sysdeps/posix/libc_fatal.c> instead.
416
417 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
418
419         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
420         constants.
421         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
422         double constants.
423
424 2013-03-19  Andreas Schwab  <schwab@suse.de>
425
426         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
427         * sysdeps/gnu/configure: Regenerate.
428
429         * configure.in: Substitute libc_cv_rtlddir.
430         * configure: Regenerate.
431         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
432         * Makeconfig (rtlddir, inst_rtlddir): New variables.
433         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
434         * elf/Makefile (install-others, CFLAGS-interp.c)
435         (ldso_install, common-ldd-rewrite): Likewise.
436         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
437         $(inst_slibdir)/$(rtld-installed-name).
438         * scripts/rellns-sh: Add -p option.
439         * Makerules (make-shlib-link): Use rellns-sh to get relative name
440         for source.
441
442 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
443
444         * manual/nptl.texi: Renamed to ...
445         * manual/threads.texi: ... this.
446         * manual/Makefile (chapters): Update.
447
448 2013-03-18  Roland McGrath  <roland@hack.frob.com>
449
450         [BZ #14812]
451         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
452         on argument names, not just descriptions.
453         * malloc/memusagestat.c (options): Likewise.
454         * nss/getent.c (options): Likewise.
455
456 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
457
458         [BZ #14812]
459         * iconv/iconv_prog.c (options): Put N_ translation marker
460         on argument names, not just descriptions.
461         * iconv/iconvconfig.c (options): Likewise.
462
463 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
464
465         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
466         implementation which is faster on all x86_64 architectures.
467         Tested on AMD, Intel Nehalem, SNB, IVB.
468         * sysdeps/x86_64/strnlen.S: Likewise.
469
470         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
471         Remove all multiarch strlen and strnlen versions.
472         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
473         Remove strlen and strnlen related parts.
474
475         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
476         Inline strlen part.
477         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
478
479         * sysdeps/x86_64/multiarch/strlen.S: Remove.
480         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
481         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
482         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
483         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
484         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
485
486 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
487
488         * manual/memory.texi (Malloc Tunable Parameters):
489         Sort parameters alphabetically. Add comments for missing entries.
490
491 2013-03-17  David S. Miller  <davem@davemloft.net>
492
493         * sysdeps/sparc/fpu/libm-test-ulps: Update.
494
495 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
496
497         [BZ #15283]
498         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
499         for arguments at most half maximum finite value.
500         * math/libm-test.inc (j0_test): Add more tests.
501         (j1_test): Likewise.
502         (y0_test): Likewise.
503         (y1_test): Likewise.
504         * sysdeps/i386/fpu/libm-test-ulps: Update.
505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
506
507         [BZ #14155]
508         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
509         1 / x and functions P and Q for arguments above 0x1p256L.
510         (__ieee754_y0l): Likewise.
511         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
512         (__ieee754_y1l): Likewise.
513         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
514         (j1_test): Likewise.
515         (y0_test): Likewise.
516         (y1_test): Likewise.
517
518 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
519
520         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
521         variable.
522
523 2013-03-15  Roland McGrath  <roland@hack.frob.com>
524
525         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
526         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
527         zero since it's initialized to EXEC_PAGESIZE.
528
529         * sysdeps/unix/sysv/linux/ldsodefs.h
530         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
531         * sysdeps/generic/ldsodefs.h: ... here.
532
533 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
534
535         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
536
537         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
538         math/test-snan.c.
539         * math/test-snan.c: Renamed from
540         sysdeps/powerpc/fpu/test-powerpc-snan.c.
541         * math/Makefile (tests): Add test-snan.
542         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
543         test-powerpc-snan.
544
545         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
546         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
547         functions.
548         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
549         __builtin_nan family of functions.
550         * math/libm-test.inc (initialize): Initialize qnan_value with
551         __builtin_nan family of functions.
552         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
553         Remove variables.
554         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
555         Remove functions.
556         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
557         storage class.  Initialize qNaN_var and sNaN_var with
558         __builtin_nan and __builtin_nans families of functions,
559         respectively.
560
561         * math/libm-test.inc (acosh_test): Also test with qNaN input.
562         (sqrt_test): Remove duplicate test with qNaN input.
563         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
564         (round_test, signbit_test, significand_test): Note missing +/-Inf
565         as well as qNaN tests.
566
567         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
568         qNaN_var.  Fix a few strings, too.
569         * math/libm-test.inc (nan_value): Rename to qnan_value.
570         * math/gen-libm-test.pl (%beautify): Adjust to that.
571         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
572         * math/test-misc.c (main): Likewise.
573         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
574         to __qnan_bytes, and __qnan_union, respectively.
575         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
576         Likewise.
577         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
578         and lqnanval, respectively.
579         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
580         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
581         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
582         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
583
584         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
585         * math/test-misc.c (main) [__x86_64__]: Enable test for long
586         doubles.
587
588         * math/test-misc.c (main): Fix copy'n'pastos.
589         * misc/tst-efgcvt.c (special): Likewise.
590
591         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
592         Remove declarations.
593
594 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
595
596         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
597         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
598         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
599         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
600
601 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
602
603         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
604         macro to return vdso values correctly in IFUNC implementations.
605         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
606         Optimization by using IFUNC.
607
608 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
609             Richard Henderson  <rth@redhat.com>
610             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
611
612         * Makefile.in (bench): New target.
613         * NEWS: Mention the benchmark framework.
614         * Rules (bench): Likewise.
615         (binaries-bench): Generate binaries for functions to
616         benchmark.
617         * benchtests/Makefile: New makefile for benchmark tests.
618         * benchtests/bench-skeleton.c: New skeleton file for benchmark
619         programs.
620         * benchtests/exp-inputs: New input file for EXP function.
621         * benchtests/pow-inputs: New input file for POW function.
622         * scripts/bench.pl: New script to generate source files for
623         benchmark programs.
624
625 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
626
627         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
628         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
629         computations on mantissa.  Use macros for rounding and
630         division.
631         (denorm): Likewise.
632         (__dbl_mp): Likewise.
633         (add_magnitudes): Likewise.
634         (sub_magnitudes): Likewise.
635         (__mul): Likewise.
636         (__sqr): Likewise.
637         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
638         powers of two in terms of TWOPOW macro.
639         (mp_no): Make type of mantissa as MANTISSA_T.
640         [!RADIXI]: Define RADIXI.
641         [!TWO52]: Define TWO52.
642         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
643
644         * manual/nptl.texi (cindex): Modify threads to pthreads.
645
646 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
647
648         * sysdeps/x86_64/preconfigure: Regenerated.
649
650 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
651
652         [BZ #14155]
653         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
654         0x1p28 and above.
655         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
656         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
657         0x1p28 and above.
658         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
659         * math/libm-test.inc (j0_test): Do not allow one spurious
660         underflow exception.
661         (y1_test): Likewise.
662
663 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
664
665         * manual/Makefile (chapters): Add nptl.
666         * manual/debug.texi (Debugging Support): Add link to Threads
667         chapter.
668         * manual/nptl.texi: New file.
669
670         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
671
672 2013-03-14  Petr Baudis  <pasky@ucw.cz>
673
674         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
675         for non-NULL pointer before the memory validity test. Pointed
676         out by Holger Brunck <holger.brunck@keymile.com>.
677
678 2013-03-13  Andreas Schwab  <schwab@suse.de>
679
680         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
681         instead of .os.
682
683 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
684
685         * timezone/zic.c: Update from tzcode 2013b.
686
687 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
688
689         * manual/install.texi (Configuring and compiling):
690         Mention i686 and i586.
691         * INSTALL: Regenerate.
692
693 2013-03-12  Roland McGrath  <roland@hack.frob.com>
694
695         * sysdeps/init_array/elf-init.c: New file.
696         * csu/elf-init.c
697         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
698         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
699
700         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
701         __gmon_start__ as global, but as static with a .preinit_array pointer.
702         * sysdeps/init_array/gmon-start.c: New file.  Use that.
703         * sysdeps/init_array/crti.S: New file, empty except for comments.
704         * sysdeps/init_array/crtn.S: Likewise.
705
706 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
707
708         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
709         definining bcopy.
710         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
711         Remove Prefer_SSE_for_memop.
712         * sysdeps/x86_64/multiarch/init-arch.h: Remove
713         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
714         HAS_PREFER_SSE_FOR_MEMOP.
715         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
716         memset-x86-64.
717         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
718         Remove bzero, memset ifunc support.
719         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
720         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
721         * sysdeps/x86_64/multiarch/memset.S: Likewise.
722         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
723
724 2013-03-11  Andreas Schwab  <schwab@suse.de>
725
726         [BZ #15234]
727         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
728         by SHLIB_COMPAT.
729         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
730         (GLIBC_2.16): Remove pthread_atfork.
731
732 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
733
734         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
735         (ptestcases.h): Likewise.
736
737 2013-03-08  Roland McGrath  <roland@hack.frob.com>
738
739         * Makeconfig ($(common-objpfx)config.status): Depend on
740         sysdeps/*/preconfigure{,.in} too.
741
742 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
743
744         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
745         (__free_hook): Use void * instead of __malloc_ptr_t.
746         (__malloc_hook): Likewise.
747         (__realloc_hook): Likewise.
748         (__memalign_hook): Likewise.
749         (__after_morecore_hook): Likewise.
750         * malloc/arena.c (save_malloc_hook): Likewise.
751         (save_free_hook): Likewise.
752         * malloc/hooks.c (malloc_hook_ini): Likewise.
753         (realloc_hook_ini): Likewise.
754         (memalign_hook_ini): Likewise.
755         * malloc/malloc.c (malloc_hook_ini): Likewise.
756         (realloc_hook_ini): Likewise.
757         (memalign_hook_ini): Likewise.
758         (__free_hook): Likewise.
759         (__malloc_hook): Likewise.
760         (__realloc_hook): Likewise.
761         (__memalign_hook): Likewise.
762         (__libc_malloc): Likewise.
763         (__libc_free): Likewise.
764         (__libc_realloc): Likewise.
765         (__libc_memalign): Likewise.
766         (__libc_valloc): Likewise.
767         (__libc_pvalloc): Likewise.
768         (__libc_calloc): Likewise.
769         (__posix_memalign): Likewise.
770         * malloc/morecore.c (__sbrk): Likewise.
771         (__default_morecore): Likewise.
772
773         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
774
775         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
776         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
777         __malloc_ptrdiff_t.
778
779         * malloc/malloc.h (__malloc_size_t): Remove macro.
780         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
781         __malloc_size_t.
782         (old_memalign_hook): Likewise.
783         (old_realloc_hook): Likewise.
784         (struct hdr): Likewise.
785         (flood): Likewise.
786         (mallochook): Likewise.
787         (memalignhook): Likewise.
788         (reallochook): Likewise.
789         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
790         (tr_old_realloc_hook): Likewise.
791         (tr_old_memalign_hook): Likewise.
792         (tr_mallochook): Likewise.
793         (tr_reallochook): Likewise.
794         (tr_memalignhook): Likewise.
795
796 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
797
798         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
799         default_ldbl_pack and using as default implementation.
800         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
801         implementation.
802         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
803         redundant definition.
804         (ldbl_insert_mantissa): Likewise.
805         (ldbl_canonicalize): Likewise.
806         (ldbl_nearbyint): Likewise.
807         (ldbl_pack): Rename to ldbl_pack_ppc.
808         (ldbl_unpack): Rename to ldbl_unpack_ppc.
809         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
810         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
811
812 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
813
814         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
815         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
816         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
817         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
818         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
819         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
820         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
821         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
822
823 2013-03-07  Andreas Jaeger  <aj@suse.de>
824
825         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
826         bits/mman-linux.h.
827
828 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
829
830         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
831         Include mpa.h and declare __MPEXP.
832         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
833         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
834         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
835         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
836         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
837         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
838         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
839
840         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
841         (__slowpow): Use long double EXPL and LOGL functions to
842         compute POW.
843         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
844         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
845         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
846         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
847         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
848         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
849
850         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
851         intermediate variable to calculate exponent.
852         (__sqr): Likewise.
853         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
854         Likewise.
855         (__sqr): Likewise.
856
857         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
858         [!NO__SQR]: Define __sqr.
859         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
860         and NO__SQR.  Remove all code except __mul and __sqr.  Include
861         sysdeps/ieee754/dbl-64/mpa.c.
862         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
863
864         [BZ #12723]
865         * posix/Makefile (tests): Add tst-pathconf.
866         * posix/tst-pathconf.c: New test case.
867         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
868         _PC_PIPE_BUF.
869         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
870
871 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
872
873         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
874
875 2013-03-06  Andreas Jaeger  <aj@suse.de>
876
877         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
878         definition via __MAP_ANONYMOUS.
879
880         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
881         it's not part of Linux headers.
882
883         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
884         (MAP_HUGE_MASK): Define.
885
886         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
887         Define.
888         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
889         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
890         Define.
891         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
892         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
893         Define.
894         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
895         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
896         Define.
897         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
898
899         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
900         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
901         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
902         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
903         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
904         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
905
906         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
907         Handle f2fs.
908
909         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
910         Handle f2fs and efivarfs.
911
912         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
913         f2fs.
914
915         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
916         (EFIVARFS_MAGIC): Add.
917         (F2FS_LINK_MAX): Add.
918
919 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
920
921         * stdio-common/vfprintf.c: Replace __builtin_expect with
922         __glibc_unlikely.
923
924 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
925
926         [BZ #13550]
927         * sysdeps/generic/bp-sym.h: Remove file.
928         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
929         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
930         <bp-sym.h> and <bp-asm.h>.
931         (__longjmp): Don't use BP_SYM.
932         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
933         and <bp-asm.h>.
934         (memcpy): Don't use BP_SYM.
935         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
936         <bp-sym.h> and <bp-asm.h>.
937         (memcpy): Don't use BP_SYM.
938         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
939         <bp-asm.h>.
940         (memcpy): Don't use BP_SYM.
941         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
942         <bp-asm.h>.
943         (memset): Don't use BP_SYM.
944         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
945         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
946         (__bzero): Don't use BP_SYM.
947         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
948         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
949         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
950         <bp-sym.h> and <bp-asm.h>.
951         (memcmp): Don't use BP_SYM.  Remove comment about bounded
952         pointers.
953         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
954         <bp-sym.h> and <bp-asm.h>.
955         (memcpy): Don't use BP_SYM.
956         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
957         <bp-sym.h> and <bp-asm.h>.
958         (memset): Don't use BP_SYM.
959         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
960         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
961         (__bzero): Don't use BP_SYM.
962         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
963         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
964         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
965         <bp-sym.h> and <bp-asm.h>.
966         (strncmp): Don't use BP_SYM.  Remove comment about bounded
967         pointers.
968         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
969         <bp-sym.h> and <bp-asm.h>.
970         (memcpy): Don't use BP_SYM.
971         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
972         <bp-sym.h> and <bp-asm.h>.
973         (memset): Don't use BP_SYM.
974         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
975         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
976         (__bzero): Don't use BP_SYM.
977         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
978         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
979         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
980         <bp-sym.h> and <bp-asm.h>.
981         (__memchr): Don't use BP_SYM.
982         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
983         <bp-sym.h> and <bp-asm.h>.
984         (memcmp): Don't use BP_SYM.  Remove comment about bounded
985         pointers.
986         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
987         <bp-sym.h> and <bp-asm.h>.
988         (memcpy): Don't use BP_SYM.
989         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
990         <bp-sym.h> and <bp-asm.h>.
991         (__mempcpy): Don't use BP_SYM.
992         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
993         <bp-sym.h> and <bp-asm.h>.
994         (__memrchr): Don't use BP_SYM.
995         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
996         <bp-sym.h> and <bp-asm.h>.
997         (memset): Don't use BP_SYM.
998         (__bzero): Likewise.
999         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
1000         <bp-sym.h> and <bp-asm.h>.
1001         (__rawmemchr): Don't use BP_SYM.
1002         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
1003         <bp-sym.h> and <bp-asm.h>.
1004         (__STRCMP): Don't use BP_SYM.
1005         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
1006         <bp-sym.h> and <bp-asm.h>.
1007         (strchr): Don't use BP_SYM.
1008         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
1009         <bp-sym.h> and <bp-asm.h>.
1010         (__strchrnul): Don't use BP_SYM.
1011         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
1012         <bp-sym.h> and <bp-asm.h>.
1013         (strlen): Don't use BP_SYM.
1014         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
1015         <bp-sym.h> and <bp-asm.h>.
1016         (strncmp): Don't use BP_SYM.  Remove comment about bounded
1017         pointers.
1018         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
1019         <bp-sym.h> and <bp-asm.h>.
1020         (__strnlen): Don't use BP_SYM.
1021         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
1022         <bp-sym.h> and <bp-asm.h>.
1023         (__GI__setjmp): Don't use BP_SYM.
1024         (_setjmp): Likewise.
1025         (__sigsetjmp): Likewise.
1026         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
1027         (L(start_addresses)): Don't use BP_SYM.
1028         (_start): Likewise.
1029         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
1030         <bp-asm.h>.
1031         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
1032         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
1033         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1034         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
1035         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
1036         <bp-asm.h>.
1037         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
1038         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
1039         about bounded pointers.
1040         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
1041         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
1042         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
1043         <bp-asm.h>.
1044         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
1045         about bounded pointers.  Remove GKM FIXME comments.
1046         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
1047         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
1048         <bp-asm.h>.
1049         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
1050         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
1051         Remove GKM FIXME comments.
1052         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1053         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
1054         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
1055         <bp-asm.h>.
1056         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
1057         about bounded pointers.  Remove GKM FIXME comment.
1058         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
1059         and <bp-asm.h>.
1060         (strncmp): Don't use BP_SYM.  Remove comment about bounded
1061         pointers.
1062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
1063         <bp-sym.h> and <bp-asm.h>.
1064         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
1065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
1066         <bp-sym.h> and <bp-asm.h>.
1067         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
1068         comment.
1069
1070 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1071
1072         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
1073         call free(NULL).
1074
1075 2013-03-05  David S. Miller  <davem@davemloft.net>
1076
1077         * po/es.po: Update from translation team.
1078
1079 2013-03-05  Andreas Jaeger  <aj@suse.de>
1080
1081         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
1082         <bits/mman-linux.h>.
1083         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
1084         is fine.
1085         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
1086         <bits/mman-linux.h> to end of file.
1087         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
1088         is fine.
1089         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
1090         <bits/mman-linux.h> to end of file.
1091         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
1092         is fine.
1093         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
1094         <bits/mman-linux.h> to end of file.
1095
1096         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
1097         (MCL_CURRENT, MCL_FUTURE): Define here.
1098
1099 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1100
1101         [BZ #15232]
1102         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
1103         attribute_hidden.
1104         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1105
1106 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1107
1108         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
1109         fourth parameter needed for rt_sigprocmask syscall.
1110         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
1111         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
1112         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
1113         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
1114         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
1115         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
1116
1117 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
1118
1119         [BZ #13550]
1120         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
1121         comment about bounded pointers.
1122         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
1123         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
1124
1125 2013-03-04  Andreas Jaeger  <aj@suse.de>
1126
1127         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
1128         common definitions.
1129
1130         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
1131         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
1132         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
1133         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1134         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
1135         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1136
1137 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1138
1139         [BZ #15055]
1140         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
1141         __ieee754_sqrl instead of __sqrl.
1142
1143 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
1144
1145         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
1146         * sysdeps/powerpc/fpu_control.h: ... here.
1147         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
1148         * sysdeps/powerpc/bits/fenvinline.h: ... here.
1149         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
1150         * sysdeps/powerpc/bits/mathinline.h: ... here.
1151
1152 2013-03-01  Roland McGrath  <roland@hack.frob.com>
1153
1154         * elf/dl-hwcaps.c (_dl_important_hwcaps):
1155         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
1156         to just [NEED_DL_SYSINFO_DSO].
1157         * elf/dl-support.c: Likewise.
1158         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
1159         * elf/rtld.c (dl_main): Likewise.
1160         * elf/setup-vdso.h (setup_vdso): Likewise.
1161         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
1162         * sysdeps/unix/sysv/linux/dl-sysdep.c
1163         (_dl_discover_osversion): Likewise.
1164
1165 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
1166
1167         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
1168         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
1169
1170 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
1171
1172         * NEWS: Mention libm performance improvements and non-x86 PI
1173         futex support.
1174
1175         * csu/libc-start.c (__pthread_initialize_minimal): Change
1176         function arguments.
1177         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
1178
1179 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
1180
1181         [BZ #13550]
1182         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
1183         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
1184         <bp-sym.h> and <bp-asm.h>.
1185         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
1186         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
1187         and <bp-asm.h>.
1188         (memcpy): Don't use BP_SYM.
1189         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
1190         <bp-asm.h>.
1191         (__mpn_add_n): Don't use BP_SYM.
1192         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
1193         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
1194         and <bp-asm.h>.
1195         (__mpn_addmul_1): Don't use BP_SYM.
1196         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1197         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
1198         <bp-sym.h>.
1199         (_setjmp): Don't use BP_SYM.
1200         (__novmx_setjmp): Likewise.
1201         (__GI__setjmp): Likewise.
1202         (__vmx_setjmp): Likewise.
1203         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
1204         <bp-sym.h>.
1205         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
1206         (__bzero): Don't use BP_SYM.
1207         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1208         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1209         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
1210         <bp-sym.h> and <bp-asm.h>.
1211         (memcpy): Don't use BP_SYM.
1212         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
1213         <bp-sym.h> and <bp-asm.h>.
1214         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
1215         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
1216         <bp-sym.h> and <bp-asm.h>.
1217         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
1218         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
1219         <bp-asm.h>.
1220         (__mpn_lshift): Don't use BP_SYM.
1221         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1222         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
1223         <bp-asm.h>.
1224         (memset): Don't use BP_SYM.
1225         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
1226         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
1227         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
1228         <bp-asm.h>.
1229         (__mpn_mul_1): Don't use BP_SYM.
1230         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1231         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
1232         <bp-sym.h> and <bp-asm.h>.
1233         (memcmp): Don't use BP_SYM.
1234         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
1235         <bp-sym.h> and <bp-asm.h>.
1236         (memcpy): Don't use BP_SYM.
1237         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
1238         <bp-sym.h> and <bp-asm.h>.
1239         (memset): Don't use BP_SYM.
1240         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
1241         <bp-sym.h> and <bp-asm.h>.
1242         (strncmp): Don't use BP_SYM.
1243         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
1244         <bp-sym.h> and <bp-asm.h>.
1245         (memcpy): Don't use BP_SYM.
1246         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
1247         <bp-sym.h> and <bp-asm.h>.
1248         (memset): Don't use BP_SYM.
1249         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
1250         <bp-sym.h> and <bp-asm.h>.
1251         (__memchr): Don't use BP_SYM.
1252         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
1253         <bp-sym.h> and <bp-asm.h>.
1254         (memcmp): Don't use BP_SYM.
1255         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
1256         <bp-sym.h> and <bp-asm.h>.
1257         (memcpy): Don't use BP_SYM.
1258         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
1259         <bp-sym.h> and <bp-asm.h>.
1260         (__mempcpy): Don't use BP_SYM.
1261         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
1262         <bp-sym.h> and <bp-asm.h>.
1263         (__memrchr): Don't use BP_SYM.
1264         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
1265         <bp-sym.h> and <bp-asm.h>.
1266         (memset): Don't use BP_SYM.
1267         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
1268         <bp-sym.h> and <bp-asm.h>.
1269         (__rawmemchr): Don't use BP_SYM.
1270         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
1271         <bp-sym.h> and <bp-asm.h>.
1272         (__STRCMP): Don't use BP_SYM.
1273         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
1274         <bp-sym.h> and <bp-asm.h>.
1275         (strchr): Don't use BP_SYM.
1276         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
1277         <bp-sym.h> and <bp-asm.h>.
1278         (__strchrnul): Don't use BP_SYM.
1279         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
1280         <bp-sym.h> and <bp-asm.h>.
1281         (strlen): Don't use BP_SYM.
1282         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
1283         <bp-sym.h> and <bp-asm.h>.
1284         (strncmp): Don't use BP_SYM.
1285         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
1286         <bp-sym.h> and <bp-asm.h>.
1287         (__strnlen): Don't use BP_SYM.
1288         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
1289         <bp-asm.h>.
1290         (__mpn_rshift): Don't use BP_SYM.
1291         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1292         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
1293         <bp-sym.h> and <bp-asm.h>.
1294         (__sigsetjmp): Don't use BP_SYM.
1295         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
1296         (L(start_addresses)): Don't use BP_SYM.
1297         (_start): Likewise.
1298         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
1299         <bp-asm.h>.
1300         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
1301         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1302         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
1303         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
1304         <bp-asm.h>.
1305         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
1306         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
1307         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
1308         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
1309         <bp-asm.h>.
1310         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
1311         comments.
1312         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
1313         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
1314         <bp-asm.h>.
1315         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
1316         FIXME comments.
1317         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1318         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
1319         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
1320         <bp-asm.h>.
1321         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
1322         comment.
1323         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
1324         and <bp-asm.h>.
1325         (strncmp): Don't use BP_SYM,
1326         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
1327         <bp-asm.h>.
1328         (__mpn_sub_n): Don't use BP_SYM.
1329         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1330         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
1331         and <bp-asm.h>.
1332         (__mpn_submul_1): Don't use BP_SYM.
1333         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
1335         <bp-sym.h> and <bp-asm.h>.
1336         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
1337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
1338         <bp-sym.h> and <bp-asm.h>.
1339         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
1340         comment.
1341
1342 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1343
1344         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
1345         Use ZK to minimize writes to Z.
1346         (sub_magnitudes): Simplify code a bit.
1347         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
1348         Use ZK to minimize writes to Z.
1349         (sub_magnitudes): Simplify code a bit.
1350
1351 2013-02-27  Roland McGrath  <roland@hack.frob.com>
1352
1353         * csu/gmon-start.c: Add special exception to license text.
1354
1355 2013-02-27  Richard Henderson  <rth@redhat.com>
1356
1357         * scripts/config.guess: Update from config.git.
1358         * scripts/config.sub: Likewise.
1359
1360 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1361
1362         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
1363
1364         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
1365
1366         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
1367
1368         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
1369
1370         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
1371
1372 2013-02-26  Roland McGrath  <roland@hack.frob.com>
1373
1374         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
1375         [$(build-shared = yes].
1376
1377 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1378
1379         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
1380         (__mul): Reduce iterations for calculating mantissa.
1381
1382         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
1383         MPTWO.
1384         (__mpranred): Likewise.
1385
1386         [BZ #15160]
1387         * malloc/memusagestat.c (main): Draw graphs for heap and stack
1388         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
1389
1390 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
1391
1392         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
1393         Define __attribute__.
1394
1395 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1396
1397         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
1398         unused.
1399         * posix/regex_internal.h (__attribute): Remove.
1400         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
1401         (re_string_context_at): Likewise.
1402         (bitset_not): Use __attribute__ and mark function as possibly
1403         unused.
1404         (bitset_merge): Likewise.
1405         (bitset_mask): Likewise.
1406         (re_string_char_size_at): Likewise.
1407         (re_string_wchar_at): Likewise.
1408         (re_string_elem_size_at): Likewise.
1409
1410 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1411
1412         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
1413         code.
1414         (cc32): Likewise.
1415
1416         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
1417         (__acr): Likewise.
1418         (__cpy): Likewise.
1419         (norm): Likewise.
1420         (denorm): Likewise.
1421         (__dbl_mp): Likewise.
1422         (add_magnitudes): Likewise.
1423         (sub_magnitudes): Likewise.
1424         (__mul): Likewise.
1425         (__inv): Likewise.
1426
1427         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
1428         style.
1429
1430         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
1431         style.
1432
1433         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
1434         code.
1435
1436         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
1437         up changes with default code.
1438         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
1439         Likewise.
1440
1441 2013-02-24  Allan McRae  <allan@archlinux.org>
1442
1443         * manual/socket.texi (The Internet Namespace): Order menu items
1444         to match that in the file.
1445
1446         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
1447         node listing of the info page menu.
1448
1449 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
1450
1451         [BZ #13550]
1452         * sysdeps/i386/bp-asm.h: Remove file.
1453         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
1454         (PARMS): Do not use macros from bp-asm.h.
1455         (S1): Likewise.
1456         (S2): Likewise.
1457         (SIZE): Likewise.
1458         (__mpn_add_n): Do not use BP_SYM
1459         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
1460         "bp-asm.h".
1461         (PARMS): Do not use macros from bp-asm.h.
1462         (S1): Likewise.
1463         (SIZE): Likewise.
1464         (__mpn_addmul_1): Do not use BP_SYM
1465         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
1466         "bp-asm.h".
1467         (PARMS): Do not use macros from bp-asm.h.
1468         (SIGMSK): Likewise.
1469         (_setjmp): Likewise.  Do not use BP_SYM.
1470         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
1471         "bp-asm.h".
1472         (PARMS): Do not use macros from bp-asm.h.
1473         (SIGMSK): Likewise.
1474         (setjmp): Likewise.  Do not use BP_SYM.
1475         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
1476         "bp-asm.h".
1477         (PARMS): Do not use macros from bp-asm.h.
1478         (__frexp): Do not use BP_SYM.
1479         (frexp): Likewise.
1480         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
1481         "bp-asm.h".
1482         (PARMS): Do not use macros from bp-asm.h.
1483         (__frexpf): Do not use BP_SYM.
1484         (frexpf): Likewise.
1485         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
1486         "bp-asm.h".
1487         (PARMS): Do not use macros from bp-asm.h.
1488         (__frexpl): Do not use BP_SYM.
1489         (frexpl): Likewise.
1490         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
1491         "bp-asm.h".
1492         (PARMS): Do not use macros from bp-asm.h.
1493         (__remquo): Do not use BP_SYM.
1494         (remquo): Likewise.
1495         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
1496         "bp-asm.h".
1497         (PARMS): Do not use macros from bp-asm.h.
1498         (__remquof): Do not use BP_SYM.
1499         (remquof): Likewise.
1500         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
1501         "bp-asm.h".
1502         (PARMS): Do not use macros from bp-asm.h.
1503         (__remquol): Do not use BP_SYM.
1504         (remquol): Likewise.
1505         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
1506         "bp-asm.h".
1507         (PARMS): Do not use macros from bp-asm.h.
1508         (DEST): Likewise.
1509         (SRC): Likewise.
1510         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
1511         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
1512         "bp-asm.h".
1513         (PARMS): Do not use macros from bp-asm.h.
1514         (strlen): Do not use BP_SYM.
1515         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
1516         "bp-asm.h".
1517         (PARMS): Do not use macros from bp-asm.h.
1518         (S1): Likewise.
1519         (S2): Likewise.
1520         (SIZE): Likewise.
1521         (__mpn_add_n): Do not use BP_SYM.
1522         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
1523         "bp-asm.h".
1524         (PARMS): Do not use macros from bp-asm.h.
1525         (S1): Likewise.
1526         (SIZE): Likewise.
1527         (__mpn_addmul_1): Do not use BP_SYM.
1528         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
1529         weak_alias.
1530         (bzero): Likewise.
1531         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
1532         "bp-asm.h".
1533         (PARMS): Do not use macros from bp-asm.h.
1534         (S): Likewise.
1535         (SIZE): Likewise.
1536         (__mpn_lshift): Do not use BP_SYM.
1537         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
1538         "bp-asm.h".
1539         (PARMS): Do not use macros from bp-asm.h.
1540         (DEST): Likewise.
1541         (SRC): Likewise.
1542         (LEN): Likewise.
1543         (memcpy): Likewise.  Do not use BP_SYM.
1544         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
1545         libc_hidden_def and weak_alias.
1546         (mempcpy): Do not use BP_SYM in weak_alias.
1547         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
1548         "bp-asm.h".
1549         (PARMS): Do not use macros from bp-asm.h.
1550         (DEST): Likewise.
1551         (LEN): Likewise.
1552         [!BZERO_P] (CHR): Likewise.
1553         (memset): Likewise.  Do not use BP_SYM.
1554         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
1555         "bp-asm.h".
1556         (PARMS): Do not use macros from bp-asm.h.
1557         (S1): Likewise.
1558         (SIZE): Likewise.
1559         (__mpn_mul_1): Do not use BP_SYM.
1560         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
1561         "bp-asm.h".
1562         (PARMS): Do not use macros from bp-asm.h.
1563         (S): Likewise.
1564         (SIZE): Likewise.
1565         (__mpn_rshift): Do not use BP_SYM.
1566         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
1567         "bp-asm.h".
1568         (PARMS): Do not use macros from bp-asm.h.
1569         (STR): Likewise.
1570         (CHR): Likewise.
1571         (strchr): Likewise.  Do not use BP_SYM.
1572         (index): Do not use BP_SYM in weak_alias.
1573         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
1574         "bp-asm.h".
1575         (PARMS): Do not use macros from bp-asm.h.
1576         (DEST): Likewise.
1577         (SRC): Likewise.
1578         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
1579         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
1580         "bp-asm.h".
1581         (PARMS): Do not use macros from bp-asm.h.
1582         (strlen): Do not use BP_SYM.
1583         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
1584         "bp-asm.h".
1585         (PARMS): Do not use macros from bp-asm.h.
1586         (S1): Likewise.
1587         (S2): Likewise.
1588         (SIZE): Likewise.
1589         (__mpn_sub_n): Do not use BP_SYM.
1590         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
1591         "bp-asm.h".
1592         (PARMS): Do not use macros from bp-asm.h.
1593         (S1): Likewise.
1594         (SIZE): Likewise.
1595         (__mpn_submul_1): Do not use BP_SYM.
1596         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
1597         "bp-asm.h".
1598         (PARMS): Do not use macros from bp-asm.h.
1599         (S1): Likewise.
1600         (S2): Likewise.
1601         (SIZE): Likewise.
1602         (__mpn_add_n): Do not use BP_SYM.
1603         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
1604         weak_alias.
1605         (bzero): Likewise.
1606         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
1607         "bp-asm.h".
1608         (PARMS): Do not use macros from bp-asm.h.
1609         (BLK2): Likewise.
1610         (LEN): Likewise.
1611         (memcmp): Do not use BP_SYM.
1612         (bcmp): Do not use BP_SYM in weak_alias.
1613         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
1614         "bp-asm.h".
1615         (PARMS): Do not use macros from bp-asm.h.
1616         (DEST): Likewise.
1617         (SRC): Likewise.
1618         (LEN): Likewise.
1619         (memcpy): Likewise.  Do not use BP_SYM.
1620         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
1621         "bp-asm.h".
1622         (PARMS): Do not use macros from bp-asm.h.
1623         (DEST): Likewise.
1624         (SRC): Likewise.
1625         (LEN): Likewise.
1626         (memmove): Likewise.  Do not use BP_SYM.
1627         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
1628         "bp-asm.h".
1629         (PARMS): Do not use macros from bp-asm.h.
1630         (DEST): Likewise.
1631         (SRC): Likewise.
1632         (LEN): Likewise.
1633         (__mempcpy): Likewise.  Do not use BP_SYM.
1634         (mempcpy): Do not use BP_SYM in weak_alias.
1635         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
1636         "bp-asm.h".
1637         (PARMS): Do not use macros from bp-asm.h.
1638         (DEST): Likewise.
1639         (LEN): Likewise.
1640         [!BZERO_P] (CHR): Likewise.
1641         (memset): Likewise.  Do not use BP_SYM.
1642         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
1643         "bp-asm.h".
1644         (PARMS): Do not use macros from bp-asm.h.
1645         (STR2): Likewise.
1646         (strcmp): Do not use BP_SYM.
1647         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
1648         "bp-asm.h".
1649         (PARMS): Do not use macros from bp-asm.h.
1650         (STR): Likewise.
1651         (DELIM): Likewise.
1652         [USE_AS_STRTOK_R] (SAVE): Likewise.
1653         (FUNCTION): Likewise.  Do not use BP_SYM.
1654         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
1655         aliases.
1656         (strtok_r): Likewise.
1657         (__GI___strtok_r): Likewise.
1658         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
1659         (PARMS): Do not use macros from bp-asm.h.
1660         (S): Likewise.
1661         (SIZE): Likewise.
1662         (__mpn_lshift): Do not use BP_SYM.
1663         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
1664         (PARMS): Do not use macros from bp-asm.h.
1665         (STR): Likewise.
1666         (CHR): Likewise.
1667         (__memchr): Do not use BP_SYM.
1668         (memchr): Do not use BP_SYM in weak_alias.
1669         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
1670         (PARMS): Do not use macros from bp-asm.h.
1671         (BLK2): Likewise.
1672         (LEN): Likewise.
1673         (memcmp): Do not use BP_SYM.
1674         (bcmp): Do not use BP_SYM in weak_alias.
1675         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
1676         (PARMS): Do not use macros from bp-asm.h.
1677         (S1): Likewise.
1678         (SIZE): Likewise.
1679         (__mpn_mul_1): Do not use BP_SYM.
1680         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
1681         "bp-asm.h".
1682         (PARMS): Do not use macros from bp-asm.h.
1683         (STR): Likewise.
1684         (CHR): Likewise.
1685         (__rawmemchr): Do not use BP_SYM.
1686         (rawmemchr): Do not use BP_SYM in weak_alias.
1687         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
1688         (PARMS): Do not use macros from bp-asm.h.
1689         (S): Likewise.
1690         (SIZE): Likewise.
1691         (__mpn_rshift): Do not use BP_SYM.
1692         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
1693         (PARMS): Do not use macros from bp-asm.h.
1694         (SIGMSK): Likewise.
1695         (__sigsetjmp): Likewise.  Do not use BP_SYM.
1696         * sysdeps/i386/start.S: Do not include "bp-sym.h".
1697         (_start): Do not use BP_SYM.
1698         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
1699         (PARMS): Do not use macros from bp-asm.h.
1700         (DEST): Likewise.
1701         (SRC): Likewise.
1702         (__stpcpy): Likewise.  Do not use BP_SYM.
1703         (stpcpy): Do not use BP_SYM in weak_alias.
1704         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
1705         "bp-asm.h".
1706         (PARMS): Do not use macros from bp-asm.h.
1707         (DEST): Likewise.
1708         (SRC): Likewise.
1709         (LEN): Likewise.
1710         (__stpncpy): Likewise.  Do not use BP_SYM.
1711         (stpncpy): Do not use BP_SYM in weak_alias.
1712         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
1713         (PARMS): Do not use macros from bp-asm.h.
1714         (STR): Likewise.
1715         (CHR): Likewise.
1716         (strchr): Likewise.  Do not use BP_SYM.
1717         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
1718         "bp-asm.h".
1719         (PARMS): Do not use macros from bp-asm.h.
1720         (STR): Likewise.
1721         (CHR): Likewise.
1722         (__strchrnul): Likewise.  Do not use BP_SYM.
1723         (strchrnul): Do not use BP_SYM in weak_alias.
1724         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
1725         "bp-asm.h".
1726         (PARMS): Do not use macros from bp-asm.h.
1727         (STOP): Likewise.
1728         (strcspn): Do not use BP_SYM.
1729         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
1730         "bp-asm.h".
1731         (PARMS): Do not use macros from bp-asm.h.
1732         (STR): Likewise.
1733         (STOP): Likewise.
1734         (strpbrk): Likewise.  Do not use BP_SYM.
1735         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
1736         "bp-asm.h".
1737         (PARMS): Do not use macros from bp-asm.h.
1738         (STR): Likewise.
1739         (CHR): Likewise.
1740         (strrchr): Likewise.  Do not use BP_SYM.
1741         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
1742         (PARMS): Do not use macros from bp-asm.h.
1743         (SKIP): Likewise.
1744         (strspn): Do not use BP_SYM.
1745         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
1746         (PARMS): Do not use macros from bp-asm.h.
1747         (STR): Likewise.
1748         (DELIM): Likewise.
1749         (SAVE): Likewise.
1750         (FUNCTION): Likewise.  Do not use BP_SYM.
1751         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
1752         aliases.
1753         (strtok_r): Likewise.
1754         (__GI___strtok_r): Likewise.
1755         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
1756         (PARMS): Do not use macros from bp-asm.h.
1757         (S1): Likewise.
1758         (S2): Likewise.
1759         (SIZE): Likewise.
1760         (__mpn_sub_n): Do not use BP_SYM.
1761         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
1762         "bp-asm.h".
1763         (PARMS): Do not use macros from bp-asm.h.
1764         (S1): Likewise.
1765         (SIZE): Likewise.
1766         (__mpn_submul_1): Do not use BP_SYM.
1767         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
1768         <bp-sym.h>.
1769         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
1770         and <bp-asm.h>.
1771         (PARMS): Do not use macros from bp-asm.h.
1772         (FLAGS): Likewise.
1773         (PTID): Likewise.
1774         (TLS): Likewise.
1775         (CTID): Likewise.
1776         (__clone): Do not use BP_SYM.
1777         (clone): Do not use BP_SYM in weak_alias.
1778         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
1779         and <bp-asm.h>.
1780         (PARMS): Do not use macros from bp-asm.h.
1781         (LEN): Likewise.
1782         (__mmap64): Do not use BP_SYM.
1783         (mmap64): Do not use BP_SYM in weak_alias.
1784         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1785         <bp-sym.h> and <bp-asm.h>.
1786         (PARMS): Do not use macros from bp-asm.h.
1787         (__posix_fadvise64_l64): Do not use BP_SYM.
1788         * sysdeps/unix/sysv/linux/i386/semtimedop.S
1789         (PARMS): Do not use macros from bp-asm.h.
1790         (NSOPS): Likewise.
1791         (semtimedop): Do not use BP_SYM.
1792         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
1793         and <bp-asm.h>.
1794
1795 2013-02-21  Allan McRae  <allan@archlinux.org>
1796
1797         * manual/message.texi (Charset conversion in gettext):
1798         Move @end statement to beginning of line.
1799
1800 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1801
1802         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
1803         static.
1804         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
1805         Likewise.
1806
1807         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
1808         (denorm): Likewise.
1809         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
1810         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
1811
1812 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1813
1814         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
1815         tail-call to the resolved function if pltexit isn't needed.
1816
1817 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1818
1819         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
1820         or Y being zero as being unlikely.
1821         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
1822         Likewise.
1823
1824 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
1825
1826         * manual/nss.texi (System Databases and Name Service Switch):
1827         Remove frobnicate @pxref.
1828
1829 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
1830
1831         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
1832         __attribute__ ((unused)) to __attribute__ ((__unused__)).
1833
1834 2013-02-20  Petr Machata  <pmachata@redhat.com>
1835
1836         * elf/elf.h (R_ARM_TARGET1): New macro.
1837         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
1838         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
1839         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
1840         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
1841         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
1842         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
1843         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
1844         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
1845         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
1846         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
1847         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
1848         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
1849         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
1850         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
1851         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
1852         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
1853         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
1854         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
1855         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
1856         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
1857         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
1858         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
1859         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
1860         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
1861         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
1862         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
1863         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
1864         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
1865         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
1866         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
1867         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
1868         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
1869         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
1870         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
1871         (R_ARM_THM_GOT_BREL12): Likewise.
1872         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
1873         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
1874         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
1875         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
1876         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
1877         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
1878         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
1879         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
1880         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
1881
1882 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
1883
1884         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
1885         __attribute_used__ to __attribute__ ((unused)).
1886
1887 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1888
1889         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
1890         powerpc mpa.c.
1891         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
1892         comment formatting.
1893         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
1894
1895 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
1896
1897         [BZ #13550]
1898         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
1899         Remove macro.
1900         (ENTER): Remove both macro definitions.
1901         (LEAVE): Likewise.
1902         (CHECK_BOUNDS_LOW): Likewise.
1903         (CHECK_BOUNDS_HIGH): Likewise.
1904         (CHECK_BOUNDS_BOTH): Likewise.
1905         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
1906         (RETURN_BOUNDED_POINTER): Likewise.
1907         (RETURN_NULL_BOUNDED_POINTER): Likewise.
1908         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
1909         (POP_ERRNO_LOCATION_RETURN): Likewise.
1910         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
1911         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1912         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
1913         macros.
1914         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1915         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
1916         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
1917         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
1918         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
1919         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
1920         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
1921         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
1922         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
1923         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
1924         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
1925         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
1926         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1927         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
1928         removed macros.
1929         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1930         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
1931         macros.
1932         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1933         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
1934         * sysdeps/i386/i586/memset.S (memset): Likewise.
1935         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
1936         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1937         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
1938         macros.
1939         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1940         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
1941         Change uses of L(2) to L(out).
1942         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
1943         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
1944         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
1945         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1946         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
1947         removed macros.
1948         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1949         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
1950         macros.
1951         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1952         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
1953         (RETURN): Do not use macro LEAVE.
1954         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
1955         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
1956         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
1957         * sysdeps/i386/i686/memset.S (memset): Likewise.
1958         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
1959         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
1960         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
1961         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
1962         Likewise.
1963         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
1964         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
1965         L(1_2) and L(1_3) into L(1).
1966         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
1967         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
1968         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1969         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
1970         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
1971         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
1972         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
1973         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1974         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
1975         macros.
1976         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
1977         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1978         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
1979         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
1980         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
1981         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1982         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
1983         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
1984         * sysdeps/i386/strcspn.S (strcspn): Likewise.
1985         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
1986         * sysdeps/i386/strrchr.S (strrchr): Likewise.
1987         * sysdeps/i386/strspn.S (strspn): Likewise.
1988         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
1989         conditional code.
1990         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
1991         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
1992         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
1993         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
1994         L(1_3) into L(1_1).
1995         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
1996         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1997         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
1998         macros.
1999         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2000
2001 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
2002
2003         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
2004         macro.
2005
2006 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
2007
2008         * math/atest-exp.c (exp_mpn): Remove ROUND.
2009         * math/atest-exp2.c (exp_mpn): Likewise.
2010         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
2011
2012         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
2013         * stdlib/tst-tls-atexit-lib.c: Likewise.
2014         * stdlib/tst-tls-atexit.c: Likewise.
2015
2016 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
2017
2018         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
2019         and __attribute_alloc_size__.
2020
2021 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
2022
2023         * include/programs/xmalloc.h: Change __attribute_alloc_size to
2024         __attribute_alloc_size__.
2025         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
2026         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
2027
2028 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
2029
2030         * include/programs/xmalloc.h: New file.
2031         * catgets/gencat.c: Include it.
2032         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
2033         * elf/pldd.c: Likewise.
2034         * iconv/iconv_charmap.c: Likewise.
2035         * iconv/iconvconfig.c: Likewise.
2036         * iconv/strtab.c: Likewise.
2037         * locale/programs/locale.c: Likewise.
2038         * locale/programs/localedef.h: Likewise.
2039         * locale/programs/simple-hash.c: Likewise.
2040         * nscd/nscd.h: Likewise.
2041         * nss/makedb.c: Likewise.
2042         * sysdeps/generic/ldconfig.h: Likewise.
2043
2044 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2045
2046         * Versions.def: Add GLIBC_2.18.
2047         * include/link.h (struct link_map): New member l_tls_dtor_count.
2048         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
2049         (__call_tls_dtors): Likewise.
2050         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
2051         __cxa_thread_atexit_impl.
2052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2053         Likewise.
2054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2055         Likewise.
2056         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
2057         Likewise.
2058         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
2059         Likewise.
2060         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2061         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
2062         Likewise.
2063         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
2064         Likewise.
2065         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2066         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
2067         Likewise.
2068         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
2069         (tests): Add test case tst-tls-atexit.
2070         (modules-names): Add shared library for tst-tls-atexit.
2071         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
2072         (GLIBC_PRIVATE): Add __call_tls_dtors.
2073         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
2074         for libstdc++.
2075         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
2076         * stdlib/tst-tls-atexit.c: New test case.
2077         * stdlib/tst-tls-atexit-lib.c: New test case.
2078
2079         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
2080
2081         * elf/Versions (ld): Add _dl_find_dso_for_object.
2082         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
2083         * elf/dl-open.c (_dl_find_dso_for_object): New function.
2084         (dl_open_worker): Use _dl_find_dso_for_object.
2085         * elf/dl-sym.c (do_sym): Likewise.
2086         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
2087
2088 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2089
2090         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
2091         Syntactic changes only.
2092         (_dl_runtime_profile): Do a tail-call to the resolved function.
2093
2094 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
2095
2096         [BZ #13550]
2097         * sysdeps/x86_64/bp-asm.h: Remove file.
2098         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
2099         <bp-sym.h> and <bp-asm.h>.
2100         (__clone): Do not use BP_SYM.
2101         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
2102         <bp-sym.h> and <bp-asm.h>.
2103         * sysdeps/unix/x86_64/sysdep.S: Likewise.
2104         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
2105         "bp-asm.h".
2106         (_setjmp): Do not use BP_SYM.
2107         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
2108         "bp-asm.h".
2109         (setjmp): Do not use BP_SYM.
2110         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
2111         libc_hidden_def.
2112         (mempcpy): Do not use BP_SYM in weak_alias.
2113         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
2114         "bp-asm.h".
2115         (strchr): Do not use BP_SYM.
2116         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
2117         "bp-asm.h".
2118         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
2119         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
2120         (_start): Do not use BP_SYM.
2121         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
2122         "bp-asm.h".
2123         (strcat): Do not use BP_SYM.
2124         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
2125         "bp-asm.h".
2126         (STRCMP): Do not use BP_SYM.
2127         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
2128         "bp-asm.h".
2129         (STRCPY): Do not use BP_SYM.
2130         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
2131         "bp-asm.h".
2132         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
2133         "bp-asm.h".
2134         (FUNCTION): Do not use BP_SYM.
2135         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
2136         weak_alias.
2137         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
2138
2139 2013-02-17  Andreas Jaeger  <aj@suse.de>
2140
2141         * time/Versions: Sort entries.
2142         * string/Versions: Likewise.
2143         * resolv/Versions: Likewise.
2144         * posix/Versions: Likewise.
2145         * iconv/Versions: Likewise.
2146         * elf/Versions: Likewise.
2147         * wcsmbs/Versions: Likewise.
2148
2149 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2150
2151         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
2152         loop termination condition.
2153
2154         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
2155         variable to calculate EZ.
2156         (__sqr): Likewise.
2157
2158         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
2159         the lower precision input.
2160
2161 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
2162
2163         [BZ #13550]
2164         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
2165         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
2166         (run-via-rtld-prefix): Do not handle %-bp tests.
2167         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
2168         (all-object-suffixes): Remove .ob.
2169         (bppfx): Remove variable.
2170         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
2171         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
2172         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
2173         [$(build-bounded) = yes] (libtype.ob): Likewise.
2174         * Makerules (elide-routines.ob): Remove variable.
2175         (do-tests-clean): Do not handle *-bp.out.
2176         (common-mostlyclean): Do not handle *-bp and *-bp.out.
2177         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
2178         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
2179         (tests): Do not include $(tests-bp.out).
2180         (xtests): Do not include $(xtests-bp.out).
2181         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
2182         [$(build-bounded) = yes] ($(addprefix
2183         $(objpfx),$(binaries-bounded))): Remove rule.
2184         ($(objpfx)%-bp.out): Remove rule.
2185         * config.make.in (build-bounded): Remove variable.
2186         * crypt/Makefile [$(build-bounded) = yes]
2187         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
2188         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
2189         append to variable.
2190         [$(build-bounded) = yes] (install-lib): Likewise.
2191         [$(build-bounded) = yes] (generated): Likewise.
2192         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
2193         Remove rule.
2194         * intl/Makefile [$(build-bounded) = yes]
2195         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
2196         * math/Makefile [$(build-bounded) = yes]
2197         ($(tests:%=$(objpfx)%-bp): Likewise.
2198         * misc/Makefile [$(build-bounded) = yes]
2199         ($(objpfx)tst-tsearch-bp): Likewise.
2200         * nptl/Makeconfig (bounded-thread-library): Remove variable.
2201         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
2202         Remove dependency.
2203         * string/Makefile (o-objects.ob): Remove variable.
2204         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
2205         (CFLAGS-.ob): Remove variable.
2206         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
2207         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
2208         both definitions of variable.
2209         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
2210         (ASFLAGS-.ob): Remove variable.
2211
2212 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
2213
2214         [BZ #13550]
2215         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
2216         Remove __BOUNDED_POINTERS__ from condition.
2217         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
2218         * string/bits/string2.h [!__NO_STRING_INLINES &&
2219         !__BOUNDED_POINTERS__]: Likewise.
2220         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
2221         Likewise.
2222         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
2223         Remove conditional code.
2224         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
2225         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
2226         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
2227         condition.
2228
2229         [BZ #13550]
2230         * csu/libc-start.c: Do not include <bp-sym.h>.
2231         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
2232         * elf/dl-open.c: Do not include <bp-sym.h>.
2233         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
2234         * math/fegetenv.c: Do not include <bp-sym.h>.
2235         (fegetenv): Do not use BP_SYM in versioned symbols.
2236         * nptl/sysdeps/pthread/bits/libc-lockP.h
2237         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
2238         <bp-sym.h>.
2239         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2240         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
2241         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2242         (__pthread_mutex_destroy): Likewise.
2243         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2244         (__pthread_mutex_lock): Likewise.
2245         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2246         (__pthread_mutex_trylock): Likewise.
2247         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2248         (__pthread_mutex_unlock): Likewise.
2249         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2250         (__pthread_mutexattr_init): Likewise.
2251         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2252         (__pthread_mutexattr_destroy): Likewise.
2253         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2254         (__pthread_mutexattr_settype): Likewise.
2255         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2256         (__pthread_rwlock_init): Likewise.
2257         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2258         (__pthread_rwlock_destroy): Likewise.
2259         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2260         (__pthread_rwlock_rdlock): Likewise.
2261         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2262         (__pthread_rwlock_tryrdlock): Likewise.
2263         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2264         (__pthread_rwlock_wrlock): Likewise.
2265         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2266         (__pthread_rwlock_trywrlock): Likewise.
2267         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2268         (__pthread_rwlock_unlock): Likewise.
2269         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2270         (__pthread_key_create): Likewise.
2271         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2272         (__pthread_setspecific): Likewise.
2273         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2274         (__pthread_getspecific): Likewise.
2275         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
2276         Likewise.
2277         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2278         (_pthread_cleanup_push_defer): Likewise.
2279         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2280         (_pthread_cleanup_pop_restore): Likewise.
2281         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2282         (pthread_setcancelstate): Likewise.
2283         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
2284         <bp-sym.h>.
2285         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
2286         (memchr): Do not use BP_SYM in weak_alias.
2287         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
2288         (fegetenv): Do not use BP_SYM in versioned symbols.
2289         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
2290         (fesetenv): Do not use BP_SYM in versioned symbols.
2291         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
2292         (feupdateenv): Do not use BP_SYM in versioned symbols.
2293         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
2294         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
2295         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
2296         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
2297         (open64): Do not use BP_SYM in weak_alias.
2298         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
2299         (fegetenv): Do not use BP_SYM in versioned symbols.
2300         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
2301         (fesetenv): Do not use BP_SYM in versioned symbols.
2302         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
2303         (feupdateenv): Do not use BP_SYM in versioned symbols.
2304         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
2305         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
2306         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
2307         (feraiseexcept): Do not use BP_SYM in versioned symbols.
2308         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
2309         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
2310         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
2311         <bp-sym.h>.
2312         (__libc_start_main): Do not use BP_SYM.
2313
2314 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2315
2316         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
2317         redundant return line.
2318         (norm): Likewise.
2319         (denorm): Likewise.
2320         (dbl_mp): Likewise.
2321         (sub_magnitudes): Likewise.
2322         (__add): Likewise.
2323         (__sub): Likewise.
2324         (__mul): Likewise.
2325         (__inv): Likewise.
2326         (__dvd): Likewise.
2327         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
2328         (norm): Likewise.
2329         (denorm): Likewise.
2330         (dbl_mp): Likewise.
2331         (sub_magnitudes): Likewise.
2332         (__add): Likewise.
2333         (__sub): Likewise.
2334         (__mul): Likewise.
2335         (__inv): Likewise.
2336         (__dvd): Likewise.
2337
2338         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
2339         instead of __mul.
2340         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
2341         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
2342         (cc32): Likewise.
2343
2344         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
2345         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
2346         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
2347         of __mul for squares.
2348         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
2349         function
2350         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
2351         Likewise.
2352         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
2353         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
2354
2355 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
2356
2357         [BZ #13550]
2358         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
2359         code.
2360         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
2361         prototype or function definition.  Rename ubp_* variables and
2362         parameters.  Remove argv definitions conditional on
2363         [__BOUNDED_POINTERS__].
2364         * debug/backtrace.c (__backtrace): Do not use __unbounded.
2365         * elf/dl-runtime.c (_dl_fixup): Likewise.
2366         * include/set-hooks.h (RUN_HOOK): Likewise.
2367         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
2368         definition.
2369         * string/strcpy.c (strcpy): Do not use __unbounded.
2370         * sysdeps/generic/frame.h (struct layout): Likewise.
2371         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
2372         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
2373         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
2374         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
2375         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
2376         (__backtrace): Likewise.
2377         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
2378         use __ptrvalue.
2379         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2380         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
2381         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
2382         Likewise.
2383         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
2384         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2385         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
2386         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2387         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
2388         Do not use __unbounded.
2389         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
2390         Rename __unboundedrlimits parameter to rlimits in prototype.
2391         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
2392         Do not use __unbounded.
2393         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
2394         not use __ptrvalue.
2395         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2396         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
2397         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2398         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
2399         __ptrvalue or __unbounded.
2400         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
2401         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
2402         use __unbounded.
2403         (__new_msgctl): Do not use __ptrvalue.
2404         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
2405         __unbounded.
2406         (__libc_msgrcv): Do not use __ptrvalue.
2407         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
2408         startup_info): Do not use __unbounded.
2409         (__libc_start_main): Likewise.  Rename ubp_* variables and
2410         parameters.  Remove argv definitions conditional on
2411         [__BOUNDED_POINTERS__].
2412         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
2413         __ptrvalue.
2414         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
2415         use __unbounded.
2416         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
2417         or __ptrvalue.
2418         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
2419         use __unbounded.
2420         (__new_shmctl): Do not use __ptrvalue.
2421         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
2422         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
2423         Likewise.
2424         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
2425         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
2426         (__libc_sigaction): Likewise.
2427         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
2428         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
2429         Likewise.
2430         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2431
2432 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
2433
2434         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
2435
2436         * string/mempcpy.c: Implement by calling memcpy.
2437
2438 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
2439
2440         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
2441
2442         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
2443         evaluation.
2444
2445         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
2446         values in the mantissa.
2447
2448         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
2449         minimize writes to Z.
2450         (sub_magnitudes): Simplify code a bit.
2451
2452 2013-02-12  Roland McGrath  <roland@hack.frob.com>
2453
2454         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
2455         from the message.  The linker prefixes all warnings with that already.
2456
2457 2013-02-12  Andreas Schwab  <schwab@suse.de>
2458
2459         [BZ #15078]
2460         * posix/regexec.c (extend_buffers): Add parameter min_len.
2461         (check_matching): Pass minimum needed length.
2462         (clean_state_log_if_needed): Likewise.
2463         (get_subexp): Likewise.
2464         * posix/Makefile (tests): Add bug-regex34.
2465         (bug-regex34-ENV): Define.
2466         * posix/bug-regex34.c: New file.
2467
2468         [BZ #11561]
2469         * posix/regcomp.c (parse_bracket_exp): When looking up collating
2470         elements compare against the byte sequence of it, not its name.
2471         * posix/Makefile (tests): Add bug-regex35.
2472         (bug-regex35-ENV): Define.
2473         * posix/bug-regex35.c: New file.
2474
2475 2013-02-11  Tom de Vries  <tom@codesourcery.com>
2476
2477         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
2478         comment.
2479         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
2480         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
2481         (CHECK_EOL): Add undef.
2482
2483 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
2484
2485         * bits/stdlib-bsearch.h: New file.
2486         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
2487         * stdlib/stdlib.h: Likewise.
2488
2489 2013-02-11  Roland McGrath  <roland@hack.frob.com>
2490
2491         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
2492         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
2493         declaration.
2494         * manual/search.texi (Array Search Function): Add missing const in
2495         lfind prototype.
2496         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
2497         declaration to use rlim_t.
2498         (Basic Scheduling Functions): Remove erroneous const from
2499         sched_getparam prototype.  Remove erroneous * from
2500         sched_get_priority_max and sched_get_priority_min prototypes.
2501         (Resource Usage): Fix summary @comment on vtimes to refer to
2502         sys/vtimes.h rather than vtimes.h.
2503         Add missing *s in vtimes prototype.
2504         (Limits on Resources): Fix ulimit prototype to return long int.
2505         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
2506         prototypes to use long int rather than double.
2507         (BSD Random): Fix initstate and setstate to use char *, not void *.
2508         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
2509         prototype to make second argument 'struct aiocb64 *const[]'.
2510         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
2511         (Status of AIO Operations): Remove erroneous const in aio_return and
2512         aio_return64 prototypes.
2513         (Synchronizing I/O): Fix sync prototype to return void.
2514         * manual/startup.texi (Suboptions): Remove an erroneous const in
2515         getsubopt prototype.
2516         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
2517         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
2518         use size_t rather than int.
2519         (Scanning All Users): Likewise for getpwent_r.
2520         (Setting Groups): Add missing const to setgroups prototype.
2521         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
2522         * manual/socket.texi (Host Names): Fix gethostbyaddr and
2523         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
2524         'const void *' rather than 'const char *'.
2525         (Host Address Functions): Likewise for inet_ntop.
2526         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
2527         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
2528         ssize_t for return value.
2529         (Sending Data): Likewise for send, sendto, sendmsg.
2530         (Socket Option Functions): Add a missing const in setsockopt prototype.
2531         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
2532         use wchar_t for the argument.
2533         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
2534         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
2535         take no arguments.
2536         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
2537         double/float/long double for second argument.
2538         Fix return types of significand, significandf, significandl.
2539         * manual/filesys.texi (Setting Permissions): Use mode_t for second
2540         argument in fchmod prototype.
2541         (File Owner): Use uid_t and gid_t in fchown prototype.
2542         (File Times): Add const to utimes, futimes, and lutimes prototypes.
2543         (Making Special Files): Use mode_t and dev_t in mknod prototype.
2544         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
2545         use 'const struct dirent **' as argument types to CMP function pointer
2546         argument.
2547         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
2548         (File Times): Fix summary magic @comment for struct utimbuf and utime
2549         to refer to utime.h, not time.h.
2550         * manual/string.texi (Argz Functions): Add missing const in
2551         argz_extract and argz_next prototypes.
2552         (Finding Tokens in a String): Likewise for basename.
2553         (String/Array Comparison): Fix typo in wcscasecmp prototype.
2554         (Copying and Concatenation): Fix typo in wmemmove prototype.
2555         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
2556         (Signal Stack): Remove erroneous const in sigstack prototype.
2557         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
2558         prototype.
2559         (Simple Calendar Time): Likewise for stime.
2560         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
2561         prototype.
2562         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
2563         say sys/sysctl.h instead.
2564         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
2565         and vsyslog prototypes.
2566
2567 2013-02-11  Tom de Vries  <tom@codesourcery.com>
2568
2569         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
2570         Remove.
2571
2572 2013-02-11  Roland McGrath  <roland@hack.frob.com>
2573
2574         * misc/sys/mman.h: Fix typo in mremap comment.
2575
2576 2013-02-08  Roland McGrath  <roland@hack.frob.com>
2577
2578         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
2579         the '\0' terminator.
2580
2581 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
2582
2583         [BZ #13550]
2584         * debug/segfault.c: Don't include <bp-checks.h>.
2585         * sysdeps/generic/bp-checks.h: Remove file.
2586         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
2587         (__GETDENTS): Don't use CHECK_N.
2588         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
2589         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
2590         (__getgroups): Don't use CHECK_N.
2591         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2592         (setgroups): Don't use CHECK_N.
2593         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
2594         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
2595         (__libc_msgrcv): Don't use CHECK_N.
2596         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
2597         (__libc_msgsnd): Don't use CHECK_N.
2598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
2599         <bp-checks.h>.
2600         (__libc_pread): Don't use CHECK_N.
2601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
2602         include <bp-checks.h>.
2603         (__libc_pread64): Don't use CHECK_N.
2604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
2605         include <bp-checks.h>.
2606         (__libc_pwrite): Don't use CHECK_N.
2607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
2608         include <bp-checks.h>.
2609         (__libc_pwrite64): Don't use CHECK_N.
2610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
2611         <bp-checks.h>.
2612         (__libc_pread): Don't use CHECK_N.
2613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
2614         include <bp-checks.h>.
2615         (__libc_pread64): Don't use CHECK_N.
2616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
2617         include <bp-checks.h>.
2618         (__libc_pwrite): Don't use CHECK_N.
2619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
2620         include <bp-checks.h>.
2621         (__libc_pwrite64): Don't use CHECK_N.
2622         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
2623         (do_pread): Don't use CHECK_N.
2624         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
2625         (do_pread64): Don't use CHECK_N.
2626         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
2627         (do_pwrite): Don't use CHECK_N.
2628         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
2629         (do_pwrite64): Don't use CHECK_N.
2630         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
2631         (__libc_readv): Don't use CHECK_N.
2632         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
2633         (semop): Don't use CHECK_N.
2634         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
2635         <bp-checks.h>.
2636         (semtimedop): Don't use CHECK_N.
2637         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
2638         (__libc_pread): Don't use CHECK_N.
2639         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
2640         <bp-checks.h>.
2641         (__libc_pread64): Don't use CHECK_N.
2642         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
2643         <bp-checks.h>.
2644         (__libc_pwrite): Don't use CHECK_N.
2645         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
2646         <bp-checks.h>.
2647         (__libc_pwrite64): Don't use CHECK_N.
2648         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
2649         <bp-checks.h>.
2650         (__libc_msgrcv): Don't use CHECK_N.
2651         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
2652         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
2653         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
2654         (__libc_writev): Don't use CHECK_N.
2655
2656 2013-02-08  Roland McGrath  <roland@hack.frob.com>
2657
2658         * string/strcpy.c: Removed unused variable.
2659
2660         * Makeconfig (+sysdep-includes): Define with := rather than =.
2661         Use an existing include/ subdir of each sysdeps dir before it.
2662
2663 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
2664
2665         * nscd/connection.c (register_traced_file): Comment function.
2666         [HAVE_INOTIFY] (union __inev): Define.
2667         [HAVE_INOTIFY] (inotify_check_files): New function.
2668         [HAVE_INOTIFY] (clear_db_cache): Likewise.
2669         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
2670         clear_db_cache.
2671         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
2672
2673 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
2674
2675         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
2676         loaded if not already and that a failure is permanent.
2677
2678 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
2679
2680         [BZ #15006]
2681         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
2682         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
2683
2684 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
2685
2686         [BZ #13550]
2687         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
2688         (CHECK_1_NULL_OK): Likewise.
2689         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
2690         (__fxstat): Do not use CHECK_1.
2691         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2692         <bp-checks.h>.
2693         (___fxstat64): Do not use CHECK_1.
2694         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
2695         <bp-checks.h>.
2696         (__fxstatat): Do not use CHECK_1.
2697         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
2698         <bp-checks.h>.
2699         (__fxstatat64): Do not use CHECK_1.
2700         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
2701         <bp-checks.h>.
2702         (__fxstat): Do not use CHECK_1.
2703         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
2704         <bp-checks.h>.
2705         (__fxstatat): Do not use CHECK_1.
2706         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
2707         <bp-checks.h>.
2708         (__getresgid): Do not use CHECK_1.
2709         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
2710         <bp-checks.h>.
2711         (__getresuid): Do not use CHECK_1.
2712         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
2713         <bp-checks.h>.
2714         (__lxstat): Do not use CHECK_1.
2715         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
2716         <bp-checks.h>.
2717         (__old_msgctl): Do not use CHECK_1.
2718         (__new_msgctl): Likewise.
2719         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
2720         <bp-checks.h>.
2721         (__new_setrlimit): Do not use CHECK_1.
2722         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
2723         <bp-checks.h>.
2724         (__old_shmctl): Do not use CHECK_1.
2725         (__new_shmctl): Likewise.
2726         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
2727         <bp-checks.h>.
2728         (__xstat): Do not use CHECK_1.
2729         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
2730         (__lxstat): Do not use CHECK_1.
2731         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2732         <bp-checks.h>.
2733         (___lxstat64): Do not use CHECK_1.
2734         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
2735         (__old_msgctl): Do not use CHECK_1.
2736         (__new_msgctl): Likewise.
2737         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
2738         <bp-checks.h>.
2739         (__gettimeofday): Do not use CHECK_1.
2740         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
2741         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
2742         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
2743         <bp-checks.h>.
2744         (__gettimeofday): Do not use CHECK_1.
2745         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
2746         (__old_shmctl): Do not use CHECK_1_NULL_OK.
2747         (__new_shmctl): Do not use CHECK_1.
2748         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
2749         <bp-checks.h>.
2750         (do_sigtimedwait): Do not use CHECK_1.
2751         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
2752         <bp-checks.h>.
2753         (do_sigwaitinfo): Do not use CHECK_1.
2754         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
2755         <bp-checks.h>.
2756         (msgctl): Do not use CHECK_1.
2757         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
2758         <bp-checks.h>.
2759         (shmctl): Do not use CHECK_1.
2760         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
2761         (ustat): Do not use CHECK_1.
2762         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
2763         <bp-checks.h>.
2764         (__fxstat): Do not use CHECK_1.
2765         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
2766         <bp-checks.h>.
2767         (__fxstatat): Do not use CHECK_1.
2768         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
2769         <bp-checks.h>.
2770         (__lxstat): Do not use CHECK_1.
2771         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
2772         <bp-checks.h>.
2773         (__xstat): Do not use CHECK_1.
2774         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
2775         (__xstat): Do not use CHECK_1.
2776         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
2777         (___xstat64): Do not use CHECK_1.
2778
2779         [BZ #13550]
2780         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
2781         definitions.
2782         (CHECK_BOUNDS_HIGH): Likewise.
2783         * string/strcpy.c: Do not include <bp-checks.h>.
2784         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
2785
2786 2013-02-07  Roland McGrath  <roland@hack.frob.com>
2787
2788         * nscd/nscd-client.h (__nscd_drop_map_ref):
2789         Add __attribute__ ((unused)).
2790         * nis/nss-nisplus.h (niserr2nss): Likewise.
2791
2792         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
2793         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
2794
2795         * csu/libc-tls.c (init_static_tls, init_slotinfo):
2796         Remove inline keyword.
2797         * include/rounding-mode.h (round_away): Likewise.
2798         * libio/wfileops.c (adjust_wide_data): Likewise.
2799         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
2800         (__m128i_strloadu_tolower): Likewise.
2801         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
2802         (__m128i_strloadu_tolower): Likewise.
2803         * time/mktime.c (ydhms_diff): Likewise.
2804         * locale/elem-hash.h (elem_hash): Likewise.
2805         * locale/setlocale.c (setdata): Likewise.
2806         * posix/regex_internal.h (re_string_char_size_at): Likewise.
2807         (re_string_wchar_at): Likewise.
2808         (bitset_not, bitset_merge, bitset_mask): Likewise.
2809         [!(__GNUC__ > 3)] (inline): Remove macro.
2810         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
2811         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
2812         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
2813         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
2814         * string/memcmp.c (memcmp_bytes): Likewise.
2815         * locale/programs/locarchive.c (compute_hashval): Likewise.
2816         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
2817         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
2818         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
2819         * nss/getent.c (print_rpc, print_protocols): Likewise.
2820         (print_passwd, print_group, print_aliases): Likewise.
2821         * nis/nss-nisplus.h (niserr2nss): Likewise.
2822         * nscd/connections.c (restart_p): Likewise.
2823         Change return type to bool.
2824
2825 2013-02-05  Roland McGrath  <roland@hack.frob.com>
2826
2827         * Makeconfig (all-Depend-files): Add existing
2828         $(sorted-subdirs:=/Depend) files.
2829         (all-subdirs): Remove nss.
2830         * sysdeps/unix/inet/Subdirs: Add it here instead.
2831         * hesiod/Depend: New file.
2832
2833         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
2834         instead of calling alloca.
2835
2836         * io/lseek.c (__lseek): Rename to __libc_lseek.
2837         Define __lseek as an alias.
2838
2839         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
2840
2841 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
2842
2843         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
2844         else clause and remove check for non-standard endianness.
2845
2846 2013-02-04  David S. Miller  <davem@davemloft.net>
2847
2848         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2849
2850 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
2851
2852         [BZ #13550]
2853         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
2854         (__ubp_memchr): Remove prototype.
2855         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
2856         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
2857         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
2858         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
2859         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
2860         Remove alias.
2861         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
2862         (__ubp_memchr): Likewise.
2863         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
2864         (__ubp_memchr): Likewise.
2865         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
2866         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
2867         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
2868         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
2869         CHECK_STRING.
2870         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
2871         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
2872         (__getcwd): Do not use CHECK_STRING.
2873         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
2874         <bp-checks.h>.
2875         (__real_chown): Do not use CHECK_STRING.
2876         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
2877         <bp-checks.h>.
2878         (fchownat): Do not use CHECK_STRING.
2879         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
2880         CHECK_STRING.
2881         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
2882         <bp-checks.h>.
2883         (__lchown): Do not use CHECK_STRING.
2884         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2885         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2886         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2887         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
2888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
2889         include <bp-checks.h>.
2890         (truncate64): Do not use CHECK_STRING.
2891         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
2892         <bp-checks.h>.
2893         (__real_chown): Do not use CHECK_STRING.
2894         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
2895         <bp-checks.h>.
2896         (__lchown): Do not use CHECK_STRING.
2897         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
2898         <bp-checks.h>.
2899         (__chown): Do not use CHECK_STRING.
2900         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
2901         <bp-checks.h>.
2902         (truncate64): Do not use CHECK_STRING.
2903         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
2904         Likewise.
2905         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
2906         (__xmknod): Do not use CHECK_STRING.
2907         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
2908         <bp-checks.h>.
2909         (__xmknodat): Do not use CHECK_STRING.
2910         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2911         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
2912
2913 2013-02-04  Andreas Schwab  <schwab@suse.de>
2914
2915         [BZ #14142]
2916         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
2917         * include/netdb.h: Likewise for h_errno.
2918         * elf/tst-stackguard1.c: Include <tls.h>.
2919
2920 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2921
2922         * elf/link.h (struct link_map): Extend the l_addr comment.
2923         * include/link.h (struct link_map): Likewise.
2924
2925 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
2926
2927         [BZ #13550]
2928         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
2929         (BOUNDED_1): Remove macro.
2930         * debug/backtrace.c: Don't include <bp-checks.h>.
2931         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
2932         (__backtrace): Likewise.
2933         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
2934         <bp-checks.h>.
2935         (__backtrace): Don't use BOUNDED_1.
2936         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
2937         <bp-checks.h>.
2938         (__backtrace): Don't use BOUNDED_1.
2939         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
2940         (__backtrace): Don't use BOUNDED_1.
2941         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
2942         (shmat): Don't use BOUNDED_N.
2943
2944 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
2945
2946         [BZ #13550]
2947         * sysdeps/generic/bp-start.h: Remove file.
2948         * csu/libc-start.c: Don't include <bp-start.h>.
2949         (LIBC_START_MAIN): Set up __environ directly instead of using
2950         INIT_ARGV_and_ENVIRON.
2951         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
2952         <bp-start.h>.
2953
2954         [BZ #13550]
2955         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
2956         definitions.
2957         (CHECK_FCNTL): Likewise.
2958         (CHECK_N_PAGES): Likewise.
2959
2960         [BZ #13550]
2961         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
2962         definitions.
2963         (CHECK_SIGSET_NULL_OK): Likewise.
2964         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
2965         <bp-checks.h>.
2966         (sigpending): Don't use CHECK_SIGSET.
2967         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
2968         <bp-checks.h>.
2969         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
2970         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
2971         <bp-checks.h>.
2972         (do_sigsuspend): Don't use CHECK_SIGSET.
2973         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
2974         use CHECK_SIGSET.
2975         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
2976         (do_sigwait): Don't use CHECK_SIGSET.
2977         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
2978         use CHECK_SIGSET.
2979         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
2980         include <bp-checks.h>.
2981         (sigpending): Don't use CHECK_SIGSET.
2982         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
2983         include <bp-checks.h>.
2984         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
2985         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
2986         <bp-checks.h>.
2987         (sigpending): Don't use CHECK_SIGSET.
2988         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
2989         <bp-checks.h>.
2990         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
2991
2992         [BZ #13550]
2993         * sysdeps/generic/bp-semctl.h: Remove file.
2994         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
2995         <bp-checks.h> and <bp-semctl.h>.
2996         (__old_semctl): Don't use CHECK_SEMCTL.
2997         (__new_semctl): Likewise.
2998         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
2999         and <bp-semctl.h>.
3000         (__old_semctl): Don't use CHECK_SEMCTL.
3001         (__new_semctl): Likewise.
3002         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
3003         <bp-checks.h> and <bp-semctl.h>.
3004         (__old_semctl): Don't use CHECK_SEMCTL.
3005         (__new_semctl): Likewise.
3006         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
3007         <bp-checks.h> and <bp-semctl.h>.
3008         (semctl): Don't use CHECK_SEMCTL.
3009
3010         [BZ #13550]
3011         * Makerules (elide-bp-thunks): Remove variable.
3012         (elide-routines.oS): Don't use $(elide-bp-thunks).
3013         (elide-routines.os): Likewise.
3014         (elide-routines.o): Likewise.
3015         (elide-routines.op): Likewise.
3016         (elide-routines.og): Likewise.
3017         (objects): Don't use $(bp-thunks).
3018         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
3019         include.
3020         (common-generated): Do not add s-proto-bp.d.
3021         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
3022         (int): Likewise.
3023         (typ): Likewise.
3024         Do not generate makefile rules for bounded-pointer thunks.
3025         * sysdeps/generic/bp-thunks.h: Remove file.
3026         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
3027         * sysdeps/unix/s-proto-bp.S: Likewise.
3028
3029         [BZ #15062]
3030         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
3031         parts of result separately when argument is not close to line from
3032         -i to i and one part of argument is small.
3033         * math/k_casinhf.c (__kernel_casinhf): Likewise.
3034         * math/k_casinhl.c (__kernel_casinhl): Likewise.
3035         * math/libm-test.inc (cacos_test): Add more tests.
3036         (casin_test): Likewise.
3037         (casinh_test): Likewise.
3038         * sysdeps/i386/fpu/libm-test-ulps: Update.
3039         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3040
3041 2013-01-31  David S. Miller  <davem@davemloft.net>
3042
3043         * po/de.po: Update from translation team.
3044
3045 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
3046
3047         * time/tzfile.c: Include stdint.h for SIZE_MAX.
3048
3049 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
3050
3051         * configure.in (_AC_PROG_CC_C89): New definition.
3052         * configure: Regenerate.
3053
3054         * configure.in (AC_PROG_CPP): New definition.
3055         * configure: Regenerate.
3056
3057 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
3058
3059         * debug/tst-backtrace.h: New file.
3060         * debug/tst-backtrace2.c: Include tst-backtrace.h.
3061         (ret): Remove variable.
3062         (x): Likewise.
3063         (FAIL): Remove macro.
3064         (NO_INLINE): Likewise.
3065         (fn1): Use match function instead of strstr.
3066         * debug/tst-backtrace3.c: Include tst-backtrace.h.
3067         (ret): Remove variable.
3068         (x): Likewise.
3069         (FAIL): Remove macro.
3070         (NO_INLINE): Likewise.
3071         (fn): Use match function instead of strstr.
3072         * debug/tst-backtrace4.c: Include tst-backtrace.h.
3073         (ret): Remove variable.
3074         (x): Likewise.
3075         (FAIL): Remove macro.
3076         (NO_INLINE): Likewise.
3077         (handle_signal): Use match function instead of strstr.
3078         * debug/tst-backtrace5.c: Include tst-backtrace.h.
3079         (ret): Remove variable.
3080         (x): Likewise.
3081         (FAIL): Remove macro.
3082         (NO_INLINE): Likewise.
3083         (handle_signal): Use match function instead of strstr.
3084
3085 2013-01-23  Roland McGrath  <roland@hack.frob.com>
3086
3087         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
3088
3089 2013-01-23  David S. Miller  <davem@davemloft.net>
3090
3091         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
3092         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
3093         argument of CAS if possible.
3094         * sysdeps/sparc/sparc64/bits/atomic.h
3095         (__arch_compare_and_exchange_val_32_acq): Likewise.
3096         (__arch_compare_and_exchange_val_64_acq): Likewise.
3097
3098 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
3099
3100         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
3101         * sysdeps/posix/ulimit.c: ... this.
3102         Include <limits.h>.
3103         * sysdeps/unix/bsd/ulimit.c: Remove file.
3104
3105 2013-01-23  Adam Conrad  <adconrad@0c3.net>
3106
3107         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
3108         (LDFLAGS-tst-array5): Likewise.
3109
3110 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
3111
3112         [BZ #15036]
3113         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
3114         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
3115         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
3116         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
3117
3118 2013-01-21  David S. Miller  <davem@davemloft.net>
3119
3120         * sysdeps/sparc/backtrace.c: New file.
3121         * sysdeps/sparc/sparc32/backtrace.h: New file.
3122         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
3123         * sysdeps/sparc/sparc64/backtrace.h: New file.
3124         * sysdeps/sparc/sparc64/backtrace.c: Delete.
3125         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
3126         -funwind-tables.
3127
3128 2013-01-21  Andreas Schwab  <schwab@suse.de>
3129
3130         [BZ #15020]
3131         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
3132         closed its stdout.
3133
3134 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
3135
3136         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
3137         "mpa2.h".
3138         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
3139
3140 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
3141             Mark Mitchell  <mark@codesourcery.com>
3142             Tom de Vries  <tom@codesourcery.com>
3143             Paul Pluzhnikov  <ppluzhnikov@google.com>
3144
3145         * debug/tst-backtrace2.c: New file.
3146         * debug/tst-backtrace3.c: Likewise.
3147         * debug/tst-backtrace4.c: Likewise.
3148         * debug/tst-backtrace5.c: Likewise.
3149         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
3150         (CFLAGS-tst-backtrace3.c): Likewise.
3151         (CFLAGS-tst-backtrace4.c): Likewise.
3152         (CFLAGS-tst-backtrace5.c): Likewise.
3153         (LDFLAGS-tst-backtrace2): Likewise.
3154         (LDFLAGS-tst-backtrace3): Likewise.
3155         (LDFLAGS-tst-backtrace4): Likewise.
3156         (LDFLAGS-tst-backtrace5): Likewise.
3157         (tests): Add new tests tst-backtrace2, tst-backtrace3,
3158         tst-backtrace4 and tst-backtrace5.
3159
3160 2013-01-18  Anton Blanchard  <anton@samba.org>
3161             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3162
3163         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
3164         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
3165         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
3166         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
3167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3168         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
3169         "+r" and remove output regs list as redundant.  Add explicit inline
3170         asm to specify register of return val to work around compiler codegen
3171         bug.  Remove (int) cast on return value.  Add return type parameter to
3172         use in macro so that this macro does not truncate return value for
3173         64-bit values.
3174         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
3175         pass to INTERNAL_VSYSCALL_NCS.
3176         (INLINE_VSYSCALL): Add 'long int' as return type to
3177         INTERNAL_VSYSCALL_NCS macro invocation.
3178         (INTERNAL_VSYSCALL): Add 'long int' as return type to
3179         INTERNAL_VSYSCALL_NCS macro invocation.
3180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
3181
3182 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3183
3184         [BZ #14496]
3185         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
3186         Fix application of SIMD FP exception mask.
3187
3188         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
3189         mp_no from a power of two.
3190         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
3191         __mpexp_twomm1.  Use __pow_mp.
3192
3193         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
3194         multiplication.
3195
3196 2013-01-17  David S. Miller  <davem@davemloft.net>
3197
3198         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3199
3200 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
3201
3202         [BZ #15023]
3203         * include/complex.h: Condition contents on [!_COMPLEX_H].
3204         (__kernel_casinhf): New prototype.
3205         (__kernel_casinh): Likewise.
3206         (__kernel_casinhl): Likewise.
3207         * math/Makefile (libm_calls): Add k_casinh.
3208         * math/k_casinh.c: New file.
3209         * math/k_casinhf.c: Likewise.
3210         * math/k_casinhl.c: Likewise.
3211         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
3212         finite nonzero arguments.
3213         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
3214         finite nonzero arguments.
3215         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
3216         finite nonzero arguments.
3217         * math/s_casinh.c: Do not include <float.h>.
3218         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
3219         * math/s_casinhf.c: Do not include <float.h>.
3220         (__casinhf): Move code for finite nonzero arguments to
3221         k_casinhf.c.
3222         * math/s_casinhl.c: Do not include <float.h>.
3223         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
3224         redefine.
3225         (__casinhl): Move code for finite nonzero arguments to
3226         k_casinhl.c.
3227         * math/libm-test.inc (cacos_test): Add more tests.
3228         * sysdeps/i386/fpu/libm-test-ulps: Update.
3229         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3230
3231 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
3232
3233         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
3234         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
3235         [!HAVE_MREMAP]: Remove [defined linux] case.
3236         * malloc/arena.c: Do not include <malloc-sysdep.h>.
3237
3238 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
3239
3240         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
3241
3242 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
3243
3244         * elf/elf.h (R_386_SIZE32): New relocation.
3245         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
3246         R_386_SIZE32.
3247         (elf_machine_rela): Likewise.
3248         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3249         R_X86_64_SIZE64 and R_X86_64_SIZE32.
3250
3251 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
3252
3253         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
3254         (FP_FAST_FMA): Do not define.
3255         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
3256         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
3257         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
3258         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
3259         !_SOFT_FLOAT]: Likewise.
3260         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
3261         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
3262         value.
3263         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
3264         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
3265         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
3266         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
3267         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
3268         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
3269         file.
3270
3271 2013-01-16  Andreas Schwab  <schwab@suse.de>
3272
3273         [BZ #14327]
3274         * include/stdlib.h (__mktemp): Add declaration.
3275         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
3276         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
3277
3278 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
3279
3280         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
3281         definitions.
3282         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3283         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
3284         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
3285         definitions here.
3286         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
3287         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
3288         definitions.
3289         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
3290         and ONE.
3291         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
3292         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
3293         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
3294         definitions.
3295         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
3296         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
3297         definitions.
3298         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3299
3300         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
3301
3302 2013-01-15  David S. Miller  <davem@davemloft.net>
3303
3304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
3305         trunc{,f} to libm-sysdep_routes.
3306         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
3307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
3308         file.
3309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
3310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
3311         file.
3312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
3313         file.
3314         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
3315         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
3316         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
3317         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
3318         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
3319         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
3320         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
3321         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
3322
3323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
3324         nearbyint{,f} to libm-sysdep_routes.
3325         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
3326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
3327         New file.
3328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
3329         file.
3330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
3331         New file.
3332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
3333         file.
3334         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
3335         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
3336         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
3337         file.
3338         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
3339         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
3340         file.
3341         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
3342         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
3343         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
3344
3345         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
3346         libc_feholdexcept and libc_fesetenv.
3347
3348 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
3349
3350         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
3351
3352 2013-01-14  David S. Miller  <davem@davemloft.net>
3353
3354         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
3355         (SPARC_ASM_VIS2_IFUNC): Likewise.
3356         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
3357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
3358         use of 'siam' instruction.
3359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
3360         Likewise.
3361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
3362         Likewise.
3363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
3364         Likewise.
3365         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
3366         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
3367         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
3368         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
3369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
3370         file.
3371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
3372         file.
3373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
3374         file.
3375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
3376         file.
3377         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
3378         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
3379         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
3380         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
3381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
3382         new VIS2 routines.
3383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
3384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
3385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
3386         Likewise.
3387         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
3388         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
3389         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
3390         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
3391         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
3392         routines to libm-sysdep_routines.
3393         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
3394
3395         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
3396         fdim/fdimf to libm-sysdep_routines.
3397         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
3398         file.
3399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
3400         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
3401         file.
3402         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
3403         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
3404         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
3405         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
3406         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
3407         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
3408         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
3409
3410 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
3411
3412         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
3413         to optimize copies.
3414
3415         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
3416         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
3417         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
3418
3419         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
3420         local variable MPTWO.
3421         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
3422         Likewise.
3423
3424 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
3425
3426         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
3427         GLOB_NOESCAPE.
3428
3429 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
3430
3431         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
3432
3433 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
3434
3435         * manual/pattern.texi (glob_t): Document gl_flags.
3436         (glob64_t): Likewise.
3437
3438 2013-01-11  David S. Miller  <davem@davemloft.net>
3439
3440         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
3441         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
3442         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
3443         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
3444         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
3445         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
3446         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
3447         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
3448         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
3449         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
3450         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
3451         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
3452         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
3453
3454         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
3455         sparc V9 rather than using V8 code.
3456         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
3457         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
3458
3459         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
3460         Move to...
3461         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
3462         Here.
3463
3464 2013-01-11  Roland McGrath  <roland@hack.frob.com>
3465
3466         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
3467         not in the main loop.
3468         * configure: Regenerated.
3469
3470 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
3471
3472         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
3473         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
3474         to just #else.
3475         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
3476         [!__GLIBC_HAVE_LONG_LONG] case.
3477         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
3478         condition to just #else.
3479         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
3480         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
3481         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
3482         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
3483         unconditional.
3484         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
3485         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
3486         #elif condition to just #else.
3487         * sysdeps/unix/sysv/linux/sys/sysmacros.h
3488         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
3489         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
3490         #elif condition to just #else.
3491
3492 2013-01-11  Steve Ellcey  <sellcey@mips.com>
3493
3494         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
3495         (EF_MIPS_ARCH_64): Fix value.
3496         (EF_MIPS_ARCH_32R2): New.
3497         (EF_MIPS_ARCH_64R2): New.
3498
3499 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
3500
3501         * Makeconfig (+link-pie-before-libc): New.
3502         (+link-pie-after-libc): Likewise.
3503         (+link-pie-tests): Likewise.
3504         (+link-pie): Rewritten.
3505         (link-before-libc): Remove $(config-LDFLAGS).
3506         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
3507         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
3508         (config-LDFLAGS): Renamed to ...
3509         (rtld-LDFLAGS): This.
3510         (rtld-tests-LDFLAGS): New macro.
3511         (link-libc-rpath-link): Likewise.
3512         (link-libc-tests-rpath-link): Likewise.
3513         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
3514         (link-libc): Prepand $(link-libc-rpath-link).
3515         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
3516         (test-program-prefix): New macro.
3517         (test-via-rtld-prefix): Likewise.
3518         (test-program-cmd): Likewise.
3519         (host-test-program-cmd): Likewise.
3520         * Makefile ($(common-objpfx)testrun.sh): Replace
3521         $(run-program-prefix) with $(test-program-prefix).
3522         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
3523         $(rtld-LDFLAGS).
3524         ($(common-objpfx)shlib.lds): Likewise.
3525         (build-module-helper): Likewise.
3526         ($(common-objpfx)format.lds): Likewise.
3527         * Rules (binaries-pie-tests): New.
3528         (binaries-pie-notests): Likewise.
3529         (binaries-pie): Rewritten.
3530         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
3531         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
3532         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
3533         (make-test-out): Replace $(host-built-program-cmd) with
3534         $(host-test-program-cmd).
3535         * config.make.in (build-hardcoded-path-in-tests): New variable.
3536         * configure.in (--enable-hardcoded-path-in-tests): New configure
3537         option.
3538         (hardcoded_path_in_tests): New AC_SUBST.
3539         * configure: Regenerated.
3540         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
3541         $(built-program-cmd) with $(test-program-cmd).
3542         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
3543         (test_program_cmd): This.
3544         * elf/Makefile ($(objpfx)order.out): Run test with
3545         $(test-program-prefix).
3546         ($(objpfx)order2.out): Likewise.
3547         ($(objpfx)tst-initorder.out): Likewise.
3548         ($(objpfx)tst-initorder2.out): Likewise.
3549         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
3550         $(test-program-cmd).
3551         ($(objpfx)tst-array1-static.out): Likewise.
3552         ($(objpfx)tst-array2.out): Likewise.
3553         ($(objpfx)tst-array3.out): Likewise.
3554         ($(objpfx)tst-array4.out): Likewise.
3555         ($(objpfx)tst-array5.out): Likewise.
3556         ($(objpfx)tst-array5-static.out): Likewise.
3557         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
3558         $(test-program-cmd).
3559         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
3560         $(run-program-prefix) with $(test-program-prefix).
3561         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
3562         (test_program_prefix): This.
3563         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
3564         $(run-program-prefix) with $(test-program-prefix).
3565         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
3566         (test_program_prefix): This.
3567         * iconvdata/tst-tables.sh: Likewise.
3568         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
3569         $(run-program-prefix) with $(test-program-prefix).
3570         ($(objpfx)tst-translit.out): Likewise.
3571         ($(objpfx)tst-gettext2.out): Likewise.
3572         ($(objpfx)tst-gettext4.out): Likewise.
3573         ($(objpfx)tst-gettext6.out): Likewise.
3574         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
3575         (test_program_prefix): This.
3576         * intl/tst-gettext2.sh: Likewise.
3577         * intl/tst-gettext4.sh  Likewise.
3578         * intl/tst-gettext6.sh: Likewise.
3579         * intl/tst-translit.sh: Likewise.
3580         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
3581         with $(test-program-cmd).
3582         * libio/Makefile ($(objpfx)test-freopen.out): Replace
3583         $(run-program-prefix) with $(test-program-prefix).
3584         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
3585         (test_program_prefix): This.
3586         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
3587         $(run-program-prefix) with $(test-program-prefix).
3588         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
3589         (test_program_prefix): This.
3590         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
3591         * posix/Makefile ($(objpfx)globtest.out): Replace
3592         $(run-via-rtld-prefix) and $(test-wrapper) with
3593         $(test-program-prefix) and $(test-via-rtld-prefix).
3594         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
3595         $(test-program-prefix).
3596         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
3597         $(host-test-program-cmd).
3598         (tst-spawn-ARGS): Likewise.
3599         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
3600         $(test-program-prefix).
3601         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
3602         (test_via_rtld_prefix): This.
3603         (test_wrapper): Renamed to ...
3604         (test_program_prefix): This.
3605         (run_program_prefix): Replaced by test_program_prefix.
3606         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
3607         (test_program_prefix): This.
3608         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
3609         with $(host-test-program-cmd).
3610         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
3611         $(run-program-prefix) with $(test-program-prefix).
3612         ($(objpfx)tst-printf.out): Likewise.
3613         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
3614         $(test-program-cmd).
3615         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
3616         (test_program_prefix): This.
3617         * stdio-common/tst-unbputc.sh: Likewise.
3618         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
3619         $(run-program-prefix) with $(test-program-prefix).
3620         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
3621         (test_program_prefix): This.
3622         * string/Makefile ($(objpfx)tst-svc.out):  Replace
3623         $(built-program-cmd) with $(test-program-cmd).
3624
3625 2013-01-11  Andreas Jaeger  <aj@suse.de>
3626
3627         [BZ #15003]
3628         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
3629         value. Sync with Linux 3.7.
3630
3631 2013-01-10  David S. Miller  <davem@davemloft.net>
3632
3633         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
3634         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
3635         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
3636
3637 2013-01-10  Roland McGrath  <roland@hack.frob.com>
3638
3639         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
3640         never set.
3641         * configure: Regenerated.
3642
3643 2013-01-10  David S. Miller  <davem@davemloft.net>
3644
3645         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
3646         sparc V9 rather than using V8 code.
3647         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
3648         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
3649
3650 2013-01-10  Roland McGrath  <roland@hack.frob.com>
3651
3652         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
3653         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
3654         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
3655         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
3656         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
3657         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
3658         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
3659         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
3660         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
3661         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
3662         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
3663         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
3664         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
3665         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
3666         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
3667         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
3668         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
3669         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
3670         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
3671         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
3672         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
3673         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
3674         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
3675         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
3676         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
3677         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
3678         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
3679
3680 2013-01-10  David S. Miller  <davem@davemloft.net>
3681
3682         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3683
3684 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
3685
3686         * posix/Makefile (tests-static): New variable.
3687         (tests): Add $(tests-static).
3688         (tst-exec-static-ARGS): New variable.
3689         (tst-spawn-static-ARGS): Likewise.
3690         * posix/tst-exec-static.c: New file.
3691         * posix/tst-spawn-static.c: Likewise.
3692         * posix/tst-exec.c: Support run directly.
3693         * posix/tst-spawn.c: Likewise.
3694
3695 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
3696
3697         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
3698         long.
3699         * math/bits/mathcalls.h (llrint): Likewise.
3700         (llround): Likewise.
3701         * stdlib/stdlib.h (struct drand48_data): Likewise.
3702         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
3703         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
3704         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
3705         Likewise.
3706         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
3707         Likewise.
3708         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
3709         (elf_greg_t): Likewise.
3710         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
3711         (__jmp_buf): Likewise.
3712         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
3713         definitions.
3714         (llrint): Likewise, for all definitions.
3715         (llrintl): Likewise.
3716
3717         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
3718         Remove [__GNUC__] condition.
3719         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
3720         condition to just [__USE_ISOC99].
3721         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
3722
3723 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
3724
3725         [BZ #14200]
3726         * sysdeps/unix/sysv/linux/x86/bits/environments.h
3727         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
3728         defined.
3729         (_POSIX_V6_ILP32_OFF32): Likewise.
3730         (_XBS5_ILP32_OFF32): Likewise.
3731         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
3732         (__ILP32_OFFBIG_LDFLAGS): Likewise.
3733
3734 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3735
3736         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
3737
3738         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
3739         doubles __mpexp_twomm1.  Adjust usage.
3740         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
3741         Remove.
3742
3743 2013-01-10  Andreas Schwab  <schwab@suse.de>
3744
3745         [BZ #14964]
3746         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
3747         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
3748
3749 2013-01-09  David S. Miller  <davem@davemloft.net>
3750
3751         [BZ #15003]
3752         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
3753         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
3754         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
3755         TCP_FASTOPEN): Define.
3756         (tcp_repair_opt): New structure.
3757         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
3758         enum values.
3759         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
3760         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
3761         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
3762         (tcp_cookie_transactions): New structure.
3763
3764 2013-01-09  Anton Blanchard  <anton@samba.org>
3765
3766         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
3767         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
3768         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
3769         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
3770
3771 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
3772
3773         * include/features.h (__USE_ANSI): Remove.
3774
3775 2013-01-09  Roland McGrath  <roland@hack.frob.com>
3776
3777         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
3778
3779         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
3780
3781 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
3782
3783         * sysdeps/s390/fpu/libm-test-ulps: Update.
3784
3785         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3786
3787         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
3788         (__acr): Likewise.
3789         (__cpy): Likewise.
3790         (norm): Likewise.
3791         (denorm): Likewise.
3792         (__mp_dbl): Likewise.
3793         (__dbl_mp): Likewise.
3794         (add_magnitudes): Likewise.
3795         (sub_magnitudes): Likewise.
3796         (__add): Likewise.
3797         (__sub): Likewise.
3798         (__mul): Likewise.
3799         (__inv): Likewise.
3800         (__dvd): Likewise.
3801         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
3802         (__acr): Likewise.
3803         (__cpy): Likewise.
3804         (norm): Likewise.
3805         (denorm): Likewise.
3806         (__mp_dbl): Likewise.
3807         (__dbl_mp): Likewise.
3808         (add_magnitudes): Likewise.
3809         (sub_magnitudes): Likewise.
3810         (__add): Likewise.
3811         (__sub): Likewise.
3812         (__mul): Likewise.
3813         (__inv): Likewise.
3814         (__dvd): Likewise.
3815         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
3816         (__acr): Likewise.
3817         (__cpy): Likewise.
3818         (norm): Likewise.
3819         (denorm): Likewise.
3820         (__mp_dbl): Likewise.
3821         (__dbl_mp): Likewise.
3822         (add_magnitudes): Likewise.
3823         (sub_magnitudes): Likewise.
3824         (__add): Likewise.
3825         (__sub): Likewise.
3826         (__mul): Likewise.
3827         (__inv): Likewise.
3828         (__dvd): Likewise.
3829
3830 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
3831
3832         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
3833         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
3834         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
3835         2 && __USE_EXTERN_INLINES]: Likewise.
3836
3837 2013-01-08  Andreas Jaeger  <aj@suse.de>
3838
3839         [BZ# 14985]
3840         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
3841         Remove.
3842         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
3843         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
3844
3845 2013-01-07  Anton Blanchard  <anton@samba.org>
3846
3847         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
3848         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
3849         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
3850         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
3851         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
3852         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
3853         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
3854         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
3855         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
3856         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
3857         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
3858         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
3859         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
3860         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
3861         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
3862         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
3863         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
3864         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
3865         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
3866         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
3867         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
3868         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
3869         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
3870         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
3871         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
3872         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
3873         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
3874         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
3875         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
3876         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
3877         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
3878         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
3879         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
3880         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
3881         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
3882         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
3883         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
3884         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3885         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
3886         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
3887         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
3888         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
3889         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
3890
3891 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
3892
3893         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
3894         (__MALLOC_PMT): Likewise.
3895         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
3896         [__GNUC__], only on [_LIBC].
3897         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
3898         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
3899         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
3900         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
3901         forward declaration.
3902         (realloc_hook_ini): Likewise.
3903         (memalign_hook_ini): Likewise.
3904         (__libc_memalign): Do not use __MALLOC_PMT in variable
3905         declaration.
3906         (__libc_valloc): Likewise.
3907         (__libc_pvalloc): Likewise.
3908         (__libc_calloc): Likewise.
3909         (__posix_memalign): Likewise.
3910
3911         [BZ #14996]
3912         * math/s_casinh.c: Include <float.h>.
3913         (__casinh): Do not do computation with squaring and square root
3914         for large arguments.
3915         * math/s_casinhf.c: Include <float.h>.
3916         (__casinhf): Do not do computation with squaring and square root
3917         for large arguments.
3918         * math/s_casinhl.c: Include <float.h>.
3919         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
3920         (__casinhl): Do not do computation with squaring and square root
3921         for large arguments.
3922         * math/libm-test.inc (casin_test): Add more tests.
3923         (casinh_test): Likewise.
3924         * sysdeps/i386/fpu/libm-test-ulps: Update.
3925         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3926
3927 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
3928
3929         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
3930         (__x86_64_raw_data_cache_size): Likewise.
3931         (__x86_64_data_cache_size_half): Likewise.
3932         (__x86_64_raw_data_cache_size_half): Likewise.
3933         (__x86_64_shared_cache_size): Likewise.
3934         (__x86_64_raw_shared_cache_size): Likewise.
3935         (__x86_64_shared_cache_size_half): Likewise.
3936         (__x86_64_raw_shared_cache_size_half): Likewise.
3937         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
3938         to ...
3939         (__x86_data_cache_size): This.
3940         (__x86_64_raw_data_cache_size): Renamed to ...
3941         (__x86_raw_data_cache_size): This.
3942         (__x86_64_data_cache_size_half): Renamed to ...
3943         (__x86_data_cache_size_half): This.
3944         (__x86_64_raw_data_cache_size_half): Renamed to ...
3945         (__x86_raw_data_cache_size_half): This.
3946         (__x86_64_shared_cache_size): Renamed to ...
3947         (__x86_shared_cache_size): This.
3948         (__x86_64_raw_shared_cache_size): Renamed to ...
3949         (__x86_raw_shared_cache_size): This.
3950         (__x86_64_shared_cache_size_half): Renamed to ...
3951         (__x86_shared_cache_size_half): This.
3952         (__x86_64_raw_shared_cache_size_half): Renamed to ...
3953         (__x86_raw_shared_cache_size_half): This.
3954         * sysdeps/x86_64/memcpy.S: Updated.
3955         * sysdeps/x86_64/memset.S: Likewise.
3956         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3957         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
3958         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3959
3960 2013-01-04  David S. Miller  <davem@davemloft.net>
3961
3962         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3963
3964 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
3965
3966         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
3967         1 to avoid redefinition warning.
3968         (__USE_GNU): Don't define.
3969         (init_signaling_nan): Protoize.
3970
3971         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3972
3973 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3974
3975         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
3976         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
3977         (__cpymn): Likewise.
3978         (norm): Remove commented code.
3979         (denorm): Likewise.
3980         (__mp_dbl): Likewise.
3981         (__inv): Likewise.
3982         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
3983         (__cpymn): Likewise.
3984         (norm): Remove commented code.
3985         (denorm): Likewise.
3986         (__mp_dbl): Likewise.
3987         (__inv): Likewise.
3988
3989         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
3990         mp_no value for 1.0 and 2.0.
3991         (norm): Use RADIXI instead of radixi.d.
3992         (denorm): Likewise.
3993         (__mul): Use 0.0 instead of zero.d.
3994         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
3995         mp_no value for 1.0 and 2.0.
3996         (norm): Use RADIXI instead of radixi.d.
3997         (denorm): Likewise.
3998         (__mul): Use 0.0 instead of zero.d.
3999
4000 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
4001
4002         [BZ #14994]
4003         * math/s_casinh.c (__casinh): Reduce finite argument to first
4004         quadrant then set signs of results at the end.
4005         * math/s_casinhf.c (__casinhf): Likewise.
4006         * math/s_casinhl.c (__casinhl): Likewise.
4007         * math/libm-test.inc (casin_test): Add more tests.
4008         (casinh_test): Likewise.
4009         * sysdeps/i386/fpu/libm-test-ulps: Update.
4010         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4011
4012 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4013
4014         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
4015
4016         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
4017
4018         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
4019         declarations.
4020         (denorm): Likewise.
4021         (__mp_dbl): Likewise.
4022         (__inv): Likewise.
4023
4024         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
4025         and adjust the header comment.
4026
4027         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
4028         variable name from declaration.
4029
4030 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
4031
4032         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4033         Initialize COMMON_CPUID_INDEX_7 element.
4034         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
4035         (CPUID_RTM): Likewise.
4036         (HAS_RTM): Likewise.
4037         (COMMON_CPUID_INDEX_7): New enum.
4038
4039 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
4040
4041         [BZ #14981]
4042         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
4043         size is zero, record memory as freed.
4044
4045 2013-01-03  Andreas Jaeger  <aj@suse.de>
4046
4047         * po/ia.po: Add new Interlingua translation.
4048
4049 2012-01-03  Allan McRae  <allan@archlinux.org>
4050
4051         * locale/programs/localedef.c: Fix description of '--posix' flag.
4052
4053 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
4054
4055         * NEWS: Update dates in second copyright notice.
4056         * README: Update copyright dates in example.
4057         * manual/libc.texinfo: Update copyright dates.
4058         * scripts/test-installation.pl: Update copyright date in --version
4059         output.
4060
4061         * hurd/ctty-input.c: Fix copyright notice formatting.
4062         * hurd/ctty-output.c: Likewise.
4063         * hurd/dtable.c: Likewise.
4064         * hurd/hurd-raise.c: Likewise.
4065         * hurd/hurdprio.c: Likewise.
4066         * hurd/msgportdemux.c: Likewise.
4067         * misc/sys/file.h: Likewise.
4068         * misc/sys/ioctl.h: Likewise.
4069         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
4070         * sysdeps/mach/hurd/chdir.c: Likewise.
4071         * sysdeps/mach/hurd/fchdir.c: Likewise.
4072         * sysdeps/mach/hurd/rename.c: Likewise.
4073         * sysdeps/mach/hurd/rmdir.c: Likewise.
4074         * sysdeps/mach/hurd/seekdir.c: Likewise.
4075         * sysdeps/mach/hurd/setsid.c: Likewise.
4076         * sysdeps/posix/wait3.c: Likewise.
4077
4078         * All files with FSF copyright notices: Update copyright dates
4079         using scripts/update-copyrights.
4080         * intl/plural.c: Regenerated.
4081         * locale/programs/charmap-kw.h: Likewise.
4082         * locale/programs/locfile-kw.h: Likewise.
4083
4084 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
4085
4086         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
4087         four values.
4088
4089         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
4090         calculation loop and add branch prediction.
4091
4092         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
4093         check access beyond bounds of m1np.
4094
4095         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
4096         MPTWO.
4097         (__inv): Remove local variable MPTWO to use the global
4098         constant.
4099         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
4100         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
4101         variable MPTWO.
4102         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
4103         MP3HALFS static const.
4104
4105 2013-01-01  David S. Miller  <davem@davemloft.net>
4106
4107         * po/ca.po: Update from translation team.
4108
4109 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
4110
4111         * scripts/update-copyrights: New file.
4112         * Makeconfig: Reformat copyright notice.
4113         * ctype/ctype.h: Likewise.
4114         * debug/swprintf_chk.c: Likewise.
4115         * elf/dl-cache.c: Likewise.
4116         * elf/dl-debug.c: Likewise.
4117         * elf/dl-object.c: Likewise.
4118         * grp/initgroups.c: Likewise.
4119         * hurd/Makefile: Likewise.
4120         * hurd/hurd/signal.h: Likewise.
4121         * hurd/hurdfault.c: Likewise.
4122         * hurd/hurdioctl.c: Likewise.
4123         * hurd/hurdlookup.c: Likewise.
4124         * hurd/intr-msg.c: Likewise.
4125         * iconv/gconv_open.c: Likewise.
4126         * libio/swprintf.c: Likewise.
4127         * locale/lc-ctype.c: Likewise.
4128         * locale/nl_langinfo.c: Likewise.
4129         * mach/Machrules: Likewise.
4130         * mach/Makefile: Likewise.
4131         * malloc/obstack.h: Likewise.
4132         * manual/Makefile: Likewise.
4133         * manual/tsort.awk: Likewise.
4134         * misc/bits/stab.def: Likewise.
4135         * nis/nis_print_group_entry.c: Likewise.
4136         * nis/nis_table.c: Likewise.
4137         * nis/nss_compat/compat-pwd.c: Likewise.
4138         * nis/nss_compat/compat-spwd.c: Likewise.
4139         * po/Makefile: Likewise.
4140         * posix/fnmatch.c: Likewise.
4141         * posix/regex.h: Likewise.
4142         * resolv/Makefile: Likewise.
4143         * resolv/nss_dns/dns-network.c: Likewise.
4144         * resolv/res_hconf.c: Likewise.
4145         * scripts/gen-sorted.awk: Likewise.
4146         * soft-fp/soft-fp.h: Likewise.
4147         * stdio-common/printf.h: Likewise.
4148         * stdlib/monetary.h: Likewise.
4149         * stdlib/random.c: Likewise.
4150         * stdlib/random_r.c: Likewise.
4151         * sysdeps/generic/Makefile: Likewise.
4152         * sysdeps/gnu/Makefile: Likewise.
4153         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
4154         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4155         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4156         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4157         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4158         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4159         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4160         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4161         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4162         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4163         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4164         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4165         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
4166         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
4167         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
4168         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
4169         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4170         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4171         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4172         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4173         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
4174         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
4175         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
4176         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
4177         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
4178         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
4179         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
4180         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
4181         * sysdeps/mach/hurd/errnos.awk: Likewise.
4182         * sysdeps/mach/hurd/fork.c: Likewise.
4183         * sysdeps/mach/hurd/getcwd.c: Likewise.
4184         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
4185         * sysdeps/mach/hurd/mmap.c: Likewise.
4186         * sysdeps/mach/hurd/utimes.c: Likewise.
4187         * sysdeps/mach/hurd/xmknod.c: Likewise.
4188         * sysdeps/posix/profil.c: Likewise.
4189         * sysdeps/posix/readdir_r.c: Likewise.
4190         * sysdeps/powerpc/bits/mathdef.h: Likewise.
4191         * sysdeps/powerpc/bits/setjmp.h: Likewise.
4192         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
4193         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
4194         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4195         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
4196         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
4197         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4198         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4199         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
4200         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
4201         * sysdeps/pthread/lio_listio.c: Likewise.
4202         * sysdeps/sparc/dl-procinfo.h: Likewise.
4203         * sysdeps/unix/i386/sysdep.S: Likewise.
4204         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4205         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
4206         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4207         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4209         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
4210         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
4211         * sysdeps/unix/sysv/linux/speed.c: Likewise.
4212         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
4213         * sysdeps/wordsize-32/divdi3.c: Likewise.
4214         * time/sys/time.h: Likewise.
4215         * wcsmbs/Makefile: Likewise.
4216
4217 2013-01-01  David S. Miller  <davem@davemloft.net>
4218
4219         * po/fr.po: Update from translation team.
4220
4221         * catgets/gencat.c: Update copyright year.
4222         * csu/version.c: Likewise.
4223         * debug/catchsegv.sh: Likewise.
4224         * debug/pcprofiledump.c: Likewise.
4225         * debug/xtrace.sh: Likewise.
4226         * elf/ldconfig.c: Likewise.
4227         * elf/ldd.bash.in: Likewise.
4228         * elf/pldd.c: Likewise.
4229         * elf/sotruss.ksh: Likewise.
4230         * elf/sprof.c: Likewise.
4231         * iconv/iconv_prog.c: Likewise.
4232         * iconv/iconvconfig.c: Likewise.
4233         * locale/programs/locale.c: Likewise.
4234         * locale/programs/localedef.c: Likewise.
4235         * login/programs/pt_chown.c: Likewise.
4236         * malloc/memusage.sh: Likewise.
4237         * malloc/memusagestat.c: Likewise.
4238         * malloc/mtrace.pl: Likewise.
4239         * nscd/nscd.c: Likewise.
4240         * nss/getent.c: Likewise.
4241         * nss/makedb.c: Likewise.
4242         * posix/getconf.c: Likewise.
4243
4244 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
4245
4246         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
4247         numbers.
4248
4249 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
4250
4251         * math/bits/mathcalls.h (modf): Use __nonnull.
4252
4253 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4254
4255         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
4256         (split): Use macro CN instead of the bare value.
4257         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
4258         could be used.
4259         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
4260         instead of the bare value.
4261         (power1): Likewise.
4262
4263 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4264
4265         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
4266         __ATAN_TWOM.
4267         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
4268
4269         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
4270         their values.
4271         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
4272         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
4273         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
4274         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
4275
4276 2012-12-28  Andreas Jaeger  <aj@suse.de>
4277
4278         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
4279         values are from Linux 3.7.
4280
4281         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
4282         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
4283
4284 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4285
4286         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
4287         TRUE case.
4288
4289         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
4290         (norm): Likewise.
4291         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
4292         variables with preprocessor constants.
4293         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
4294         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
4295         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
4296
4297 2012-12-27  Bruno Haible  <bruno@clisp.org>
4298
4299         [BZ #14317]
4300         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
4301         only if needed.
4302
4303 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4304
4305         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
4306         and use variable directly.
4307         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
4308
4309         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
4310         MPONE.
4311         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
4312         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
4313         variable MPONE.
4314         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
4315         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
4316         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
4317         include directive.  Remove local variable MPONE.
4318         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
4319         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
4320         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
4321
4322 2012-12-25  David S. Miller  <davem@davemloft.net>
4323
4324         * version.h (RELEASE): Set to "development".
4325         (VERSION): Set to "2.17.90".
4326         * NEWS: Add 2.18 section.
4327
4328 2012-12-21  David S. Miller  <davem@davemloft.net>
4329
4330         * po/hr.po: Update from translation team.
4331
4332 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4333
4334         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
4335
4336 2012-12-19  Steve Ellcey  <sellcey@mips.com>
4337
4338         * NEWS:  Mention new memcpy for MIPS.
4339
4340 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
4341
4342         * manual/contrib.texi (Contributors): Spelling correction.
4343
4344 2012-12-15  David S. Miller  <davem@davemloft.net>
4345
4346         * po/ru.po: Update from translation team.
4347
4348 2012-12-13  David S. Miller  <davem@davemloft.net>
4349
4350         * NEWS: Mention IFUNC testsuite enhancements.
4351
4352         * po/pl.po: Update from translation team.
4353         * po/bg.po: Likewise.
4354
4355         * manual/contrib.texi (Contributors): Update entries for Hongjiu
4356         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
4357
4358 2012-12-11  David S. Miller  <davem@davemloft.net>
4359
4360         * po/sv.po: Update from translation team.
4361
4362         * po/vi.po: Update from translation team.
4363
4364         * po/cs.po: Update from translation team.
4365
4366         * po/de.po: Update from translation team.
4367         * po/eo.po: Likewise.
4368         * po/nl.po: Likewise.
4369
4370 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
4371
4372         [BZ #14246]
4373         * manual/argp.texi (Argp Helper Functions): Move node to follow
4374         Argp Parsing State.
4375
4376         [BZ #14872]
4377         * manual/conf.texi (Limits on File System Capacity): Mention if
4378         terminating null is included in the max size.
4379
4380 2012-12-10  Andreas Jaeger  <aj@suse.de>
4381
4382         * po/cs.po: Update from translation team.
4383
4384 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
4385
4386         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
4387         void pointer and cast to uintptr_t.
4388         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
4389         path.
4390         * sysdeps/s390/s390-64/memcpy.S: Likewise.
4391         * sysdeps/s390/s390-64/memset.S: Likewise.
4392
4393 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
4394
4395         [BZ #14833]
4396         * menual/message.texi (Message Translation): Fix typos.
4397         (Helper programs for gettext): Likewise.
4398
4399 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
4400
4401         [BZ #14898]
4402         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
4403         Change to -1.
4404
4405 2012-12-07  David S. Miller  <davem@davemloft.net>
4406
4407         * po/libc.pot: Update.
4408
4409 2012-12-07  Richard Henderson  <rth@redhat.com>
4410
4411         [BZ #10114]
4412         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
4413         normal/normal case to before the switch.
4414         (_FP_DIV): Likewise.
4415
4416 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
4417             Mike Frysinger  <vapier@gentoo.org>
4418
4419         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
4420         check for __NR_fadvise64_64.
4421
4422 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
4423
4424         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
4425         0, not just to plain "0" as a statement.
4426         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
4427         with cw.
4428
4429 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
4430
4431         * NEWS: Use sourceware.org in Bugzilla URL.
4432
4433 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4434
4435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
4436         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
4437
4438         * stdio-common/tst-put-error.c (do_test): Add newline to the
4439         padded test to ensure flush.
4440
4441 2012-12-05  Jeff Law  <law@redhat.com>
4442
4443         * sunrpc/etc.rpc (fedfs_admin): Add entry.
4444
4445 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
4446
4447         * README: Don't refer to ports add-on as distributed separately.
4448         Mention AArch64 in list of systems supported in the ports add-on.
4449
4450         * LICENSES: Add more non-FSF copyright and license notices.
4451
4452         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
4453         ((unused)).
4454
4455         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
4456
4457         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
4458         10000 as width of padded output.
4459
4460 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
4461
4462         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
4463
4464         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
4465         variable LX with __attribute__ ((unused)).
4466         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
4467         Likewise.
4468         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
4469         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4470         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
4471         with __attribute__ ((unused)).
4472
4473 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
4474
4475         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
4476
4477 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
4478
4479         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
4480         (CFLAGS-nldbl-acos.c): New variable.
4481         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
4482         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
4483         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
4484         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
4485         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
4486         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
4487         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
4488         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
4489         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
4490         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
4491         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
4492         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
4493         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
4494         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
4495         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
4496         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
4497         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
4498         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
4499         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
4500         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
4501         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
4502         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
4503         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
4504         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
4505         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
4506         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
4507         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
4508         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
4509         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
4510         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
4511         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
4512         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
4513         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
4514         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
4515         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
4516         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
4517         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
4518         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
4519         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
4520         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
4521         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
4522         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
4523         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
4524         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
4525         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
4526         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
4527         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
4528         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
4529         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
4530         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
4531         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
4532         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
4533         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
4534         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
4535         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
4536         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
4537         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
4538         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
4539         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
4540         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
4541         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
4542         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
4543         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
4544         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
4545         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
4546         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
4547         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
4548         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
4549         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
4550         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
4551         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
4552         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
4553         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
4554         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
4555         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
4556         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
4557         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
4558         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
4559         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
4560         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
4561         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
4562         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
4563         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
4564         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
4565         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
4566         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
4567         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
4568         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
4569         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
4570         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
4571         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
4572         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
4573         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
4574         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
4575         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
4576         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
4577         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
4578
4579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4580         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
4581
4582         [BZ #14914]
4583         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
4584         whole low double instead of just low 47 bits when splitting values
4585         into two parts.
4586
4587 2012-12-03  Allan McRae  <allan@archlinux.org>
4588
4589         * manual/stdio.texi (Predefined Printf Handlers): Remove
4590         @hsep and @vsep usage.
4591
4592 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
4593
4594         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
4595         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
4596
4597 2012-12-03  Jeff Law  <law@redhat.com>
4598
4599         * time/sys/time.h (settimeofday): Do not mark TV argument
4600         as __nonnull.
4601
4602 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
4603
4604         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
4605         when currently writing and seek to current position when not.
4606         * libio/Makefile (tests): Remove bug-fclose1.
4607         * libio/bug-fclose1.c: Delete.
4608
4609 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
4610
4611         * manual/arith.texi (feenableexcept): Fix typo.
4612         (fedisableexcept): Likewise.
4613
4614 2012-11-30  Roland McGrath  <roland@hack.frob.com>
4615
4616         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
4617         second, differently-typed declaration, rather than a cast.
4618
4619 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4620
4621         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
4622         * include/rpc/svc.h: ... here.
4623
4624 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
4625
4626         [BZ #13013]
4627         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
4628         depending n and resplen2 to catch cases where answer
4629         equals answerp2.
4630
4631 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
4632
4633         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
4634         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
4635
4636 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
4637
4638         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
4639
4640 2012-11-29  Roland McGrath  <roland@hack.frob.com>
4641
4642         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
4643
4644 2012-11-28  Jeff Law  <law@redhat.com>
4645
4646         [BZ #13761]
4647         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
4648         dataset_temporary.  Track alloca usage into alloca_used.
4649         If dataset is large allocate and release it via malloc/free.
4650
4651 2012-06-04  Florian Weimer  <fweimer@redhat.com>
4652
4653         [BZ #14197]
4654         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
4655
4656 2012-11-28  David S. Miller  <davem@davemloft.net>
4657
4658         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4659
4660 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
4661
4662         [BZ #14803]
4663         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
4664         of pi/2 rounded to nearest to 64 bits.
4665         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
4666         nearest to 64 bits.
4667         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
4668         bits.
4669
4670 2012-11-28  Jeff Law <law@redhat.com>
4671             Martin Osvald <mosvald@redhat.com>
4672
4673         [BZ #14889]
4674         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
4675         * sunrpc/svc.c: Include time.h.
4676         (__svc_accept_failed): New function.
4677         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
4678         any reason other than EINTR, call __svc_accept_failed.
4679         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
4680         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
4681
4682 2012-11-28  Andreas Schwab  <schwab@suse.de>
4683
4684         * scripts/abilist.awk: Also handle indirect functions in .opd
4685         section.
4686
4687 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
4688
4689         [BZ #13881]
4690         * sysdeps/x86/fpu/powl_helper.c: New file.
4691         * sysdeps/x86/fpu/Makefile: Likewise.
4692         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
4693         (p3): New object.
4694         (__ieee754_powl): Use __powl_helper for finite arguments except
4695         integer exponents below 8.
4696         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
4697         (p3): New object.
4698         (__ieee754_powl): Use __powl_helper for finite arguments except
4699         integer exponents below 8.
4700         * math/libm-test.inc (pow_test): Add more tests and enable some
4701         previously disabled tests.
4702         * sysdeps/i386/fpu/libm-test-ulps: Update.
4703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4704
4705 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4706             Carlos O'Donell  <carlos_odonell@mentor.com>
4707
4708         * nss/makedb.c (is_prime): Assert that input is odd and greater
4709         than 4.  Note that fact in a comment too.
4710         (next_prime): Add 4 to input.
4711
4712 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4713
4714         [BZ #11741]
4715         * libio/Makefile (tests): Add test case tst-fwrite-error.
4716         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
4717         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4718         * libio/tst-fwrite-error.c: New test case.
4719
4720 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
4721
4722         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
4723         before casting to void *.
4724         * include/libc-internal.h (__pointer_type): New macro.
4725         (__integer_if_pointer_type_sub): Likewise.
4726         (__integer_if_pointer_type): Likewise.
4727         (cast_to_integer): Likewise.
4728         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
4729         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
4730         before casting to atomic64_t.
4731         (atomic_exchange_acq): Likewise.
4732         (__arch_exchange_and_add_body): Likewise.
4733         (__arch_add_body): Likewise.
4734         (atomic_add_negative): Likewise.
4735         (atomic_add_zero): Likewise.
4736
4737 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
4738
4739         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
4740         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
4741         (add_fdes): Likewise.
4742         (linear_search_fdes): Likewise.
4743         (binary_search_unencoded_fdes): Likewise.
4744
4745 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
4746
4747         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
4748
4749 2012-11-24  Adam Conrad  <adconrad@0c3.net>
4750
4751         * configure.in: Autodetect C++ header directories.
4752         * configure: Regenerated.
4753
4754 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
4755
4756         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
4757
4758 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
4759
4760         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4761
4762 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
4763
4764         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
4765         LDBL_MANT_DIG == 106]: Disable some tests.
4766         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
4767         Likewise.
4768         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
4769         Likewise.
4770
4771         [BZ #14871]
4772         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
4773         input for small inputs.  Return +/- pi/2 for large inputs.
4774         * math/libm-test.inc (atan_test): Add more tests.
4775
4776         * sysdeps/generic/unwind-dw2-fde-glibc.c
4777         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
4778         __attribute__ ((unused)).
4779
4780         [BZ #14645]
4781         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
4782         x * y if x and y are nonzero and z is zero.
4783
4784         [BZ #14811]
4785         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
4786         nonzero exponents with absolute value below 0x1p-117 to +/-
4787         0x1p-117.
4788
4789         [BZ #14869]
4790         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
4791         up arguments below 2**-450, not just those below 2**-500.
4792         * math/libm-test.inc (hypot_test): Add another test.
4793
4794         [BZ #14868]
4795         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
4796         Return a+b for ratio over 2**120, not 2**60.
4797         * math/libm-test.inc (hypot_test): Add another test.
4798
4799         * math/libm-test.inc (clog_test): Use
4800         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
4801         (clog10_test): Likewise.
4802
4803         [BZ #6778]
4804         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
4805
4806 2012-11-22  Andreas Schwab  <schwab@suse.de>
4807
4808         * sysdeps/i386/fpu/libm-test-ulps: Update.
4809
4810 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
4811
4812         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
4813         printf output with newline.
4814
4815 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
4816
4817         [BZ #14865]
4818         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
4819         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
4820         -z nodlopen, -z initfirst and -z execstack support.
4821         * configure: Regenerated.
4822
4823         * elf/elf.h (DF_1_NODIRECT): New macro.
4824         (DF_1_IGNMULDEF): Likewise.
4825         (DF_1_NOKSYMS): Likewise.
4826         (DF_1_NOHDR): Likewise.
4827         (DF_1_EDITED): Likewise.
4828         (DF_1_NORELOC): Likewise.
4829         (DF_1_SYMINTPOSE): Likewise.
4830         (DF_1_GLOBAUDIT): Likewise.
4831         (DF_1_SINGLETON): Likewise.
4832         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
4833         DT_1_SUPPORTED_MASK bits.
4834         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
4835
4836 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
4837
4838         * sysdeps/unix/make-syscalls.sh: Document prefixes.
4839
4840 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
4841
4842         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
4843         macro.
4844
4845         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
4846         (sendmmsg): Move declarations...
4847         * socket/sys/socket.h: ... here.
4848         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
4849         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
4850         include it from...
4851         * socket/recvmmsg.c: ... this new file.
4852         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
4853         (sendmmsg): Rename to __sendmmsg, create weak alias and make
4854         definition of __sendmmsg hidden.
4855         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
4856         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
4857         Move ENOSYS stub into and include it from...
4858         * socket/sendmmsg.c: ... this new file.
4859         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
4860         (sysdep_routines): Move recvmmsg and sendmmsg...
4861         * socket/Makefile (routines): ... here.
4862         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
4863         (GLIBC_PRIVATE): Add __sendmmsg.
4864         * include/sys/socket.h (__sendmmsg): Add declarations.
4865         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
4866         sendmmsg.
4867
4868 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
4869
4870         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
4871         variable I1 with __attribute__ ((unused)).
4872         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
4873
4874 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
4875
4876         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
4877         DUMMY variables with __attribute__ ((unused)).
4878
4879         * bits/byteswap.h: Include <bits/types.h>.
4880         (__bswap_64): Use __uint64_t instead of unsigned long long int.
4881
4882 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
4883
4884         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
4885         string_t.  Do not manually set errno.
4886         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
4887         length with __strnlen.  Make sure to both set errno and return it on
4888         failure.
4889
4890 2012-11-19  David S. Miller  <davem@davemloft.net>
4891
4892         With help from Joseph Myers.
4893         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
4894         very large arguments properly.
4895         * math/libm-test.inc (atan_test): New tests.
4896         (atan2_test): New tests.
4897         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4898         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4899
4900 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
4901
4902         [BZ #14856]
4903         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
4904         Define to 3.
4905
4906         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
4907         [POSIX] (EADDRNOTAVAIL): Likewise.
4908         [POSIX] (EAFNOSUPPORT): Likewise.
4909         [POSIX] (EALREADY): Likewise.
4910         [POSIX] (ECONNABORTED): Likewise.
4911         [POSIX] (ECONNREFUSED): Likewise.
4912         [POSIX] (ECONNRESET): Likewise.
4913         [POSIX] (EDESTADDRREQ): Likewise.
4914         [POSIX] (EDQUOT): Likewise.
4915         [POSIX] (EHOSTUNREACH): Likewise.
4916         [POSIX] (EIDRM): Likewise.
4917         [POSIX] (EISCONN): Likewise.
4918         [POSIX] (ELOOP): Likewise.
4919         [POSIX] (EMULTIHOP): Likewise.
4920         [POSIX] (ENETDOWN): Likewise.
4921         [POSIX] (ENETUNREACH): Likewise.
4922         [POSIX] (ENOBUFS): Likewise.
4923         [POSIX] (ENODATA): Likewise.
4924         [POSIX] (ENOLINK): Likewise.
4925         [POSIX] (ENOMSG): Likewise.
4926         [POSIX] (ENOPROTOOPT): Likewise.
4927         [POSIX] (ENOSR): Likewise.
4928         [POSIX] (ENOSTR): Likewise.
4929         [POSIX] (ENOTCONN): Likewise.
4930         [POSIX] (ENOTSOCK): Likewise.
4931         [POSIX] (EOPNOTSUPP): Likewise.
4932         [POSIX] (EOVERFLOW): Likewise.
4933         [POSIX] (EPROTO): Likewise.
4934         [POSIX] (EPROTONOSUPPORT): Likewise.
4935         [POSIX] (EPROTOTYPE): Likewise.
4936         [POSIX] (ESTALE): Likewise.
4937         [POSIX] (ETIME): Likewise.
4938         [POSIX] (ETXTBSY): Likewise.
4939         [POSIX] (EWOULDBLOCK): Likewise.
4940         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
4941         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
4942         [POSIX] (SEEK_CUR): Likewise.
4943         [POSIX] (SEEK_END): Likewise.
4944         [POSIX || UNIX98] (mode_t): Do not require.
4945         [POSIX] (off_t): Likewise.
4946         [POSIX] (pid_t): Likewise.
4947         [POSIX] (sys/stat.h): Do not allow header.
4948         [POSIX] (unistd.h): Likewise.
4949         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
4950         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
4951         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
4952         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
4953         require.
4954         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
4955         sigevent): Specify elements.
4956         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
4957         entry.
4958         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
4959         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
4960
4961         * conform/data/cpio.h-data [POSIX]: Disable whole file.
4962         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
4963         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
4964         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
4965         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
4966         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
4967         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
4968         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
4969         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
4970         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
4971         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
4972         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
4973         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
4974         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
4975         Likewise.
4976         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
4977         Likewise.
4978         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
4979         Likewise.
4980         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
4981         Likewise.
4982         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
4983         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
4984         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
4985         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
4986         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
4987         Specify lower bound on value.
4988         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
4989         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
4990         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
4991         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
4992         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
4993         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
4994         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
4995         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
4996         value.
4997         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
4998         as optional.
4999         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
5000         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
5001         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
5002         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
5003         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
5004         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
5005         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
5006         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
5007         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
5008         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
5009         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
5010         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
5011         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
5012         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
5013         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
5014         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
5015         entry.
5016         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
5017         optional.
5018         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
5019         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
5020         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
5021         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
5022         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
5023         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
5024         Likewise.
5025         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
5026         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
5027         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
5028         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
5029         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
5030         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
5031         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
5032         as optional.
5033         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
5034         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
5035         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
5036         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
5037         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
5038         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
5039         specify as optional.
5040         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
5041         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
5042         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
5043         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
5044         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
5045         [XPG3] (NL_LANGMAX): Likewise.
5046         [POSIX || XPG3] (NL_MSGMAX): Likewise.
5047         [POSIX || XPG3] (NL_NMAX): Likewise.
5048         [POSIX || XPG3] (NL_SETMAX): Likewise.
5049         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
5050         [XPG3] (NZERO): Likewise.
5051         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
5052         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
5053         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
5054         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
5055         (REG_ERANGE): Expect.
5056         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
5057         optional-constant.
5058         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
5059         Use (void) in prototype.
5060         [POSIX] (*_t): Allow.
5061         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
5062         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
5063         (WRDE_BADVAL): Expect.
5064
5065         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
5066         expect.
5067         [XPG3 || XPG4] (O_RSYNC): Likewise.
5068         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
5069         Likewise.
5070         [XPG3 || XPG4] (pthread_sigmask): Likewise.
5071         [XPG3 || XPG4] (sigqueue): Likewise.
5072         [XPG3 || XPG4] (sigtimedwait): Likewise.
5073         [XPG3 || XPG4] (sigwaitinfo): Likewise.
5074         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
5075         [XPG3 || XPG4] (vsnprintf): Likewise.
5076         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
5077         Likewise.
5078         [XPG3 || XPG4] (blksize_t): Likewise.
5079         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
5080         Likewise.
5081         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
5082         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
5083         [XPG3 || XPG4] (struct itimerspec): Likewise.
5084         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
5085         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
5086         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
5087         [XPG3 || XPG4] (clockid_t): Likewise.
5088         [XPG3 || XPG4] (timer_t): Likewise.
5089         [XPG3 || XPG4] (clock_getres): Likewise.
5090         [XPG3 || XPG4] (clock_gettime): Likewise.
5091         [XPG3 || XPG4] (clock_settime): Likewise.
5092         [XPG3 || XPG4] (nanosleep): Likewise.
5093         [XPG3 || XPG4] (timer_create): Likewise.
5094         [XPG3 || XPG4] (timer_delete): Likewise.
5095         [XPG3 || XPG4] (timer_gettime): Likewise.
5096         [XPG3 || XPG4] (timer_getoverrun): Likewise.
5097         [XPG3 || XPG4] (timer_settime): Likewise.
5098         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
5099         [XPG3 || XPG4] (getlogin_r): Likewise.
5100         [XPG3 || XPG4] (pread): Likewise.
5101         [XPG3 || XPG4] (pthread_atfork): Likewise.
5102         [XPG3 || XPG4] (pwrite): Likewise.
5103
5104         [BZ #14835]
5105         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
5106         <bits/siginfo.h>.
5107
5108 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
5109
5110         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
5111         finalizing MALLSTREAM.
5112
5113         * sysdeps/mach/hurd/syncfs.c: New file.
5114
5115 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5116
5117         [BZ #14719]
5118         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
5119         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
5120         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
5121         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
5122         (_nss_dns_gethostbyname4_r): Likewise.
5123         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
5124         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
5125
5126 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
5127
5128         [BZ #13763]
5129         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
5130
5131 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
5132
5133         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
5134         * elf/cache.c (print_entry): Print ",AArch64" for
5135         FLAG_AARCH64_LIB64
5136
5137         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
5138         * elf/cache.c (print_entry): Print ",hard-float" for
5139         FLAG_ARM_LIBHF.
5140
5141 2012-11-18  David S. Miller  <davem@davemloft.net>
5142
5143         With help from Joseph Myers.
5144         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
5145         cutoff to 2**-13.
5146         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
5147         cutoff to 2**-25.
5148         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
5149         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
5150         small.
5151         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
5152         * math/libm-test.inc (y0_test): New tests.
5153         (y1_test): New tests.
5154         * sysdeps/i386/fpu/libm-test-ulps: Update.
5155         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5156         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5157
5158 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
5159
5160         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
5161         64-bit targets.
5162         * configure: Regenerated.
5163
5164 2012-11-17  David S. Miller  <davem@davemloft.net>
5165
5166         [BZ #14811]
5167         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
5168         nonzero exponents with absolute value below 0x1p-128 to +/-
5169         0x1p-128.
5170
5171 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
5172
5173         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
5174
5175         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
5176
5177         * posix/getconf-speclist.c: New file.
5178         * posix/posix-envs.def: Likewise.
5179         * posix/confstr.c (START_ENV_GROUP): New macro.
5180         (END_ENV_GROUP): Likewise.
5181         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
5182         (KNOWN_PRESENT_ENV_STRING): Likewise.
5183         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
5184         (UNKNOWN_ENVIRONMENT): Likewise.
5185         (confstr): Include posix-envs.def instead of handling
5186         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
5187         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
5188         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
5189         (END_ENV_GROUP): Likewise.
5190         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
5191         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
5192         (UNKNOWN_ENVIRONMENT): Likewise.
5193         (__sysconf): Include posix-envs.def instead of handling associated
5194         cases directly here.
5195         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
5196         preprocessing getconf-speclist.c rather than running getconf or
5197         generating empty file.
5198
5199 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
5200
5201         * scripts/check-local-headers.sh: Ignore 'mach' headers.
5202
5203 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
5204
5205         [BZ #14672]
5206         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
5207
5208 2012-11-16  David S. Miller  <davem@davemloft.net>
5209
5210         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
5211         smaller than LDBL_EPSILON/2.0L, just return xm1.
5212
5213 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
5214
5215         * elf/tst-array1.c (init): Set constructor priority to 1000.
5216         (fini): Set destructor priority to 1000.
5217         * elf/tst-array2dep.c: Likewise.
5218
5219 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
5220
5221         [BZ #11741]
5222         * libio/fileops.c (_IO_new_file_write): Correctly return error.
5223         (_IO_new_file_xsputn): Also return EOF if none of the input
5224         data was written when overflow failed.
5225         * libio/iopadn.c (_IO_padn): Likewise.
5226         * libio/iowpadn.c (_IO_wpadn): Likewise.
5227         * stdio-common/tst-put-error.c: Add copyright notice.
5228         (do_test): Add case for printing padded string.
5229         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
5230         _IO_padn returned error.
5231         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
5232         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
5233         return EOF.
5234
5235 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
5236
5237         * libio/libioP.h: Add comment note that the references to C++
5238         bits are now obsolete.
5239
5240 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5241
5242         * math/libm-test.inc (check_complex): Use asprintf.
5243
5244 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
5245
5246         * debug/pcprofiledump.c (print_version): Update copyright year.
5247         * malloc/memusagestat.c (print_version): Likewise.
5248
5249 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
5250
5251         [BZ #14831]
5252         * elf/Makefile (tests): Add tst-audit8.
5253         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
5254         ($(objpfx)tst-audit8.out): New target.
5255         (tst-audit8-ENV): New variable.
5256         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
5257         audit if l_reloc_result is NULL.
5258         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
5259         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
5260         * elf/tst-audit8.c: New file.
5261
5262 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5263
5264         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
5265         * misc/Makefile (CFLAGS-select.c): Define.
5266         * posix/Makefile (CFLAGS-pause.c): Define.
5267
5268 2012-11-13  David S. Miller  <davem@davemloft.net>
5269
5270         * crypt/Makefile: Move test targets after toplevel Rules
5271         inclusion.  Grab any necessary sysdep routines when linking.
5272         * crypt/md5.c (md5_process_block): Remove define, we will always
5273         name it __md5_process_block.
5274         (md5_finish_ctx): Update md5_process_block call.
5275         (md5_stream): Likewise.
5276         (md5_process_bytes): Likewise.
5277         (md5_process_block): Rename to __md5_process_block and move to ...
5278         * crypt/md5-block.c: ... here.
5279         * crypt/sha256.c (sha256_process_block): Move to ...
5280         * crypt/sha256-block.c: ... here.
5281         * crypt/sha512.c (sha512_process_block): Move to ...
5282         * crypt/sha512-block.c: ... here.
5283         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
5284         path.
5285         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
5286         * sysdeps/sparc/sparc64/multiarch/Makefile
5287         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
5288         crypt subdir.
5289         (localedef-aux): Add md5 crypto assembler when in locale subdir.
5290         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
5291         multiarch changes.
5292         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
5293         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
5294         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
5295         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
5296         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
5297         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
5298         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
5299         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
5300         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
5301         file.
5302         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
5303         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
5304         file.
5305         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
5306
5307 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
5308
5309         * timezone/tzselect.ksh: Update from tzcode git revision
5310         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
5311         * timezone/zdump.c: Likewise.
5312         * timezone/zic.c: Likewise.
5313         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
5314         in TZVERSION setting, not $(PKGVERSION).
5315         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
5316         REPORT_BUGS_TO settings.
5317
5318         [BZ #14838]
5319         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
5320         macro.
5321
5322 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5323
5324         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
5325         detection to immediately after _FP_ROUND().
5326         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
5327         bits are 0.
5328
5329 2012-11-11  David S. Miller  <davem@davemloft.net>
5330
5331         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
5332         inttypes.h
5333         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
5334         __close rather than their public counterparts.
5335
5336 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
5337
5338         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
5339         file.
5340         [UNIX98] (sem_timedwait): Do not expect.
5341         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
5342         [XPG4 || UNIX98] (sockatmark): Do not expect.
5343         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
5344         (clock_getcpuclockid): Do not expect.
5345         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
5346         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
5347         Do not expect.
5348         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
5349         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
5350         [UNIX98] (vwscanf): Likewise.
5351         [UNIX98] (vswscanf): Likewise.
5352
5353 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
5354
5355         * timezone/version.h: Remove file.
5356         * timezone/README: Do not refer to version.h.
5357         * timezone/Makefile ($(objpfx)zic.o): New dependency on
5358         $(objpfx)version.h.
5359         ($(objpfx)zdump.o): Likewise.
5360         ($(objpfx)version.h): New target.
5361
5362         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
5363         2012i.
5364         * timezone/README: Don't mention modification to tzselect.ksh.
5365         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
5366         work on unmodified tzselect.ksh.  Substitute version numbers in
5367         tzselect.ksh.
5368
5369         * Makefile (format-me): Remove.
5370         (INSTALL): Adjust indentation.  Use commands directly instead of
5371         using $(format-me).
5372
5373         * aclocal.m4 (ACX_PKGVERSION): New macro.
5374         (ACX_BUGURL): Likewise.
5375         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
5376         (PKGVERSION): New AC_DEFINE_UNQUOTED.
5377         (REPORT_BUGS_TO): Likewise.
5378         * configure: Regenerated.
5379         * config.h.in (PKGVERSION): New macro.
5380         (REPORT_BUGS_TO): Likewise.
5381         * config.make.in (PKGVERSION): New variable.
5382         (PKGVERSION_TEXI): Likewise.
5383         (REPORT_BUGS_TO): Likewise.
5384         (REPORT_BUGS_TEXI): Likewise.
5385         * Makefile (format-me): Use -I$(common-objpfx)manual.
5386         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
5387         ($(common-objpfx)manual/%): New target.
5388         (manual/%): Remove target.
5389         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
5390         (print_version): Use PKGVERSION.
5391         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
5392         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
5393         and REPORT_BUGS_TO.
5394         ($(objpfx)xtrace): Likewise.
5395         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
5396         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
5397         (print_version): Use PKGVERSION.
5398         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
5399         (do_version): Use PKGVERSION.
5400         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
5401         REPORT_BUGS_TO.
5402         (common-ldd-rewrite): Likewise.
5403         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
5404         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
5405         (print_version): Use PKGVERSION.
5406         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
5407         * elf/pldd.c (argp_program_bug_address): Remove variable.
5408         (more_help): New function.
5409         (argp): Use more_help.
5410         (print_version): Use PKGVERSION.
5411         * elf/sln.c (main): Use PKGVERSION.
5412         (usage): Use REPORT_BUGS_TO.
5413         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
5414         (top level): Use PKGVERSION.
5415         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
5416         (print_version): Use PKGVERSION.
5417         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
5418         (print_version): Use PKGVERSION.
5419         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
5420         (print_version): Use PKGVERSION.
5421         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
5422         (print_version): Use PKGVERSION.
5423         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
5424         (print_version): Use PKGVERSION.
5425         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
5426         (print_version): Use PKGVERSION.
5427         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
5428         and BUGURL.
5429         ($(objpfx)memusage): Likewise.
5430         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
5431         (do_version): Use PKGVERSION.
5432         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
5433         (print_version): Use PKGVERSION.
5434         * malloc/mtrace.pl ($PACKAGE): Remove variable.
5435         ($PKGVERSION): New variable.
5436         ($REPORT_BUGS_TO): Likewise.
5437         (usage): Use $REPORT_BUGS_TO.
5438         (top level): Use $PKGVERSION.
5439         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
5440         ($(objpfx)pkgvers.texi): New rule.
5441         ($(objpfx)stamp-pkgvers): Likewise.
5442         * manual/install.texi: Include pkgvers.texi.
5443         (--with-pkgversion): Document new configure option.
5444         (--with-bugurl): Likewise.
5445         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
5446         than necessarily for this particular distribution.  Use
5447         REPORT_BUGS_TO for where to report bugs.
5448         * INSTALL: Regenerated.
5449         * manual/libc.texinfo: Include pkgvers.texi.
5450         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
5451         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
5452         (print_version): Use PKGVERSION.
5453         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
5454         (print_version): Use PKGVERSION.
5455         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
5456         (print_version): Use PKGVERSION.
5457         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
5458         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
5459         macro.
5460         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
5461         (print_version): Use PKGVERSION.
5462         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
5463         (print_version): Use PKGVERSION.
5464         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
5465         and PKGVERSION.
5466
5467         * timezone/checktab.awk: Update from tzcode 2012i.
5468         * timezone/ialloc.c: Likewise.
5469         * timezone/private.h: Likewise.
5470         * timezone/scheck.c: Likewise.
5471         * timezone/tzfile.h: Likewise.
5472         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
5473         (TZVERSION): Hardcode tzcode version number.
5474         * timezone/zdump.c: Update from tzcode 2012i.
5475         * timezone/zic.c: Likewise.
5476         * timezone/version.h: New file.
5477         * timezone/README: Describe version.h.  Update upstream location.
5478
5479         [BZ #14824]
5480         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
5481         (mktemp): Enable declaration.
5482         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
5483         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
5484         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
5485         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
5486         Likewise.
5487         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
5488         Likewise.
5489         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
5490         Likewise.
5491         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
5492         Likewise.
5493         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
5494         Likewise.
5495         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
5496         Likewise.
5497
5498         [BZ #14821]
5499         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
5500         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
5501         for copies of such integer values.
5502         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
5503         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
5504
5505 2012-11-09  Andreas Jaeger  <aj@suse.de>
5506
5507         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
5508         definitions and declarations that are provided by
5509         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
5510
5511 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5512
5513         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
5514         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
5515         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
5516         definition.
5517
5518 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5519
5520         * elf/elf.h: Update comment before AArch64 relocations.
5521
5522 2012-11-07  David S. Miller  <davem@davemloft.net>
5523
5524         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
5525         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
5526         (__start_context): Declare.
5527         (__makecontext_ret): Delete.
5528         (__makecontext): Hook up __start_context instead of
5529         __makecontext_ret.
5530         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5531         (sysdep_routines): Add __start_context when in stdlib.
5532
5533 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
5534
5535         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
5536         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
5537         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
5538         hardcoded "nm".
5539         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
5540         (READELF): New variable.  Use it instead of hardcoded "readelf".
5541
5542 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
5543
5544         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
5545         * sysdeps/x86/Makefile: Here.
5546         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
5547         * sysdeps/x86/tst-xmmymm.sh: This.
5548
5549 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
5550
5551         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
5552         expectations.
5553         [UNIX98] (pthread_barrier_t): Do not expect.
5554         [UNIX98] (pthread_barrierattr_t): Likewise.
5555         [UNIX98] (pthread_spinlock_t): Likewise.
5556         [UNIX98] (pthread_barrier_destroy): Likewise.
5557         [UNIX98] (pthread_barrier_init): Likewise.
5558         [UNIX98] (pthread_barrier_wait): Likewise.
5559         [UNIX98] (pthread_barrierattr_destroy): Likewise.
5560         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
5561         [UNIX98] (pthread_barrierattr_init): Likewise.
5562         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
5563         [UNIX98] (pthread_getcpuclockid): Likewise.
5564         [UNIX98] (pthread_mutex_timedlock): Likewise.
5565         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
5566         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
5567         [UNIX98] (pthread_sigmask): Likewise.
5568         [UNIX98] (pthread_spin_destroy): Likewise.
5569         [UNIX98] (pthread_spin_init): Likewise.
5570         [UNIX98] (pthread_spin_lock): Likewise.
5571         [UNIX98] (pthread_spin_trylock): Likewise.
5572         [UNIX98] (pthread_spin_unlock): Likewise.
5573         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
5574         Do not expect.
5575         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
5576         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
5577         [XPG3 || XPG4] (pthread_cond_t): Likewise.
5578         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
5579         [XPG3 || XPG4] (pthread_key_t): Likewise.
5580         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
5581         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
5582         [XPG3 || XPG4] (pthread_once_t): Likewise.
5583         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
5584         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
5585         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
5586         [XPG3 || XPG4] (pthread_t): Likewise.
5587
5588         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
5589         not expect.
5590         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
5591
5592         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
5593         Change function return type to int.
5594
5595         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
5596         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
5597         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
5598         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
5599         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
5600         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
5601         [!POSIX] (posix_madvise): Likewise.
5602         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
5603         && !UNIX98].
5604         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
5605         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
5606         (mode_t): Likewise.
5607         (posix_mem_offset): Likewise.
5608         (posix_typed_mem_get_info): Likewise.
5609         (posix_typed_mem_open): Likewise.
5610
5611         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
5612         Change condition to [XOPEN2K8].
5613
5614         * conform/conformtest.pl: Preprocess allow-header data with -x c
5615         instead of from stdin.
5616         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
5617         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
5618         [C99-based standards] (cerfc): Likewise.
5619         [C99-based standards] (cexp2): Likewise.
5620         [C99-based standards] (cexpm1): Likewise.
5621         [C99-based standards] (clog10): Likewise.
5622         [C99-based standards] (clog1p): Likewise.
5623         [C99-based standards] (clog2): Likewise.
5624         [C99-based standards] (clgamma): Likewise.
5625         [C99-based standards] (ctgamma): Likewise.
5626         [C99-based standards] (cerff): Likewise.
5627         [C99-based standards] (cerfcf): Likewise.
5628         [C99-based standards] (cexp2f): Likewise.
5629         [C99-based standards] (cexpm1f): Likewise.
5630         [C99-based standards] (clog10f): Likewise.
5631         [C99-based standards] (clog1pf): Likewise.
5632         [C99-based standards] (clog2f): Likewise.
5633         [C99-based standards] (clgammaf): Likewise.
5634         [C99-based standards] (ctgammaf): Likewise.
5635         [C99-based standards] (cerfl): Likewise.
5636         [C99-based standards] (cerfcl): Likewise.
5637         [C99-based standards] (cexp2l): Likewise.
5638         [C99-based standards] (cexpm1l): Likewise.
5639         [C99-based standards] (clog10l): Likewise.
5640         [C99-based standards] (clog1pl): Likewise.
5641         [C99-based standards] (clog2l): Likewise.
5642         [C99-based standards] (clgammal): Likewise.
5643         [C99-based standards] (ctgammal): Likewise.
5644         * conform/data/inttypes.h-data [C99-based standards]: Include
5645         stdint.h-data.  Remove all expectations for stdint.h contents.
5646         [C99-based standards] (PRI*): Do not allow.
5647         [C99-based standards] (SCN*): Likewise.
5648         [C99-based standards] (*_t): Likewise.
5649         [C99-based-standards] (PRId8): Expect macro.
5650         [C99-based-standards] (PRIi8): Likewise.
5651         [C99-based-standards] (PRIo8): Likewise.
5652         [C99-based-standards] (PRIu8): Likewise.
5653         [C99-based-standards] (PRIx8): Likewise.
5654         [C99-based-standards] (PRIX8): Likewise.
5655         [C99-based-standards] (SCNd8): Likewise.
5656         [C99-based-standards] (SCNi8): Likewise.
5657         [C99-based-standards] (SCNo8): Likewise.
5658         [C99-based-standards] (SCNu8): Likewise.
5659         [C99-based-standards] (SCNx8): Likewise.
5660         [C99-based-standards] (PRIdLEAST8): Likewise.
5661         [C99-based-standards] (PRIiLEAST8): Likewise.
5662         [C99-based-standards] (PRIoLEAST8): Likewise.
5663         [C99-based-standards] (PRIuLEAST8): Likewise.
5664         [C99-based-standards] (PRIxLEAST8): Likewise.
5665         [C99-based-standards] (PRIXLEAST8): Likewise.
5666         [C99-based-standards] (SCNdLEAST8): Likewise.
5667         [C99-based-standards] (SCNiLEAST8): Likewise.
5668         [C99-based-standards] (SCNoLEAST8): Likewise.
5669         [C99-based-standards] (SCNuLEAST8): Likewise.
5670         [C99-based-standards] (SCNxLEAST8): Likewise.
5671         [C99-based-standards] (PRIdFAST8): Likewise.
5672         [C99-based-standards] (PRIiFAST8): Likewise.
5673         [C99-based-standards] (PRIoFAST8): Likewise.
5674         [C99-based-standards] (PRIuFAST8): Likewise.
5675         [C99-based-standards] (PRIxFAST8): Likewise.
5676         [C99-based-standards] (PRIXFAST8): Likewise.
5677         [C99-based-standards] (SCNdFAST8): Likewise.
5678         [C99-based-standards] (SCNiFAST8): Likewise.
5679         [C99-based-standards] (SCNoFAST8): Likewise.
5680         [C99-based-standards] (SCNuFAST8): Likewise.
5681         [C99-based-standards] (SCNxFAST8): Likewise.
5682         [C99-based-standards] (PRId16): Likewise.
5683         [C99-based-standards] (PRIi16): Likewise.
5684         [C99-based-standards] (PRIo16): Likewise.
5685         [C99-based-standards] (PRIu16): Likewise.
5686         [C99-based-standards] (PRIx16): Likewise.
5687         [C99-based-standards] (PRIX16): Likewise.
5688         [C99-based-standards] (SCNd16): Likewise.
5689         [C99-based-standards] (SCNi16): Likewise.
5690         [C99-based-standards] (SCNo16): Likewise.
5691         [C99-based-standards] (SCNu16): Likewise.
5692         [C99-based-standards] (SCNx16): Likewise.
5693         [C99-based-standards] (PRIdLEAST16): Likewise.
5694         [C99-based-standards] (PRIiLEAST16): Likewise.
5695         [C99-based-standards] (PRIoLEAST16): Likewise.
5696         [C99-based-standards] (PRIuLEAST16): Likewise.
5697         [C99-based-standards] (PRIxLEAST16): Likewise.
5698         [C99-based-standards] (PRIXLEAST16): Likewise.
5699         [C99-based-standards] (SCNdLEAST16): Likewise.
5700         [C99-based-standards] (SCNiLEAST16): Likewise.
5701         [C99-based-standards] (SCNoLEAST16): Likewise.
5702         [C99-based-standards] (SCNuLEAST16): Likewise.
5703         [C99-based-standards] (SCNxLEAST16): Likewise.
5704         [C99-based-standards] (PRIdFAST16): Likewise.
5705         [C99-based-standards] (PRIiFAST16): Likewise.
5706         [C99-based-standards] (PRIoFAST16): Likewise.
5707         [C99-based-standards] (PRIuFAST16): Likewise.
5708         [C99-based-standards] (PRIxFAST16): Likewise.
5709         [C99-based-standards] (PRIXFAST16): Likewise.
5710         [C99-based-standards] (SCNdFAST16): Likewise.
5711         [C99-based-standards] (SCNiFAST16): Likewise.
5712         [C99-based-standards] (SCNoFAST16): Likewise.
5713         [C99-based-standards] (SCNuFAST16): Likewise.
5714         [C99-based-standards] (SCNxFAST16): Likewise.
5715         [C99-based-standards] (PRId32): Likewise.
5716         [C99-based-standards] (PRIi32): Likewise.
5717         [C99-based-standards] (PRIo32): Likewise.
5718         [C99-based-standards] (PRIu32): Likewise.
5719         [C99-based-standards] (PRIx32): Likewise.
5720         [C99-based-standards] (PRIX32): Likewise.
5721         [C99-based-standards] (SCNd32): Likewise.
5722         [C99-based-standards] (SCNi32): Likewise.
5723         [C99-based-standards] (SCNo32): Likewise.
5724         [C99-based-standards] (SCNu32): Likewise.
5725         [C99-based-standards] (SCNx32): Likewise.
5726         [C99-based-standards] (PRIdLEAST32): Likewise.
5727         [C99-based-standards] (PRIiLEAST32): Likewise.
5728         [C99-based-standards] (PRIoLEAST32): Likewise.
5729         [C99-based-standards] (PRIuLEAST32): Likewise.
5730         [C99-based-standards] (PRIxLEAST32): Likewise.
5731         [C99-based-standards] (PRIXLEAST32): Likewise.
5732         [C99-based-standards] (SCNdLEAST32): Likewise.
5733         [C99-based-standards] (SCNiLEAST32): Likewise.
5734         [C99-based-standards] (SCNoLEAST32): Likewise.
5735         [C99-based-standards] (SCNuLEAST32): Likewise.
5736         [C99-based-standards] (SCNxLEAST32): Likewise.
5737         [C99-based-standards] (PRIdFAST32): Likewise.
5738         [C99-based-standards] (PRIiFAST32): Likewise.
5739         [C99-based-standards] (PRIoFAST32): Likewise.
5740         [C99-based-standards] (PRIuFAST32): Likewise.
5741         [C99-based-standards] (PRIxFAST32): Likewise.
5742         [C99-based-standards] (PRIXFAST32): Likewise.
5743         [C99-based-standards] (SCNdFAST32): Likewise.
5744         [C99-based-standards] (SCNiFAST32): Likewise.
5745         [C99-based-standards] (SCNoFAST32): Likewise.
5746         [C99-based-standards] (SCNuFAST32): Likewise.
5747         [C99-based-standards] (SCNxFAST32): Likewise.
5748         [C99-based-standards] (PRId64): Likewise.
5749         [C99-based-standards] (PRIi64): Likewise.
5750         [C99-based-standards] (PRIo64): Likewise.
5751         [C99-based-standards] (PRIu64): Likewise.
5752         [C99-based-standards] (PRIx64): Likewise.
5753         [C99-based-standards] (PRIX64): Likewise.
5754         [C99-based-standards] (SCNd64): Likewise.
5755         [C99-based-standards] (SCNi64): Likewise.
5756         [C99-based-standards] (SCNo64): Likewise.
5757         [C99-based-standards] (SCNu64): Likewise.
5758         [C99-based-standards] (SCNx64): Likewise.
5759         [C99-based-standards] (PRIdLEAST64): Likewise.
5760         [C99-based-standards] (PRIiLEAST64): Likewise.
5761         [C99-based-standards] (PRIoLEAST64): Likewise.
5762         [C99-based-standards] (PRIuLEAST64): Likewise.
5763         [C99-based-standards] (PRIxLEAST64): Likewise.
5764         [C99-based-standards] (PRIXLEAST64): Likewise.
5765         [C99-based-standards] (SCNdLEAST64): Likewise.
5766         [C99-based-standards] (SCNiLEAST64): Likewise.
5767         [C99-based-standards] (SCNoLEAST64): Likewise.
5768         [C99-based-standards] (SCNuLEAST64): Likewise.
5769         [C99-based-standards] (SCNxLEAST64): Likewise.
5770         [C99-based-standards] (PRIdFAST64): Likewise.
5771         [C99-based-standards] (PRIiFAST64): Likewise.
5772         [C99-based-standards] (PRIoFAST64): Likewise.
5773         [C99-based-standards] (PRIuFAST64): Likewise.
5774         [C99-based-standards] (PRIxFAST64): Likewise.
5775         [C99-based-standards] (PRIXFAST64): Likewise.
5776         [C99-based-standards] (SCNdFAST64): Likewise.
5777         [C99-based-standards] (SCNiFAST64): Likewise.
5778         [C99-based-standards] (SCNoFAST64): Likewise.
5779         [C99-based-standards] (SCNuFAST64): Likewise.
5780         [C99-based-standards] (SCNxFAST64): Likewise.
5781         [C99-based-standards] (PRIdMAX): Likewise.
5782         [C99-based-standards] (PRIiMAX): Likewise.
5783         [C99-based-standards] (PRIoMAX): Likewise.
5784         [C99-based-standards] (PRIuMAX): Likewise.
5785         [C99-based-standards] (PRIxMAX): Likewise.
5786         [C99-based-standards] (PRIXMAX): Likewise.
5787         [C99-based-standards] (SCNdMAX): Likewise.
5788         [C99-based-standards] (SCNiMAX): Likewise.
5789         [C99-based-standards] (SCNoMAX): Likewise.
5790         [C99-based-standards] (SCNuMAX): Likewise.
5791         [C99-based-standards] (SCNxMAX): Likewise.
5792         [C99-based-standards] (PRIdPTR): Likewise.
5793         [C99-based-standards] (PRIiPTR): Likewise.
5794         [C99-based-standards] (PRIoPTR): Likewise.
5795         [C99-based-standards] (PRIuPTR): Likewise.
5796         [C99-based-standards] (PRIxPTR): Likewise.
5797         [C99-based-standards] (PRIXPTR): Likewise.
5798         [C99-based-standards] (SCNdPTR): Likewise.
5799         [C99-based-standards] (SCNiPTR): Likewise.
5800         [C99-based-standards] (SCNoPTR): Likewise.
5801         [C99-based-standards] (SCNuPTR): Likewise.
5802         [C99-based-standards] (SCNxPTR): Likewise.
5803         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
5804         allow.
5805         * conform/data/stdint.h-data: Update comments to clarify
5806         requirements.
5807         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
5808         type.
5809         [C99-based standards] (INT8_MAX): Likewise.
5810         [C99-based standards] (INT16_MIN): Likewise.
5811         [C99-based standards] (INT16_MAX): Likewise.
5812         [C99-based standards] (INT32_MIN): Likewise.
5813         [C99-based standards] (INT32_MAX): Likewise.
5814         [C99-based standards] (INT64_MIN): Likewise.
5815         [C99-based standards] (INT64_MAX): Likewise.
5816         [C99-based standards] (UINT8_MAX): Likewise.
5817         [C99-based standards] (UINT16_MAX): Likewise.
5818         [C99-based standards] (UINT32_MAX): Likewise.
5819         [C99-based standards] (UINT64_MAX): Likewise.
5820         [C99-based standards] (INT_LEAST8_MIN): Likewise.
5821         [C99-based standards] (INT_LEAST8_MAX): Likewise.
5822         [C99-based standards] (INT_LEAST16_MIN): Likewise.
5823         [C99-based standards] (INT_LEAST16_MAX): Likewise.
5824         [C99-based standards] (INT_LEAST32_MIN): Likewise.
5825         [C99-based standards] (INT_LEAST32_MAX): Likewise.
5826         [C99-based standards] (INT_LEAST64_MIN): Likewise.
5827         [C99-based standards] (INT_LEAST64_MAX): Likewise.
5828         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
5829         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
5830         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
5831         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
5832         [C99-based standards] (INT_FAST8_MIN): Likewise.
5833         [C99-based standards] (INT_FAST8_MAX): Likewise.
5834         [C99-based standards] (INT_FAST16_MIN): Likewise.
5835         [C99-based standards] (INT_FAST16_MAX): Likewise.
5836         [C99-based standards] (INT_FAST32_MIN): Likewise.
5837         [C99-based standards] (INT_FAST32_MAX): Likewise.
5838         [C99-based standards] (INT_FAST64_MIN): Likewise.
5839         [C99-based standards] (INT_FAST64_MAX): Likewise.
5840         [C99-based standards] (UINT_FAST8_MAX): Likewise.
5841         [C99-based standards] (UINT_FAST16_MAX): Likewise.
5842         [C99-based standards] (UINT_FAST32_MAX): Likewise.
5843         [C99-based standards] (UINT_FAST64_MAX): Likewise.
5844         [C99-based standards] (INTPTR_MIN): Likewise.
5845         [C99-based standards] (INTPTR_MAX): Likewise.
5846         [C99-based standards] (UINTPTR_MAX): Likewise.
5847         [C99-based standards] (INTMAX_MIN): Likewise.
5848         [C99-based standards] (INTMAX_MAX): Likewise.
5849         [C99-based standards] (UINTMAX_MAX): Likewise.
5850         [C99-based standards] (PTRDIFF_MIN): Likewise.
5851         [C99-based standards] (PTRDIFF_MAX): Likewise.
5852         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
5853         [C99-based standards] (SIZE_MAX): Likewise.
5854         [C99-based standards] (WCHAR_MAX): Likewise.
5855         [C99-based standards] (WINT_MAX): Likewise.
5856         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
5857         constraint on value.
5858         [C99-based standards] (WCHAR_MIN): Likewise.
5859         [C99-based standards] (WINT_MIN): Likewise.
5860         [C99-based standards] (*_t): Allow.
5861         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
5862         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
5863         Include math.h-data and complex.h-data.  Remove all expectations
5864         of math.h and complex.h contents.
5865         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
5866         at end of line.
5867         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
5868         (struct tm): Expect tag.
5869         [C99-based-standards] (wcstof): Expect function.
5870         [C99-based-standards] (wcstold): Likewise.
5871         [C99-based-standards] (wcstoll): Likewise.
5872         [C99-based-standards] (wcstoull): Likewise.
5873         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
5874         macro-int-constant.  Specify type.
5875         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
5876         constraint on value.
5877         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
5878         Specify type.
5879         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
5880         Specify value.
5881         [ISO C standards]: Do not allow headers.
5882         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
5883         wcs[abcdefghijklmnopqrstuvwxyz]*.
5884         [ISO C standards] (*_t): Do not allow.
5885         * conform/data/wctype.h-data [C99-based standards] (iswblank):
5886         Expect function.
5887         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
5888         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
5889         Specify type.
5890         [ISO C standards]: Do not allow headers.
5891         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
5892         is[abcdefghijklmnopqrstuvwxyz]*.
5893         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
5894         to[abcdefghijklmnopqrstuvwxyz]*.
5895         [ISO C standards] (*_t): Do not allow.
5896         * conform/data/stdalign.h-data: New file.
5897         * conform/data/stdbool.h-data: Likewise.
5898         * conform/data/stdnoreturn.h-data: Likewise.
5899
5900 2012-11-07  Roland McGrath  <roland@hack.frob.com>
5901
5902         [BZ #14815]
5903         * manual/filesys.texi (Directory Entries): Typo fix.
5904         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
5905
5906 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5907
5908         * elf/elf.h (EM_AARCH64): New macro.
5909         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
5910         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
5911         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
5912         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
5913         (R_AARCH64_TLSDESC): Likewise.
5914         (NT_ARM_TLS): Likewise.
5915         (NT_ARM_HW_BREAK): Likewise.
5916         (NT_ARM_HW_WATCH): Likewise.
5917
5918 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
5919
5920         [BZ #14811]
5921         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
5922         (__ieee754_powl): Saturate nonzero exponents with absolute value
5923         below 0x1p-79 to +/- 0x1p-79.
5924         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
5925         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
5926         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
5927         nonzero exponents with absolute value below 0x1p-32 to +/-
5928         0x1p-32.
5929         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
5930         (__ieee754_powl): Saturate nonzero exponents with absolute value
5931         below 0x1p-79 to +/- 0x1p-79.
5932         * math/libm-test.inc (pow_test): Add more tests.
5933
5934 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5935
5936         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
5937         _dl_s390_cap_flags with kernel. Increase string length.
5938         (_dl_s390_platforms): Add z196 and zEC12.
5939
5940 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
5941
5942         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
5943         Change XOPEN21K to XOPEN2K.
5944
5945 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5946
5947         * string/memmove.c: Use memcpy when possible.
5948
5949 2012-11-06  Andreas Jaeger  <aj@suse.de>
5950
5951         * po/eo.po: Update from translation team.
5952
5953 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
5954
5955         [BZ #14793]
5956         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
5957         exponent and small x and y exponents, scale x or y up.  Increase
5958         by 2 the exponent used in scaling up.
5959         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5960         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5961         * math/libm-test.inc (fma_test): Add more tests.
5962         (fma_test_towardzero): Likewise.
5963         (fma_test_downward): Likewise.
5964         (fma_test_upward): Likewise.
5965
5966 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
5967
5968         [BZ #14805]
5969         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
5970         fenv_t *.
5971
5972         [BZ #14801]
5973         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
5974         namespace for names of struct fields.
5975         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
5976         fenv_t fields.
5977         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
5978         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
5979
5980 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5981
5982         [BZ #3665]
5983         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
5984
5985 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
5986
5987         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
5988         PTR_DEMANGLE.
5989
5990         [BZ #5246]
5991         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
5992         PTR_DEMANGLE.
5993
5994 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
5995
5996         [BZ #14797]
5997         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
5998         definitely overflow as x * y not x * y + z.
5999         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6000         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6001         * math/libm-test.inc (fma_test): Add more tests.
6002         (fma_test_towardzero): Likewise.
6003         (fma_test_downward): Likewise.
6004         (fma_test_upward): Likewise.
6005
6006 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
6007
6008         [BZ #157]
6009
6010         * include/stub-tag.h: Remove file.
6011         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
6012         '#include' of it.
6013         * manual/maint.texi (Porting): Don't reference it.
6014         * Makerules ($(objpfx)stubs): Likewise.
6015         * dirent/closedir.c: Don't include <stub-tag.h>.
6016         * dirent/dirfd.c: Likewise.
6017         * dirent/fdopendir.c: Likewise.
6018         * dirent/getdents.c: Likewise.
6019         * dirent/getdents64.c: Likewise.
6020         * dirent/opendir.c: Likewise.
6021         * dirent/readdir.c: Likewise.
6022         * dirent/readdir64.c: Likewise.
6023         * dirent/readdir64_r.c: Likewise.
6024         * dirent/readdir_r.c: Likewise.
6025         * dirent/rewinddir.c: Likewise.
6026         * dirent/seekdir.c: Likewise.
6027         * dirent/telldir.c: Likewise.
6028         * gmon/profil.c: Likewise.
6029         * grp/setgroups.c: Likewise.
6030         * inet/if_index.c: Likewise.
6031         * io/access.c: Likewise.
6032         * io/chdir.c: Likewise.
6033         * io/chmod.c: Likewise.
6034         * io/chown.c: Likewise.
6035         * io/close.c: Likewise.
6036         * io/dup.c: Likewise.
6037         * io/dup2.c: Likewise.
6038         * io/dup3.c: Likewise.
6039         * io/euidaccess.c: Likewise.
6040         * io/faccessat.c: Likewise.
6041         * io/fchdir.c: Likewise.
6042         * io/fchmod.c: Likewise.
6043         * io/fchmodat.c: Likewise.
6044         * io/fchown.c: Likewise.
6045         * io/fchownat.c: Likewise.
6046         * io/fcntl.c: Likewise.
6047         * io/flock.c: Likewise.
6048         * io/fstatfs.c: Likewise.
6049         * io/fstatfs64.c: Likewise.
6050         * io/fstatvfs.c: Likewise.
6051         * io/fstatvfs64.c: Likewise.
6052         * io/futimens.c: Likewise.
6053         * io/fxstat.c: Likewise.
6054         * io/fxstat64.c: Likewise.
6055         * io/fxstatat.c: Likewise.
6056         * io/fxstatat64.c: Likewise.
6057         * io/getcwd.c: Likewise.
6058         * io/isatty.c: Likewise.
6059         * io/lchmod.c: Likewise.
6060         * io/lchown.c: Likewise.
6061         * io/link.c: Likewise.
6062         * io/linkat.c: Likewise.
6063         * io/lseek.c: Likewise.
6064         * io/lseek64.c: Likewise.
6065         * io/lxstat64.c: Likewise.
6066         * io/mkdir.c: Likewise.
6067         * io/mkdirat.c: Likewise.
6068         * io/mkfifo.c: Likewise.
6069         * io/mkfifoat.c: Likewise.
6070         * io/open.c: Likewise.
6071         * io/open64.c: Likewise.
6072         * io/openat.c: Likewise.
6073         * io/openat64.c: Likewise.
6074         * io/pipe.c: Likewise.
6075         * io/pipe2.c: Likewise.
6076         * io/poll.c: Likewise.
6077         * io/posix_fadvise.c: Likewise.
6078         * io/posix_fadvise64.c: Likewise.
6079         * io/posix_fallocate.c: Likewise.
6080         * io/posix_fallocate64.c: Likewise.
6081         * io/read.c: Likewise.
6082         * io/readlink.c: Likewise.
6083         * io/readlinkat.c: Likewise.
6084         * io/rmdir.c: Likewise.
6085         * io/sendfile.c: Likewise.
6086         * io/sendfile64.c: Likewise.
6087         * io/statfs.c: Likewise.
6088         * io/statfs64.c: Likewise.
6089         * io/statvfs.c: Likewise.
6090         * io/statvfs64.c: Likewise.
6091         * io/symlink.c: Likewise.
6092         * io/symlinkat.c: Likewise.
6093         * io/ttyname.c: Likewise.
6094         * io/ttyname_r.c: Likewise.
6095         * io/umask.c: Likewise.
6096         * io/unlink.c: Likewise.
6097         * io/unlinkat.c: Likewise.
6098         * io/utime.c: Likewise.
6099         * io/utimensat.c: Likewise.
6100         * io/write.c: Likewise.
6101         * io/xmknod.c: Likewise.
6102         * io/xmknodat.c: Likewise.
6103         * io/xstat.c: Likewise.
6104         * io/xstat64.c: Likewise.
6105         * login/getpt.c: Likewise.
6106         * login/grantpt.c: Likewise.
6107         * login/unlockpt.c: Likewise.
6108         * math/e_acoshl.c: Likewise.
6109         * math/e_acosl.c: Likewise.
6110         * math/e_asinl.c: Likewise.
6111         * math/e_atan2l.c: Likewise.
6112         * math/e_atanhl.c: Likewise.
6113         * math/e_coshl.c: Likewise.
6114         * math/e_expl.c: Likewise.
6115         * math/e_fmodl.c: Likewise.
6116         * math/e_gammal_r.c: Likewise.
6117         * math/e_hypotl.c: Likewise.
6118         * math/e_j0l.c: Likewise.
6119         * math/e_j1l.c: Likewise.
6120         * math/e_jnl.c: Likewise.
6121         * math/e_lgammal_r.c: Likewise.
6122         * math/e_log10l.c: Likewise.
6123         * math/e_log2l.c: Likewise.
6124         * math/e_logl.c: Likewise.
6125         * math/e_powl.c: Likewise.
6126         * math/e_rem_pio2l.c: Likewise.
6127         * math/e_sinhl.c: Likewise.
6128         * math/e_sqrtl.c: Likewise.
6129         * math/fclrexcpt.c: Likewise.
6130         * math/fedisblxcpt.c: Likewise.
6131         * math/feenablxcpt.c: Likewise.
6132         * math/fegetenv.c: Likewise.
6133         * math/fegetexcept.c: Likewise.
6134         * math/fegetround.c: Likewise.
6135         * math/feholdexcpt.c: Likewise.
6136         * math/fesetenv.c: Likewise.
6137         * math/fesetround.c: Likewise.
6138         * math/feupdateenv.c: Likewise.
6139         * math/fgetexcptflg.c: Likewise.
6140         * math/fraiseexcpt.c: Likewise.
6141         * math/fsetexcptflg.c: Likewise.
6142         * math/ftestexcept.c: Likewise.
6143         * math/k_cosl.c: Likewise.
6144         * math/k_rem_pio2l.c: Likewise.
6145         * math/k_sinl.c: Likewise.
6146         * math/k_tanl.c: Likewise.
6147         * math/s_asinhl.c: Likewise.
6148         * math/s_atanl.c: Likewise.
6149         * math/s_cbrtl.c: Likewise.
6150         * math/s_erfl.c: Likewise.
6151         * math/s_expm1l.c: Likewise.
6152         * math/s_log1pl.c: Likewise.
6153         * math/s_tanhl.c: Likewise.
6154         * misc/acct.c: Likewise.
6155         * misc/brk.c: Likewise.
6156         * misc/chflags.c: Likewise.
6157         * misc/chroot.c: Likewise.
6158         * misc/fchflags.c: Likewise.
6159         * misc/fgetxattr.c: Likewise.
6160         * misc/flistxattr.c: Likewise.
6161         * misc/fremovexattr.c: Likewise.
6162         * misc/fsetxattr.c: Likewise.
6163         * misc/fsync.c: Likewise.
6164         * misc/ftruncate.c: Likewise.
6165         * misc/futimes.c: Likewise.
6166         * misc/futimesat.c: Likewise.
6167         * misc/getdomain.c: Likewise.
6168         * misc/getdtsz.c: Likewise.
6169         * misc/gethostid.c: Likewise.
6170         * misc/gethostname.c: Likewise.
6171         * misc/getloadavg.c: Likewise.
6172         * misc/getpagesize.c: Likewise.
6173         * misc/getsysstats.c: Likewise.
6174         * misc/getxattr.c: Likewise.
6175         * misc/gtty.c: Likewise.
6176         * misc/ioctl.c: Likewise.
6177         * misc/lgetxattr.c: Likewise.
6178         * misc/listxattr.c: Likewise.
6179         * misc/llistxattr.c: Likewise.
6180         * misc/lremovexattr.c: Likewise.
6181         * misc/lsetxattr.c: Likewise.
6182         * misc/lutimes.c: Likewise.
6183         * misc/madvise.c: Likewise.
6184         * misc/mincore.c: Likewise.
6185         * misc/mlock.c: Likewise.
6186         * misc/mlockall.c: Likewise.
6187         * misc/mmap.c: Likewise.
6188         * misc/mprotect.c: Likewise.
6189         * misc/msync.c: Likewise.
6190         * misc/munlock.c: Likewise.
6191         * misc/munlockall.c: Likewise.
6192         * misc/munmap.c: Likewise.
6193         * misc/preadv.c: Likewise.
6194         * misc/preadv64.c: Likewise.
6195         * misc/ptrace.c: Likewise.
6196         * misc/pwritev.c: Likewise.
6197         * misc/pwritev64.c: Likewise.
6198         * misc/readv.c: Likewise.
6199         * misc/reboot.c: Likewise.
6200         * misc/remap_file_pages.c: Likewise.
6201         * misc/removexattr.c: Likewise.
6202         * misc/revoke.c: Likewise.
6203         * misc/select.c: Likewise.
6204         * misc/setdomain.c: Likewise.
6205         * misc/setegid.c: Likewise.
6206         * misc/seteuid.c: Likewise.
6207         * misc/sethostid.c: Likewise.
6208         * misc/sethostname.c: Likewise.
6209         * misc/setregid.c: Likewise.
6210         * misc/setreuid.c: Likewise.
6211         * misc/setxattr.c: Likewise.
6212         * misc/sstk.c: Likewise.
6213         * misc/stty.c: Likewise.
6214         * misc/swapoff.c: Likewise.
6215         * misc/swapon.c: Likewise.
6216         * misc/sync.c: Likewise.
6217         * misc/syncfs.c: Likewise.
6218         * misc/syscall.c: Likewise.
6219         * misc/truncate.c: Likewise.
6220         * misc/ualarm.c: Likewise.
6221         * misc/usleep.c: Likewise.
6222         * misc/ustat.c: Likewise.
6223         * misc/utimes.c: Likewise.
6224         * misc/vhangup.c: Likewise.
6225         * misc/writev.c: Likewise.
6226         * posix/_exit.c: Likewise.
6227         * posix/alarm.c: Likewise.
6228         * posix/execve.c: Likewise.
6229         * posix/fexecve.c: Likewise.
6230         * posix/fork.c: Likewise.
6231         * posix/fpathconf.c: Likewise.
6232         * posix/getaddrinfo.c: Likewise.
6233         * posix/getegid.c: Likewise.
6234         * posix/geteuid.c: Likewise.
6235         * posix/getgid.c: Likewise.
6236         * posix/getgroups.c: Likewise.
6237         * posix/getlogin.c: Likewise.
6238         * posix/getlogin_r.c: Likewise.
6239         * posix/getpgid.c: Likewise.
6240         * posix/getpid.c: Likewise.
6241         * posix/getppid.c: Likewise.
6242         * posix/getresgid.c: Likewise.
6243         * posix/getresuid.c: Likewise.
6244         * posix/getsid.c: Likewise.
6245         * posix/getuid.c: Likewise.
6246         * posix/glob64.c: Likewise.
6247         * posix/nanosleep.c: Likewise.
6248         * posix/pathconf.c: Likewise.
6249         * posix/pause.c: Likewise.
6250         * posix/posix_madvise.c: Likewise.
6251         * posix/pread.c: Likewise.
6252         * posix/pread64.c: Likewise.
6253         * posix/pwrite.c: Likewise.
6254         * posix/pwrite64.c: Likewise.
6255         * posix/sched_getaffinity.c: Likewise.
6256         * posix/sched_getp.c: Likewise.
6257         * posix/sched_gets.c: Likewise.
6258         * posix/sched_primax.c: Likewise.
6259         * posix/sched_primin.c: Likewise.
6260         * posix/sched_rr_gi.c: Likewise.
6261         * posix/sched_setaffinity.c: Likewise.
6262         * posix/sched_setp.c: Likewise.
6263         * posix/sched_sets.c: Likewise.
6264         * posix/sched_yield.c: Likewise.
6265         * posix/setgid.c: Likewise.
6266         * posix/setlogin.c: Likewise.
6267         * posix/setpgid.c: Likewise.
6268         * posix/setresgid.c: Likewise.
6269         * posix/setresuid.c: Likewise.
6270         * posix/setsid.c: Likewise.
6271         * posix/setuid.c: Likewise.
6272         * posix/sleep.c: Likewise.
6273         * posix/spawni.c: Likewise.
6274         * posix/sysconf.c: Likewise.
6275         * posix/times.c: Likewise.
6276         * posix/wait.c: Likewise.
6277         * posix/wait3.c: Likewise.
6278         * posix/wait4.c: Likewise.
6279         * posix/waitpid.c: Likewise.
6280         * resolv/gai_sigqueue.c: Likewise.
6281         * resource/getpriority.c: Likewise.
6282         * resource/getrlimit.c: Likewise.
6283         * resource/getrusage.c: Likewise.
6284         * resource/nice.c: Likewise.
6285         * resource/setpriority.c: Likewise.
6286         * resource/setrlimit.c: Likewise.
6287         * resource/ulimit.c: Likewise.
6288         * rt/aio_cancel.c: Likewise.
6289         * rt/aio_fsync.c: Likewise.
6290         * rt/aio_read.c: Likewise.
6291         * rt/aio_sigqueue.c: Likewise.
6292         * rt/aio_suspend.c: Likewise.
6293         * rt/aio_write.c: Likewise.
6294         * rt/clock_getres.c: Likewise.
6295         * rt/clock_gettime.c: Likewise.
6296         * rt/clock_nanosleep.c: Likewise.
6297         * rt/clock_settime.c: Likewise.
6298         * rt/lio_listio.c: Likewise.
6299         * rt/mq_close.c: Likewise.
6300         * rt/mq_getattr.c: Likewise.
6301         * rt/mq_notify.c: Likewise.
6302         * rt/mq_open.c: Likewise.
6303         * rt/mq_receive.c: Likewise.
6304         * rt/mq_send.c: Likewise.
6305         * rt/mq_setattr.c: Likewise.
6306         * rt/mq_timedreceive.c: Likewise.
6307         * rt/mq_timedsend.c: Likewise.
6308         * rt/mq_unlink.c: Likewise.
6309         * rt/shm_open.c: Likewise.
6310         * rt/shm_unlink.c: Likewise.
6311         * rt/timer_create.c: Likewise.
6312         * rt/timer_delete.c: Likewise.
6313         * rt/timer_getoverr.c: Likewise.
6314         * rt/timer_gettime.c: Likewise.
6315         * rt/timer_settime.c: Likewise.
6316         * setjmp/__longjmp.c: Likewise.
6317         * setjmp/setjmp.c: Likewise.
6318         * signal/kill.c: Likewise.
6319         * signal/killpg.c: Likewise.
6320         * signal/raise.c: Likewise.
6321         * signal/sigaction.c: Likewise.
6322         * signal/sigaltstack.c: Likewise.
6323         * signal/sigblock.c: Likewise.
6324         * signal/sigignore.c: Likewise.
6325         * signal/sigintr.c: Likewise.
6326         * signal/signal.c: Likewise.
6327         * signal/sigpause.c: Likewise.
6328         * signal/sigpending.c: Likewise.
6329         * signal/sigqueue.c: Likewise.
6330         * signal/sigreturn.c: Likewise.
6331         * signal/sigset.c: Likewise.
6332         * signal/sigsetmask.c: Likewise.
6333         * signal/sigstack.c: Likewise.
6334         * signal/sigsuspend.c: Likewise.
6335         * signal/sigtimedwait.c: Likewise.
6336         * signal/sigvec.c: Likewise.
6337         * signal/sigwait.c: Likewise.
6338         * signal/sigwaitinfo.c: Likewise.
6339         * signal/sysv_signal.c: Likewise.
6340         * socket/accept.c: Likewise.
6341         * socket/accept4.c: Likewise.
6342         * socket/bind.c: Likewise.
6343         * socket/connect.c: Likewise.
6344         * socket/getpeername.c: Likewise.
6345         * socket/getsockname.c: Likewise.
6346         * socket/getsockopt.c: Likewise.
6347         * socket/isfdtype.c: Likewise.
6348         * socket/listen.c: Likewise.
6349         * socket/recv.c: Likewise.
6350         * socket/recvfrom.c: Likewise.
6351         * socket/recvmsg.c: Likewise.
6352         * socket/send.c: Likewise.
6353         * socket/sendmsg.c: Likewise.
6354         * socket/sendto.c: Likewise.
6355         * socket/setsockopt.c: Likewise.
6356         * socket/shutdown.c: Likewise.
6357         * socket/sockatmark.c: Likewise.
6358         * socket/socket.c: Likewise.
6359         * socket/socketpair.c: Likewise.
6360         * stdio-common/ctermid.c: Likewise.
6361         * stdio-common/cuserid.c: Likewise.
6362         * stdio-common/remove.c: Likewise.
6363         * stdio-common/rename.c: Likewise.
6364         * stdio-common/renameat.c: Likewise.
6365         * stdio-common/tempname.c: Likewise.
6366         * stdlib/getcontext.c: Likewise.
6367         * stdlib/makecontext.c: Likewise.
6368         * stdlib/setcontext.c: Likewise.
6369         * stdlib/swapcontext.c: Likewise.
6370         * stdlib/system.c: Likewise.
6371         * streams/fattach.c: Likewise.
6372         * streams/fdetach.c: Likewise.
6373         * streams/getmsg.c: Likewise.
6374         * streams/getpmsg.c: Likewise.
6375         * streams/putmsg.c: Likewise.
6376         * streams/putpmsg.c: Likewise.
6377         * sysdeps/unix/bsd/getpt.c: Likewise.
6378         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
6379         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
6380         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
6381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
6382         Likewise.
6383         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
6384         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
6385         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
6386         * sysvipc/msgctl.c: Likewise.
6387         * sysvipc/msgget.c: Likewise.
6388         * sysvipc/msgrcv.c: Likewise.
6389         * sysvipc/msgsnd.c: Likewise.
6390         * sysvipc/semctl.c: Likewise.
6391         * sysvipc/semget.c: Likewise.
6392         * sysvipc/semop.c: Likewise.
6393         * sysvipc/semtimedop.c: Likewise.
6394         * sysvipc/shmat.c: Likewise.
6395         * sysvipc/shmctl.c: Likewise.
6396         * sysvipc/shmdt.c: Likewise.
6397         * sysvipc/shmget.c: Likewise.
6398         * termios/tcdrain.c: Likewise.
6399         * termios/tcflow.c: Likewise.
6400         * termios/tcflush.c: Likewise.
6401         * termios/tcgetattr.c: Likewise.
6402         * termios/tcgetpgrp.c: Likewise.
6403         * termios/tcsendbrk.c: Likewise.
6404         * termios/tcsetattr.c: Likewise.
6405         * termios/tcsetpgrp.c: Likewise.
6406         * time/adjtime.c: Likewise.
6407         * time/clock.c: Likewise.
6408         * time/getitimer.c: Likewise.
6409         * time/gettimeofday.c: Likewise.
6410         * time/setitimer.c: Likewise.
6411         * time/settimeofday.c: Likewise.
6412         * time/stime.c: Likewise.
6413         * time/time.c: Likewise.
6414
6415 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
6416
6417         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
6418         /usr/old/bin.
6419
6420         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
6421         instead of spaces.
6422         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
6423
6424 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
6425
6426         [BZ #14796]
6427         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
6428         FE_TONEAREST before applying Dekker multiplication and Knuth
6429         addition.  Clear inexact exceptions and check for exact zero
6430         results afterwards.
6431         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6432         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
6433         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6434         * math/libm-test.inc (fma_test): Add more tests.
6435         (fma_test_towardzero): Likewise.
6436         (fma_test_downward): Likewise.
6437         (fma_test_upward): Likewise.
6438         * sysdeps/generic/math_private.h (default_libc_fesetround): New
6439         function.
6440         (libc_fesetround): New macro.
6441         (libc_fesetroundf): Likewise.
6442         (libc_fesetroundl): Likewise.
6443         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
6444         function.
6445         (libc_fesetround_387): Likewise.
6446         (libc_fesetroundf): New macro.
6447         (libc_fesetround): Likewise.
6448         (libc_fesetroundl): Likewise.
6449         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
6450         function.
6451         (libc_fesetroundf): New macro.
6452         (libc_fesetround): Likewise.
6453         (libc_fesetroundl): Likewise.
6454         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
6455         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
6456         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
6457         libm_hidden_ver.
6458         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
6459         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
6460         libm_hidden_def.
6461         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
6462         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
6463         libm_hidden_ver.
6464         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
6465         libm_hidden_def.
6466
6467         [BZ #3439]
6468         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
6469         integer constant usable in #if and use that to give value to enum
6470         constant.
6471         (FE_DIVBYZERO): Likewise.
6472         (FE_UNDERFLOW): Likewise.
6473         (FE_OVERFLOW): Likewise.
6474         (FE_INVALID): Likewise.
6475         (FE_INVALID_SNAN): Likewise.
6476         (FE_INVALID_ISI): Likewise.
6477         (FE_INVALID_IDI): Likewise.
6478         (FE_INVALID_ZDZ): Likewise.
6479         (FE_INVALID_IMZ): Likewise.
6480         (FE_INVALID_COMPARE): Likewise.
6481         (FE_INVALID_SOFTWARE): Likewise.
6482         (FE_INVALID_SQRT): Likewise.
6483         (FE_INVALID_INTEGER_CONVERSION): Likewise.
6484         (FE_TONEAREST): Likewise.
6485         (FE_TOWARDZERO): Likewise.
6486         (FE_UPWARD): Likewise.
6487         (FE_DOWNWARD): Likewise.
6488         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
6489         (FE_DIVBYZERO): Likewise.
6490         (FE_OVERFLOW): Likewise.
6491         (FE_UNDERFLOW): Likewise.
6492         (FE_INEXACT): Likewise.
6493         (FE_TONEAREST): Likewise.
6494         (FE_DOWNWARD): Likewise.
6495         (FE_UPWARD): Likewise.
6496         (FE_TOWARDZERO): Likewise.
6497         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
6498         (FE_UNDERFLOW): Likewise.
6499         (FE_OVERFLOW): Likewise.
6500         (FE_DIVBYZERO): Likewise.
6501         (FE_INVALID): Likewise.
6502         (FE_TONEAREST): Likewise.
6503         (FE_TOWARDZERO): Likewise.
6504         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
6505         (FE_OVERFLOW): Likewise.
6506         (FE_UNDERFLOW): Likewise.
6507         (FE_DIVBYZERO): Likewise.
6508         (FE_INEXACT): Likewise.
6509         (FE_TONEAREST): Likewise.
6510         (FE_TOWARDZERO): Likewise.
6511         (FE_UPWARD): Likewise.
6512         (FE_DOWNWARD): Likewise.
6513         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
6514         (FE_DIVBYZERO): Likewise.
6515         (FE_OVERFLOW): Likewise.
6516         (FE_UNDERFLOW): Likewise.
6517         (FE_INEXACT): Likewise.
6518         (FE_TONEAREST): Likewise.
6519         (FE_DOWNWARD): Likewise.
6520         (FE_UPWARD): Likewise.
6521         (FE_TOWARDZERO): Likewise.
6522
6523 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
6524
6525         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
6526
6527 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
6528
6529         * scripts/cross-test-ssh.sh (command): Use newlines to separate
6530         commands.  Quote $PWD.
6531         (blacklist_exports): Don't use remove_newlines.  Replace "declare
6532         -x" by "export".
6533         (remove_newlines): Remove.
6534
6535 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
6536
6537         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
6538         * stdlib/stdlib.h (atof): Moved to ...
6539         * include/bits/stdlib-float.h: Here.  New file.
6540         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
6541         * stdlib/bits/stdlib-float.h: New file.
6542         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
6543         -mno-sse -mno-mmx.
6544         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
6545         <xmmintrin.h>.
6546
6547 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
6548
6549         * conform/conformtest.pl (@headers): Add fenv.h.
6550         * conform/data/fenv.h-data: New file.
6551         * include/fenv.h [_ISOMAC]: Disable all contents of file except
6552         include of <math/fenv.h>.
6553
6554         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
6555         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
6556         && !UNIX98].  Enables tests for XOPEN2K8.
6557         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
6558         POSIX2008]: Likewise.
6559
6560         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
6561         (struct rusage): Do not expect type or its members.
6562
6563         [BZ #3439]
6564         * math/math.h (FP_NAN): Define macro to integer constant usable in
6565         #if and use that to give value to enum constant.
6566         (FP_INFINITE): Likewise.
6567         (FP_ZERO): Likewise.
6568         (FP_SUBNORMAL): Likewise.
6569         (FP_NORMAL): Likewise.
6570
6571 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
6572
6573         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
6574         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
6575         arguments.
6576
6577 2012-11-02  Roland McGrath  <roland@hack.frob.com>
6578
6579         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
6580         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
6581         autoconf-time if not.
6582         * configure.in: Remove AC_PREREQ.
6583
6584 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6585
6586         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
6587         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
6588         of the internal implementation.
6589
6590 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
6591
6592         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
6593         except include of <misc/sys/syslog.h>.
6594
6595 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
6596
6597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
6598         function returns with a NULL context exit with zero.
6599
6600 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6601
6602         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
6603
6604 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
6605
6606         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
6607         (run_program_cmd): This.
6608         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
6609         (tst_langinfo): New variable.  Use it.
6610
6611 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
6612
6613         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
6614         floating point opcodes.
6615
6616 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
6617
6618         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
6619         variable.
6620
6621         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
6622
6623         * sysdeps/mach/hurd/powerpc: Remove directory.
6624         * sysdeps/mach/powerpc: Likewise.
6625
6626 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
6627
6628         * scripts/check-local-headers.sh: Ignore c++ headers.
6629
6630 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
6631
6632         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
6633         __libc_cleanup_region_start argument.
6634
6635 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
6636
6637         [BZ #14784]
6638         [BZ #14785]
6639         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
6640         x * y using scaling, not as x * y + z.
6641         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6642         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6643         * math/libm-test.inc (fma_test): Add more tests.
6644         (fma_test_towardzero): Likewise.
6645         (fma_test_downward): Likewise.
6646         (fma_test_upward): Likewise.
6647
6648 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
6649
6650         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
6651
6652 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
6653
6654         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
6655         New variable.
6656
6657 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
6658
6659         * rt/tst-shm.c (worker): Correct checking for mmap failure.
6660
6661 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
6662
6663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6664         Fix sort order.
6665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6666         Likewise.
6667
6668 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6669
6670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6671         Fix the order of the list for glibc 2.17.
6672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6673         Likewise.
6674
6675 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
6676
6677         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6678
6679 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
6680
6681         [BZ #14610]
6682         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
6683         for low part of x being zero before using __atanl (y).
6684         * math/libm-test.inc (atan2_test): Add another test.
6685
6686         * manual/install.texi (Configuring and compiling): Document
6687         general use of test-wrapper and test-wrapper-env.
6688         * INSTALL: Regenerated.
6689
6690         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
6691         (__fma): Do not extract and scale down low bits on after-rounding
6692         systems when result rounded to normal precision would have normal
6693         exponent.
6694         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
6695         (__fmal): Do not extract and scale down low bits on after-rounding
6696         systems when result rounded to normal precision would have normal
6697         exponent.
6698         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
6699         (__fmal): Do not extract and scale down low bits on after-rounding
6700         systems when result rounded to normal precision would have normal
6701         exponent.
6702         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
6703         macro.
6704         (fma_test): Add more tests.
6705         (fma_test_towardzero): Likewise.
6706         (fma_test_downward): Likewise.
6707         (fma_test_upward): Likewise.
6708
6709 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
6710
6711         * sysdeps/i386/tininess.h: Renamed to ...
6712         * sysdeps/x86/tininess.h: This.
6713         * sysdeps/x86_64/tininess.h: Removed.
6714
6715 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
6716
6717         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
6718         input.  Use $(build-program-cmd).
6719         ($(objpfx)tst-array1-static.out): Likewise.
6720         ($(objpfx)tst-array2.out): Likewise.
6721         ($(objpfx)tst-array3.out): Likewise.
6722         ($(objpfx)tst-array4.out): Likewise.
6723         ($(objpfx)tst-array5.out): Likewise.
6724         ($(objpfx)tst-array5-static.out): Likewise.
6725
6726 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
6727
6728         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
6729         if defined.
6730
6731         * nss/nsswitch.h (nss_interface_function): Provide new
6732         macro for use with NSS functions.
6733         * grp/initgroups.c: Use new macro.
6734         * nss/getXXbyYY.c: Likewise.
6735         * nss/getXXbyYY_r.c: Likewise.
6736         * nss/getXXent.c: Likewise.
6737         * nss/getXXent_r.c: Likewise.
6738         * sysdeps/posix/getaddrinfo.c: Likewise.
6739
6740 2012-10-30  Andreas Jaeger  <aj@suse.de>
6741
6742         * po/ru.po: Update Russion translation from translation project.
6743
6744 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
6745
6746         [BZ #14152]
6747         [BZ #14783]
6748         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
6749         result and shift together with sticky bit instead of replicating
6750         round-to-nearest rounding.
6751         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6752         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6753         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
6754         missing underflow exceptions.
6755         (fma_test_towardzero): Add more tests.
6756         (fma_test_downward): Likewise.
6757         (fma_test_upward): Likewise.
6758
6759         [BZ #14047]
6760         * sysdeps/generic/tininess.h: New file.
6761         * sysdeps/i386/tininess.h: Likewise.
6762         * sysdeps/sh/tininess.h: Likewise.
6763         * sysdeps/x86_64/tininess.h: Likewise.
6764         * stdlib/tst-strtod-underflow.c: Likewise.
6765         * stdlib/tst-tininess.c: Likewise.
6766         * stdlib/strtod_l.c: Include <tininess.h>.
6767         (round_and_return): Do not set errno for exact underflow cases.
6768         Force an underflow exception when setting errno for underflow.
6769         Determine underflow based on rounding to normal precision if
6770         TININESS_AFTER_ROUNDING.
6771         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
6772         ERANGE for exact underflow cases.
6773         * stdlib/Makefile (tests): Add tst-tininess and
6774         tst-strtod-underflow.
6775         ($(objpfx)tst-tininess): Use $(link-libm).
6776         ($(objpfx)tst-strtod-underflow): Likewise.
6777
6778 2012-10-30  Andreas Jaeger  <aj@suse.de>
6779
6780         [BZ#14767]
6781         * elf/Makefile (tests): Remove conditional for have-initfini-array
6782         since this is now always required and the variable does not exist
6783         anymore.
6784         (tests-static): Likewise.
6785         (modules-names): Likewise.
6786
6787         * po/eo.po: Add Esperanto translation from translation project.
6788
6789         * elf/tst-array1.c (fini_array): Make writeable so that it can be
6790         merged with constructor/destructor.
6791         (init_array): Likewise.
6792         * elf/tst-array2dep.c (fini_array): Likewise.
6793         (init_array): Likewise.
6794
6795 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
6796
6797         * manual/message.texi: Delete @cartouche tags.
6798
6799 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
6800
6801         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
6802         EOPNOTSUPP.
6803         * sysdeps/mach/hurd/fsync.c: Likewise.
6804
6805         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
6806         [_POSIX_REALTIME_SIGNALS]: Change condition to
6807         [_POSIX_REALTIME_SIGNALS > 0].
6808
6809 2012-10-27  Andreas Jaeger  <aj@suse.de>
6810
6811         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
6812         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
6813         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
6814         [__WORDSIZE != 64]: Likewise.
6815
6816 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
6817
6818         *  iconvdata/tst-table.sh: Remove ${SHELL}.
6819         *  iconvdata/tst-tables.sh: Likewise.
6820
6821 2012-10-25  David S. Miller  <davem@davemloft.net>
6822
6823         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6824         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
6825         of strtoull.
6826
6827         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
6828         ifunc-impl-list.c
6829         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
6830         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
6831         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
6832         file.
6833
6834 2012-10-25  Roland McGrath  <roland@hack.frob.com>
6835
6836         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6837         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
6838         __getdirentries.
6839
6840 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
6841             Jim Blandy  <jimb@codesourcery.com>
6842
6843         * scripts/cross-test-ssh.sh: New file.
6844         * manual/install.texi (Configuring and compiling): Document use of
6845         cross-test-ssh.sh.
6846         * INSTALL: Regenerated.
6847
6848 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
6849
6850         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
6851         EOPNOTSUPP.
6852
6853 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
6854
6855         * Makeconfig (run-program-prefix): Fix comment.
6856
6857 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
6858             Jim Blandy  <jimb@codesourcery.com>
6859
6860         * Makeconfig (test-wrapper): New variable,
6861         (test-wrapper-env): Likewise.
6862         [$(cross-compiling) = yes && $(test-wrapper) != ""]
6863         (run-built-tests): Define to yes.
6864         (run-program-prefix): Use $(test-wrapper).
6865         (built-program-cmd): Likewise.
6866         * Rules (make-test-out): Use $(test-wrapper-env) and
6867         $(host-built-program-cmd).
6868         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
6869         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
6870         tst-pathopt.sh.
6871         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
6872         $(test-wrapper-env) to tst-rtld-load-self.sh.
6873         ($(objpfx)order2.out): Use $(test-wrapper).
6874         ($(objpfx)tst-initorder.out): Likewise.
6875         ($(objpfx)tst-initorder2.out): Likewise.
6876         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
6877         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
6878         (test_wrapper_env): New variable.  Use it to run ld.so.
6879         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
6880         Use it to run ld.so.
6881         (test_wrapper_env): Likewise.
6882         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
6883         $(test-wrapper) to run-iconv-test.sh.
6884         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
6885         (ICONV): Use $test_wrapper.
6886         * posix/Makefile ($(objpfx)globtest.out): Pass
6887         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
6888         globtest.sh, not $(run-program-prefix).
6889         * posix/globtest.sh (run_via_rtld_prefix): New variable.
6890         (test_wrapper): Likewise.
6891         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
6892         set together with run_via_rtld_prefix.
6893         (run_program_prefix): Define in terms of test_wrapper and
6894         run_via_rtld_prefix.
6895
6896 2012-10-24  Roland McGrath  <roland@hack.frob.com>
6897
6898         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
6899         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
6900         Targets removed.
6901
6902         [BZ #14743]
6903         * include/time.h: Remove librt_hidden_proto (clock_gettime).
6904         Declare __clock_getres, __clock_gettime, __clock_settime,
6905         __clock_nanosleep, and __clock_getcpuclockid.
6906         * rt/clock_gettime.c: Define __clock_gettime as an alias.
6907         Remove librt_hidden_def (clock_gettime).
6908         * sysdeps/unix/clock_gettime.c: Likewise.
6909         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
6910         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
6911         * rt/clock_getres.c: Define __clock_getres as an alias.
6912         * sysdeps/posix/clock_getres.c: Likewise.
6913         * rt/clock_settime.c: Define __clock_settime as an alias.
6914         * sysdeps/unix/clock_settime.c: Likewise.
6915         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
6916         * sysdeps/unix/clock_nanosleep.c: Likewise.
6917         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
6918         * rt/clock-compat.c: New file.
6919         * rt/Makefile (librt-routines): Add clock-compat and move
6920         $(clock-routines) to ...
6921         (routines): ... here, new variable.
6922         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
6923         Don't add get_clockfreq here.
6924         * rt/Versions (libc: GLIBC_2.17): New version set.
6925         Add clock_* symbols here.
6926         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
6927         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
6928         (GLIBC_2.17): Add clock_* symbols.
6929         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
6930         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
6931         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
6932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6933         Likewise.
6934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6935         Likewise.
6936         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
6937         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
6938         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
6939         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
6940         * NEWS: Mention the move.
6941
6942         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
6943         Use __open, __read, __close rather than their public counterparts.
6944         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6945         (__get_clockfreq_via_cpuinfo): Likewise.
6946         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
6947         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
6948
6949         * config.h.in (HAVE_IFUNC): New #undef.
6950         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
6951         was successful.
6952         * configure: Regenerated.
6953
6954 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
6955
6956         * configure.in: Move READELF check to start of file.
6957         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
6958         libc_cv_asm_gnu_indirect_function in the process.
6959         * configure: Regenerated.
6960
6961 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
6962
6963         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
6964         send the output to /dev/null.
6965         (libc_cv_cc_with_libunwind): Likewise.
6966         (libc_cv_as_noexecstack): Likewise.
6967         * configure: Regenerate.
6968
6969 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
6970
6971         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
6972
6973         * posix/globtest.sh (TMPDIR): Do not set.
6974         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
6975         (testout): Likewise.
6976
6977 2012-10-24  Andreas Jaeger  <aj@suse.de>
6978
6979         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
6980         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
6981         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
6982         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
6983         posix_fadvise64, posix_fallocate64.
6984
6985         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
6986         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
6987         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
6988         Likewise.
6989         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
6990         Likewise.
6991         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
6992
6993         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
6994         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
6995         <bits/fcntl-linux.h>.
6996         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
6997
6998         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
6999         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
7000         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
7001         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
7002         [__WORDSIZE != 64]: Likewise.
7003
7004 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
7005
7006         * Makeconfig (run-built-tests): New variable.
7007         * Rules [$(cross-compiling) = yes]: Change condition to
7008         [$(run-built-tests) = no].
7009         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
7010         to [$(run-built-tests) = yes].
7011         * elf/Makefile [$(cross-compiling) = no]: Likewise
7012         * grp/Makefile [$(cross-compiling) = no]: Likewise.
7013         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
7014         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
7015         * intl/Makefile [$(cross-compiling) = no]: Likewise.
7016         * io/Makefile [$(cross-compiling) = no]: Likewise.
7017         * libio/Makefile [$(cross-compiling) = no]: Likewise.
7018         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
7019         * misc/Makefile [$(cross-compiling) = no]: Likewise.
7020         * posix/Makefile [$(cross-compiling) = no]: Likewise.
7021         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
7022         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
7023         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
7024         * string/Makefile [$(cross-compiling) = no]: Likewise.
7025
7026         * posix/Makefile ($(objpfx)globtest.out): Pass
7027         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
7028         $(rtld-installed-name).
7029         * posix/globtest.sh (elf_objpfx): Remove variable.
7030         (rtld_installed_name): Likewise.
7031         (library_path): Likewise.
7032         (run_program_prefix): New variable.  Use for running globtest
7033         binary.
7034
7035 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
7036             Joseph Myers  <joseph@codesourcery.com>
7037
7038         * Makeconfig (host-built-program-cmd): New variable.
7039         * elf/Makefile (tst-stackguard1-ARGS): Use
7040         $(host-built-program-cmd).
7041         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
7042         (tst-spawn-ARGS): Likewise.
7043         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
7044
7045 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
7046             Jim Blandy  <jimb@codesourcery.com>
7047
7048         * Makeconfig (run-via-rtld-prefix): New variable.
7049         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
7050         (built-program-cmd): Likewise.
7051
7052 2012-10-22  Andreas Jaeger  <aj@suse.de>
7053
7054         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
7055         __O_RSYNC if it exists, otherwise to O_SYNC.
7056
7057 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
7058             Joseph Myers  <joseph@codesourcery.com>
7059
7060         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
7061         /dev/null.
7062         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
7063         from /dev/null
7064         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
7065         /dev/null.
7066
7067 2012-10-22  Andreas Jaeger  <aj@suse.de>
7068
7069         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
7070         Define always.
7071         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
7072
7073         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7074         bits/fcntl-linux.h.
7075
7076         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
7077         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
7078
7079         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
7080         to __O_LARGEFILE.
7081         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
7082         to __O_LARGEFILE.
7083
7084 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
7085             Joseph Myers  <joseph@codesourcery.com>
7086
7087         * config.make.in (NM): New variable.
7088
7089 2012-10-21  Andreas Jaeger  <aj@suse.de>
7090
7091         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
7092         definitions and declarations that are provided by
7093         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
7094
7095 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7096
7097         [BZ #14683]
7098         * elf/Makefile (tests-static): Add tst-leaks1-static.
7099         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
7100         ($(objpfx)tst-leaks1-static): New rule.
7101         ($(objpfx)tst-leaks1-static-mem): Likewise.
7102         (tst-leaks1-static-ENV): New macro.
7103         * elf/dl-open.c (dl_open_worker): Check the main application
7104         only if SHARED is defined.
7105         * elf/tst-leaks1-static.c: New file.
7106
7107 2012-10-20  Andreas Jaeger  <aj@suse.de>
7108
7109         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
7110         generic values for Linux.
7111         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
7112         and declarations that are provided by <bits/fcntl-linux.h> and
7113         include <bits/fcntl-linux.h>.
7114         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7115         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7116
7117 2012-10-20  Roland McGrath  <roland@hack.frob.com>
7118
7119         * io/fcntl.h: Move include of <bits/types.h> to the top and
7120         include it unconditionally.
7121
7122 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7123
7124         * wcsmbs/Makefile (tests-ifunc): New variable.
7125         (tests): Add $(tests-ifunc).
7126         * wcsmbs/test-wcschr-ifunc.c: New file.
7127         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
7128         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
7129         * wcsmbs/test-wcslen-ifunc.c: Likewise.
7130         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
7131         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
7132
7133         * string/Makefile (tests-ifunc): New variable.
7134         (tests): Add $(tests-ifunc).
7135         * string/test-memccpy.c (TEST_NAME): New macro.
7136         * string/test-memchr.c (TEST_NAME): Likewise.
7137         * string/test-memcmp.c (TEST_NAME): Likewise.
7138         * string/test-memcpy.c (TEST_NAME): Likewise.
7139         * string/test-memmem.c (TEST_NAME): Likewise.
7140         * string/test-memmove.c (TEST_NAME): Likewise.
7141         * string/test-memset.c (TEST_NAME): Likewise.
7142         * string/test-rawmemchr.c (TEST_NAME): Likewise.
7143         * string/test-stpcpy.c (TEST_NAME): Likewise.
7144         * string/test-stpncpy.c (TEST_NAME): Likewise.
7145         * string/test-strcasecmp.c (TEST_NAME): Likewise.
7146         * string/test-strcasestr.c (TEST_NAME): Likewise.
7147         * string/test-strcat.c (TEST_NAME): Likewise.
7148         * string/test-strchr.c (TEST_NAME): Likewise.
7149         * string/test-strcmp.c(TEST_NAME): Likewise.
7150         * string/test-strcpy.c (TEST_NAME): Likewise.
7151         * string/test-strcspn.c (TEST_NAME): Likewise.
7152         * string/test-strlen.c (TEST_NAME): Likewise.
7153         * string/test-strncasecmp.c (TEST_NAME): Likewise.
7154         * string/test-strncmp.c (TEST_NAME): Likewise.
7155         * string/test-strncpy.c (TEST_NAME): Likewise.
7156         * string/test-strnlen.c (TEST_NAME): Likewise.
7157         * string/test-strpbrk.c (TEST_NAME): Likewise.
7158         * string/test-strrchr.c (TEST_NAME): Likewise.
7159         * string/test-strspn.c (TEST_NAME): Likewise.
7160         * string/test-strstr.c (TEST_NAME): Likewise.
7161         * string/test-bcopy-ifunc.c: New file.
7162         * string/test-bzero-ifunc.c: Likewise.
7163         * string/test-memccpy-ifunc.c: Likewise.
7164         * string/test-memchr-ifunc.c: Likewise.
7165         * string/test-memcmp-ifunc.c: Likewise.
7166         * string/test-memcpy-ifunc.c: Likewise.
7167         * string/test-memmem-ifunc.c: Likewise.
7168         * string/test-memmove-ifunc.c: Likewise.
7169         * string/test-mempcpy-ifunc.c: Likewise.
7170         * string/test-memset-ifunc.c: Likewise.
7171         * string/test-rawmemchr-ifunc.c: Likewise.
7172         * string/test-stpcpy-ifunc.c: Likewise.
7173         * string/test-stpncpy-ifunc.c: Likewise.
7174         * string/test-strcasecmp-ifunc.c: Likewise.
7175         * string/test-strcasestr-ifunc.c: Likewise.
7176         * string/test-strcat-ifunc.c: Likewise.
7177         * string/test-strchr-ifunc.c: Likewise.
7178         * string/test-strchrnul-ifunc.c: Likewise.
7179         * string/test-strcmp-ifunc.c: Likewise.
7180         * string/test-strcpy-ifunc.c: Likewise.
7181         * string/test-strcspn-ifunc.c: Likewise.
7182         * string/test-strlen-ifunc.c: Likewise.
7183         * string/test-strncasecmp-ifunc.c: Likewise.
7184         * string/test-strncat-ifunc.c: Likewise.
7185         * string/test-strncmp-ifunc.c: Likewise.
7186         * string/test-strncpy-ifunc.c: Likewise.
7187         * string/test-strnlen-ifunc.c: Likewise.
7188         * string/test-strpbrk-ifunc.c: Likewise.
7189         * string/test-strrchr-ifunc.c: Likewise.
7190         * string/test-strspn-ifunc.c: Likewise.
7191         * string/test-strstr-ifunc.c: Likewise.
7192
7193         * debug/Makefile (tests-ifunc): New variable.
7194         (tests): Add $(tests-ifunc).
7195         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
7196         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
7197         * debug/test-stpcpy_chk-ifunc.c: New file.
7198         * debug/test-strcpy_chk-ifunc.c: Likewise.
7199
7200 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
7201
7202         [BZ #13601]
7203         * elf/dl-load.c (open_verify): Retry read if the entire ELF
7204         header is not read in.
7205
7206 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
7207
7208         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
7209         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
7210         directly.  Pass built executable to script as
7211         $(built-program-cmd).
7212         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
7213         $testprogram without using LD_LIBRARY_PATH and $ldso.
7214
7215         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
7216         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
7217         $(rtld-installed-name).
7218         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
7219         (rtld_installed_name): Likewise.
7220         (library_path): Likewise.
7221         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
7222         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
7223         $(run-program-prefix) to tst-tables.sh.
7224         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
7225         it to run tst-table-from and tst-table-to.
7226         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
7227         Pass it to tst-table.sh.
7228         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
7229         $(run-program-prefix) to tst-gettext.sh.
7230         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
7231         tst-translit.sh.
7232         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
7233         tst-gettext2.sh.
7234         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
7235         to run tst-gettext.
7236         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
7237         to run tst-gettext2.
7238         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
7239         to run tst-translit.
7240         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
7241         $(run-program-prefix) to tst-mtrace.sh.
7242         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
7243         to run tst-mtrace.
7244         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
7245         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
7246         $(rtld-installed-name).
7247         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
7248         (rtld_installed_name): Likewise.
7249         (run_program_prefix): New variable.  Use it to run wordexp-test.
7250
7251         * Makeconfig (ARCH): Remove all definitions.
7252         (machine): Likewise.
7253         [ARCH]: Remove conditional code.
7254         [!objdir]: Give error.
7255         [!objdir] (objpfx): Remove.
7256         [!objdir] (common-objpfx): Likewise.
7257         [!objdir] (common-objdir): Likewise.
7258         * configure.in (config_makefile): Remove.  Hardcode Makefile in
7259         AC_CONFIG_FILES call.
7260         * configure: Regenerated.
7261
7262         [BZ #13888]
7263         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
7264         or TMPDIR.
7265         (testout): Likewise.
7266
7267         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
7268         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
7269         $(rtld-installed-name).
7270         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
7271         (rtld_installed_name): Likwise.
7272         (runit): Remove function.
7273         (run_getconf): New variable,  Use it for running getconf binary.
7274
7275 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
7276
7277         [BZ #14716]
7278         * string/test-memmem.c (check_result): New function.
7279         (do_one_test): Use it.
7280         (check1): New function.
7281         (test_main): Use it.
7282
7283 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
7284
7285         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
7286
7287 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
7288
7289         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
7290         (_G_LSEEK64): Likewise.
7291         (_G_MMAP64): Likewise.
7292         (_G_FSTAT64): Likewise.
7293         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
7294         (_G_LSEEK64): Likewise.
7295         (_G_MMAP64): Likewise.
7296         (_G_FSTAT64): Likewise.
7297         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
7298         unconditional.  Call __mmap64 directly.
7299         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
7300         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
7301         __lseek64 directly.
7302         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
7303         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
7304         __mmap64 directly.
7305         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
7306         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
7307         __lseek64 directly.
7308         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
7309         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
7310         __lseek64 directly.
7311         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
7312         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
7313         __lseek64 directly.
7314         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
7315         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
7316         __fxstat64 directly.
7317         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
7318         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
7319         unconditional.
7320         (freopen64) [!_G_OPEN64]: Remove conditional code.
7321         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
7322         unconditional.
7323         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
7324         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
7325         unconditional.
7326         (ftello64) [!_G_LSEEK64]: Remove conditional code.
7327         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
7328         unconditional.
7329         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
7330         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
7331         unconditional.
7332         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
7333         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
7334         unconditional.
7335         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
7336         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
7337         unconditional.
7338         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
7339         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
7340         unconditional.
7341         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
7342
7343 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
7344
7345         [BZ #12140]
7346         * manual/memory.texi (Malloc Tunable Parameters): Add note
7347         about free list pointers overwriting some perturb bytes.
7348         Wording suggested by Roland McGrath.
7349
7350 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
7351
7352         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
7353         (lgamma_test): Likewise.
7354         (tgamma_test): Likewise.
7355
7356 2012-10-16  Florian Weimer  <fweimer@redhat.com>
7357
7358         [BZ #14700]
7359         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
7360         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
7361
7362 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
7363
7364         * NEWS: Mention BZ #14716.
7365         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
7366         when removing AVAILABLE1_USES_J macro.
7367
7368 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
7369
7370         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
7371         (__bswap_64): __uint64_t for unsigned 64-bit int.
7372
7373 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
7374
7375         * include/string.h (memmem): Declare libc hidden alias.
7376         * string/memmem.c (memmem): Define libc hidden alias.
7377         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
7378         __read, __close instead of open, read, close.
7379
7380 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
7381
7382         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
7383         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
7384         global and hidden.
7385         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
7386         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
7387         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
7388         Likewise.
7389         (__rawmemchr_sse2): Likewise.
7390         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
7391         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
7392         (__strchr_sse2): Likewise.
7393         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
7394         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
7395         (__strcasecmp_sse2): Likewise.
7396         (__strncasecmp_sse2): Likewise.
7397         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
7398         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
7399         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
7400         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
7401         (__strrchr_sse2): Likewise.
7402         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
7403         ifunc-impl-list.c.
7404         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
7405         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
7406         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
7407         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
7408         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
7409         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
7410         * sysdeps/x86_64/multiarch/memset.S: Likewise.
7411         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
7412         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
7413         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
7414         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
7415         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
7416         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
7417         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
7418         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
7419         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
7420         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
7421         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
7422         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
7423         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
7424         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
7425         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
7426         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
7427         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
7428         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
7429         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
7430         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
7431         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
7432         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
7433         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
7434
7435         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
7436         global and hidden.
7437         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
7438         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
7439         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
7440         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
7441         Likewise.
7442         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
7443         Likewise.
7444         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
7445         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
7446         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
7447         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
7448         ifunc-impl-list.c.
7449         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
7450         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
7451         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
7452         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
7453         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
7454         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
7455         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
7456         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
7457         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
7458         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
7459         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
7460         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
7461         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
7462         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
7463         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
7464         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
7465         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
7466         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
7467         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
7468         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
7469         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7470         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
7471         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
7472         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
7473         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7474         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
7475         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
7476         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
7477         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
7478         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
7479         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
7480         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
7481         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
7482         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
7483         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
7484         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
7485         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
7486         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
7487         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
7488         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
7489         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
7490
7491         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
7492         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
7493         * include/ifunc-impl-list.h: New file.
7494         * misc/ifunc-impl-list.c: Likewise.
7495         * misc/Makefile (routines): Add ifunc-impl-list.
7496         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
7497         * string/test-string.h: Include <ifunc-impl-list.h>.
7498         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
7499         impl_array): New variables.
7500         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
7501         are defined.
7502         (test_init): Call __libc_ifunc_impl_list to initialize
7503         func_list if TEST_IFUNC and TEST_NAME are defined.
7504
7505         * string/Makefile (strop-tests): Add bcopy and bzero.
7506         * string/test-bcopy.c: New file.
7507         * string/test-bzero.c: Likewise.
7508         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
7509         defined.
7510         * string/test-memset.c: Support bzero test if TEST_BZERO is
7511         defined.
7512         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
7513         __libc_memmove.
7514         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
7515         __libc_memset.
7516         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
7517         of memset.
7518
7519 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
7520
7521         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
7522         * configure: Regenerated.
7523
7524         * Makeconfig (+link-static-before-libc): Don't include
7525         $(link-static-libc).
7526
7527         * libio/libio.h (_IO_pos_t): Remove.
7528
7529 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
7530
7531         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
7532         McGrath.
7533
7534 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
7535
7536         * crypt/crypt-entry.c: Include fips-private.h.
7537         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
7538         * crypt/md5c-test.c (main): Tolerate disabled MD5.
7539         * sysdeps/unix/sysv/linux/fips-private.h: New file.
7540         * sysdeps/generic/fips-private.h: New file, dummy fallback.
7541
7542 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
7543
7544         * crypt/crypt-private.h: Include stdbool.h.
7545         (_ufc_setup_salt_r): Return bool.
7546         * crypt/crypt-entry.c: Include errno.h.
7547         (__crypt_r): Return NULL with EINVAL for bad salt.
7548         * crypt/crypt_util.c (bad_for_salt): New.
7549         (_ufc_setup_salt_r): Check that salt is long enough and within
7550         the specified alphabet.
7551         * crypt/badsalttest.c: New file.
7552         * crypt/Makefile (tests): Add it.
7553         ($(objpfx)badsalttest): New.
7554
7555 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
7556
7557         * NEWS: Add entry for BZ #14602.
7558
7559 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
7560
7561         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
7562         type-generic.
7563         * math/libm-test.inc: Update comment listing what functions and
7564         macros are tested.
7565         (isgreater_test): New function.
7566         (isgreaterequal_test): Likewise.
7567         (isless_test): Likewise.
7568         (islessequal_test): Likewise.
7569         (islessgreater_test): Likewise.
7570         (isunordered_test): Likewise.
7571         (main): Call the new functions.
7572
7573 2012-10-09  Roland McGrath  <roland@hack.frob.com>
7574
7575         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
7576         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
7577         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
7578         * sysdeps/i386/configure: Regenerated.
7579         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
7580         * sysdeps/mach/configure: Regenerated.
7581         * sysdeps/mach/hurd/configure: Regenerated.
7582         * sysdeps/powerpc/configure: Regenerated.
7583         * sysdeps/powerpc/powerpc32/configure: Regenerated.
7584         * sysdeps/powerpc/powerpc64/configure: Regenerated.
7585         * sysdeps/s390/s390-32/configure: Regenerated.
7586         * sysdeps/s390/s390-64/configure: Regenerated.
7587         * sysdeps/sh/configure: Regenerated.
7588         * sysdeps/sparc/configure: Regenerated.
7589         * sysdeps/unix/sysv/linux/configure: Regenerated.
7590         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
7591         * sysdeps/x86_64/configure: Regenerated.
7592
7593         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
7594         defined.  Don't check if MAP is NULL.
7595
7596 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
7597
7598         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
7599         (_G_stat64): Likewise.
7600         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
7601         (_G_stat64): Likewise.
7602         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
7603         instead of struct _G_stat64.
7604         * libio/fileops.c (mmap_remap_check): Likewise.
7605         (decide_maybe_mmap): Likewise.
7606         (_IO_new_file_seekoff): Likewise.
7607         (_IO_file_stat): Likewise.
7608         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
7609         _G_off64_t.
7610         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
7611         instead of struct _G_stat64.
7612         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
7613
7614 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
7615
7616         [BZ #14602]
7617         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
7618         Replace with ...
7619         (CHECK_EOL): New macro.
7620         (two_way_short_needle): Check beginning of haystack for EOL.  Use
7621         CHECK_EOL.
7622         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
7623         Replace with CHECK_EOL.
7624         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
7625         Replace with CHECK_EOL.
7626
7627 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
7628
7629         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
7630         type-generic.
7631         * math/libm-test.inc: Update comment listing what functions and
7632         macros are tested.
7633         (finite_test): New function.
7634         (isinf_test): Likewise.
7635         (isnan_test): Likewise.
7636         (fpclassify_test): Test subnormal input.
7637         (isfinite_test): Likewise.
7638         (isnormal_test): Likewise.
7639         (main): Call the new functions.
7640
7641 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
7642
7643         [BZ #14660]
7644         * Makerules (%.dynsym): Force C locale when running
7645         $(OBJDUMP) --dynamic-syms.
7646
7647 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
7648
7649         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
7650         <stdint.h>.
7651
7652 2012-10-06  David S. Miller  <davem@davemloft.net>
7653
7654         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
7655         upper 32-bits of the length value in %o2 since we use branch-on-register
7656         tests which consider the entire 64-bit register.
7657
7658 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
7659
7660         * string/test-strstr.c (check2): Add a test for page boundary.
7661
7662 2012-10-05  David S. Miller  <davem@davemloft.net>
7663
7664         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
7665         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
7666         file.
7667         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
7668         sysdep_routines.
7669         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
7670         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
7671         and bzero when HWCAP_SPARC_CRYPTO is present.
7672
7673 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
7674
7675         [BZ #14602]
7676         * string/test-strstr.c (check2): New function.
7677         (test_main): Call check2.
7678
7679         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
7680         and bug-strchr1.
7681         * string/bug-strcasestr1.c (do_test): Moved to ...
7682         * string/test-strcasestr.c (check1): Here.  New function.
7683         (do_one_test): Break out result checking code into ...
7684         (check_result): This.  New function.
7685         (do_one_test): Call check_result.
7686         (test_main): Call check1.
7687         * string/bug-strchr1.c (do_test): Moved to ...
7688         * string/test-strchr.c (check1): Here.  New function.
7689         (do_one_test): Break out result checking code into ...
7690         (check_result): This.  New function.
7691         (do_one_test): Call check_result.
7692         (test_main): Call check1.
7693         * string/bug-strstr1.c (main): Moved to ...
7694         * string/test-strstr.c (check1): Here.  New function.
7695         (do_one_test): Break out result checking code into ...
7696         (check_result): This.  New function.
7697         (do_one_test): Call check_result.
7698         (test_main): Call check1.
7699         * string/bug-strcasestr1.c: Removed.
7700         * string/bug-strchr1.c: Likewise.
7701         * string/bug-strstr1.c: Likewise.
7702
7703         * elf/Makefile (dl-routines): Add hwcaps.
7704         * elf/dl-support.c (_dl_important_hwcaps): Removed.
7705         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
7706         (_dl_important_hwcaps): Moved to ...
7707         * elf/dl-hwcaps.c: Here.  New file.
7708         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
7709
7710         [BZ #14557]
7711         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
7712         if IS_IN_rtld isn't defined.
7713
7714         * elf/dl-support.c (_dl_sysinfo_map): New.
7715         Include "get-dynamic-info.h" and "setup-vdso.h".
7716         (_dl_non_dynamic_init): Call setup_vdso.
7717         * elf/dynamic-link.h: Don't include <assert.h>.
7718         (elf_get_dynamic_info): Moved to ...
7719         * elf/get-dynamic-info.h: Here.  New file.
7720         * elf/dynamic-link.h: Include "get-dynamic-info.h".
7721         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
7722         * elf/setup-vdso.h: Here.  New file.
7723         * elf/rtld.c: Include "setup-vdso.h".
7724         (dl_main): Call setup_vdso.
7725
7726 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
7727
7728         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
7729         creal in comment listing functions tested.  List finite, isinf,
7730         isnan, isless, islessequal, isgreater, isgreaterequal,
7731         islessgreater, isunordered, lgamma_r and pow10 as functions and
7732         macros not tested.  Mention which functions not tested are aliases
7733         for other functions.  Fix typo.  Note that signs of NaNs are not
7734         tested.
7735
7736         * scripts/config.guess: Update from config.git.
7737         * scripts/config.sub: Likewise.
7738
7739 2012-10-04  Roland McGrath  <roland@hack.frob.com>
7740
7741         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
7742         * misc/madvise.c (madvise): Renamed to __madvise.
7743         Make madvise a weak alias.
7744         * include/sys/mman.h: Declare __madvise.
7745         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
7746         * sysdeps/unix/syscalls.list
7747         (madvise): Make __madvise the strong name, and madvise a weak alias.
7748         * sysdeps/unix/sysv/linux/syscalls.list
7749         (madvise, mmap): Remove redundant entries.
7750         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
7751         * malloc/malloc.c (mtrim): Likewise.
7752         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
7753
7754 2012-10-03  Roland McGrath  <roland@hack.frob.com>
7755
7756         * sysdeps/mach/hurd/dl-cache.c: File removed.
7757         * config.h.in (USE_LDCONFIG): New #undef.
7758         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
7759         * configure: Regenerated.
7760         * elf/Makefile (dl-routines): Add dl-cache only under
7761         [$(use-ldconfig) = yes].
7762         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
7763         cache on [USE_LDCONFIG].
7764         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
7765         [USE_LDCONFIG].
7766         * elf/rtld.c (dl_main): Likewise.
7767
7768 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
7769
7770         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
7771         _SC_LEVEL4_CACHE_LINESIZE.
7772
7773 2012-10-03  Roland McGrath  <roland@hack.frob.com>
7774
7775         * sysdeps/unix/bsd/confstr.h: File removed.
7776
7777 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
7778
7779         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
7780         sys/sdt-config.h.
7781
7782 2012-10-02  Roland McGrath  <roland@hack.frob.com>
7783
7784         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
7785         Make 'mapoff' field ElfW(Off) rather than off_t.
7786
7787 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
7788
7789         * nscd/Makefile: Remove nscd-cflags and all its users.
7790         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
7791         (CFLAGS-nonlib): Add compiler flags for nscd modules.
7792
7793         [BZ #10631]
7794         * malloc.c (malloc_printerr): Clarify error message.
7795
7796 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
7797
7798         [BZ #14648]
7799         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7800         Set bit_FMA_Usable if FMA is supported.
7801         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
7802         macro.
7803         (bit_FMA4_Usable): Updated.
7804         (index_FMA_Usable): New macro.
7805         (CPUID_FMA): Likewise
7806         (HAS_FMA): Defined with bit_FMA_Usable.
7807
7808 2012-10-01  Roland McGrath  <roland@hack.frob.com>
7809
7810         * bits/types.h (__swblk_t): Type removed.
7811         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
7812         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
7813         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7814         (__SWBLK_T_TYPE): Likewise.
7815         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
7816         (__SWBLK_T_TYPE): Likewise.
7817         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7818         (__SWBLK_T_TYPE): Likewise.
7819         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7820         (__SWBLK_T_TYPE): Likewise.
7821
7822 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
7823             Honza Horak <hhorak@redhat.com>
7824
7825         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
7826         (xdr_mapname): Use YPMAXMAP as maxsize.
7827         (xdr_peername): Use YPMAXPEER as maxsize.
7828         (xdr_keydat): Use YPAXRECORD as maxsize.
7829         (xdr_valdat): Use YPMAXRECORD as maxsize.
7830
7831 2012-10-01  Roland McGrath  <roland@hack.frob.com>
7832
7833         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
7834
7835         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
7836         * csu/init-first.c: ... here.
7837         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
7838         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
7839         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
7840         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
7841         * sysdeps/i386/init-first.c: File removed.
7842         * sysdeps/sh/init-first.c: File removed.
7843
7844 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
7845
7846         [BZ #14645]
7847         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
7848         if x * y might underflow to zero and z is zero.
7849         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7850         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7851         * math/libm-test.inc (min_subnorm_value): New variable.
7852         (fma_test): Add more tests.
7853         (fma_test_towardzero): Likewise.
7854         (fma_test_downward): Likewise
7855         (fma_test_upward): Likewise.
7856         (initialize): Set min_subnorm_value.
7857
7858 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
7859
7860         [BZ #14638]
7861         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
7862         0 + 0.
7863         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
7864         mode for addition resulting in exact zero.
7865         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
7866         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
7867         exact 0 + 0.
7868         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
7869         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7870         * math/libm-test.inc (fma_test): Add more tests.
7871         (fma_test_towardzero): New function.
7872         (fma_test_downward): Likewise.
7873         (fma_test_upward): Likewise.
7874         (main): Call the new functions.
7875
7876 2012-09-28  David S. Miller  <davem@davemloft.net>
7877
7878         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
7879
7880 2012-09-28  Roland McGrath  <roland@hack.frob.com>
7881
7882         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
7883         instead of SIGALRM.
7884
7885         * sysdeps/gnu/_G_config.h: Moved to ...
7886         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
7887         * sysdeps/mach/hurd/_G_config.h: Moved to ...
7888         * sysdeps/generic/_G_config.h: ... here.
7889
7890         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
7891
7892         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
7893
7894         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
7895         Conditionalize target on [libnss_test1.so-version].
7896
7897         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
7898
7899         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
7900         (elfobjdir): Move out of conditionals.
7901
7902         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
7903         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
7904         (__nss_lookup_function): Conditionalize label remove_from_tree on
7905         [!DO_STATIC_NSS || SHARED], matching its only use.
7906
7907 2012-09-28  David S. Miller  <davem@davemloft.net>
7908
7909         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
7910         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
7911         file.
7912         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
7913         sysdep_routines.
7914         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
7915         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
7916         when HWCAP_SPARC_CRYPTO is present.
7917
7918 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
7919
7920         * io/tst-mknodat.c: Create a FIFO instead of a socket.
7921
7922 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
7923
7924         [BZ #6530]
7925         * stdio-common/vfprintf.c (process_string_arg): Revert
7926         2000-07-22 change.
7927
7928 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
7929
7930         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
7931         for testcase.
7932         * stdio-common/tst-sprintf.c: Include <locale.h>
7933         (main): Test sprintf's handling of incomplete multibyte
7934         characters.
7935
7936 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
7937
7938         * elf/dl-runtime.c (VERSYMIDX): Removed.
7939         * elf/dl-version.c (VERSYMIDX): Likewise.
7940         * elf/do-rel.h (VERSYMIDX): Likewise.
7941         (VALIDX): Likewise.
7942         * elf/dynamic-link.h (VERSYMIDX): Likewise.
7943         * elf/rtld.c (VALIDX): Likewise.
7944         (ADDRIDX): Likewise.
7945         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
7946         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
7947         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
7948         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
7949         (VALIDX): Likewise.
7950         (ADDRIDX): Likewise.
7951
7952 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
7953
7954         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
7955
7956 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
7957
7958         [BZ #11438]
7959         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
7960         to global scope.
7961         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
7962         addresses are in the same scope as 192.0.2/24.
7963         * posix/gai.conf: Document new scope table defaults.
7964
7965 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7966
7967         [BZ #5298]
7968         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
7969         for ftell.  Compute offsets from write pointers instead.
7970         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
7971
7972 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7973
7974         [BZ #14543]
7975         * libio/Makefile (tests): New test case tst-fseek.
7976         * libio/tst-fseek.c: New test case to verify that fseek/ftell
7977         combination works in wide mode.
7978         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
7979         state when the external buffer state changes.
7980
7981 2012-09-27  David S. Miller  <davem@davemloft.net>
7982
7983         [BZ #14376]
7984         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
7985         pass reloc->r_addend in as the 'high' argument to
7986         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
7987
7988         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7989
7990 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
7991
7992         * rt/tst-aio2.c: Include <pthread.h>.
7993         * rt/tst-aio3.c: Likewise.
7994
7995 2012-09-27  Steve Ellcey  <sellcey@mips.com>
7996
7997         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
7998
7999 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
8000
8001         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
8002         contents on [SHARED].
8003
8004 2012-09-26  Marek Polacek  <polacek@redhat.com>
8005
8006         [BZ #14530]
8007         [BZ #13741]
8008         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
8009         for C++ and GCC <4.3 as well as for non GCC compilers.
8010
8011 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
8012
8013         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8014
8015 2012-09-25  Roland McGrath  <roland@hack.frob.com>
8016
8017         * Makefile.in (all, install): Declare with .PHONY.
8018         Reported by Michael Hope <michael.hope@linaro.org>.
8019
8020 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8021
8022         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
8023         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
8024         system header.
8025         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
8026         Likewise.
8027         (sydep_routines): Add the new and the internal functions.
8028         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
8029         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
8030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
8031         (GLIBC_2.17): Add the new function.
8032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
8033         (GLIBC_2.17): Likewise.
8034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
8035         (GLIBC_2.17): Likewise.
8036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
8037         (GLIBC_2.17): Likewise.
8038         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
8039
8040 2012-09-25  Alan Modra  <amodra@gmail.com>
8041
8042         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
8043         Add release barrier before setting once_control to say
8044         initialisation is done.  Add hints on lwarx.  Use macro in
8045         place of isync.
8046         (clear_once_control): Add release barrier.
8047
8048 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
8049
8050         [BZ #13629]
8051         * math/s_clog.c (__clog): Handle more values close to |z| = 1
8052         specially.
8053         * math/s_clog10.c (__clog10): Likewise.
8054         * math/s_clog10f.c (__clog10f): Likewise.
8055         * math/s_clog10l.c (__clog10l): Likewise.
8056         * math/s_clogf.c (__clogf): Likewise.
8057         * math/s_clogl.c (__clogl): Likewise.
8058         * math/Makefile (libm-calls): Add x2y2m1.
8059         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
8060         (__x2y2m1): Likewise.
8061         (__x2y2m1l): Likewise.
8062         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
8063         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
8064         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
8065         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
8066         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
8067         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
8068         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
8069         * sysdeps/i386/fpu/libm-test-ulps: Update.
8070         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8071
8072         [BZ #14621]
8073         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
8074         int as type of variable DEPTH.
8075         (glob): Use size_t instead of int as type of variables NEWCOUNT
8076         and OLD_PATHC.
8077
8078 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8079
8080         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
8081         Add s_sincosf-sse2.
8082         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
8083         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
8084         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
8085         macros for using routine as __sincosf_ia32.
8086         Use macro for function declaration and weak_alias.
8087         * sysdeps/i386/fpu/libm-test-ulps: Update.
8088
8089         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
8090         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8091
8092         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
8093         subnormal argument.
8094         * math/s_cexpf.c (__cexpf): Likewise.
8095         * math/s_csinf.c (__csinf): Likewise.
8096         * math/s_csinhf.c (__csinhf): Likewise.
8097         * math/s_ctanf.c (__ctanf): Likewise.
8098         * math/s_ctanhf.c (__ctanhf): Likewise.
8099         * math/s_ccosh.c (__ccoshf): Likewise.
8100         * math/s_cexp.c (__cexpl): Likewise.
8101         * math/s_csin.c (__csin): Likewise.
8102         * math/s_csinh.c (__csinh): Likewise.
8103         * math/s_ctan.c (__ctan): Likewise.
8104         * math/s_ctanh.c (ctanh): Likewise.
8105         * math/s_ccoshl.c (__ccoshl): Likewise.
8106         * math/s_cexpl.c (__cexpl): Likewise.
8107         * math/s_csinl.c (__csinl): Likewise.
8108         * math/s_csinhl.c (__csinhl): Likewise.
8109         * math/s_ctanl.c (__ctanl): Likewise.
8110         * math/s_ctanhl.c (__ctanhl): Likewise.
8111
8112 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
8113
8114         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
8115         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
8116         (_IO_off_t): Define to __off_t, not _G_off_t.
8117         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
8118         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
8119         (_IO_wint_t): Define to wint_t, not _G_wint_t.
8120         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
8121         type of __dummy and __dummy2 fields.
8122         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
8123         (_G_ssize_t): Likewise.
8124         (_G_off_t): Likewise.
8125         (_G_pid_t): Likewise.
8126         (_G_uid_t): Likewise.
8127         (_G_wchar_t): Likewise.
8128         (_G_wint_t): Likewise.
8129         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
8130         (_G_ssize_t): Likewise.
8131         (_G_off_t): Likewise.
8132         (_G_pid_t): Likewise.
8133         (_G_uid_t): Likewise.
8134         (_G_wchar_t): Likewise.
8135         (_G_wint_t): Likewise.
8136         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
8137         (_G_ssize_t): Likewise.
8138         (_G_off_t): Likewise.
8139         (_G_pid_t): Likewise.
8140         (_G_uid_t): Likewise.
8141         (_G_wchar_t): Likewise.
8142         (_G_wint_t): Likewise.
8143
8144 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8145
8146         * malloc/arena.c: Include malloc-sysdep.h.
8147         (shrink_heap): Use check_may_shrink_heap to decide if madvise
8148         is sufficient to shrink the heap or an unmap is needed.
8149         * sysdeps/generic/malloc-sysdep.h: New file.  Define
8150         new function check_may_shrink_heap.
8151         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
8152         new function check_may_shrink_heap.
8153
8154 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8155
8156         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
8157         comments.
8158
8159 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
8160
8161         * catgets/test-gencat.sh: Add "set -e".
8162         * elf/tst-pathopt.sh: Likewise.
8163         * grp/tst_fgetgrent.sh: Likewise.
8164         * iconvdata/run-iconv-test.sh: Likewise.
8165         * intl/tst-gettext.sh: Likewise.
8166         * intl/tst-gettext2.sh: Likewise.
8167         * intl/tst-gettext4.sh: Likewise.
8168         * intl/tst-gettext6.sh: Likewise.
8169         * intl/tst-translit.sh: Likewise.
8170         * io/ftwtest-sh: Likewise.
8171         * libio/test-freopen.sh: Likewise.
8172         * malloc/tst-mtrace.sh: Likewise.
8173         * posix/globtest.sh: Likewise.
8174         * posix/tst-getconf.sh: Likewise.
8175         * posix/wordexp-tst.sh: Likewise.
8176         * stdio-common/tst-printf.sh: Likewise.
8177         * stdio-common/tst-unbputc.sh: Likewise.
8178         * stdlib/tst-fmtmsg.sh: Likewise.
8179         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
8180         * catgets/Makefile: Do not specify -e option when running
8181         testsuite shell scripts.
8182         * elf/Makefile: Likewise.
8183         * grp/Makefile: Likewise.
8184         * iconvdata/Makefile: Likewise.
8185         * intl/Makefile: Likewise.
8186         * io/Makefile: Likewise.
8187         * libio/Makefile: Likewise.
8188         * malloc/Makefile: Likewise.
8189         * posix/Makefile: Likewise.
8190         * stdio-common/Makefile: Likewise.
8191         * stdlib/Makefile: Likewise.
8192         * sysdeps/x86_64/Makefile: Likewise.
8193
8194         * io/ftwtest-sh: Add copyright header.
8195         * posix/globtest.sh: Likewise.
8196         * posix/tst-getconf.sh: Likewise.
8197         * posix/wordexp-tst.sh: Likewise.
8198         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
8199
8200 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
8201
8202         [BZ #13679]
8203         * Makeconfig (+link): Defined as $(+link-static) if
8204         $(build-shared) isn't yes.
8205         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
8206         isn't yes.
8207         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
8208
8209         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
8210
8211         [BZ #14562]
8212         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
8213         new chunk size with MALLOC_ALIGN_MASK.
8214
8215 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
8216
8217         [BZ #5044]
8218         * stdio-common/printf_fphex.c: Include <stdbool.h> and
8219         <rounding-mode.h>.
8220         (__printf_fphex): Determine rounding using get_rounding_mode and
8221         round_away.
8222         * stdio-common/tst-printf-round.c (struct hex_test): New
8223         structure.
8224         (hex_tests): New variable.
8225         (test_hex_in_one_mode): New function.
8226         (do_test): Also run tests for hex float output.
8227
8228 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
8229
8230         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
8231         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
8232         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
8233         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
8234         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
8235         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
8236         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
8237         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
8238
8239 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
8240
8241         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
8242         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
8243         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
8244         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
8245
8246 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
8247
8248         [BZ #14579]
8249         * elf/rtld.c (dl_main): Limit the check for self loading to normal
8250         mode only.
8251         * elf/tst-rtld-load-self.sh: New test.
8252         * elf/Makefile: Run it.
8253
8254 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
8255
8256         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
8257         (tst-writev-ENV): Remove.
8258         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
8259
8260 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
8261
8262         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
8263
8264 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
8265
8266         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
8267         unconditional.
8268         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
8269         Likewise.
8270         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
8271         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
8272         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
8273         Likewise.
8274
8275 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8276
8277         [BZ #14587]
8278         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
8279         * config.make.in (have-cpp-asm-debuginfo): Removed.
8280         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
8281         * configure: Regenerated.
8282
8283 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
8284
8285         [BZ #5044]
8286         * stdio-common/printf_fp.c: Include <stdbool.h> and
8287         <rounding-mode.h>.
8288         (___printf_fp): Determine rounding using get_rounding_mode and
8289         round_away.
8290         * stdio-common/tst-printf-round.c: New file.
8291         * stdio-common/Makefile (tests): Add tst-printf-round.
8292         (link-libm): New variable.
8293         ($(objpfx)tst-printf-round): Depend in $(link-libm).
8294
8295 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
8296
8297         [BZ #14576]
8298         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
8299         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
8300         Likewise.
8301         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
8302         Likewise.
8303
8304 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
8305
8306         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
8307         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
8308         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
8309         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
8310
8311 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
8312
8313         [BZ #14518]
8314         * include/rounding-mode.h: New file.
8315         * sysdeps/generic/get-rounding-mode.h: Likewise.
8316         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
8317         * stdlib/strtod_l.c: Include <rounding-mode.h>.
8318         (MAX_VALUE): New macro.
8319         (MIN_VALUE): Likewise.
8320         (overflow_value): New function.
8321         (underflow_value): Likewise.
8322         (round_and_return): Use overflow_value and underflow_value to
8323         determine return values in overflow and underflow cases.  Use
8324         round_away to determine rounding depending on rounding mode.
8325         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
8326         determine return values in overflow and underflow cases.
8327         * stdlib/tst-strtod-round.c: Include <fenv.h>.
8328         (struct test_results): New structure.
8329         (struct test): Use struct test_results to store expected results
8330         for all rounding modes.
8331         (TEST): Include expected results for all rounding modes.
8332         (test_in_one_mode): New function.
8333         (do_test): Use test_in_one_mode to compute and check results.
8334         Check results for all rounding modes.
8335         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
8336         $(link-libm).
8337
8338 2012-12-09  Allan McRae  <allan@archlinux.org>
8339
8340         * sysdeps/i386/fpu/libm-test-ulps: Update
8341
8342 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
8343
8344         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
8345         (_G_int32_t): Likewise.
8346         (_G_uint16_t): Likewise.
8347         (_G_uint32_t): Likewise.
8348         (_G_HAVE_BOOL): Likewise.
8349         (_G_HAVE_ATEXIT): Likewise.
8350         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
8351         (_G_HAVE_IO_FILE_OPEN): Likewise.
8352         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
8353         (_G_int32_t): Likewise.
8354         (_G_uint16_t): Likewise.
8355         (_G_uint32_t): Likewise.
8356         (_G_HAVE_BOOL): Likewise.
8357         (_G_HAVE_ATEXIT): Likewise.
8358         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
8359         (_G_HAVE_IO_FILE_OPEN): Likewise.
8360         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
8361         (_G_int32_t): Likewise.
8362         (_G_uint16_t): Likewise.
8363         (_G_uint32_t): Likewise.
8364         (_G_HAVE_BOOL): Likewise.
8365         (_G_HAVE_ATEXIT): Likewise.
8366         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
8367         (_G_HAVE_IO_FILE_OPEN): Likewise.
8368
8369 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
8370
8371         * csu/libc-tls.c: Update copyright years.
8372
8373 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
8374
8375         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
8376         [!_G_USING_THUNKS]: Remove conditional code.
8377         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
8378         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
8379
8380         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
8381         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
8382         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
8383         (_G_VTABLE_LABEL_PREFIX): Likewise.
8384         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
8385         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
8386         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
8387         (_G_VTABLE_LABEL_PREFIX): Likewise.
8388         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
8389         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
8390         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
8391         (_G_VTABLE_LABEL_PREFIX): Likewise.
8392         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
8393
8394 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
8395
8396         * libio/Makefile: Include ../Makeconfig before tests.
8397         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
8398         only if $(build-shared) is yes.
8399
8400         * iconv/gconv_db.c: Update copyright years.
8401
8402 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8403
8404         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
8405         unwind info if defined PIC. Fix special cases description.
8406         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
8407
8408         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
8409         DP_HI_MASK entry.
8410         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
8411
8412 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
8413
8414         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
8415
8416         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
8417         is NULL.
8418
8419         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
8420         (LDLIBS-tst-chk4): This.
8421         (LDFLAGS-tst-chk5): Renamed to ...
8422         (LDLIBS-tst-chk5): This.
8423         (LDFLAGS-tst-chk6): Renamed to ...
8424         (LDLIBS-tst-chk6): This.
8425         (LDFLAGS-tst-lfschk4): Renamed to ...
8426         (LDLIBS-tst-lfschk4): This.
8427         (LDFLAGS-tst-lfschk5): Renamed to ...
8428         (LDLIBS-tst-lfschk5): This.
8429         (LDFLAGS-tst-lfschk6): Renamed to ...
8430         (LDLIBS-tst-lfschk6): This.
8431
8432         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
8433         on $(common-objpfx)soversions.mk.
8434
8435 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
8436
8437         [BZ #10014]
8438         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
8439         example host name.
8440
8441 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
8442
8443         * malloc/arena.c (arena_get_retry): New function that gets
8444         another arena for the caller to try its request on.
8445         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
8446         current arena cannot fulfill the request.
8447         (__libc_memalign): Likewise.
8448         (__libc_memalign): Likewise.
8449         (__libc_pvalloc): Likewise.
8450         (__libc_calloc): Likewise.
8451
8452 2012-09-05  John Tobey  <john.tobey@gmail.com>
8453
8454         [BZ #13542]
8455         * manual/arith.texi (Operations on Complex): Fix description
8456         of carg branch cut.
8457
8458 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
8459
8460         [BZ #10014]
8461         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
8462         host name.
8463
8464         [BZ #10038]
8465         * manual/memory.texi (Memory): Make order of menu items match
8466         order of sections.
8467
8468 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
8469
8470         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
8471         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
8472         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
8473
8474 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
8475
8476         * csu/libc-tls.c (static_dtv): Renamed to ...
8477         (_dl_static_dtv): This.  Make it global.
8478         (_dl_initial_dtv): Removed.
8479         (__libc_setup_tls): Updated.
8480         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
8481         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
8482         DL_INITIAL_DTV.
8483
8484 2012-09-06  Petr Machata  <pmachata@redhat.com>
8485
8486         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
8487         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
8488         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
8489         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
8490
8491 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
8492
8493         [BZ #14545]
8494         * csu/libc-tls.c (_dl_initial_dtv): New variable.
8495         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
8496         freeing dtv[-1].
8497
8498 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
8499
8500         [BZ #14544]
8501         * Makeconfig (link-static-before-libc): Replace $(+prector)
8502         with $(+prectorT).
8503         (link-static-after-libc): Replace $(+postctor) with
8504         $(+postctorT).
8505         (link-bounded): Replace $(+prector)/$(+postctor) with
8506         $(+prectorT)/$(+postctorT).
8507         (+prectorT): New macro.
8508         (+postctorT): Likewise.
8509
8510 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
8511
8512         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
8513         (round_str): Handle values above the maximum for IBM long double
8514         as inexact.
8515         * stdlib/tst-strtod-round.c (tests): Regenerated.
8516
8517 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8518
8519         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
8520         assembler flag.
8521         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
8522         zarch_nohighgprs around the zarch optimized routines.
8523         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
8524         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
8525         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
8526         for zarch.
8527
8528 2012-09-05  David S. Miller  <davem@davemloft.net>
8529
8530         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8531
8532         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
8533         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
8534         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
8535         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
8536         entries.
8537
8538 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
8539
8540         * malloc/arena.c: Fold copyright years.
8541         * malloc/mcheck.c, malloc/memusage.c: Likewise.
8542
8543 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
8544
8545         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
8546
8547 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
8548
8549         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
8550
8551 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
8552
8553         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
8554         change internal state upon failure.
8555
8556 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
8557
8558         * malloc/mcheck.c (mcheck_check_all): Fix typo.
8559         * malloc/memusage.c (mmap): Likewise.
8560         (mmap64, mremap): Likewise.  Adjust name in comment.
8561
8562 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8563
8564         * libio/fileops.c: Fix typos in comments.
8565         * libio/oldfileops.c: Likewise.
8566         * libio/wfileops.c: Likewise.
8567
8568 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8569
8570         [BZ #1349]
8571         * malloc/Makefile (tests): Add tst-malloc-usable test case.
8572         (tst-malloc-usable-ENV): Set environment for test case.
8573         * malloc/hooks.c (malloc_check_get_size): New function to get
8574         requested size.
8575         * malloc/malloc.c (musable): Use malloc_check_get_size.
8576         * malloc/tst-malloc-usable.c: New test case.
8577
8578 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
8579
8580         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
8581
8582 2012-09-05  Allan McRae  <allan@archlinux.org>
8583
8584         [BZ #13966]
8585         * configure.in (CXX_SYSINCLUDES): Use compiler output to
8586         determine header location.
8587         * configure: Regenerated.
8588
8589 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
8590
8591         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
8592         float format.
8593         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
8594         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
8595         format.
8596         (test): Regenerate.
8597
8598 2012-09-04  David S. Miller  <davem@davemloft.net>
8599
8600         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
8601         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
8602         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
8603
8604 2012-09-04  Florian Weimer  <fweimer@redhat.com>
8605
8606         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
8607         failures.
8608
8609         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
8610
8611 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
8612
8613         [BZ #9914]
8614         * libio/iogetdelim.c: Include <limits.h>.
8615         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
8616         + len + 1 would overflow.
8617
8618 2012-09-03  Andreas Jaeger  <aj@suse.de>
8619
8620         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8621         * sysdeps/i386/fpu/libm-test-ulps: Update.
8622
8623 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8624
8625         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
8626         Add s_sinf-sse2, s_conf-sse2.
8627
8628         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
8629         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
8630         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
8631         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
8632
8633         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
8634         for using routine as __sinf_ia32.
8635         Use macro for function declaration and weak_alias.
8636         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
8637         for using routine as __cosf_ia32.
8638         Use macro for function declaration and weak_alias.
8639
8640         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
8641         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
8642
8643         * sysdeps/x86_64/fpu/s_sinf.S: New file.
8644         * sysdeps/x86_64/fpu/s_cosf.S: New file.
8645         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8646
8647         * math/libm-test.inc (cos_test): Add more test cases.
8648         (sin_test): Likewise.
8649         (sincos_test): Likewise.
8650
8651 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8652
8653         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
8654         (IFUNC_RESOLVE): Make pointers to the specialized implementations
8655         hidden.
8656         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
8657
8658 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
8659
8660         [BZ #14538]
8661         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
8662         first element of the GOT.
8663         (elf_machine_load_address): Return the difference between
8664         the runtime address of _DYNAMIC and elf_machine_dynamic ().
8665
8666 2012-09-01  Allan McRae  <allan@archlinux.org>
8667
8668         [BZ #13412]
8669         * configure.in (AWK): Require gawk version 3.0 or later.
8670         * configure: Regenerated.
8671
8672 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
8673
8674         * sysdeps/unix/sysv/linux/kernel-features.h
8675         (__ASSUME_POSIX_CPU_TIMERS): Remove.
8676         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
8677         [__NR_clock_getres]: Make code unconditional.
8678         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
8679         (clock_getcpuclockid): Remove code left unreachable by removal of
8680         conditionals.
8681         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
8682         code unconditional.
8683         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
8684         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
8685         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
8686         Make code unconditional.
8687         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
8688         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
8689         * sysdeps/unix/sysv/linux/clock_settime.c
8690         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
8691         conditional code.
8692         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
8693         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
8694
8695 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
8696
8697         [BZ #14476]
8698         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
8699         scripts/test-installation.pl.
8700
8701         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
8702         and $ld_so_version if it is set.
8703
8704 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
8705
8706         [BZ #14516]
8707         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
8708         failure if reading from procfs failed.
8709         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
8710
8711 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
8712
8713         * sysdeps/unix/sysv/linux/kernel-features.h
8714         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
8715         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
8716         Remove conditional code.
8717         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8718         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
8719         Remove conditional code.
8720         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8721         * sysdeps/unix/sysv/linux/i386/fxstat.c
8722         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
8723         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8724         * sysdeps/unix/sysv/linux/i386/fxstatat.c
8725         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
8726         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8727         * sysdeps/unix/sysv/linux/i386/lxstat.c
8728         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
8729         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8730         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
8731         Remove conditional code.
8732         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8733         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
8734         Remove conditional code.
8735         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8736         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
8737         <kernel-features.h>.
8738         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
8739         Remove.
8740         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
8741         Remove conditional code.
8742         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8743         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
8744         Remove conditional.
8745
8746 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
8747
8748         [BZ #5400]
8749         * NEWS: Add fixed bug number.
8750
8751 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
8752
8753         [BZ #14519]
8754         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
8755         underflowing exponent in case of negative sign.
8756         * stdlib/tst-strtod-round-data: Add more tests.
8757         * stdlib/tst-strtod-round.c (tests): Regenerated.
8758
8759         [BZ #3479]
8760         * stdlib/strtod_l.c (NDIG): Remove.
8761         (HEXNDIG): Likewise.
8762         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
8763         smallest representable value.
8764         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
8765         lie within an exact representation of 1/2 ulp of the result.
8766         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
8767         unconditionally.
8768         (TENS_P9_IDX): Define unconditionally.
8769         (TENS_P9_SIZE): Likewise.
8770         (TENS_P10_IDX): Likewise.
8771         (TENS_P10_SIZE): Likewise.
8772         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
8773         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
8774         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
8775         entries for 10^2^13 and 10^2^14.
8776         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
8777         (TENS_P13_IDX): Define.
8778         (TENS_P13_SIZE): Likewise.
8779         (TENS_P14_IDX): Likewise.
8780         (TENS_P14_SIZE): Likewise.
8781         (_fpioconst_pow10): Change array size to
8782         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
8783         unconditional.
8784         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
8785         1024]: Add entries for 10^2^13 and 10^2^14.
8786         [LAST_POW10 > _LAST_POW10]: Remove #error.
8787         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
8788         (_fpioconst_pow10): Change array size to
8789         FPIOCONST_POW10_ARRAY_SIZE.
8790         * stdlib/gen-fpioconst.c: New file.
8791         * stdlib/gen-tst-strtod-round.c: Likewise.
8792         * stdlib/tst-strtod-round-data: Likewise.
8793         * stdlib/tst-strtod-round.c: Likewise.
8794         * stdlib/Makefile (tests): Add tst-strtod-round.
8795
8796         [BZ #14459]
8797         * stdlib/strtod_l.c: Include <stdint.h>.
8798         (NDEBUG): Do not define.
8799         (round_and_return): Change EXPONENT parameter to type intmax_t.
8800         Rearrange calculations to avoid internal overflow possibilities.
8801         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
8802         Rearrange calculations to avoid internal overflow possibilities.
8803         Assert that number fits inside MPNSIZE limbs.
8804         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
8805         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
8806         calculations and add assertions to avoid internal overflow
8807         possibilities.  Add casts to avoid signed/unsigned operations.
8808         * stdlib/tst-strtod-overflow.c: New file.
8809         * stdlib/Makefile (tests): Add tst-strtod-overflow.
8810
8811 2012-08-25  Marek Polacek  <polacek@redhat.com>
8812
8813         * time/time.h: Fix some typos in comments.
8814
8815 2012-08-23  Roland McGrath  <roland@hack.frob.com>
8816
8817         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
8818         * posix/tst-rfc3484-2.c: Likewise.
8819         * posix/tst-rfc3484-3.c: Likewise.
8820
8821 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
8822
8823         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
8824         (EF_ARM_ABI_FLOAT_HARD): Likewise.
8825
8826 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
8827
8828         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
8829         #include of fxstatat64.c.
8830
8831 2012-08-22  Roland McGrath  <roland@hack.frob.com>
8832
8833         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
8834         * shadow/getspent_r.c: Likewise.
8835         * shadow/getspnam.c: Likewise.
8836         * shadow/getspnam_r.c: Likewise.
8837         * gshadow/getsgent.c: Likewise.
8838         * gshadow/getsgent_r.c: Likewise.
8839         * gshadow/getsgnam.c: Likewise.
8840         * gshadow/getsgnam_r.c: Likewise.
8841         * inet/getnetbyad.c: Likewise.
8842         * inet/getnetbyad_r.c: Likewise.
8843         * inet/getnetbynm.c: Likewise.
8844         * inet/getnetbynm_r.c: Likewise.
8845         * inet/getnetent.c: Likewise.
8846         * inet/getnetent_r.c: Likewise.
8847         * inet/getproto.c: Likewise.
8848         * inet/getproto_r.c: Likewise.
8849         * inet/getprtent.c: Likewise.
8850         * inet/getprtent_r.c: Likewise.
8851         * inet/getprtname.c: Likewise.
8852         * inet/getprtname_r.c: Likewise.
8853         * inet/getrpcbyname.c: Likewise.
8854         * inet/getrpcbyname_r.c: Likewise.
8855         * inet/getrpcbynumber.c: Likewise.
8856         * inet/getrpcbynumber_r.c: Likewise.
8857         * inet/getrpcent.c: Likewise.
8858         * inet/getrpcent_r.c: Likewise.
8859         * inet/getaliasent.c: Likewise.
8860         * inet/getaliasent_r.c: Likewise.
8861         * inet/getaliasname.c: Likewise.
8862         * inet/getaliasname_r.c: Likewise.
8863         * nscd/getgrgid_r.c: Likewise.
8864         * nscd/getgrnam_r.c: Likewise.
8865         * nscd/gethstbyad_r.c: Likewise.
8866         * nscd/gethstbynm3_r.c: Likewise.
8867         * nscd/getpwnam_r.c: Likewise.
8868         * nscd/getpwuid_r.c: Likewise.
8869         * nscd/getsrvbynm_r.c: Likewise.
8870         * nscd/getsrvbypt_r.c: Likewise.
8871         * nscd/gai.c: Likewise.
8872
8873         * configure.in (build_nscd): New substituted variable, set
8874         by --disable-build-nscd and defaults to $use_nscd.
8875         * configure: Regenerated.
8876         * config.make.in (build-nscd): New substituted variable.
8877         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
8878         Change conditional to require [$(build-nscd) = yes] as well.
8879         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
8880
8881         [BZ# 13696]
8882         * configure.in (use_nscd): New substituted variable, set by
8883         --disable-nscd.  If enabled, define USE_NSCD.
8884         * configure: Regenerated.
8885         * config.h.in: Add USE_NSCD.
8886         * config.make.in (use-nscd): New substituted variable.
8887         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
8888         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
8889         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
8890         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
8891         (CFLAGS-getgrnam_r.c): Likewise.
8892         (CFLAGS-initgroups.c): Likewise.
8893         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
8894         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
8895         Variables removed.
8896         * inet/getnetgrent_r.c
8897         (nscd_setnetgrent): New function, broken out of ...
8898         (setnetgrent): ... here.  Call it.
8899         (innetgr): Conditionalize nscd bits on [USE_NSCD].
8900         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
8901         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
8902         * nscd/Makefile (routines, aux): Move definitions after include of
8903         Makeconfig.  Conditionalize on [$(use-nscd) != no].
8904         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
8905         Conditionalize on [USE_NSCD].
8906         (is_nscd, nscd_init_cb): Likewise.
8907         (nss_load_library): Conditionalize init callback on [USE_NSCD].
8908         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
8909         * nss/nss_db/db-init.c: Likewise.
8910         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
8911         [USE_NSCD].
8912         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
8913         (make_request): Use it.
8914         (cache_valid_p): New function.
8915         (__check_pf): Use it.
8916         * NEWS: Add item for --disable-nscd.
8917
8918 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
8919
8920         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
8921         to support sed >= 4.2.1-20-ga9bf076.
8922         * configure: Regenerated.
8923
8924 2012-08-22  Roland McGrath  <roland@hack.frob.com>
8925
8926         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
8927         Conditionalize whole body on [IREL].
8928
8929 2012-08-22  Jeff Law <law@redhat.com>
8930
8931         [BZ #14505]
8932         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
8933         if the family is PF_UNSPEC.
8934
8935 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
8936
8937         * Makerules (lib-version): Rename from V.
8938         (install-lib-nosubdir): Change V to lib-version.
8939
8940 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
8941
8942         [BZ #14252]
8943         * powerpc32/power6/wcschr.c: New file.
8944         * powerpc32/power6/wcscpy.c: New file.
8945         * powerpc32/power6/wcsrchr.c: New file.
8946         * powerpc64/power6/wcschr.c: New file.
8947         * powerpc64/power6/wcscpy.c: New file.
8948         * powerpc64/power6/wcsrchr.c: New file.
8949
8950 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
8951
8952         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
8953         (two_way_short_needle): Use it.
8954         * string/strstr.c (AVAILABLE1_USES_J): Define.
8955         * string/strcasestr.c: Likewise.
8956
8957         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
8958         array references.
8959         * string/strcasestr.c (TOLOWER): Make side-effect safe.
8960
8961         [BZ #11607]
8962         * NEWS: Add an entry.
8963         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
8964         define their defaults.
8965         (two_way_short_needle): Detect end-of-string on-the-fly.
8966         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
8967         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
8968         * string/bug-strcasestr1.c: New test.
8969         * string/Makefile: Run it.
8970
8971 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
8972
8973         [BZ #11607]
8974         * string/str-two-way.h (two_way_short_needle): Optimize matching of
8975         the first character.
8976
8977 2012-08-21  Roland McGrath  <roland@hack.frob.com>
8978
8979         * csu/elf-init.c (__libc_csu_irel): Function removed.
8980         * csu/libc-start.c (apply_irel): New function.
8981         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
8982
8983 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
8984
8985         * sysdeps/unix/sysv/linux/kernel-features.h
8986         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
8987         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
8988         <kernel-features.h>.
8989         [__NR_fadvise64_64]: Make code unconditional.
8990         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
8991         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
8992         !__NR_fadvise64_64)]: Likewise.
8993         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
8994         !__NR_fadvise64_64))]: Likewise.
8995         [__NR_fadvise64]: Make code unconditional.
8996         [!__NR_fadvise64]: Remove conditional code.
8997         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
8998         <kernel-features.h>.
8999         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
9000         unconditional.
9001         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
9002         conditional code.
9003         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
9004         not include <kernel-features.h>.
9005         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
9006         unconditional.
9007         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
9008         conditional code.
9009         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
9010         include <kernel-features.h>.
9011         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
9012         unconditional.
9013         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
9014         conditional code.
9015
9016 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
9017
9018         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
9019         slight instruction rearrangements per scrollpipe analysis.
9020         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
9021
9022 2012-08-20  Roland McGrath  <roland@hack.frob.com>
9023
9024         * manual/syslog.texi (syslog; vsyslog, closelog):
9025         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
9026         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
9027
9028         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
9029         DSOCAPS to match condition on defining it.
9030
9031 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
9032
9033         * sysdeps/unix/sysv/linux/kernel-features.h
9034         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
9035         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
9036         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
9037         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
9038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
9039         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
9040         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
9041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
9042         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
9043         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
9044
9045         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
9046         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
9047
9048         * sysdeps/unix/sysv/linux/kernel-features.h
9049         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
9050         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
9051         unconditional.
9052         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9053         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
9054         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
9055         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9056         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
9057         Make code unconditional.
9058         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9059         (__mmap64) [!__NR_mmap2]: Likewise.
9060         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
9061         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
9062         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9063         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
9064         [__NR_mmap2]: Make code unconditional.
9065         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9066         (__mmap64) [!__NR_mmap2]: Likewise.
9067
9068 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9069
9070         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
9071
9072 2012-08-18  Andreas Jaeger  <aj@suse.de>
9073
9074         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
9075
9076 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
9077
9078         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
9079         * include/unistd.h (__have_sock_cloexec): Likewise.
9080         (__have_pipe2): Likewise.
9081         (__have_dup3): Likewise.
9082
9083 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
9084
9085         [BZ #9685]
9086         * include/unistd.h (__have_pipe2): Change define into an extern int.
9087         (__have_dup3): Likewise.
9088         * socket/have_sock_cloexec.c: Include fcntl.h.
9089         (__have_pipe2): New variable.
9090         (__have_dup3): Likewise.
9091
9092 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
9093
9094         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
9095
9096 2012-08-17  Marek Polacek  <polacek@redhat.com>
9097
9098         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
9099         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
9100
9101 2012-08-17  Roland McGrath  <roland@hack.frob.com>
9102
9103         * configure.in: Add AC_SUBST for sysheaders.
9104         * configure: Regenerated.
9105         * config.make.in (sysheaders): New substituted variable.
9106
9107         * sysdeps/unix/mkfifo.c: Moved ...
9108         * sysdeps/posix/mkfifo.c: ... here.
9109         * sysdeps/unix/mkfifoat.c: Moved ...
9110         * sysdeps/posix/mkfifoat.c: ... here.
9111
9112         * sysdeps/unix/utime.c: Moved ...
9113         * sysdeps/posix/utime.c: ... here.
9114
9115         * sysdeps/unix/time.c: Moved ...
9116         * sysdeps/posix/time.c: ... here.
9117         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
9118         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
9119
9120         * sysdeps/unix/nice.c: Moved ...
9121         * sysdeps/posix/nice.c: ... here.
9122
9123         * sysdeps/unix/alarm.c: Moved ...
9124         * sysdeps/posix/alarm.c: ... here.
9125
9126         * intl/Makefile ($(codeset_mo)): Depend on the input file.
9127
9128 2012-08-17  Jeff Law <law@redhat.com>
9129
9130         * intl/Makefile (codeset_mo): New variable.
9131         ($(codeset_mo)): New target.
9132         (tst-codeset.out): Depend on that.  Remove explicit rule.
9133         (tst-gettext3.out, tst-gettext5.out): Likewise.
9134         (LOCPATH-ENV, tst-codeset-ENV): New variables.
9135         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
9136         * intl/tst-codeset.sh: Remove.
9137         * intl/tst-gettext3.sh: Likewise.
9138         * intl/tst-gettext5.sh: Likewise.
9139
9140 2012-08-17  Roland McGrath  <roland@hack.frob.com>
9141
9142         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
9143         * sysdeps/unix/syscalls.list: ... here.
9144
9145         * sysdeps/posix/getaddrinfo.c
9146         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
9147         (gaiconf_init, gaiconf_reload): Use them.
9148         [!_STATBUF_ST_NSEC]
9149         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
9150         Define using time_t rather than struct timespec.
9151
9152         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
9153         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
9154         Macros removed.
9155         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
9156         [!NO_THREADS].
9157         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
9158         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
9159         Likewise.
9160
9161         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
9162         __libc_cleanup_push argument.
9163
9164         * bits/param.h: New file.
9165         * misc/sys/param.h: New file.
9166         * include/sys/param.h: New file.
9167         * misc/Makefile (headers): Add bits/param.h.
9168         * sysdeps/generic/sys/param.h: File removed.
9169         * sysdeps/unix/sysv/linux/bits/param.h: New file.
9170         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
9171         * sysdeps/mach/hurd/bits/param.h: New file.
9172         * sysdeps/mach/hurd/sys/param.h: File removed.
9173
9174         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
9175         last change.
9176
9177         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
9178         [_IO_MTSAFE_IO].
9179         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
9180         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
9181         New macros.
9182
9183         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
9184         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
9185         rather than -D_IO_MTSAFE_IO conditionally.
9186         * stdio-common/Makefile (CPPFLAGS): Likewise.
9187         * wcsmbs/Makefile (CPPFLAGS): Likewise.
9188         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
9189         Use $(libio-mtsafe).
9190         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
9191         of -D_IO_MTSAFE_IO.
9192         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
9193         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
9194         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
9195         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
9196         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
9197         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
9198         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
9199         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
9200         (CFLAGS-fread_u_chk.c): Likewise.
9201         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
9202         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
9203         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
9204         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
9205         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
9206         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
9207         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
9208         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
9209         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
9210
9211         * libio/Makefile: Test [$(libc-reentrant) = yes]
9212         instead of [$(filter %REENTRANT, $(defines)) nonempty].
9213
9214         * Makeconfig
9215         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
9216         * sysdeps/pthread/configure: File removed.
9217         * sysdeps/pthread/Makeconfig: New file.
9218         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
9219         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
9220
9221 2012-08-16  Gary Benson  <gbenson@redhat.com>
9222
9223         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
9224         unmapping the first object in a namespace.
9225
9226 2012-08-16  Roland McGrath  <roland@hack.frob.com>
9227
9228         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
9229         (__internal_setnetgrent): ... this.  Add internal_function to
9230         definition.  Add libc_hidden_def.
9231         (setnetgrent): Update caller.
9232         (internal_endnetgrent): Renamed to ...
9233         (__internal_endnetgrent): ... this.  Add internal_function to
9234         definition.  Add libc_hidden_def.
9235         (endnetgrent): Update caller.
9236         (internal_getnetgrent_r): Renamed to ...
9237         (__internal_getnetgrent_r): ... this.  Add internal_function to
9238         definition.  Add libc_hidden_def.
9239         (__getnetgrent_r): Update caller.
9240         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
9241
9242 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
9243
9244         * stdlib/longlong.h: Update from GCC.
9245
9246 2012-08-16  Roland McGrath  <roland@hack.frob.com>
9247
9248         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
9249         on _QL, which is set by umul_ppmm but never used.
9250         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
9251         variables, which are set by GMP macros but never used.
9252         * stdio-common/_itowa.c (_itowa): Likewise.
9253         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
9254         * stdlib/mod_1.c (mpn_mod_1): Likewise.
9255
9256 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
9257
9258         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
9259         struct La_sh_regs is not constant.
9260         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
9261         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
9262         and struct La_sparc64_regs are not constant.
9263
9264 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
9265
9266         * sysdeps/unix/sysv/linux/kernel-features.h
9267         (__ASSUME_POSIX_TIMERS): Remove.
9268         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
9269         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
9270         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
9271         Make code unconditional.
9272         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
9273         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
9274         Make code unconditional.
9275         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
9276         * sysdeps/unix/sysv/linux/clock_nanosleep.c
9277         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
9278         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
9279         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
9280         Make code unconditional.
9281         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
9282         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
9283         (__libc_missing_posix_timers): Remove.
9284
9285 2012-08-15  Roland McGrath  <roland@hack.frob.com>
9286
9287         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
9288         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
9289
9290         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
9291
9292         * elf/dl-sym.c: Include <stdlib.h>.
9293
9294         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
9295         constants, which avoids warnings in 32-bit builds.
9296
9297         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
9298         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
9299
9300         * misc/lseek.c: File moved to ...
9301         * io/lseek.c: ... here.
9302
9303         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
9304
9305         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
9306         shifting LEN more than 31 bits at once.
9307
9308 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9309
9310         [BZ #14195]
9311         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
9312         segmentation fault for a case of two empty input strings.
9313         * string/test-strncasecmp.c (check1): Renamed to...
9314         (bz12205): ...this.
9315         (bz14195): Add new testcase for two empty input strings and N > 0.
9316         (test_main): Call new testcase, adapt for renamed function.
9317
9318 2012-08-15  Andreas Jaeger  <aj@suse.de>
9319
9320         [BZ #14090]
9321         * crypt/md5test2.c: New test, based on test supplied by Serge
9322         Belyshev <belyshev@depni.sinp.msu.ru>.
9323         * crypt/Makefile (xtests): Add md5test-giant..
9324         * crypt/Makefile ($(objpfx)md5test-giant): Add.
9325
9326 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
9327
9328         [BZ #14090]
9329         * crypt/md5.c (md5_process_block): Don't assume the buffer
9330         length is less than 2**32.
9331         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
9332         length is less than 2**64.
9333
9334 2012-08-15  Roland McGrath  <roland@hack.frob.com>
9335
9336         * string/str-two-way.h: Include <sys/param.h>.
9337         (MAX): Macro removed.
9338
9339         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
9340         Move #define and #undef of memmove to just before and after
9341         including <string.h>.
9342
9343         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
9344         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
9345         and after including <string.h>.  Move declarations of
9346         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
9347         to before #include "string/memmove.c".
9348
9349         * include/dirent.h: Declare __getdirentries.
9350
9351         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
9352         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
9353
9354 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
9355
9356         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
9357         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
9358         * sysdeps/i386/configure: Regenerated.
9359         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
9360         STABS_CURRENT_FILE, and STABS_FUN.
9361         (END): Remove call to STABS_FUN_END.
9362         (STABS_CURRENT_FILE1): Delete.
9363         (STABS_CURRENT_FILE): Likewise.
9364         (STABS_FUN): Likewise.
9365         (STABS_FUN_END): Likewise.
9366         (STABS_FUN2): Likewise.
9367         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
9368         * sysdeps/x86_64/configure: Regenerated.
9369
9370 2012-08-14  Roland McGrath  <roland@hack.frob.com>
9371
9372         * elf/dl-open.c: Include <atomic.h>.
9373         * elf/dl-lookup.c: Likewise.
9374
9375 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
9376
9377         * sysdeps/unix/sysv/linux/kernel-features.h
9378         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
9379         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
9380         unconditionally.
9381         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
9382         unconditionally.
9383         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
9384         condition on __ASSUME_CLONE_THREAD_FLAGS.
9385
9386 2012-08-14  Andreas Jaeger  <aj@suse.de>
9387
9388         * sysdeps/i386/fpu/libm-test-ulps: Update.
9389
9390 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
9391
9392         * include/atomic.h (atomic_exchange_and_add): Split into ...
9393         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
9394         New atomic macros.
9395
9396 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
9397
9398         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9399
9400 2012-08-13  Jeff Law <law@redhat.com>
9401
9402         * manual/stdio.texi (snprintf): Clarify handling of the trailing
9403         null byte in the output string.
9404
9405 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
9406
9407         * sysdeps/unix/sysv/linux/kernel-features.h
9408         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
9409         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
9410         (__ASSUME_ARG_MAX_STACK_BASED): Define.
9411         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
9412         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
9413         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
9414         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
9415
9416 2012-08-09  Jeff Law <law@redhat.com>
9417
9418         [BZ #13939]
9419         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
9420         When avoid_arena is set, don't retry in the that arena.  Pick the
9421         next one, whatever it might be.
9422         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
9423         (arena_lock): Pass in new parameter to arena_get2.
9424         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
9425         arena_get2.
9426         (__libc_malloc): Unify retrying after main arena failure with
9427         __libc_memalign version.
9428         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
9429
9430 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
9431
9432         [BZ #14166]
9433         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
9434         to __redirect_strstr.
9435         (__strstr_sse42): Use typeof __redirect_strstr.
9436         (__strstr_ia32): Likewise.
9437         (__libc_strstr): New prototype.
9438         (strstr): Renamed to ...
9439         (__libc_strstr): This.
9440         (strstr): New strong alias of __libc_strstr.
9441         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
9442         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
9443         __redirect_time.
9444         Include <time.h>.
9445         (__libc_time): New prototype.
9446         (time_ifunc): Replace time with __libc_time.
9447         (time): New strong alias and hidden definition of __libc_time.
9448         (__GI_time): Remove strong alias.
9449         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
9450         Include <stddef.h>.
9451         (memmove): Redefined to __redirect_memmove.
9452         (__memmove_sse2): Use typeof __redirect_memmove.
9453         (__memmove_ssse3): Likewise.
9454         (__memmove_ssse3_back): Likewise.
9455         (__libc_memmove): New prototype.
9456         (memmove): Renamed to ...
9457         (__libc_memmove): This.
9458         (memmove): New strong alias of __libc_memmove.
9459
9460 2012-08-08  Mark Salter  <msalter@redhat.com>
9461
9462         * elf/elf.h
9463         (R_MN10300_TLS_GD): Define.
9464         (R_MN10300_TLS_LD): Likewise.
9465         (R_MN10300_TLS_LDO): Likewise.
9466         (R_MN10300_TLS_GOTIE): Likewise.
9467         (R_MN10300_TLS_IE): Likewise.
9468         (R_MN10300_TLS_LE): Likewise.
9469         (R_MN10300_TLS_DTPMOD): Likewise.
9470         (R_MN10300_TLS_DTPOFF): Likewise.
9471         (R_MN10300_TLS_TPOFF): Likewise.
9472         (R_MN10300_SYM_DIFF): Likewise.
9473         (R_MN10300_ALIGN): Likewise.
9474         (R_MN10300_NUM): Update.
9475
9476 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
9477
9478         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
9479         Remove.
9480
9481 2012-08-08  Roland McGrath  <roland@hack.frob.com>
9482
9483         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
9484
9485         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
9486         sysdeps/unix -> sysdeps/posix move.
9487         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
9488
9489 2012-08-07      Allan McRae     <allan@archlinux.org>
9490
9491         [BZ #14303]
9492         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
9493         (SUNOS_CPP): Likewise.
9494         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
9495         not found.
9496         (open_input): Call CPP using execvp.
9497
9498 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
9499
9500         * sysdeps/unix/sysv/linux/kernel-features.h
9501         (__ASSUME_PROT_GROWSUPDOWN): Remove.
9502         (__ASSUME_NO_CLONE_DETACHED): Likewise.
9503         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
9504         (__ASSUME_WAITID_SYSCALL): Likewise.
9505         * sysdeps/unix/sysv/linux/dl-execstack.c
9506         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
9507         code unconditional.
9508         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
9509         conditional code.
9510         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
9511         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
9512         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
9513         code.
9514         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
9515         unconditional.
9516         [__ASSUME_WAITID_SYSCALL]: Likewise.
9517         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
9518
9519 2012-08-07  Roland McGrath  <roland@hack.frob.com>
9520
9521         * sysdeps/unix/closedir.c: Renamed to ...
9522         * sysdeps/posix/closedir.c: ... here.
9523         * sysdeps/unix/dirfd.c: Renamed to ...
9524         * sysdeps/posix/dirfd.c: ... here.
9525         * sysdeps/unix/dirstream.h: Renamed to ...
9526         * sysdeps/posix/dirstream.h: ... here.
9527         * sysdeps/unix/fdopendir.c: Renamed to ...
9528         * sysdeps/posix/fdopendir.c: ... here.
9529         * sysdeps/unix/opendir.c: Renamed to ...
9530         * sysdeps/posix/opendir.c: ... here.
9531         * sysdeps/unix/readdir.c: Renamed to ...
9532         * sysdeps/posix/readdir.c: ... here.
9533         * sysdeps/unix/readdir_r.c: Renamed to ...
9534         * sysdeps/posix/readdir_r.c: ... here.
9535         * sysdeps/unix/rewinddir.c: Renamed to ...
9536         * sysdeps/posix/rewinddir.c: ... here.
9537         * sysdeps/unix/seekdir.c: Renamed to ...
9538         * sysdeps/posix/seekdir.c: ... here.
9539         * sysdeps/unix/telldir.c: Renamed to ...
9540         * sysdeps/posix/telldir.c: ... here.
9541         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
9542         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
9543         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
9544         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
9545
9546         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
9547         * bits/fcntl.h: ... here.
9548
9549         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
9550         not 0.
9551         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
9552         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
9553         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
9554         (struct flock): Move l_start, l_len to the beginning.
9555         Use __pid_t for l_pid.
9556         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
9557         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
9558         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
9559         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
9560         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
9561         [__USE_LARGEFILE64] (struct flock64): New type.
9562         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
9563
9564         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
9565         * bits/dirent.h: ... here.
9566
9567         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
9568         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
9569
9570 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
9571
9572         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
9573         Change from 2.6.0 to 2.6.16.
9574         * sysdeps/unix/sysv/linux/configure: Regenerated.
9575         * sysdeps/unix/sysv/linux/kernel-features.h
9576         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
9577         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
9578         version.
9579         (__ASSUME_UTIMES): Likewise.
9580         (__ASSUME_CLONE_STOPPED): Remove.
9581         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
9582         architectures, not kernel version.
9583         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
9584         (__ASSUME_NO_CLONE_DETACHED): Likewise.
9585         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
9586         (__ASSUME_WAITID_SYSCALL): Likewise.
9587         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
9588         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
9589         * README: State 2.6.16 as minimum Linux kernel version.  Do not
9590         refer to older versions.
9591
9592 2012-08-06  Roland McGrath  <roland@hack.frob.com>
9593
9594         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
9595         Define alphasort64 as an alias.
9596         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
9597         Define versionsort64 as an alias.
9598         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
9599         Define scandir64 as an alias.
9600         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
9601         Define scandirat64 as an alias.
9602         * dirent/alphasort64.c (alphasort64):
9603         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
9604         * dirent/versionsort64.c: Likewise.
9605         * dirent/scandir64.c: Likewise.
9606         * dirent/scandirat64.c: Likewise.
9607         * sysdeps/wordsize-64/alphasort.c: File removed.
9608         * sysdeps/wordsize-64/alphasort64.c: File removed.
9609         * sysdeps/wordsize-64/scandir.c: File removed.
9610         * sysdeps/wordsize-64/scandir64.c: File removed.
9611         * sysdeps/wordsize-64/scandirat.c: File removed.
9612         * sysdeps/wordsize-64/scandirat64.c: File removed.
9613         * sysdeps/wordsize-64/versionsort.c: File removed.
9614         * sysdeps/wordsize-64/versionsort64.c: File removed.
9615         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
9616         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
9617         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
9618         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
9619         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
9620         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
9621         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
9622         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
9623
9624         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
9625         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
9626         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
9627         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9628         [defined __arch64__ || defined __sparcv9]
9629         (__INO_T_MATCHES_INO64_T): New macro.
9630         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
9631         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
9632         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
9633         * sysdeps/unix/sysv/linux/bits/dirent.h
9634         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
9635         (_DIRENT_MATCHES_DIRENT64): New macro.
9636
9637         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
9638         Define lockf64 as an alias.
9639         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
9640         Define fseeko64 as an alias.
9641         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
9642         Define ftello64 as an alias.
9643         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
9644         Define _IO_fgetpos64 and fgetpos64 as aliases.
9645         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
9646         Define _IO_fsetpos64 and fsetpos64 as aliases.
9647         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
9648         Conditionalize body on this.
9649         * libio/fseeko64.c: Likewise.
9650         * libio/ftello64.c: Likewise.
9651         * libio/iofgetpos64.c: Likewise.
9652         * libio/iofsetpos64.c: Likewise.
9653         * sysdeps/wordsize-64/lockf.c: File removed.
9654         * sysdeps/wordsize-64/lockf64.c: File removed.
9655         * sysdeps/wordsize-64/fseeko.c: File removed.
9656         * sysdeps/wordsize-64/fseeko64.c: File removed.
9657         * sysdeps/wordsize-64/ftello.c: File removed.
9658         * sysdeps/wordsize-64/ftello64.c: File removed.
9659         * sysdeps/wordsize-64/iofgetpos.c: File removed.
9660         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
9661         * sysdeps/wordsize-64/iofsetpos.c: File removed.
9662         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
9663         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
9664         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
9665         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
9666         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
9667         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
9668         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
9669         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
9670         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
9671         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
9672         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
9673
9674         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
9675         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
9676         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
9677         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9678         [defined __arch64__ || defined __sparcv9]
9679         (__OFF_T_MATCHES_OFF64_T): New macro.
9680         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
9681         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
9682         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9683         (__OFF_T_MATCHES_OFF64_T): New macro.
9684
9685 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
9686
9687         * stdlib/secure-getenv.c (__secure_getenv): Replace
9688         GLIBC_2_16 with GLIBC_2_17.
9689
9690 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
9691
9692         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
9693         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
9694
9695 2012-08-03  David S. Miller  <davem@davemloft.net>
9696
9697         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9698
9699 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
9700
9701         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
9702         Remove.
9703         (__ASSUME_CORRECT_SI_PID): Likewise.
9704         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
9705         (__ASSUME_TMPFS_NAME): Likewise.
9706         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
9707         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
9708         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
9709         (HAVE_AUX_SECURE): Make definition unconditional.
9710         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
9711         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
9712
9713 2012-08-03  Roland McGrath  <roland@hack.frob.com>
9714
9715         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
9716         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
9717         * sysdeps/mach/hurd/eloop-threshold.h: New file.
9718         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
9719         __eloop_threshold instead of SYMLOOP_MAX.
9720
9721         * sysdeps/generic/eloop-threshold.h: New file.
9722         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
9723         of MAXSYMLINKS.
9724         * elf/chroot_canon.c (chroot_canon): Likewise.
9725
9726 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
9727
9728         [BZ #13717]
9729         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
9730         Change to 2.6.0 everywhere.
9731         * sysdeps/unix/sysv/linux/configure: Regenerated.
9732         * sysdeps/unix/sysv/linux/kernel-features.h
9733         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
9734         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
9735         kernel versions.
9736         (__ASSUME_POSIX_TIMERS): Define unconditionally.
9737         (__ASSUME_FUTEX_REQUEUE): Remove.
9738         (__ASSUME_STATFS64): Define unconditionally.
9739         (__ASSUME_AT_SECURE): Likewise.
9740         (__ASSUME_CORRECT_SI_PID): Likewise.
9741         (__ASSUME_TGKILL): Define without depending on kernel version for
9742         i386.
9743         (__ASSUME_UTIMES): Likewise.
9744         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
9745         kernel version.
9746         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
9747         (__ASSUME_TMPFS_NAME): Likewise.
9748         * README: Update reference to Linux kernel versions.
9749
9750 2012-08-02  Marek Polacek  <polacek@redhat.com>
9751
9752         [BZ# 14150]
9753         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
9754         libc_cv_asm_type_prefix with %.
9755         * configure: Regenerated.
9756         * include/libc-symbols.h: Remove comment about
9757         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
9758         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
9759         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
9760         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
9761         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
9762         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
9763         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
9764         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
9765         * elf/tst-unique2mod1.c: Likewise.
9766         * elf/tst-unique1mod2.c: Likewise.
9767         * elf/tst-unique1mod1.c: Likewise.
9768         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
9769         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
9770         Replace ASM_TYPE_DIRECTIVE with .type.
9771         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9772         * sysdeps/i386/sysdep.h: Likewise.
9773         * sysdeps/x86_64/sysdep.h: Likewise.
9774         * sysdeps/sh/sysdep.h: Likewise.
9775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
9776         Do not define ASM_TYPE_DIRECTIVE.
9777         * sysdeps/powerpc/sysdep.h: Likewise.
9778         * sysdeps/powerpc/powerpc32/sysdep.h:
9779         Replace ASM_TYPE_DIRECTIVE with .type.
9780         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
9781         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
9782         * sysdeps/i386/fpu/e_powf.S: Likewise.
9783         * sysdeps/i386/fpu/e_expl.S: Likewise.
9784         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
9785         * sysdeps/i386/fpu/e_acosh.S: Likewise.
9786         * sysdeps/i386/fpu/e_pow.S: Likewise.
9787         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
9788         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
9789         * sysdeps/i386/fpu/s_expm1.S: Likewise.
9790         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
9791         * sysdeps/i386/fpu/e_log2.S: Likewise.
9792         * sysdeps/i386/fpu/e_log2l.S: Likewise.
9793         * sysdeps/i386/fpu/e_scalb.S: Likewise.
9794         * sysdeps/i386/fpu/e_powl.S: Likewise.
9795         * sysdeps/i386/fpu/e_log10f.S: Likewise.
9796         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
9797         * sysdeps/i386/fpu/e_logl.S: Likewise.
9798         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
9799         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
9800         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
9801         * sysdeps/i386/fpu/e_log2f.S: Likewise.
9802         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
9803         * sysdeps/i386/fpu/e_log.S: Likewise.
9804         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
9805         * sysdeps/i386/fpu/e_logf.S: Likewise.
9806         * sysdeps/i386/fpu/e_log10l.S: Likewise.
9807         * sysdeps/i386/fpu/e_atanh.S: Likewise.
9808         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
9809         * sysdeps/i386/fpu/e_log10.S: Likewise.
9810         * sysdeps/i386/fpu/s_frexp.S: Likewise.
9811         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
9812         * sysdeps/i386/fpu/s_asinh.S: Likewise.
9813         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
9814         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
9815         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
9816         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
9817         * sysdeps/i386/i686/strtok.S: Likewise.
9818         * sysdeps/i386/i386-mcount.S: Likewise.
9819         * sysdeps/i386/strtok.S: Likewise.
9820         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
9821         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
9822         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9823         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
9824         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9825         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
9826         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
9827         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
9828         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
9829         * sysdeps/x86_64/_mcount.S: Likewise.
9830         * sysdeps/x86_64/strtok.S: Likewise.
9831         * sysdeps/sh/_mcount.S: Likewise.
9832
9833 2012-08-01  Roland McGrath  <roland@hack.frob.com>
9834
9835         * libio/iofopen.c: Include <fcntl.h>.
9836         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
9837         (_IO_fopen64, fopen64): Define as aliases.
9838         * libio/iofopen64.c: Include <fcntl.h>.
9839         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
9840         Conditionalize body on this.
9841         * sysdeps/wordsize-64/iofopen.c: File removed.
9842         * sysdeps/wordsize-64/iofopen64.c: File removed.
9843
9844 2012-08-01  Marek Polacek  <polacek@redhat.com>
9845
9846         * libc/Makeconfig: Use elf in place of binfmt-subdir.
9847         Use dlfcn directly instead of a variable.
9848         (binfmt-subdir): Do not define.
9849         (dlfcn): Likewise.
9850
9851 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
9852
9853         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
9854         Remove all definitions.
9855         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
9856         <kernel-features.h>.
9857         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
9858         (miss_F_GETOWN_EX): Remove all definitions.
9859         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
9860         macro definition.
9861         [!__ASSUME_FCNTL64]: Remove conditional code.
9862         [__ASSUME_FCNTL64]: Make code unconditional.
9863         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
9864         <kernel-features.h>.
9865         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
9866         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
9867         (lockf64) [__NR_fcntl64]: Make code unconditional.
9868         (lockf64) [__ASSUME_FCNTL64]: Likewise.
9869
9870         * sysdeps/unix/sysv/linux/kernel-features.h
9871         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
9872         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
9873         Make code unconditional.
9874         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
9875         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
9876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
9877         [__NR_vfork]: Make code unconditional.
9878         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
9879         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
9880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
9881         [__NR_vfork]: Make code unconditional.
9882         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
9883         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
9884
9885 2012-08-01  Roland McGrath  <roland@hack.frob.com>
9886
9887         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
9888         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
9889
9890         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
9891         Define mkstemp64 as an alias.
9892         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
9893         Define mkstemps64 as an alias.
9894         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
9895         Define mkostemp64 as an alias.
9896         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
9897         Define mkostemps64 as an alias.
9898         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
9899         Conditionalize body on this.
9900         * misc/mkostemp64.c: Likewise.
9901         * misc/mkostemps64.c: Likewise.
9902         * misc/mkstemps64.c: Likewise.
9903         * sysdeps/wordsize-64/mkstemp64.c: File removed.
9904         * sysdeps/wordsize-64/mkostemp64.c: File removed.
9905         * sysdeps/wordsize-64/mkostemp.c: File removed.
9906         * sysdeps/wordsize-64/mkstemp.c: File removed.
9907         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
9908         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
9909         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
9910         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
9911
9912         [BZ #14138]
9913         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
9914         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
9915         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
9916         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
9917
9918         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
9919         compat_symbol macros from <shlib-compat.h> rather than the underlying
9920         default_symbol_version and symbol_version macros, so that DEFAULT
9921         lines in shlib-versions are respected.
9922         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
9923
9924 2012-08-01  Florian Weimer  <fweimer@redhat.com>
9925
9926         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
9927         Declare with warn_unused_result.
9928         (setgid, setregid, setegid, setresgid): Likewise.
9929         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
9930         Likewise.
9931         * WUR-REPORT: Remove set*id functions.
9932
9933 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
9934
9935         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
9936
9937 2012-07-31  Roland McGrath  <roland@hack.frob.com>
9938
9939         * include/sys/socket.h (__libc_accept, __libc_accept4):
9940         Add attribute_hidden.
9941         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
9942
9943         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
9944         use of PTR_MANGLE.
9945         * inet/getnetgrent_r.c (setup): Likewise.
9946
9947         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
9948
9949 2012-07-31  David S. Miller  <davem@davemloft.net>
9950
9951         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9952
9953 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
9954
9955         [BZ #13629]
9956         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
9957         value between 1.0 and 2.0 and smaller part has absolute value less
9958         than 1.0.
9959         * math/s_clog10.c (__clog10): Likewise.
9960         * math/s_clog10f.c (__clog10f): Likewise.
9961         * math/s_clog10l.c (__clog10l): Likewise.
9962         * math/s_clogf.c (__clogf): Likewise.
9963         * math/s_clogl.c (__clogl): Likewise.
9964         * math/libm-test.inc (clog_test): Add more tests.
9965         (clog10_test): Likewise.
9966         * sysdeps/i386/fpu/libm-test-ulps: Update.
9967         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9968
9969 2012-07-31  Florian Weimer  <fweimer@redhat.com>
9970
9971         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
9972         Exit with zero in case no suitable GID is found, and write a
9973         message to standard error.
9974
9975 2012-07-30  Roland McGrath  <roland@hack.frob.com>
9976
9977         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
9978         rather than to 1.
9979         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
9980         (MAXPATHLEN): Removed.
9981         (NOGROUP, NODEV): New macros.
9982         (setbit, clrbit, isset, isclr): New macros.
9983         (howmany, roundup, powerof2): New macros.
9984         (DEV_BSIZE): New macro.
9985
9986         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
9987         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
9988
9989         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
9990         definition on [!__NO_LONG_DOUBLE_MATH].
9991
9992         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
9993         PTR_MANGLE and PTR_DEMANGLE.
9994
9995         * socket/accept4.c (accept4): Rename to __libc_accept4.
9996         Define accept4 as a weak alias.
9997
9998         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
9999         on [_DIRENT_HAVE_D_TYPE].
10000         * io/ftw.c (ftw_dir): Likewise.
10001
10002         * io/xmknod.c (__xmknod): Don't check PATH for being null.
10003
10004         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
10005
10006         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
10007         Use the BSD numbers rather than the arbitrary ones we had.
10008         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
10009         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
10010         (SIGXCPU, SIGXFSZ): New macros.
10011         (_NSIG): Now 32.
10012
10013         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
10014         initializer on [_LIBC_REENTRANT].
10015
10016         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
10017         definitions inside [_POSIX_MAPPED_FILES].
10018
10019         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
10020
10021         * dirent/opendir.c: Include <fcntl.h>.
10022
10023         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
10024         (__libc_getspecific): Likewise.
10025         (__libc_key_create): Likewise.
10026
10027         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
10028         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
10029         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
10030         (tmpfile64): Define as alias.
10031         * sysdeps/wordsize-64/tmpfile.c: File removed.
10032         * sysdeps/wordsize-64/tmpfile64.c: File removed.
10033         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
10034         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
10035
10036         * stdio-common/vfscanf.c: Include <stdbool.h>.
10037         * nss/makedb.c: Likewise.
10038         * stdio-common/_i18n_number.h: Likewise.
10039         * argp/argp-help.c: Likewise.
10040         * posix/wordexp.c: Likewise.
10041         * sysdeps/posix/spawni.c: Likewise.
10042         * nss/nss_files/files-initgroups.c: Likewise.
10043         * stdio-common/reg-modifier.c: Include <stdlib.h>.
10044         * nss/nss_files/files-initgroups.c: Likewise.
10045         * nss/nss_db/db-netgrp.c: Likewise.
10046         * nss/nss_db/db-initgroups.c: Likewise.
10047         * io/fchmodat.c: Include <sys/stat.h>.
10048
10049         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
10050         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
10051
10052         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
10053         [HAVE_MMAP].
10054
10055         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
10056         Add multiple inclusion protection.
10057
10058 2012-07-27  David S. Miller  <davem@davemloft.net>
10059
10060         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10061
10062 2012-07-27  Gary Benson  <gbenson@redhat.com>
10063
10064         [BZ #14298]
10065         * elf/rtld.c: Include <stap-probe.h>.
10066         (dl_main): Added static probes "init_start" and "init_complete".
10067         * elf/dl-load.c: Include <stap-probe.h>.
10068         (lose): Take new parameter "nsid".
10069         Added static probe "map_failed".
10070         (_dl_map_object_from_fd): Pass namespace id to lose.
10071         Added static probe "map_start".
10072         (open_verify): Pass namespace id to lose.
10073         * elf/dl-open.c: Include <stap-probe.h>.
10074         (dl_open_worker) Added static probes "map_complete", "reloc_start"
10075         and "reloc_complete".
10076         * elf/dl-close.c: Include <stap-probe.h>.
10077         (_dl_close_worker): Added static probes "unmap_start" and
10078         "unmap_complete".
10079         * elf/rtld-debugger-interface.txt: New file documenting the above.
10080
10081 2012-07-26  Roland McGrath  <roland@hack.frob.com>
10082
10083         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
10084         rather than a string variable.
10085         * sunrpc/rpc_main.c (h_output): Likewise.
10086         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
10087
10088 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
10089
10090         * inet/check_native.c: New file.
10091
10092 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
10093
10094         [BZ #13629]
10095         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
10096         if larger part has absolute value 1.0.
10097         * math/s_clog10.c (__clog10): Likewise.
10098         * math/s_clog10f.c (__clog10f): Likewise.
10099         * math/s_clog10l.c (__clog10l): Likewise.
10100         * math/s_clogf.c (__clogf): Likewise.
10101         * math/s_clogl.c (__clogl): Likewise.
10102         * math/libm-test.inc (clog_test): Add more tests.
10103         (clog10_test): Likewise.
10104         * sysdeps/i386/fpu/libm-test-ulps: Update.
10105         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10106
10107         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
10108         (pltexit): Likewise.
10109         (La_regs): Likewise.
10110         (La_retval): Likewise.
10111         (int_retval): Likewise.
10112         Update #error for removed macros to refer only to definitions in
10113         tst-audit.h.
10114         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
10115         macro.
10116         (pltexit): Likewise.
10117         (La_regs): Likewise.
10118         (La_retval): Likewise.
10119         (int_retval): Likewise.
10120         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
10121         macro.
10122         (pltexit): Likewise.
10123         (La_regs): Likewise.
10124         (La_retval): Likewise.
10125         (int_retval): Likewise.
10126         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
10127         macro.
10128         (pltexit): Likewise.
10129         (La_regs): Likewise.
10130         (La_retval): Likewise.
10131         (int_retval): Likewise.
10132         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
10133         macro.
10134         (pltexit): Likewise.
10135         (La_regs): Likewise.
10136         (La_retval): Likewise.
10137         (int_retval): Likewise.
10138         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
10139         macro.
10140         (pltexit): Likewise.
10141         (La_regs): Likewise.
10142         (La_retval): Likewise.
10143         (int_retval): Likewise.
10144         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
10145         macro.
10146         (pltexit): Likewise.
10147         (La_regs): Likewise.
10148         (La_retval): Likewise.
10149         (int_retval): Likewise.
10150         * sysdeps/generic/tst-audit.h: Update comment to refer only to
10151         macro definitions in tst-audit.h.
10152         * sysdeps/i386/tst-audit.h: New file.
10153         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
10154         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
10155         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
10156         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
10157         * sysdeps/sh/tst-audit.h: Likewise.
10158         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
10159         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
10160         * sysdeps/x86_64/tst-audit.h: Likewise.
10161
10162 2012-07-26  Andreas Jaeger  <aj@suse.de>
10163
10164         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
10165         ptrace.
10166
10167         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
10168         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
10169         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
10170         PTRACE_O_MASK.
10171         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
10172         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
10173         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
10174
10175         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
10176         value.
10177
10178         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
10179         _sigsys.
10180         (si_call_addr, si_syscall, si_arch): Define new macro.
10181         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
10182         _sigsys.
10183         (si_call_addr, si_syscall, si_arch): Define new marcro.
10184         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
10185         _sigsys.
10186         (si_call_addr, si_syscall, si_arch): Define new macro.
10187         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
10188         _sigsys.
10189         (si_call_addr, si_syscall, si_arch): Define new macro.
10190
10191 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
10192
10193         [BZ #13717]
10194         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10195         Change to 2.4.21 where previously 2.4.1.
10196         * sysdeps/unix/sysv/linux/configure: Regenerated.
10197         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
10198         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
10199         Linux kernel version.
10200         (__ASSUME_STD_AUXV): Remove.
10201         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
10202         kernel version.
10203         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
10204         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
10205         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
10206         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
10207         (__ASSUME_NETLINK_SUPPORT): Likewise.
10208         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
10209         (__no_netlink_support): Remove conditional definition.
10210         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
10211         Remove.
10212         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
10213         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
10214         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
10215         (if_nameindex_ioctl): Remove.
10216         (if_nameindex_netlink): Do not handle __no_netlink_support.
10217         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
10218         code.
10219         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
10220         Remove conditional code.
10221         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
10222         code.
10223         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
10224         unconditional.
10225         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
10226         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
10227         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
10228         Remove.
10229         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10230         [!__ASSUME_STD_AUXV]: Remove conditional code.
10231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
10232         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
10233         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
10234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
10235         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
10236         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
10237         code.
10238         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
10239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
10240         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
10241         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
10242         conditional code.
10243         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
10244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
10245         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
10246         code.
10247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
10248         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
10249         conditional code.
10250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
10251         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
10252         code unconditional.
10253         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10254         conditional code.
10255         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
10256         unconditional.
10257         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10258         conditional code.
10259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
10260         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
10261         unconditional.
10262         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10263         conditional code.
10264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
10265         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
10266         code unconditional.
10267         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10268         conditional code.
10269         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
10270         unconditional.
10271         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10272         conditional code.
10273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
10274         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
10275         code unconditional.
10276         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10277         conditional code.
10278         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
10279         unconditional.
10280         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10281         conditional code.
10282
10283 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
10284
10285         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
10286         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
10287         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
10288         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
10289         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
10290         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
10291         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
10292         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
10293         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
10294         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
10295         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
10296         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
10297         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
10298         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
10299         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
10300         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
10301         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
10302         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
10303         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
10304         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
10305         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
10306         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
10307         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
10308
10309 2012-07-25  Florian Weimer  <fweimer@redhat.com>
10310
10311         * Versions.def: Add GLIBC_2.17.
10312         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
10313         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
10314         Introduce __libc_secure_getenv.
10315         * stdlib/Versions (2.17): Add secure_getenv
10316         (GLIBC_PRIVATE): Add __libc_secure_getenv.
10317         * stdlib/secure-getenv.c: Rename __secure_getenv to
10318         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
10319         symbol __secure_getenv for GLIBC_2.0.
10320         * stdlib/tst-secure-getenv.c: New.
10321         * stdlib/Makefile (tests): Add testcase.
10322         * manual/startup.texi (Environment Access): Document
10323         secure_getenv.
10324         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
10325         __libc_secure_getenv.
10326         * inet/ruserpass.c (ruserpass): Likewise.
10327         * malloc/mtrace.c (mtrace): Likewise.
10328         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
10329         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
10330         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
10331         * sysdeps/posix/tempname.c: Likewise.  Evaluate
10332         HAVE_SECURE_GETENV.
10333         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
10334         __secure_getenv to __libc_secure_getenv.
10335         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
10336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
10337         Likewise.
10338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
10339         Likewise.
10340         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
10341         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
10342         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
10343         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
10344         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
10345         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
10346         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
10347
10348 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
10349
10350         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
10351         (struct La_i86_retval): Likewise.
10352         (struct La_x86_64_regs): Likewise.
10353         (struct La_x86_64_retval): Likewise.
10354         (struct La_x32_regs): Likewise.
10355         (struct La_x32_retval): Likewise.
10356         (struct La_ppc32_regs): Likewise.
10357         (struct La_ppc32_retval): Likewise.
10358         (struct La_ppc64_regs): Likewise.
10359         (struct La_ppc64_retval): Likewise.
10360         (struct La_sh_regs): Likewise.
10361         (struct La_sh_retval): Likewise.
10362         (struct La_s390_32_regs): Likewise.
10363         (struct La_s390_32_retval): Likewise.
10364         (struct La_s390_64_regs): Likewise.
10365         (struct La_s390_64_retval): Likewise.
10366         (struct La_sparc32_regs): Likewise.
10367         (struct La_sparc32_retval): Likewise.
10368         (struct La_sparc64_regs): Likewise.
10369         (struct La_sparc64_retval): Likewise.
10370         (struct audit_ifaces): Remove architecture-specific pltenter and
10371         pltexit members.
10372         * sysdeps/i386/ldsodefs.h: New file.
10373         * sysdeps/powerpc/ldsodefs.h: Likewise.
10374         * sysdeps/s390/ldsodefs.h: Likewise.
10375         * sysdeps/sh/ldsodefs.h: Likewise.
10376         * sysdeps/sparc/ldsodefs.h: Likewise.
10377         * sysdeps/x86_64/ldsodefs.h: Likewise.
10378
10379 2012-07-25  Marek Polacek  <polacek@redhat.com>
10380
10381         [BZ #6808]
10382         * math/libm-test.inc (yn_test): Add another test.
10383         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
10384         to ERANGE when the result is +-Inf.
10385         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
10386         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
10387         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
10388         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
10389
10390 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
10391
10392         * conform/data/time.h-data (NULL): Use macro-constant.  Require
10393         equal to 0.
10394         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
10395         clock_t.
10396         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
10397
10398 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
10399
10400         * configure.in <sysdeps resolving>: Correct printing
10401         Implies_before.
10402         * configure: Regenerate.
10403
10404 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
10405
10406         * math/w_ilogb.c: Include <limits.h>.
10407         * math/w_ilogbl.c: Likewise.
10408
10409 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
10410
10411         * manual/lang.texi (__va_copy): Document primarily as ISO C99
10412         va_copy.  Document allowing for unavailable va_copy only as
10413         pre-C99 compatibility.
10414         * manual/string.texi (Copying and Concatenation): Use va_copy
10415         instead of __va_copy in concat example.
10416
10417 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
10418
10419         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
10420         (__sendto): Use create_address_port.  Initialize APORT and deallocate
10421         it if not null.
10422
10423         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
10424         with O_NOLINK passed to __file_name_lookup.
10425
10426         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
10427         with O_NOLINK passed to __file_name_lookup.
10428
10429         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
10430         negative N or less than NGIDS.
10431
10432         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
10433         type to string_t.  Set ERANGE as errno and return it if NAME is not big
10434         enough.  Use memcpy instead of strncpy.
10435
10436 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
10437
10438         * elf/Makefile (check-data): Remove.
10439         (localplt.data): New vpath directive.
10440         ($(objpfx)check-localplt.out): Use localplt.data from vpath
10441         instead of $(check-data).
10442         * scripts/data/localplt-generic.data: Move to ...
10443         * sysdeps/generic/localplt.data: ... here.
10444         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
10445         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
10446         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
10447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
10448         ... here.
10449         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
10450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
10451         ... here.
10452         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
10453         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
10454         ... here.
10455         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
10456         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
10457         ... here.
10458         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
10459         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
10460         ... here.
10461         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
10462         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
10463         ... here.
10464
10465 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10466
10467         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
10468         PPC32 and PPC64 files.
10469         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
10470         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
10471
10472 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10473
10474         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
10475         __makecontext_ret to ...
10476         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
10477         ... here and call exit if uc_link is NULL.  New file.
10478         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
10479         __makecontext_ret.S.
10480         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
10481         __makecontext_ret to ...
10482         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
10483         ... here and call exit if uc_link is NULL.  New file.
10484         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
10485         __makecontext_ret.S.
10486
10487 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10488
10489         * elf/elf.h (R_390_IRELATIVE): New definition.
10490         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
10491         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
10492         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
10493         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
10494         (elf_machine_lazy_rel): Likewise.
10495         * sysdeps/s390/dl-irel.h: New file.
10496         * sysdeps/s390/s390-64/memcpy.S: New asm code.
10497         * sysdeps/s390/s390-64/memset.S: New asm code.
10498         * sysdeps/s390/s390-64/memcmp.S: New asm code.
10499         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
10500         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
10501         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
10502         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
10503         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
10504         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
10505         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
10506         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
10507         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
10508         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
10509         * sysdeps/s390/s390-32/memcpy.S: New asm code.
10510         * sysdeps/s390/s390-32/memset.S: New asm code.
10511         * sysdeps/s390/s390-32/memcmp.S: New asm code.
10512
10513 2012-07-17  Marek Polacek  <polacek@redhat.com>
10514
10515         [BZ #14349]
10516         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
10517         * sysdeps/s390/s390-64/configure.in: Likewise.
10518         * sysdeps/sparc/configure.in: Likewise.
10519         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
10520         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
10521         * sysdeps/i386/configure.in: Likewise.
10522         * sysdeps/x86_64/configure.in: Likewise.
10523         * sysdeps/sh/configure.in: Likewise.
10524         * sysdeps/s390/s390-32/configure: Regenerated.
10525         * sysdeps/s390/s390-64/configure: Likewise.
10526         * sysdeps/x86_64/configure: Likewise.
10527         * sysdeps/sh/configure: Likewise.
10528         * sysdeps/powerpc/powerpc64/configure: Likewise.
10529         * sysdeps/powerpc/powerpc32/configure: Likewise.
10530         * sysdeps/sparc/configure: Likwise.
10531         * sysdeps/i386/configure: Likewise.
10532
10533         * elf/dl-open.c: Comment fixes.
10534
10535 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
10536
10537         * Makefile [CXX] (check-data): Remove.
10538         [CXX] (c++-types.data): New vpath directive.
10539         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
10540         vpath.  Do not allow for C++ type data being missing.
10541         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
10542         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
10543         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
10544         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
10545         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
10546         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
10547         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
10548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
10549         ... here.
10550         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
10551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
10552         ... here.
10553         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
10554         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
10555         ... here.
10556         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
10557         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
10558         ... here.
10559         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
10560         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
10561         ... here.
10562         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
10563         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
10564         ... here.
10565         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
10566         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
10567         ... here.
10568         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
10569         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
10570
10571         * elf/tls-macros.h (TLS_LE): Move architecture-specific
10572         definitions to architecture-specific files.
10573         (TLS_IE): Likewise.
10574         (TLS_LD): Likewise.
10575         (TLS_GD): Likewise.
10576         * sysdeps/i386/tls-macros.h: New file.
10577         * sysdeps/powerpc/tls-macros.h: Likewise.
10578         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
10579         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
10580         * sysdeps/sh/tls-macros.h: Likewise.
10581         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
10582         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
10583         * sysdeps/x86_64/tls-macros.h: Likewise.
10584
10585 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
10586
10587         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
10588         zero value for regular exit case.
10589
10590         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
10591         (__start_context): Preserve zero value for regular exit case.
10592
10593 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
10594             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10595
10596         * manual/setjmp.texi (setcontext): Clarify normal process
10597         termination when uc_link is the null pointer.
10598         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
10599         exit call.
10600
10601 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
10602
10603         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
10604         preprocessor.  Test for each exception mask separately.
10605
10606 2012-07-16  Andreas Jaeger  <aj@suse.de>
10607
10608         * po/ru.po: Update from translation team.
10609
10610 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
10611
10612         * conform/data/string.h-data (NULL): Use macro-constant.  Require
10613         equal to 0.
10614         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
10615         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
10616         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
10617         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
10618         [ISO || ISO99 || ISO11] (*_t): Do not allow.
10619
10620 2012-07-13  Andreas Jaeger  <aj@suse.de>
10621
10622         * po/fr.po: Update from translation team.
10623
10624 2012-07-12  Marek Polacek  <polacek@redhat.com>
10625
10626         [BZ #14173]
10627         * math/libm-test.inc (yn_test): Add test for BZ #14173.
10628         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
10629         loop condition.
10630
10631 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
10632
10633         [BZ #13717]
10634         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10635         Change to 2.4.1 where previously 2.4.0.
10636         * sysdeps/unix/sysv/linux/configure: Regenerated.
10637         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
10638         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
10639         version.
10640         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
10641         (__ASSUME_AT_CLKTCK): Remove.
10642         (__ASSUME_AT_PAGESIZE): Likewise.
10643         (__ASSUME_AT_XID): Likewise.
10644         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
10645         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
10646         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
10647         unconditionally.
10648         (HAVE_AUX_PAGESIZE): Likewise.
10649         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
10650         [__ASSUME_AT_CLKTCK]: Make code unconditional.
10651         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
10652
10653 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
10654
10655         [BZ #14307]
10656         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
10657         the temporary buffer used to invoke __gethostbyname2_r,
10658         __gethostbyaddr_r and gethostbyname4_r to make room for struct
10659         host_data / struct gaih_addrtuple.
10660         * resolv/nss_dns/dns-host.c (global scope): Move definition of
10661         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
10662         header file nss/nsswitch.h.
10663         * nss/nsswitch.h (global scope): Add definition of implementation
10664         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
10665         resolv/nss_dns/dns-host.c).
10666
10667 2012-07-11  Andreas Jaeger  <aj@suse.de>
10668
10669         * po/fr.po: Update from translation team.
10670
10671         * po/sv.po: Update from translation team
10672         * po/fr.po: Another update from translation team.
10673
10674 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10675
10676         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
10677         for subnormals or multiply small sinh result by itself.
10678         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10679         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10680
10681 2012-07-11  David S. Miller  <davem@davemloft.net>
10682
10683         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10684
10685 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
10686
10687         [BZ #14347]
10688         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
10689         (INTERNAL_MARK): Shift it here.
10690
10691 2012-07-10  Marek Polacek  <polacek@redhat.com>
10692
10693         [BZ #14151]
10694         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
10695         libc_cv_asm_global_directive with .globl.
10696         * configure: Regenerated.
10697         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
10698         with .globl.
10699         * sysdeps/i386/configure: Regenerated.
10700         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
10701         with .globl.
10702         * sysdeps/x86_64/configure: Regenerated.
10703         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
10704         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
10705         * elf/tst-unique2mod2.c: Likewise.
10706         * elf/tst-unique2mod1.c: Likewise.
10707         * elf/tst-unique1mod2.c: Likewise.
10708         * elf/tst-unique1mod1.c: Likewise.
10709         * sysdeps/s390/s390-32/sysdep.h: Likewise.
10710         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
10711         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10712         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
10713         * sysdeps/mach/sysdep.h: Likewise.
10714         * sysdeps/i386/sysdep.h: Likewise.
10715         * sysdeps/i386/i386-mcount.S: Likewise.
10716         * sysdeps/x86_64/_mcount.S: Likewise.
10717         * sysdeps/x86_64/sysdep.h: Likewise.
10718         * sysdeps/sh/_mcount.S: Likewise.
10719         * sysdeps/sh/sysdep.h: Likewise.
10720         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
10721         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
10722         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
10723         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10724         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
10725         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
10726         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
10727         * locale/localeinfo.h: Likewise.
10728         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
10729         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
10730
10731 2012-07-09  Roland McGrath  <roland@hack.frob.com>
10732
10733         [BZ #14336]
10734         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
10735         system".
10736         * manual/message.texi (The Uniforum approach): Likewise.
10737         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
10738         (glibc iconv Implementation): Likewise.
10739
10740 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
10741
10742         [BZ #14337]
10743         * math/s_clog.c (__clog): Avoid scaling a value down where that
10744         could result in underflow.
10745         * math/s_clog10.c (__clog10): Likewise.
10746         * math/s_clog10f.c (__clog10f): Likewise.
10747         * math/s_clog10l.c (__clog10l): Likewise.
10748         * math/s_clogf.c (__clogf): Likewise.
10749         * math/s_clogl.c (__clogl): Likewise.
10750         * math/libm-test.inc (clog_test): Add more tests.
10751         (clog10_test): Likewise.
10752         * sysdeps/i386/fpu/libm-test-ulps: Update.
10753         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10754
10755 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
10756
10757         [BZ #14283]
10758         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
10759         by 7 not 8 to examine high bit of fractional part.
10760
10761         [BZ #14042]
10762         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
10763         for call to __mcount_internal.
10764         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
10765         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
10766         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
10767
10768 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
10769
10770         [BZ #14154]
10771         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
10772         approximation for values within 0x1p-13f of an odd multiple of
10773         pi/4.
10774         * math/libm-test.inc (tan_test): Do not allow spurious underflow
10775         exception.  Add more tests.
10776         * sysdeps/i386/fpu/libm-test-ulps: Update.
10777
10778         [BZ #6778]
10779         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
10780         inputs and return -1 for them.  Do not check for +Inf in case not
10781         reachable for +Inf.
10782         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
10783         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
10784         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
10785         and return -1 for them.  Do not check for +Inf in case not
10786         reachable for +Inf.
10787         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
10788         define.
10789         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
10790         and return -1 for them.  Do not check for +Inf in case not
10791         reachable for +Inf.
10792         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
10793         spurious underflow.
10794         * sysdeps/i386/fpu/libm-test-ulps: Update.
10795         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10796
10797 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
10798
10799         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
10800
10801 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
10802
10803         [BZ #14157]
10804         [BZ #14331]
10805         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
10806         could result in spurious underflow.  Scale down values above
10807         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
10808         * math/s_csqrtf.c (__csqrtf): Likewise.
10809         * math/s_csqrtl.c (__csqrtl): Likewise.
10810         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
10811         spurious underflow.
10812         * sysdeps/i386/fpu/libm-test-ulps: Update.
10813         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10814
10815 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
10816
10817         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
10818         xopen-msg.sed.
10819         * catgets/xopen-msg.awk: New file.
10820         * catgets/xopen-msg.sed: Removed.
10821
10822         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
10823         po2text.sed.
10824         * intl/po2test.awk: New file.
10825         * intl/po2test.sed: Removed.
10826
10827 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
10828
10829         [BZ #14328]
10830         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
10831         or multiply small sinh result by itself.
10832         * math/s_ctanf.c (__ctanf): Likewise.
10833         * math/s_ctanh.c (__ctanh): Likewise.
10834         * math/s_ctanhf.c (__ctanhf): Likewise.
10835         * math/s_ctanhl.c (__ctanhl): Likewise.
10836         * math/s_ctanl.c (__ctanl): Likewise.
10837         * math/libm-test.inc (ctan_test_tonearest): New function.
10838         (ctan_test_towardzero): Likewise.
10839         (ctan_test_downward): Likewise.
10840         (ctan_test_upward): Likewise.
10841         (ctanh_test_tonearest): Likewise.
10842         (ctanh_test_towardzero): Likewise.
10843         (ctanh_test_downward): Likewise.
10844         (ctanh_test_upward): Likewise.
10845         (main): Call these new functions.
10846         * sysdeps/i386/fpu/libm-test-ulps: Update.
10847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10848
10849 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
10850
10851         * .gitignore: Delete /ports entry.
10852
10853 2012-07-03  Andreas Jaeger  <aj@suse.de>
10854
10855         * po/bg.po: Update from translation team.
10856         * po/cs.po: Likewise.
10857         * po/de.po: Likewise.
10858         * po/hr.po: Likewise.
10859         * po/nl.pl: Likewise.
10860         * po/pl.po: Likewise.
10861         * po/vi.po: Likewise.
10862
10863 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
10864
10865         * Makeconfig [!+link] (+link-before-libc): New variable.
10866         [!+link] (+link-after-libc): Likewise.
10867         [!+link] (+link-tests): Likewise.
10868         [!+link] (+link): Define in terms of $(+link-before-libc) and
10869         $(+link-after-libc).
10870         [!+link-static] (+link-static-before-libc): New variable.
10871         [!+link-static] (+link-static-after-libc): Likewise.
10872         [!+link-static] (+link-static-tests): Likewise.
10873         [!+link-static] (+link-static): Define in terms of
10874         $(+link-static-before-libc) and $(+link-static-after-libc).
10875         [build-shared] (link-libc-before-gnulib): New variable.
10876         [build-shared] (link-libc-tests): Likewise.
10877         [build-shared] (link-libc): Define in terms of
10878         $(link-libc-before-gnulib).
10879         [!build-shared] (link-libc-tests): New variable.
10880         (link-libc-static-tests): New variable.
10881         [!gnulib] (gnulib-arch): New variable.
10882         [!gnulib] (gnulib-tests): Likewise.
10883         [!gnulib] (static-gnulib-arch): Likewise.
10884         [!gnulib] (static-gnulib-tests): Likewise.
10885         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
10886         Define with "=" instead of ":=".
10887         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
10888         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
10889         * Rules (binaries-all-notests): New variable.
10890         (binaries-all-tests): Likewise.
10891         (binaries-static-notests): Likewise.
10892         (binaries-static-tests): Likewise.
10893         (binaries-all): Define using $(binaries-all-notests) and
10894         $(binaries-all-tests).
10895         (binaries-static): Define using $(binaries-static-notests) and
10896         $(binaries-static-tests).
10897         (binaries-shared-tests): New variable.
10898         (binaries-shared-notests): Likewise.
10899         (binaries-shared): Remove variable.
10900         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
10901         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
10902         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
10903         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
10904         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
10905         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
10906         * elf/Makefile (sln-modules): New variable.
10907         (extra-objs): Add $(sln-modules:=.o).
10908         (ldconfig-modules): Add static-stubs.
10909         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
10910         * elf/static-stubs.c: New file.
10911
10912         [BZ #14283]
10913         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
10914         by 7 not 8 to examine high bit of fractional part.  Use volatile
10915         variables when splitting into final array of floats if
10916         __FLT_EVAL_METHOD__ != 0.
10917         * math/libm-test.inc (cos_test): Add another test.
10918         (sin_test): Likewise.
10919         * sysdeps/i386/fpu/libm-test-ulps: Update.
10920
10921         [BZ #14273]
10922         * math/libm-test.inc (cosh_test): Add more tests.
10923
10924         * version.h (RELEASE): Set to "development".
10925         (VERSION): Set to "2.16.90".
10926
10927 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
10928
10929         * NEWS: Update copyright. Remove last-updated date.
10930         Mention math library bug fixes and timezone data changes.
10931         * README: Mention GNU/Hurd, x32, and HPPA support status.
10932
10933 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
10934
10935         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
10936
10937 2012-06-27  Andreas Jaeger  <aj@suse.de>
10938
10939         * manual/contrib.texi (Contributors): Add Samuel Thibault.
10940
10941 2012-06-25  Andreas Jaeger  <aj@suse.de>
10942
10943         * sysdeps/s390/fpu/libm-test-ulps: Update.
10944
10945 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
10946             Thomas Schwinge  <thomas@codesourcery.com>
10947
10948         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
10949         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
10950         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
10951         fanotify_mark.
10952
10953 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
10954
10955         * sysdeps/mach/start.c: Remove file.
10956         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
10957         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
10958         * sysdeps/sh/init-first.c: Likewise.
10959
10960         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
10961         registers for frame unwinding purposes, add CFI directives.
10962         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
10963         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
10964         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
10965         Likewise.
10966
10967         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
10968         __fortify_fail returning.
10969         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
10970
10971         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
10972         sysdeps/sh/____longjmp_chk.S.
10973         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
10974         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
10975         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
10976         (gen-as-const-headers): Append sigaltstack-offsets.sym.
10977
10978         * sysdeps/sh/abort-instr.h: New file.
10979         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
10980         process in case exit returns.
10981
10982         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
10983         initialize the GOT register before use.
10984
10985         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
10986         calculation of ARGC > 4.
10987
10988         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
10989         meaningful names to some local labels.
10990
10991 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10992             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10993
10994         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
10995         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
10996         (__arch_compare_and_exchange_val_16_acq): Likewise.
10997         (__arch_compare_and_exchange_val_32_acq): Likewise.
10998         (atomic_exchange_and_add): Fix gUSA sequence.
10999         (atomic_add): Likewise.
11000         (atomic_add_negative): Likewise.
11001         (atomic_add_zero): Likewise.
11002         (atomic_bit_test_set): Likewise.
11003
11004 2012-06-22  Andreas Schwab  <schwab@redhat.com>
11005
11006         [BZ #13579]
11007         * include/link.h (struct link_map): Add l_free_initfini.
11008         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
11009         l_initfini.
11010         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
11011         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
11012         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
11013         set.
11014
11015 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
11016
11017         * configure.in: Use AC_LANG_SOURCE.
11018         * configure: Regenerate.
11019
11020 2012-06-22  Roland McGrath  <roland@hack.frob.com>
11021
11022         * configure.in (libc_cv_localstatedir): New substituted variable.
11023         * configure: Regenerated.
11024         * config.make.in (localstatedir): New variable, substituted from
11025         libc_cv_localstatedir.
11026         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
11027         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
11028         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
11029         * sysdeps/gnu/configure: Regenerated.
11030
11031 2012-06-21  Jeff Law  <law@redhat.com>
11032
11033         [BZ #14277]
11034         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
11035         free.  Simplify list management for _LIBC case.
11036
11037 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
11038
11039         [BZ #14273]
11040         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
11041         Clear sign bit of 64-bit integer value before comparing against
11042         overflow value.
11043
11044         * sysdeps/mach/configure: Regenerated.
11045
11046 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
11047
11048         [BZ #14278]
11049         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
11050
11051 2012-06-21  Jeff Law  <law@redhat.com>
11052
11053         [BZ #13882]
11054         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
11055         uint16_t for elements in the "seen" array to avoid char overflows.
11056         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11057         * elf/dl-open.c (dl_open_worker): Likewise.
11058
11059 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
11060
11061         * scripts/list-sources.sh: Scan PORTS for translations.
11062         * po/libc.pot: Regenerated.
11063
11064 2012-06-21  Andreas Jaeger  <aj@suse.de>
11065
11066         [BZ #12194]
11067         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
11068         warning.
11069         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
11070         * bits/byteswap-16.h (__bswap_16): Likewise.
11071         * bits/byteswap.h (__bswap_constant_16): Likewise.
11072
11073 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11074
11075         [BZ #14117]
11076         * sysdeps/i386/fpu_control.h: Removed.
11077         * sysdeps/x86_64/fpu_control.h: Moved to ...
11078         * sysdeps/x86/fpu_control.h: Here.
11079
11080         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
11081         (_FPU_SETCW): Likewise.
11082
11083 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
11084
11085         [BZ #14117]
11086         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
11087         * sysdeps/x86/fpu/bits/mathinline.h: This.
11088         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
11089
11090         [BZ #14050]
11091         [BZ #14117]
11092         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
11093         functions if __x86_64__ is defined.
11094
11095 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
11096
11097         * string/endian.h: Add !__ASSEMBLER__ condition for including
11098         conversion interfaces.
11099
11100 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
11101
11102         [BZ #14241]
11103         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
11104         of ABS(x) in calculating zero to negative powers other than odd
11105         integers.
11106         * math/libm-test.inc (pow_test): Add more tests.
11107
11108 2012-06-15  Andreas Jaeger  <aj@suse.de>
11109
11110         * manual/contrib.texi (Contributors): Update entry of Liubov
11111         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
11112         Machado Filho.
11113
11114 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
11115
11116         * string/string.h: Add __wur to GNU version of strerror_r.
11117
11118 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
11119
11120         [BZ #14229]
11121         * string/Makefile (tests): Add tst-strtok_r.
11122         * string/tst-strtok_r.c: New file.
11123         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
11124         RAX_LP/RDX_LP on SAVE_PTR.
11125
11126 2012-06-14  Roland McGrath  <roland@hack.frob.com>
11127
11128         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
11129
11130 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
11131
11132         * libm_test.inc (csqrt_test): Allow more spurious underflow
11133         exceptions.
11134         (j0_test): Likewise.
11135         (j1_test): Likewise.
11136         (y0_test): Likewise.
11137         (y1_test): Likewise.
11138
11139 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
11140
11141         * po/Makefile (libc.pot): Use UTF-8 charset.
11142
11143 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
11144
11145         [BZ #14210]
11146         Suppress sign-conversion warning from FD_SET.
11147         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
11148         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
11149         not unsigned long int.
11150         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
11151
11152 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
11153
11154         [BZ #14050]
11155         [BZ #14117]
11156         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
11157         __extern_always_inline instead of __extern_inline.
11158         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
11159         (__signbit): Likewise.
11160         (__signbitl): Support C++ namespace.
11161         (lrintf): New inline function.
11162         (lrint): Likewise.
11163         (llrintf): Likewise.
11164         (llrint): Likewise.
11165         (fmaxf): Likewise.
11166         (fmax): Likewise.
11167         (fminf): Likewise.
11168         (fmin): Likewise.
11169         (rint): Likewise.
11170         (rintf): Likewise.
11171         (ceil): Likewise.
11172         (ceilf): Likewise.
11173         (floor): Likewise.
11174         (floorf): Likewise.
11175         (nearbyint): Likewise.
11176         (nearbyintf): Likewise.
11177
11178 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
11179
11180         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
11181         non-default versions.
11182
11183 2012-06-11  Roland McGrath  <roland@hack.frob.com>
11184
11185         [BZ #14218]
11186         * manual/argp.texi (Argp): Reword argp_parse description slightly.
11187
11188 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
11189
11190         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
11191         (FE_UPWARD, FE_DOWNWARD): Don't define.
11192         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
11193         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
11194
11195         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
11196         reading it.
11197         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
11198         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
11199
11200 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11201
11202         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
11203         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
11204         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
11205         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
11206
11207 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
11208
11209         [BZ #14117]
11210         * sysdeps/i386/fpu/bits/fenv.h: Removed.
11211         * sysdeps/i386/fpu/Implies: New file.
11212         * sysdeps/x86_64/fpu/Implies: Likewise.
11213         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
11214         * sysdeps/x86/fpu/bits/fenv.h: This.
11215
11216         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
11217         __SSE_MATH__.
11218
11219 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
11220
11221         [BZ #14134]
11222         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
11223         character 0xffff that matches the last element of the
11224         conversion table.
11225
11226 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11227
11228         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
11229         fmodl commit.
11230
11231 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11232
11233         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
11234         values higher than 25.6283.
11235
11236 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11237
11238         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
11239         subnormal exponent extraction and add some __builtin_expect.
11240         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
11241         Fix for subnormal mantissa calculation.
11242
11243 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
11244
11245         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
11246         cpu2 is -1 and errno is not ENOSYS.
11247
11248 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
11249
11250         [BZ #14117]
11251         * sysdeps/i386/i486/bits/string.h: Renamed to ...
11252         * sysdeps/x86/bits/string.h: This.
11253         * sysdeps/x86_64/bits/string.h: Removed.
11254
11255         * sysdeps/i386/i486/bits/string.h: Define inline functions only
11256         if not compiling for x86-64, but compiling for >= i486.
11257
11258         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
11259         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
11260
11261         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
11262         New macro from Linux kernel 3.4.0.
11263         (FP_XSTATE_MAGIC2): Likewise.
11264         (FP_XSTATE_MAGIC2_SIZE): Likewise.
11265         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
11266         (struct _fpx_sw_bytes): New struct.
11267         (struct _xsave_hdr): Likewise.
11268         (struct _ymmh_state): Likewise.
11269         (struct _xstate): Likewise.
11270
11271         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
11272         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
11273         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
11274         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
11275         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
11276         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
11277
11278         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
11279         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
11280         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
11281         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
11282         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
11283         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
11284
11285 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11286
11287         [BZ #13743]
11288         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
11289         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
11290         (sysdep_headers): Include sys/platform/ppc.h.
11291         * sysdeps/powerpc/test-gettimebase.c: Test for
11292         __ppc_get_timebase() to catch future ISA opcode/insn changes.
11293         * manual/Makefile (appendices): Include platform.texi.
11294         * manual/contrib.texi (Contributors): Update @node pointers.
11295         * manual/maint.texi (Maintenance): Likewise.
11296         (Platform): New node.
11297         * manual/platform.texi: New file.  Document the new features.
11298
11299 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11300             Jakub Jelinek  <jakub@redhat.com>
11301
11302         [BZ #14188]
11303         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
11304         where __builtin_expect is unavailable.
11305
11306 2012-06-03  David S. Miller  <davem@davemloft.net>
11307
11308         * stdlib/longlong.h: Updated from GCC.
11309
11310 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
11311
11312         [BZ #14042]
11313         * sysdeps/powerpc/powerpc32/mcount.c: New file.
11314         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
11315         __mcount_internal.
11316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
11317         (GLIBC_2.16): Likewise.
11318
11319 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
11320
11321         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
11322
11323 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
11324
11325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
11326         (default-abi): New variable.
11327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
11328         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
11329         variable.
11330         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
11331         Likewise.
11332         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
11333         Likewise.
11334         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
11335         Likewise.
11336
11337         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
11338         definition.  Document in comment.
11339
11340 2012-06-01  David S. Miller  <davem@davemloft.net>
11341
11342         * stdlib/longlong.h: Updated from GCC.
11343
11344 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
11345
11346         [BZ #14117]
11347         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
11348         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
11349         sys/debugreg.h sys/io.h here.
11350         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
11351         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
11352         sys/io.h.
11353         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
11354         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
11355         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
11356         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
11357         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
11358         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
11359
11360         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
11361         Define only if __x86_64__ is defined.
11362
11363 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
11364
11365         [BZ #14048]
11366         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
11367         Use int64_t for variable i.
11368         * math/libm-test.inc (fmod_test): Add more tests.
11369
11370         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
11371         z computation is not scheduled after fetestexcept.
11372         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
11373         Use math_force_eval instead of asm to ensure calculation scheduled
11374         before exception test.
11375         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
11376         Ensure a1 + u.d computation is not scheduled after fetestexcept.
11377
11378 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
11379
11380         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
11381         computation is not scheduled after fetestexcept.
11382
11383 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
11384
11385         [BZ #14117]
11386         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
11387         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
11388
11389 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11390
11391         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
11392         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11393
11394 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
11395
11396         [BZ #14117]
11397         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
11398         <bits/wordsize.h>.
11399         (__WCHAR_MIN): Support __WORDSIZE == 64.
11400         (__WCHAR_MAX): Likewise.
11401
11402         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
11403         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
11404
11405         [BZ #14183]
11406         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
11407         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
11408
11409         [BZ #14117]
11410         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
11411         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
11412
11413         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
11414         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
11415
11416         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
11417         Defined to 1 if __x86_64__ isn't defined.
11418         (_STAT_VER_LINUX_OLD): New.
11419         (st_atime): Remove duplicate.
11420         (st_mtime): Likewise.
11421         (st_ctime): Likewise.
11422
11423 2012-05-31  David S. Miller  <davem@davemloft.net>
11424
11425         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
11426         entries.
11427
11428 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
11429
11430         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
11431         gen-libm-test.pl.
11432
11433         [BZ #14132]
11434         * elf/dl-reloc.c: Include <_itoa.h>.
11435         (_dl_reloc_bad_type): Remove use of INTUSE.
11436         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
11437         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
11438         * stdio-common/psiginfo.c (psiginfo): Likewise.
11439         * stdio-common/psignal.c (psignal): Likewise.
11440         * string/strsignal.c (strsignal): Likewise.
11441         * include/signal.h (_sys_siglist): Declare hidden proto.
11442         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
11443         INTVARDEF with libc_hidden_data_def.
11444         * stdio-common/itoa-udigits.c: Likewise.
11445         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
11446         (_itoa_lower_digits_internal): Remove declaration.
11447         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
11448         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
11449         (_sys_sigabbrev_internal): Remove aliases.
11450         (_sys_siglist): Define hidden alias.
11451
11452 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
11453
11454         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11455         bits/sysctl.h.
11456
11457 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
11458
11459         [BZ #14117]
11460         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
11461         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
11462
11463         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
11464         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
11465         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
11466         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
11467         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
11468         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
11469
11470         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
11471         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
11472         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
11473
11474         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
11475         with __addr.
11476         (insw): Likewise.
11477         (insl): Likewise.
11478         (outsb): Likewise.
11479         (outsw): Likewise.
11480         (outsl): Likewise.
11481
11482         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
11483         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
11484         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
11485
11486         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
11487         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
11488         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
11489         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
11490         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
11491         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
11492
11493         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
11494         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
11495
11496         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
11497         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
11498
11499         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
11500         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
11501         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
11502
11503         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
11504         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
11505         to ...
11506         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
11507
11508         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
11509         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
11510         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
11511
11512         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
11513         for x86-64.
11514         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
11515
11516 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
11517
11518         * math/math.h (M_El): Use two more decimal places.
11519         (M_LOG2El): Likewise.
11520         (M_LOG10El): Likewise.
11521         (M_LN2l): Likewise.
11522         (M_LN10l): Likewise.
11523         (M_PIl): Likewise.
11524         (M_PI_2l): Likewise.
11525         (M_PI_4l): Likewise.
11526         (M_1_PIl): Likewise.
11527         (M_2_PIl): Likewise.
11528         (M_2_SQRTPIl): Likewise.
11529         (M_SQRT2l): Likewise.
11530         (M_SQRT1_2l): Likewise.
11531
11532 2012-05-31  David S. Miller  <davem@davemloft.net>
11533
11534         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
11535         values between float registers.
11536         * sysdeps/sparc/sparc64/memset.S: Likewise.
11537         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
11538
11539 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
11540
11541         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
11542         -D_FORTIFY_SOURCE=1.
11543         (CPPFLAGS-tst-longjmp_chk.c): Define.
11544         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
11545         (CPPFLAGS-tst-longjmp_chk2.c): Define.
11546         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
11547         CFLAGS-tst-wchar-h.c.
11548
11549 2012-05-31  Marek Polacek  <polacek@redhat.com>
11550
11551         [BZ #14132]
11552         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
11553         __endmntent_internal): Remove declaration.
11554         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
11555         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
11556         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
11557
11558 2012-05-30  David S. Miller  <davem@davemloft.net>
11559
11560         * sysdeps/sparc/sparc32/soft-fp/q_util.c
11561         (___Q_simulate_exceptions): Use real FP ops rather than writing
11562         into the %fsr.
11563         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
11564         Likewise.
11565
11566 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
11567
11568         [BZ #14117]
11569         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
11570         * sysdeps/x86/bits/xtitypes.h: This.
11571
11572         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
11573         * sysdeps/x86/bits/wordsize.h: This.
11574
11575         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
11576         * sysdeps/x86/bits/huge_vall.h: This.
11577
11578         * sysdeps/i386/bits/select.h: Removed.
11579         * sysdeps/x86_64/bits/select.h: Renamed to ...
11580         * sysdeps/x86/bits/select.h: This.
11581
11582         * sysdeps/i386/bits/setjmp.h: Removed.
11583         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
11584         * sysdeps/x86/bits/setjmp.h: This.
11585
11586         * sysdeps/i386/bits/mathdef.h: Removed.
11587         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
11588         * sysdeps/x86/bits/mathdef.h: This.
11589
11590 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
11591
11592         [BZ #14132]
11593         * include/sys/socket.h (__connect_internal)
11594         (__libc_sa_len_internal): Remove declaration.
11595         (__connect, __libc_sa_len): Declare hidden_proto.
11596         (SA_LEN): Remove use of INTUSE.
11597         * socket/connect.c: Add libc_hidden_def.
11598         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
11599         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
11600         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
11601         alias.
11602         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11603         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11604         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
11605         of adding _internal alias.
11606
11607 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
11608
11609         [BZ #14117]
11610         * sysdeps/i386/bits/link.h: Removed.
11611         * sysdeps/i386/bits/linkmap.h: Likewise.
11612         * sysdeps/x86_64/bits/link.h: Renamed to ...
11613         * sysdeps/x86/bits/link.h: This.
11614         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
11615         * sysdeps/x86/bits/linkmap.h: This.
11616
11617         * sysdeps/i386/bits/endian.h: Removed.
11618         * sysdeps/x86_64/bits/endian.h: Renamed to ...
11619         * sysdeps/x86/bits/endian.h: This.
11620
11621         * sysdeps/i386/bits/byteswap.h: Removed.
11622         * sysdeps/i386/bits/byteswap-16.h: Likewise.
11623         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
11624         * sysdeps/x86/bits/byteswap.h: This.
11625         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
11626         * sysdeps/x86/bits/byteswap-16.h: This.
11627         * sysdeps/i386/Implies: Add x86.
11628         * sysdeps/x86_64/Implies: Likewise.
11629
11630 2012-05-30  David S. Miller  <davem@davemloft.net>
11631
11632         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
11633         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
11634         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
11635         (FP_TRAPPING_EXCEPTIONS): Define.
11636         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
11637         (FP_TRAPPING_EXCEPTIONS): Define.
11638         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
11639         subnormals only when inexact has been signalled or underflow
11640         exceptions are enabled.
11641         (_FP_PACK_CANONICAL): Likewise.
11642
11643 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
11644
11645         [BZ #14183]
11646         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
11647         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
11648
11649 2012-05-30  Richard Henderson  <rth@twiddle.net>
11650
11651         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
11652         with #ifndef NOT_IN_libc.
11653
11654         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
11655         marked to avoid plt entry.
11656
11657 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
11658
11659         [BZ #14112]
11660         * Makeconfig (default-abi): New macro.
11661         (abi-includes): Likewise.
11662         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
11663         $(abi-$(default-abi)-lib-soname) for soname if defined.
11664         ($(common-objpfx)gnu/lib-names.stmp): Generate from
11665         abi-variants.
11666         * Makefile (installed-stubs): Likewise.
11667         * include/stubs-biarch.h: Removed.
11668         * scripts/lib-names.awk: Only handle one library at a time.
11669         * scripts/soversions.awk: Remove WORDSIZE support.
11670         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
11671         entries.
11672         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
11673         Removed.
11674         (syscall-list-default-condition): Likewise.
11675         (syscall-list-default-condition): Likewise.
11676         (syscall-list-includes): Likewise.
11677         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
11678         syscall-list-* with abi-*.  Handle undefined abi-variants.
11679         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
11680         * sysdeps/unix/sysv/linux/i386/Implies: New file.
11681         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
11682         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
11683         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
11684         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
11685         Removed.
11686         (syscall-list-32-options): Likewise.
11687         (syscall-list-32-condition): Likewise.
11688         (syscall-list-64-options): Likewise.
11689         (syscall-list-64-condition): Likewise.
11690         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
11691         macro.
11692         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
11693         Renamed to ...
11694         (abi-*): This.
11695         (abi-64-ld-soname): New macro.
11696         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
11697         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
11698         Renamed to ...
11699         (abi-*): This.
11700         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
11701         * sysdeps/x86_64/x32/shlib-versions: Likewise.
11702
11703 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
11704
11705         * sysdeps/unix/sysv/linux/kernel-features.h
11706         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
11707         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
11708         include <kernel-features.h>.
11709         [!__NR_ftruncate64]: Remove conditional code.
11710         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
11711         [__NR_ftruncate64]: Make code unconditional.
11712         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
11713         * sysdeps/unix/sysv/linux/truncate64.c: Do not
11714         include <kernel-features.h>.
11715         [!__NR_ftruncate64]: Remove conditional code.
11716         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
11717         [__NR_ftruncate64]: Make code unconditional.
11718         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
11719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
11720         include <kernel-features.h>.
11721         [!__NR_ftruncate64]: Remove conditional code.
11722         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
11723         [__NR_ftruncate64]: Make code unconditional.
11724         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
11725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
11726         include <kernel-features.h>.
11727         [!__NR_ftruncate64]: Remove conditional code.
11728         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
11729         [__NR_ftruncate64]: Make code unconditional.
11730         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
11731
11732         * configure.in (libc_cv_fpie): Weaken to a compile test using
11733         LIBC_TRY_CC_OPTION.
11734         * configure: Regenerated.
11735
11736 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11737
11738         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
11739         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
11740         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
11741         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
11742         Refreshed.
11743         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
11744         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
11745         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
11746         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
11747         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
11748         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
11749         Refreshed.
11750
11751 2012-05-27  David S. Miller  <davem@davemloft.net>
11752
11753         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
11754         (___Q_zero): New.
11755         (__Q_simulate_exceptions): Return void.  Change to simulate
11756         exceptions by writing into the %fsr.
11757         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
11758         (__Qp_handle_exceptions): Likewise.
11759         (numbers): Delete.
11760         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
11761         __Qp_handle_exceptions.
11762         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
11763         __Qp_handle_exceptions.
11764         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
11765         as unused and give dummy FP_RND_NEAREST initializer.
11766         (FP_INHIBIT_RESULTS): Define.
11767         (___Q_simulate_exceptions): Update declaration.
11768         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
11769         formatting.
11770         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
11771         as unused and give dummy FP_RND_NEAREST initializer.
11772         (__Qp_handle_exceptions): Update declaration.
11773         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
11774         formatting.
11775
11776 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
11777
11778         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
11779         the temporary FPU control word.
11780         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11781         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
11782         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
11783         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
11784         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
11785         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
11786         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
11787         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
11788         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
11789         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
11790         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
11791
11792 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11793
11794         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
11795         fields.
11796
11797 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
11798
11799         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
11800         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
11801         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
11802         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
11803         Likewise.
11804         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
11805         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
11806         Likewise.
11807
11808 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
11809
11810         * po/h.po: Update from translation team.
11811
11812 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
11813
11814         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
11815
11816         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
11817         handling of denormals.
11818         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
11819         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
11820         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
11821         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
11822         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
11823         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
11824         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
11825         Likewise.
11826
11827 2012-05-26  Marek Polacek  <polacek@redhat.com>
11828
11829         [BZ #14152]
11830         * math/libm-test.inc (fma_test): Don't always expect underflow
11831         exception.
11832
11833 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11834
11835         [BZ #12416]
11836         * elf/tst-execstack.c: Include stackinfo.h.
11837         (do_test): Adjust test case to ensure that pthread_getattr_np
11838         behaviour remains the same after marking stack executable.
11839
11840 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
11841
11842         * sysdeps/unix/sysv/linux/kernel-features.h
11843         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
11844         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
11845         kernel-features.h.
11846         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
11847         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
11848         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
11849         kernel-features.h.
11850         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
11851         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
11852
11853 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11854
11855         * configure.in: Define the default includes to being none.
11856         * configure: Regenerated.
11857
11858 2012-05-25  Roland McGrath  <roland@hack.frob.com>
11859
11860         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
11861         * sysdeps/x86_64/setjmp.S: Likewise.
11862         * sysdeps/i386/bsd-setjmp.S: Likewise.
11863         * sysdeps/i386/bsd-_setjmp.S: Likewise.
11864         * sysdeps/i386/setjmp.S: Likewise.
11865         * sysdeps/i386/__longjmp.S: Likewise.
11866         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
11867         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
11868
11869         * include/stap-probe.h: New file.
11870         * configure.in: Handle --enable-systemtap.
11871         * configure: Regenerated.
11872         * config.h.in (USE_STAP_PROBE): New #undef.
11873         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
11874         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
11875         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
11876
11877 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
11878
11879         [BZ #13717]
11880         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
11881         to 2.4.0 where earlier.
11882         * sysdeps/unix/sysv/linux/configure: Regenerated.
11883         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
11884         <kernel-features.h>.
11885         [__ASSUME_32BITUIDS]: Make code unconditional.
11886         [!__ASSUME_32BITUIDS]: Remove conditional code.
11887         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
11888         <kernel-features.h>.
11889         [__ASSUME_32BITUIDS]: Make code unconditional.
11890         [!__ASSUME_32BITUIDS]: Remove conditional code.
11891         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
11892         [__ASSUME_32BITUIDS]: Make code unconditional.
11893         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
11894         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
11895         <kernel-features.h>.
11896         [__ASSUME_32BITUIDS]: Make code unconditional.
11897         [!__ASSUME_32BITUIDS]: Remove conditional code.
11898         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
11899         <kernel-features.h>.
11900         [__ASSUME_32BITUIDS]: Make code unconditional.
11901         [!__ASSUME_32BITUIDS]: Remove conditional code.
11902         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
11903         <kernel-features.h>.
11904         [__ASSUME_32BITUIDS]: Make code unconditional.
11905         [!__ASSUME_32BITUIDS]: Remove conditional code.
11906         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
11907         <kernel-features.h>.
11908         [__ASSUME_32BITUIDS]: Make code unconditional.
11909         [!__ASSUME_32BITUIDS]: Remove conditional code.
11910         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
11911         <kernel-features.h>.
11912         [__ASSUME_32BITUIDS]: Make code unconditional.
11913         [!__ASSUME_32BITUIDS]: Remove conditional code.
11914         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
11915         <kernel-features.h>.
11916         [__ASSUME_32BITUIDS]: Make code unconditional.
11917         [!__ASSUME_32BITUIDS]: Remove conditional code.
11918         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
11919         <kernel-features.h>.
11920         [__ASSUME_32BITUIDS]: Make code unconditional.
11921         [!__ASSUME_32BITUIDS]: Remove conditional code.
11922         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
11923         <kernel-features.h>.
11924         [__ASSUME_32BITUIDS]: Make code unconditional.
11925         [!__ASSUME_32BITUIDS]: Remove conditional code.
11926         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
11927         <kernel-features.h>.
11928         [__ASSUME_32BITUIDS]: Make code unconditional.
11929         [!__ASSUME_32BITUIDS]: Remove conditional code.
11930         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
11931         <kernel-features.h>.
11932         [__ASSUME_32BITUIDS]: Make code unconditional.
11933         [!__ASSUME_32BITUIDS]: Remove conditional code.
11934         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
11935         <kernel-features.h>.
11936         [__NR_setresgid] (__setresgid): Do not declare.
11937         [__ASSUME_32BITUIDS]: Make code unconditional.
11938         [!__ASSUME_32BITUIDS]: Remove conditional code.
11939         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
11940         <kernel-features.h>.
11941         [__NR_setresuid] (__setresuid): Do not declare.
11942         [__ASSUME_32BITUIDS]: Make code unconditional.
11943         [!__ASSUME_32BITUIDS]: Remove conditional code.
11944         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
11945         <kernel-features.h>.
11946         [__ASSUME_32BITUIDS]: Make code unconditional.
11947         [!__ASSUME_32BITUIDS]: Remove conditional code.
11948         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
11949         <kernel-features.h>.
11950         [__ASSUME_32BITUIDS]: Make code unconditional.
11951         [!__ASSUME_32BITUIDS]: Remove conditional code.
11952         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
11953         <kernel-features.h>.
11954         [__ASSUME_32BITUIDS]: Make code unconditional.
11955         [!__ASSUME_32BITUIDS]: Remove conditional code.
11956         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
11957         <kernel-features.h>.
11958         [__ASSUME_32BITUIDS]: Make code unconditional.
11959         [!__ASSUME_32BITUIDS]: Remove conditional code.
11960         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
11961         <kernel-features.h>.
11962         [__ASSUME_32BITUIDS]: Make code unconditional.
11963         [!__ASSUME_32BITUIDS]: Remove conditional code.
11964         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
11965         <kernel-features.h>.
11966         [__ASSUME_32BITUIDS]: Make code unconditional.
11967         [!__ASSUME_32BITUIDS]: Remove conditional code.
11968         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
11969         <kernel-features.h>.
11970         [__ASSUME_32BITUIDS]: Make code unconditional.
11971         [!__ASSUME_32BITUIDS]: Remove conditional code.
11972         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
11973         <kernel-features.h>.
11974         [__ASSUME_32BITUIDS]: Make code unconditional.
11975         [!__ASSUME_32BITUIDS]: Remove conditional code.
11976         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
11977         <kernel-features.h>.
11978         [__ASSUME_32BITUIDS]: Make code unconditional.
11979         [!__ASSUME_32BITUIDS]: Remove conditional code.
11980         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
11981         <kernel-features.h>.
11982         [__ASSUME_32BITUIDS]: Make code unconditional.
11983         [!__ASSUME_32BITUIDS]: Remove conditional code.
11984         * sysdeps/unix/sysv/linux/kernel-features.h
11985         (__ASSUME_SETRESUID_SYSCALL): Remove.
11986         (__ASSUME_SETRESGID_SYSCALL): Likewise.
11987         (__ASSUME_32BITUIDS): Likewise.
11988         (__ASSUME_LDT_WORKS): Likewise.
11989         (__ASSUME_O_DIRECTORY): Likewise.
11990         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
11991         architecture but not kernel version.
11992         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
11993         (__ASSUME_MMAP2_SYSCALL): Likewise.
11994         (__ASSUME_STAT64_SYSCALL): Likewise.
11995         (__ASSUME_IPC64): Likewise.
11996         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
11997         <kernel-features.h>.
11998         [__ASSUME_32BITUIDS]: Make code unconditional.
11999         [!__ASSUME_32BITUIDS]: Remove conditional code.
12000         * sysdeps/unix/sysv/linux/opendir.c: Do not include
12001         <kernel-features.h>.
12002         [__ASSUME_O_DIRECTORY]: Make code unconditional.
12003         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
12004         132096]: Remove conditional code.
12005         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
12006         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
12007         <kernel-features.h>.
12008         [__ASSUME_32BITUIDS]: Make code unconditional.
12009         [!__ASSUME_32BITUIDS]: Remove conditional code.
12010         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
12011         <kernel-features.h>.
12012         [__ASSUME_32BITUIDS]: Make code unconditional.
12013         [!__ASSUME_32BITUIDS]: Remove conditional code.
12014         * sysdeps/unix/sysv/linux/setegid.c: Do not include
12015         <kernel-features.h>.
12016         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
12017         unconditional.
12018         (__setresgid): Do not declare.
12019         [__ASSUME_32BITUIDS]: Make code unconditional.
12020         [!__ASSUME_32BITUIDS]: Remove conditional code.
12021         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
12022         <kernel-features.h>.
12023         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
12024         unconditional.
12025         (__setresuid): Do not declare.
12026         [__ASSUME_32BITUIDS]: Make code unconditional.
12027         [!__ASSUME_32BITUIDS]: Remove conditional code.
12028         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
12029         <kernel-features.h>.
12030         [__ASSUME_32BITUIDS]: Make code unconditional.
12031         [!__ASSUME_32BITUIDS]: Remove conditional code.
12032         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
12033         <kernel-features.h>.
12034         [__ASSUME_32BITUIDS]: Make code unconditional.
12035         [!__ASSUME_32BITUIDS]: Remove conditional code.
12036
12037 2012-05-25  Richard Henderson  <rth@twiddle.net>
12038
12039         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
12040         dl_hwcap to ifunc resolver.
12041         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
12042         elf_ifunc_invoke.
12043         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
12044         dl_hwcap to ifunc resolver.
12045         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
12046
12047 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
12048
12049         [BZ #14153]
12050         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
12051         for |x| <= 2**-26, not 2**-57.
12052         * math/libm-test.inc (acos_test): Do not allow spurious underflow
12053         exception.
12054
12055 2012-05-24  Jeff Law  <law@redhat.com>
12056
12057         * stdio-common/Makefile (tests): Add bug25.
12058         * stdio-common/bug25.c: New test.
12059
12060 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12061
12062         [BZ #13576]
12063         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
12064         multiple of MALLOC_ALIGNMENT in size.
12065         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
12066
12067 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
12068
12069         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
12070         Require >= 256.
12071         (FILENAME_MAX): Use macro-int-constant.
12072         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
12073         (_IOFBF): Use macro-int-constant.
12074         (_IOLBF): Likewise.
12075         (_IONBF): Likewise.
12076         (SEEK_CUR): Likewise.
12077         (SEEK_END): Likewise.
12078         (SEEK_SET): Likewise.
12079         (TMP_MAX): Likewise.
12080         (EOF): Use macro-int-constant.  Require < 0.
12081         (NULL): Use macro-constant.  Require == 0.
12082         (stdin): Require type to be FILE *.
12083         (stdout): Likewise.
12084         (stderr): Likewise.
12085         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
12086         macro-int-constant.
12087         (EXIT_SUCCESS): Likewise.
12088         (NULL): Use macro-constant.  Require == 0.
12089         (RAND_MAX): Use macro-int-constant.
12090         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
12091         [C99-based standards] (strtof): Require function.
12092         [C99-based standards] (strtold): Likewise.
12093         [C99-based standards] (strtoll): Likewise.
12094         [C99-based standards] (strtoull): Likewise.
12095         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
12096         [ISO || ISO99 || ISO11] (limits.h): Likewise.
12097         [ISO || ISO99 || ISO11] (math.h): Likewise.
12098         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
12099         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
12100         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12101
12102 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
12103
12104         [BZ #14132]
12105         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
12106         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
12107         * intl/dgettext.c (DCGETTEXT): Likewise.
12108         * intl/gettext.c (DCGETTEXT): Likewise.
12109         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
12110         * posix/regex_internal.h (gettext): Likewise.
12111         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
12112         Remove declaration.
12113         * include/argz.h (__argz_count_internal)
12114         (__argz_stringify_internal): Remove declaration.
12115         (__argz_count, __argz_stringify): Declare hidden proto.
12116         * intl/dcgettext.c: Remove use of INTDEF.
12117         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
12118         * string/argz-stringify.c: Likewise.
12119         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
12120         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
12121         Declare hidden proto.
12122         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
12123         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
12124         Declare hidden proto.
12125         * include/stdio.h (__asprintf_internal): Don't declare.
12126         (__asprintf): Don't define as macro.  Declare hidden proto.
12127         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
12128         (__fsetlocking): Declare hidden proto.
12129         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
12130         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
12131         hidden proto.
12132         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
12133         (_IO_setlinebuf): Remove use of INTUSE.
12134         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
12135         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
12136         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
12137         Remove declaration.
12138         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
12139         (_IO_do_flush): Remove use of INTUSE.
12140         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
12141         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
12142         (_IO_adjust_column, _IO_least_wmarker)
12143         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
12144         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
12145         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
12146         (_IO_default_doallocate, _IO_wdefault_doallocate)
12147         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
12148         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
12149         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
12150         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
12151         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
12152         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
12153         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
12154         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
12155         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
12156         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
12157         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
12158         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
12159         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
12160         proto.
12161         (_IO_flush_all_internal, _IO_adjust_column_internal)
12162         (_IO_default_uflow_internal, _IO_default_finish_internal)
12163         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
12164         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
12165         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
12166         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
12167         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
12168         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
12169         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
12170         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
12171         (_IO_file_close_internal, _IO_file_close_it_internal)
12172         (_IO_file_underflow_internal, _IO_file_overflow_internal)
12173         (_IO_file_init_internal, _IO_file_attach_internal)
12174         (_IO_file_fopen_internal, _IO_file_read_internal)
12175         (_IO_file_sync_internal, _IO_file_seek_internal)
12176         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
12177         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
12178         (_IO_str_underflow_internal, _IO_str_overflow_internal)
12179         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
12180         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
12181         (_IO_list_all_internal, _IO_link_in_internal)
12182         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
12183         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
12184         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
12185         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
12186         (_IO_do_write_internal, _IO_padn_internal)
12187         (_IO_getline_info_internal, _IO_getline_internal)
12188         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
12189         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
12190         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
12191         (_IO_vfscanf_internal, _IO_vfprintf_internal)
12192         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
12193         (_IO_init_internal, _IO_un_link_internal): Don't declare.
12194         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
12195         with libc_hidden_ver, remove use of INTUSE.
12196         * libio/genops.c: Likewise.
12197         * libio/freopen.c: Likewise.
12198         * libio/freopen64.c: Likewise.
12199         * libio/iofclose.c: Likewise.
12200         * libio/iofdopen.c: Likewise.
12201         * libio/iofflush.c: Likewise.
12202         * libio/iofflush_u.c: Likewise.
12203         * libio/iofgets.c: Likewise.
12204         * libio/iofgets_u.c: Likewise.
12205         * libio/iofopen.c: Likewise.
12206         * libio/iofopncook.c: Likewise.
12207         * libio/iofread.c: Likewise.
12208         * libio/iofread_u.c: Likewise.
12209         * libio/ioftell.c: Likewise.
12210         * libio/iofwrite.c: Likewise.
12211         * libio/iogetline.c: Likewise.
12212         * libio/iogets.c: Likewise.
12213         * libio/iogetwline.c: Likewise.
12214         * libio/iopadn.c: Likewise.
12215         * libio/iopopen.c: Likewise.
12216         * libio/ioseekoff.c: Likewise.
12217         * libio/ioseekpos.c: Likewise.
12218         * libio/iosetbuffer.c: Likewise.
12219         * libio/iosetvbuf.c: Likewise.
12220         * libio/ioungetc.c: Likewise.
12221         * libio/ioungetwc.c: Likewise.
12222         * libio/iovdprintf.c: Likewise.
12223         * libio/iovsprintf.c: Likewise.
12224         * libio/iovsscanf.c: Likewise.
12225         * libio/memstream.c: Likewise.
12226         * libio/obprintf.c: Likewise.
12227         * libio/oldfileops.c: Likewise.
12228         * libio/oldiofclose.c: Likewise.
12229         * libio/oldiofdopen.c: Likewise.
12230         * libio/oldiofopen.c: Likewise.
12231         * libio/oldiopopen.c: Likewise.
12232         * libio/oldstdfiles.c: Likewise.
12233         * libio/putc.c: Likewise.
12234         * libio/setbuf.c: Likewise.
12235         * libio/setlinebuf.c: Likewise.
12236         * libio/stdfiles.c: Likewise.
12237         * libio/strops.c: Likewise.
12238         * libio/vasprintf.c: Likewise.
12239         * libio/vscanf.c: Likewise.
12240         * libio/vsnprintf.c: Likewise.
12241         * libio/vswprintf.c: Likewise.
12242         * libio/wfiledoalloc.c: Likewise.
12243         * libio/wfileops.c: Likewise.
12244         * libio/wgenops.c: Likewise.
12245         * libio/wmemstream.c: Likewise.
12246         * libio/wstrops.c: Likewise.
12247         * libio/__fpurge.c: Likewise.
12248         * libio/__fsetlocking.c: Likewise.
12249         * assert/assert.c: Likewise.
12250         * debug/fgets_chk.c: Likewise.
12251         * debug/fgets_u_chk.c: Likewise.
12252         * debug/fread_chk.c: Likewise.
12253         * debug/fread_u_chk.c: Likewise.
12254         * debug/gets_chk.c: Likewise.
12255         * debug/obprintf_chk.c: Likewise.
12256         * debug/vasprintf_chk.c: Likewise.
12257         * debug/vdprintf_chk.c: Likewise.
12258         * debug/vsnprintf_chk.c: Likewise.
12259         * debug/vsprintf_chk.c: Likewise.
12260         * malloc/mtrace.c: Likewise.
12261         * misc/error.c: Likewise.
12262         * misc/syslog.c: Likewise.
12263         * stdio-common/asprintf.c: Likewise.
12264         * stdio-common/fxprintf.c: Likewise.
12265         * stdio-common/getw.c: Likewise.
12266         * stdio-common/isoc99_fscanf.c: Likewise.
12267         * stdio-common/isoc99_scanf.c: Likewise.
12268         * stdio-common/isoc99_vfscanf.c: Likewise.
12269         * stdio-common/isoc99_vscanf.c: Likewise.
12270         * stdio-common/isoc99_vsscanf.c: Likewise.
12271         * stdio-common/printf-prs.c: Likewise.
12272         * stdio-common/printf_fp.c: Likewise.
12273         * stdio-common/printf_fphex.c: Likewise.
12274         * stdio-common/printf_size.c: Likewise.
12275         * stdio-common/putw.c: Likewise.
12276         * stdio-common/scanf.c: Likewise.
12277         * stdio-common/sprintf.c: Likewise.
12278         * stdio-common/tmpfile.c: Likewise.
12279         * stdio-common/vfprintf.c: Likewise.
12280         * stdio-common/vfscanf.c: Likewise.
12281         * stdlib/strfmon_l.c: Likewise.
12282         * sunrpc/openchild.c: Likewise.
12283         * sunrpc/xdr_stdio.c: Likewise.
12284         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12285         * sysdeps/mach/hurd/tmpfile.c: Likewise.
12286
12287 2012-05-24  Roland McGrath  <roland@hack.frob.com>
12288
12289         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
12290
12291         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
12292         in the third column, to generate for the shared library an IFUNC
12293         that uses _dl_vdso_vsym.
12294         * Makerules (COMPILE.c, compile-stdin.c): New variables.
12295         * Makeconfig (object-suffixes-noshared): New variable.
12296
12297         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
12298         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
12299         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
12300         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
12301
12302         [BZ #14132]
12303         * include/sys/time.h (__gettimeofday): Remove macro.
12304         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
12305         * time/gettimeofday.c (__gettimeofday): Remove #undef.
12306         Remove INTDEF.
12307         (__gettimeofday): Add libc_hidden_def.
12308         (gettimeofday): Add libc_hidden_weak.
12309         * sysdeps/mach/gettimeofday.c: Likewise.
12310         * sysdeps/posix/gettimeofday.c: Likewise.
12311         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
12312         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
12313         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
12314         (__gettimeofday_internal): Remove strong_alias.
12315         (__gettimeofday): Add libc_hidden_def.
12316         (gettimeofday): Add libc_hidden_weak.
12317         * sysdeps/unix/syscalls.list (gettimeofday):
12318         Remove __gettimeofday_internal alias.
12319
12320 2012-05-24  Daniel Jacobowitz  <drow@false.org>
12321             H.J. Lu  <hongjiu.lu@intel.com>
12322
12323         [BZ #12495]
12324         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
12325         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
12326         (largebin_index_32_big): New.
12327         (largebin_index): Use it for 16-byte alignment.
12328         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
12329         correction with front_misalign.
12330
12331 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12332
12333         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
12334         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
12335         Likewise.
12336         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
12337         Likewise.
12338         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
12339         Likewise.
12340         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
12341         Likewise.
12342         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
12343         Likewise.
12344         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
12345         Likewise.
12346         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
12347         Likewise.
12348         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
12349         Likewise.
12350         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
12351         Likewise.
12352         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
12353         Likewise.
12354         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
12355         Likewise.
12356         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
12357         Likewise.
12358
12359         * scripts/data/c++-types-x32-linux-gnu.data: New file.
12360         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
12361
12362 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
12363
12364         [BZ #10846]
12365         [BZ #14036]
12366         * math/libm-test.inc (exp_test): Add test from bug 14036.
12367         (pow_test): Add test from bug 10846.
12368
12369         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
12370         and other flags.
12371         (special_function): Do not include flags in test name.
12372         (parse_args): Likewise.
12373         * sysdeps/i386/fpu/libm-test-ulps: Update.
12374         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12375         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
12376         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
12377         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12378
12379         * math/gen-libm-test.pl (%beautify): Add entries for underflow
12380         exceptions.
12381         * math/libm-test.inc ("Philosophy"): Update comment about
12382         exception testing.
12383         (UNDERFLOW_EXCEPTION): New macro.
12384         (UNDERFLOW_EXCEPTION_OK): Likewise.
12385         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
12386         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
12387         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
12388         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
12389         (INVALID_EXCEPTION_OK): Update value.
12390         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
12391         (OVERFLOW_EXCEPTION_OK): Likewise.
12392         (IGNORE_ZERO_INF_SIGN): Likewise.
12393         (test_exceptions): Handle underflow exceptions.
12394         (acos_test): Update for underflow exception expectations.
12395         (cexp_test): Likewise.
12396         (clog_test): Likewise.
12397         (clog10_test): Likewise.
12398         (csqrt_test): Likewise.
12399         (ctan_test): Likewise.
12400         (ctanh_test): Likewise.
12401         (exp_test): Likewise.
12402         (exp10_test): Likewise.
12403         (exp2_test): Likewise.
12404         (expm1_test): Likewise.
12405         (fma_test): Likewise.
12406         (j0_test): Likewise.
12407         (jn_test): Likewise.
12408         (nexttoward_test): Likewise.
12409         (pow_test): Likewise.
12410         (scalbn_test): Likewise.
12411         (scalbln_test): Likewise.
12412         (tan_test): Likewise.
12413         (y1_test): Likewise.
12414         * sysdeps/i386/fpu/libm-test-ulps: Update.
12415         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12416
12417 2012-05-23  David S. Miller  <davem@davemloft.net>
12418
12419         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
12420         (__libc_sigaction): Remove unused local variables.
12421
12422 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
12423
12424         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
12425
12426 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
12427
12428         mktime: avoid signed integer overflow
12429         * time/mktime.c (__mktime_internal): Do not mishandle the case
12430         where diff == INT_MIN.
12431
12432         mktime: simplify computation of average
12433         * time/mktime.c (ranged_convert): Use new time_t_avg function
12434         instead of rolling our own (probably-slower) code.
12435
12436         mktime: do not assume signed right shift propagates sign bit
12437         * time/mktime.c (isdst_differ): New static function.
12438         (__mktime_internal): No need to normalize tm_isdst now.
12439         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
12440         tm_isdst values.
12441
12442         mktime: merge another wrapv change from gnulib
12443         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
12444         from some compilers.
12445
12446         mktime: remove incorrect attempt at unusual arithmetics
12447         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
12448         The code didn't really work on such machines anyway.
12449         (TYPE_MINIMUM): Assume two's complement.
12450         (twos_complement_arithmetic): Verify that long_int and time_t
12451         are two's complement (or unsigned, in the latter case).
12452
12453         mktime: check signed shifts on long_int and time_t, too
12454         * time/mktime.c (SHR): Check that shifts work as desired
12455         on the types long_int and time_t too, as SHR is used on
12456         such types.
12457
12458         mktime: do not assume 'long' is wide enough
12459         * time/mktime.c (verify): Move decl up.
12460         (long_int): New type.
12461         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
12462         to remove assumption in the code that 'long' is wide enough to
12463         store year values.  This assumption is not true on x32 and on
12464         some non-glibc platforms.
12465
12466         mktime: merge wrapv change from gnulib
12467         * time/mktime.c (WRAPV): New macro.
12468         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
12469         (guess_time_tm, __mktime_internal): Do not assume that signed
12470         integer overflow wraps around; modern compilers generate code
12471         where this assumption is no longer valid.
12472
12473 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
12474
12475         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
12476         Replace "jmp L(pseudo_end)" with "ret".
12477         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
12478         Likewise.
12479
12480 2012-05-23  Andreas Jaeger  <aj@suse.de>
12481
12482         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
12483         * sysdeps/unix/sysv/linux/poll.c: Remove file.
12484
12485 2012-05-23  Andreas Jaeger  <aj@suse.de>
12486             Maximilian Attems  <max@stro.at>
12487
12488         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
12489         New macros.
12490
12491 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
12492
12493         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
12494         code so that pseudo_end is just ret and the stack pointer is
12495         correct also for static library in error case.
12496
12497 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
12498
12499         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
12500         move to syscalls.list.
12501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
12502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
12503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
12504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
12505
12506         * manual/install.texi (Running make install): Do not mention Linux
12507         kernel version for which pt_chown is not needed.
12508         (Linux): Do not mention problems with nscd with 2.0 kernels.
12509         * INSTALL: Regenerated.
12510
12511 2012-05-23  Andreas Jaeger  <aj@suse.de>
12512
12513         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
12514         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
12515         macro.
12516         * sysdeps/unix/sysv/linux/s390/bits/mman.h
12517         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
12518         * sysdeps/unix/sysv/linux/sh/bits/mman.h
12519         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
12520         * sysdeps/unix/sysv/linux/i386/bits/mman.h
12521         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
12522         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
12523         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
12524         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
12525         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
12526         * sysdeps/unix/sysv/linux/bits/in.h
12527         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
12528
12529 2012-05-22  Roland McGrath  <roland@hack.frob.com>
12530
12531         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
12532         (PREPARE_VERSION): Just use assert instead, it will be elided
12533         under [NDEBUG] anyway.
12534
12535 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
12536
12537         * sysdeps/unix/sysv/linux/Makefile: Include
12538         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
12539         (sysdep_routines): Remove sysctl.
12540         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
12541         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
12542         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
12543         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
12544         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
12545
12546 2012-05-22  Andreas Jaeger  <aj@suse.de>
12547
12548         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
12549         that pseudo_end is just ret and the stack pointer is correct also
12550         for static library in error case.
12551
12552 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
12553
12554         [BZ #14122]
12555         * nss/nsswitch.c (defconfig_entries): New variable.
12556         (__nss_database_lookup): Don't leak defconfig entries.
12557         (nss_parse_service_list): Don't leak on error paths.
12558         (free_database_entries): New function.
12559         (free_defconfig): New function.
12560         (free_mem): Move common code to free_database_entries.
12561
12562 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
12563
12564         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
12565         Add arch_prctl.
12566         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
12567
12568         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
12569         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
12570         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
12571         New macro.
12572         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
12573         (INTERNAL_SYSCALL_TYPES): Likewise.
12574         (LOAD_ARGS_TYPES_[1-6]): Likewise.
12575         (LOAD_REGS_TYPES_[1-6]): Likewise.
12576         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
12577         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
12578
12579 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12580
12581         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
12582         copysignl for GLIBC_2_0.
12583         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
12584         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
12585         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
12586         logbl for GLIBC_2_0.
12587         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
12588         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
12589
12590 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
12591
12592         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
12593         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
12594
12595         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
12596         Use "neg %eax".
12597
12598         * time/mktime.c: Update copyright years.
12599
12600 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12601
12602         mktime: merge comment-quoting-style change from gnulib
12603         * time/mktime.c: Quote 'like this' in comments.
12604         The GNU coding standards suggest that we no longer quote `like this',
12605         as "`" and "'" are typically rendered asymmetrically nowadays.
12606         The typical gnulib style is to quote 'like this' when quoting
12607         code, and "like this" when quoting English.
12608
12609         * time/mktime.c (compile-command): Add "-I.".
12610
12611         mktime: merge mktime-internal.h change from gnulib
12612         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
12613
12614         mktime: merge time_r change from gnulib
12615         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
12616
12617         mktime: merge DEBUG change from gnulib
12618         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
12619         case system <time.h> has a #define.
12620
12621         mktime: merge <sys/types.h> change from gnulib
12622         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
12623         since <time.t> is now guaranteed to define time_t.
12624
12625         mktime: merge HAVE_CONFIG_H change from gnulib
12626         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
12627
12628 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
12629
12630         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
12631         Use "neg %eax".
12632
12633         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
12634         __rlim_t cast.
12635         (struct rusage): Use anonymous union to pad each field to
12636         __syscall_slong_t.
12637
12638 2012-05-21  David S. Miller  <davem@davemloft.net>
12639
12640         * Makefules (o-iterator): Remove .s cases.
12641         (compile-command.s): Delete.
12642         (COMPILE.s): Delete.
12643         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
12644
12645 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
12646
12647         * configure.in (libc_cv_predef_stack_protector): Only consider
12648         "foobar" and "__stack_chk_fail" lines in libc_undefs.
12649         * configure: Regenerated.
12650
12651 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12652
12653         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
12654         New macro.  Use R*LP on int and pointer.
12655         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
12656         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
12657         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
12658         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
12659
12660         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
12661         [__WORDSIZE_TIME64_COMPAT32] instead of
12662         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
12663         (struct utmp): Likewise.
12664         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
12665         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
12666         Renamed to ...
12667         (__WORDSIZE_TIME64_COMPAT32): This.
12668         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
12669         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
12670         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
12671         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
12672         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
12673         (__WORDSIZE_TIME64_COMPAT32): New macro.
12674
12675 2012-05-21  Andreas Jaeger  <aj@suse.de>
12676
12677         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
12678         only if [SHARED]. Add prototype for __wcschr_ia32.
12679
12680 2012-05-21  Roland McGrath  <roland@hack.frob.com>
12681
12682         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
12683         of %rbp unmolested in the jmp_buf while mangling the low bits.
12684         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
12685         unmolested high bits of %rbp while demangling the low bits.
12686         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
12687
12688 2012-05-21  Andreas Jaeger  <aj@suse.de>
12689
12690         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
12691         * sunrpc/svc_simple.c: Use it for registerrpc.
12692         * sunrpc/xcrypt.c: Use it for passwd2des.
12693
12694         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
12695
12696 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12697
12698         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
12699         Don't define if [__SYSCALL_WORDSIZE != 32].
12700         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
12701         New macro.
12702
12703 2012-05-21  Bruno Haible  <bruno@clisp.org>
12704             Andreas Jaeger  <aj@suse.de>
12705
12706         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
12707         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
12708         inptr and inend for must_buffer_ch.
12709         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
12710         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
12711         * stdio-common/Makefile (tests): Remove bug15.
12712         (bug15-ENV): Remove macro.
12713         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
12714         anymore.
12715
12716 2012-05-19  Andreas Jaeger  <aj@suse.de>
12717             Roland McGrath  <roland@hack.frob.com>
12718
12719         * manual/contrib.texi: Completely rewritten. It contains now an
12720         alphabetical list of contributors and their contributions.
12721
12722 2012-05-21  Richard Henderson  <rth@twiddle.net>
12723
12724         * misc/getauxval.c (__getauxval): Use unsigned long int.
12725         * misc/sys/auxv.h: Include <sys/cdefs.h>.
12726         (getauxval): Use unsigned long int.
12727
12728 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12729
12730         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
12731
12732 2012-05-21  Roland McGrath  <roland@hack.frob.com>
12733
12734         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
12735         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
12736         __alignof__ (long double).
12737
12738 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12739
12740         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12741
12742 2012-05-20  Richard Henderson  <rth@twiddle.net>
12743
12744         * misc/getauxval.c: New file.
12745         * misc/sys/auxv.h: New file.
12746         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
12747         (routines): Add getauxval.
12748         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
12749         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
12750         * elf/dl-sysdep.c (_dl_auxv): Remove.
12751         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
12752         * elf/dl-support.c (_dl_auxv): New variable.
12753         (_dl_aux_init): Initialize it.
12754         * manual/startup.texi (Auxiliary Vector): New node.
12755         * sysdeps/generic/bits/hwcap.h: New file.
12756         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
12757         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
12758         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
12759         * sysdeps/sparc/sysdep.h: ... here.  Include it.
12760         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
12761         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
12762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12763         Update.
12764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
12765         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
12766         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
12767         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
12768         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
12769         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
12770         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
12771         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
12772
12773 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12774
12775         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12776
12777 2012-05-19  David S. Miller  <davem@davemloft.net>
12778
12779         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12780
12781 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
12782
12783         [BZ #14123]
12784         * math/s_ccosh.c: Include <float.h>
12785         (__ccosh): Avoid internal overflow calculating sinh and cosh
12786         values before multiplying by sin and cos values.
12787         * math/s_ccoshf.c: Likewise.
12788         * math/s_ccoshl.c: Likewise.
12789         * math/s_csin.c: Likewise.
12790         * math/s_csinf.c: Likewise.
12791         * math/s_csinl.c: Likewise.
12792         * math/s_csinh.c: Likewise.
12793         * math/s_csinhf.c: Likewise.
12794         * math/s_csinhl.c: Likewise.
12795         * math/libm-test.inc (ccos_test): Add more tests.
12796         (ccosh_test): Likewise.
12797         (csin_test): Likewise.
12798         (csinh_test): Likewise.
12799         * sysdeps/i386/fpu/libm-test-ulps: Update.
12800         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12801
12802 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
12803
12804         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
12805         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
12806
12807         * sysdeps/x86_64/x32/_itoa.h: Add comment.
12808
12809 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
12810
12811         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
12812         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
12813         * sysdeps/powerpc/soft-fp/Versions: Likewise.
12814         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
12815         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
12816         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
12817         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
12818         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
12819         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
12820         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
12821         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
12822         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
12823         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
12824         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
12825         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
12826         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
12827         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
12828         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
12829         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
12830         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
12831         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
12832         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
12833         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
12834         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
12835         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
12836         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
12837         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
12838         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
12839         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
12840         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
12841         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
12842
12843 2012-05-18  Andreas Jaeger  <aj@suse.de>
12844
12845         * csu/.gitignore: Delete.
12846
12847 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
12848
12849         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
12850         (timex): Use __syscall_slong_t.
12851
12852 2012-05-18  Andreas Jaeger  <aj@suse.de>
12853             Carlos O'Donell  <carlos_odonell@mentor.com>
12854
12855         * manual/install.texi (Configuring and compiling): Update
12856         description about files modified in the source directory.
12857         * INSTALL: Regenerated.
12858
12859 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
12860
12861         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
12862         value.  Use "or" to set return value to -1.
12863         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
12864         negate return value.
12865
12866 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12867
12868         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
12869         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
12870         failure if the compiler has Graphite support disabled.
12871         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
12872         Likewise.
12873         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
12874         CFLAGS-memmove.c): Likewise.
12875         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
12876         Likewise.
12877
12878 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
12879
12880         * sysdeps/x86_64/x32/_itoa.h: New file.
12881
12882         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
12883         getdents system call only if kernel and user dirents have the
12884         same d_ino and d_off.
12885
12886         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
12887         LLONG_MAX != LONG_MAX.
12888         (_itoa_word): Use _ITOA_WORD_TYPE on value.
12889         (_fitoa_word): Likewise.
12890
12891         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
12892         years.
12893         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
12894         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
12895         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
12896
12897         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
12898         include <bits/wordsize.h>.  Check __x86_64__ instead of
12899         __WORDSIZE.
12900         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
12901         if __x86_64__ is defined.  Use anonymous union on fpstate.
12902
12903         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
12904         anonymous union.
12905
12906 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
12907
12908         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
12909         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
12910         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
12911         Refer to _rtld_local_ro instead of _rtld_global_ro.
12912         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
12913         Likewise.
12914         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
12915         Likewise.
12916         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
12917         Likewise.
12918         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
12919         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
12920         of _rtld_global, and rtld_progname instead of _dl_argv[0].
12921
12922         * sysdeps/powerpc/powerpc32/dl-machine.c
12923         (__elf_machine_runtime_setup) [PROF]: Don't reference
12924         _dl_prof_resolve.
12925
12926 2012-05-18  Andreas Jaeger  <aj@suse.de>
12927
12928         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
12929         function only available for GCCs before 3.4 since GCC 3.4
12930         introduced a builtin.
12931         (lrint): Likewise.
12932         (llrintf): Likewise.
12933         (llrint): Likewise.
12934         (fmaxf): Likewise.
12935         (fmax): Likewise.
12936         (fminf): Likewise.
12937         (fmin): Likewise.
12938         (rint): Likewise.
12939         (rintf): Likewise.
12940         (nearbyint): Likewise.
12941         (nearbyintf): Likewise.
12942         (ceil): Likewise.
12943         (ceilf): Likewise.
12944         (floor): Likewise.
12945         (floorf): Likewise.
12946
12947 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12948
12949         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
12950         on both fields and cast pointer to __syscall_ulong_t.
12951
12952         * bits/types.h (__fsword_t): New type.
12953         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
12954         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
12955         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
12956         (__FSWORD_T_TYPE): Likewise.
12957         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
12958         (__FSWORD_T_TYPE): Likewise.
12959         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
12960         (__FSWORD_T_TYPE): Likewise.
12961         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
12962         (__FSWORD_T_TYPE): Likewise.
12963         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
12964         __SWORD_TYPE with __fsword_t.
12965         (statfs64): Likewise.
12966
12967 2012-05-17  David S. Miller  <davem@davemloft.net>
12968
12969         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
12970
12971 2012-05-17  Andreas Jaeger  <aj@suse.de>
12972
12973         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
12974         warning.
12975
12976 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12977
12978         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
12979
12980 2012-05-17  Andreas Jaeger  <aj@suse.de>
12981
12982         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
12983         when it is used.
12984
12985 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
12986
12987         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
12988
12989 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12990
12991         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
12992         * sysdeps/x86_64/tst-mallocalign1.c: New file.
12993
12994 2012-05-17  Andreas Jaeger  <aj@suse.de>
12995             Carlos O'Donell  <carlos_odonell@mentor.com>
12996
12997         [BZ #14059]
12998         * sysdeps/x86_64/multiarch/init-arch.h
12999         (bit_YMM_Usable): Rename to...
13000         (bit_AVX_Usable): ... this.
13001         (bit_FMA4_Usable): New macro.
13002         (bit_XMM_state): New macro.
13003         (bit_YMM_state): New macro.
13004         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
13005         [__ASSEMBLER__] (index_AVX_Usable): ... this.
13006         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
13007         (CPUID_OSXSAVE): New macro.
13008         (CPUID_AVX): New macro.
13009         (CPUID_FMA4): New macro.
13010         (index_YMM_Usable): Rename to...
13011         (index_AVX_Usable): ... this.
13012         (HAS_AVX): Use HAS_ARCH_FEATURE.
13013         (HAS_FMA4): Likewise.
13014         (HAS_YMM_USABLE): Remove.
13015         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13016         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
13017         are present.
13018         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
13019         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
13020         * sysdeps/x86_64/multiarch/Makefile: Likewise.
13021         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
13022         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
13023
13024 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
13025
13026         * math/libm-test.c: Support platforms without multiple rounding modes.
13027         * math/bug-nextafter.c: Support platforms without FP exceptions.
13028         * math/bug-nexttoward.c: Likewise.
13029         * math/test-fenv.c: Likewise.
13030         * math/test-misc.c: Likewise.
13031         * stdlib/bug-getcontext.c: Likewise.
13032
13033 2012-05-17  Andreas Jaeger  <aj@suse.de>
13034
13035         * manual/examples/search.c (critter_cmp): Change signature to
13036         avoid warnings.
13037         * manual/string.texi (Collation Functions): Likewise.
13038
13039 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13040
13041         * bits/types.h: Fold copyright years.
13042         * bits/typesizes.h: Likewise.
13043         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
13044         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
13045         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
13046         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
13047         * time/time.h: Likewise.
13048
13049 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
13050
13051         [BZ #208]
13052         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
13053         in instead of returning them.  Return void.
13054         (__libc_mallinfo): Accumulate over all arenas.
13055         (__malloc_stats): Adjust for change in int_mallinfo interface.
13056
13057 2012-05-16  Roland McGrath  <roland@hack.frob.com>
13058
13059         [BZ #10375]
13060         * configure.in (NM): Add AC_CHECK_TOOL for it.
13061         (libc_extra_cflags): New substituted variable.
13062         Check for -fstack-protector being used implicitly.
13063         * configure: Regenerated.
13064         * config.make.in (config-extra-cflags): New variable,
13065         gets @libc_extra_cflags@.
13066         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
13067
13068         [BZ #10375]
13069         * configure.in: Check for _FORTIFY_SOURCE being predefined.
13070         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
13071         * configure: Regenerated.
13072         * config.make.in (CPPUNDEFS): New substituted variable.
13073         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
13074         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
13075         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
13076
13077 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13078
13079         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
13080         (mq_attr): Use __syscall_slong_t.
13081
13082 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13083
13084         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
13085         Check __x86_64__ instead of __WORDSIZE.
13086         (_STAT_VER_LINUX): Likewise.
13087         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
13088         __syscall_ulong_t and __syscall_slong_t.
13089         (stat64): Likewise.
13090
13091 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13092
13093         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
13094
13095 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13096
13097         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
13098
13099 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13100
13101         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
13102         __syscall_ulong_t.
13103
13104         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
13105         include <bits/wordsize.h>.  Check __x86_64__ instead of
13106         __WORDSIZE.
13107         (greg_t): Use "__extension__ long long int" if __x86_64__ is
13108         defined.
13109         (mcontext_t): Replace "unsigned long" with "unsigned long long".
13110
13111         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
13112         include <bits/wordsize.h>.  Check __x86_64__ instead of
13113         __WORDSIZE.
13114         (user_regs_struct): Use "__extension__ unsigned long long"
13115         instead of "unsigned long" if __x86_64__ is defined.
13116         (user): Likewise.  Pad after pointer field if __ILP32__ is
13117         defined.
13118
13119 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
13120
13121         * configure.in (makeinfo): Require version 4.5 or later.  Allow
13122         versions 5 to 9.
13123         * configure: Regenerated.
13124         * manual/install.texi (texinfo): Increase version requirement to
13125         4.5 or later.
13126         * INSTALL: Regenerated.
13127
13128         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
13129
13130 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13131
13132         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
13133
13134         * sysdeps/x86_64/x32/ffs.c: New file.
13135
13136         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
13137         __syscall_ulong_t.
13138         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
13139         defined.  Use __syscall_ulong_t.
13140         (shminfo): Use __syscall_ulong_t.
13141         (shm_info): Likewise.
13142
13143         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
13144         __syscall_ulong_t.
13145
13146         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
13147         <bits/wordsize.h>.
13148         (msgqnum_t): Use __syscall_ulong_t.
13149         (msglen_t): Likewise.
13150         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
13151         __syscall_ulong_t.
13152
13153         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
13154         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
13155
13156         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
13157
13158         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
13159         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
13160
13161         * sysvipc/sys/msg.h (msgbuf): Replace long int with
13162         __syscall_slong_t.
13163
13164         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
13165         include <bits/wordsize.h>.  Check __x86_64__ instead of
13166         __WORDSIZE.
13167
13168         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
13169         "unsigned long long int" if __x86_64__ is defined.
13170         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
13171
13172         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
13173         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
13174         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
13175
13176         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
13177         <stdint.h>.
13178         (GET_PC): Cast to uintptr_t first.
13179         (GET_FRAME): Likewise.
13180         (GET_STACK): Likewise.
13181
13182         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
13183         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
13184         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
13185         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
13186         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
13187         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
13188         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
13189         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
13190         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
13191         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
13192         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
13193         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
13194         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
13195         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
13196         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
13197         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
13198         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
13199         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
13200         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
13201         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
13202         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
13203         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
13204         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
13205         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
13206         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
13207         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
13208         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
13209         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
13210         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
13211
13212 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
13213
13214         * Makerules (+depfiles): Also collect depfiles from .oS in
13215         $(extra-objs).
13216         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
13217         .oS, $(libnldbl-routines)).
13218
13219         * Makerules (native-compile-mkdep-flags): Define.
13220         * sunrpc/Makefile (extra-objs): Add $(addprefix
13221         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
13222         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
13223         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
13224         calling $(make-target-directory).
13225
13226 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13227
13228         * bits/types.h (__snseconds_t): Removed.
13229         * time/time.h (struct timespec): Replace __snseconds_t with
13230         __syscall_slong_t.
13231         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
13232         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
13233         Likewise.
13234         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
13235         (__SNSECONDS_T_TYPE): Likewise.
13236         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
13237         (__SNSECONDS_T_TYPE): Likewise.
13238         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
13239         (__SNSECONDS_T_TYPE): Likewise.
13240
13241 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13242
13243         * sysdeps/mach/hurd/bits/typesizes.h
13244         (__SYSCALL_SLONG_TYPE): New macro.
13245         (__SYSCALL_ULONG_TYPE): Likewise.
13246
13247 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13248
13249         * bits/types.h (__syscall_slong_t): New type.
13250         (__syscall_ulong_t): Likewise.
13251
13252         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
13253         (__SYSCALL_ULONG_TYPE): Likewise.
13254         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
13255         (__SYSCALL_SLONG_TYPE): Likewise.
13256         (__SYSCALL_ULONG_TYPE): Likewise.
13257         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
13258         (__SYSCALL_SLONG_TYPE): Likewise.
13259         (__SYSCALL_ULONG_TYPE): Likewise.
13260         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
13261         (__SYSCALL_SLONG_TYPE): Likewise.
13262         (__SYSCALL_ULONG_TYPE): Likewise.
13263
13264 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13265
13266         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
13267         Add sigaltstack-offsets.sym.
13268         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
13269         <sigaltstack-offsets.h>.
13270         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
13271         longjmp_msg pointer.
13272         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
13273         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
13274         signal stack.
13275         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
13276
13277 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
13278
13279         * elf/stackguard-macros.h: Remove file.
13280         * sysdeps/generic/stackguard-macros.h: New file.
13281         * sysdeps/i386/stackguard-macros.h: Likewise.
13282         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
13283         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
13284         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
13285         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
13286         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
13287         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
13288         * sysdeps/x86_64/stackguard-macros.h: Likewise.
13289         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
13290         <elf/stackguard-macros.h>.
13291
13292         [BZ #14109]
13293         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
13294         __aligned__ in attribute.
13295         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
13296         (gregset_t): Likewise.
13297
13298 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13299
13300         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
13301         * sysdeps/x86_64/64/Implies-after: Here.  New file.
13302         * sysdeps/x86_64/x32/Implies-after: New file.
13303
13304 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13305
13306         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
13307         and access return value for _dl_profile_fixup.  Use R10_LP to
13308         load frame size.
13309
13310 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13311
13312         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
13313
13314 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13315
13316         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
13317         * sysdeps/x86_64/x32/sysdep.h: New file.
13318
13319 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13320
13321         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
13322         * sysdeps/x86_64/setjmp.S: Likewise.
13323
13324 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13325
13326         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
13327         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
13328         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
13329         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
13330         remove unused global constant.
13331
13332 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
13333
13334         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
13335         include of <not-cancel.h>.
13336
13337 2012-05-15  Roland McGrath  <roland@hack.frob.com>
13338
13339         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
13340
13341 2012-05-15  Jeff Law  <law@redhat.com>
13342             Andreas Jaeger  <aj@suse.de>
13343
13344         [BZ #13594]
13345         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
13346         out from...
13347         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
13348         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
13349         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
13350         code changing __hst_map_handle.map.
13351
13352 2012-05-15  Roland McGrath  <roland@hack.frob.com>
13353
13354         * configure.in (sysnames): Look for Implies-before and Implies-after
13355         files.
13356         * configure: Regenerated.
13357
13358 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13359
13360         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
13361         8-byte data alignment with LP_SIZE alignment.
13362
13363 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13364
13365         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
13366         into R10_LP.
13367
13368 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13369
13370         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
13371
13372 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13373
13374         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
13375         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
13376         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
13377         Likewise.
13378         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
13379
13380 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13381
13382         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
13383         (stackinfo_sub_sp): Likewise.
13384
13385 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13386
13387         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
13388         RAX_LP.
13389
13390 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13391
13392         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
13393         into R*_LP.
13394
13395 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13396
13397         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
13398         sizes into R*_LP.
13399
13400 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13401
13402         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
13403
13404 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13405
13406         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
13407         into R11_LP and load __x86_64_shared_cache_size_half into
13408         R8_LP.
13409
13410 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13411
13412         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
13413         R8_LP.
13414
13415 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13416
13417         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
13418         logb for POWER7.
13419         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
13420         logbf for POWER7.
13421         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
13422         logbl for POWER7.
13423         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
13424         powerpc32/power7/fpu/s_logb.c via #include.
13425         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
13426         powerpc32/power7/fpu/s_logbf.c via #include.
13427         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
13428         powerpc32/power7/fpu/s_logbl.c via #include.
13429
13430 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
13431
13432         * README.libm: Remove file.
13433
13434 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13435
13436         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
13437         count for x32.  Use R*_LP and omit operand-size suffix.
13438
13439 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13440
13441         * shlib-versions: Move x86_64-.*-linux.* entries to ...
13442         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
13443         * sysdeps/x86_64/x32/shlib-versions: New file.
13444
13445 2012-05-14  Roland McGrath  <roland@hack.frob.com>
13446
13447         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
13448         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
13449         Use _dl_fatal_printf instead.
13450
13451 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
13452
13453         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
13454         set if not set by the user.  Do not allow for being unset.
13455         * sysdeps/unix/sysv/linux/configure: Regenerated.
13456
13457 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13458
13459         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
13460         the `q' suffix from lea and replace .quad with ASM_ADDR.
13461
13462 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13463
13464         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
13465         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
13466         instead of $17.
13467         (PTR_DEMANGLE): Likewise.
13468
13469 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13470
13471         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
13472         (LP_OP): Likewise.
13473         (ASM_ADDR): Likewise.
13474         (RAX_LP): Likewise.
13475         (RBP_LP): Likewise.
13476         (RBX_LP): Likewise.
13477         (RCX_LP): Likewise.
13478         (RDI_LP): Likewise.
13479         (RSI_LP): Likewise.
13480         (RSP_LP): Likewise.
13481         (R8_LP): Likewise.
13482         (R9_LP): Likewise.
13483         (R10_LP): Likewise.
13484         (R10_LP): Likewise.
13485         (R11_LP): Likewise.
13486         (R12_LP): Likewise.
13487         (R13_LP): Likewise.
13488         (R14_LP): Likewise.
13489         (R15_LP): Likewise.
13490
13491 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13492
13493         * sysdeps/x86_64/x32/dl-machine.h: New file.
13494
13495 2012-05-14  Andreas Jaeger  <aj@suse.de>
13496
13497         * manual/Makefile (subdir): Remove export of subdir.
13498         (all): Remove target.
13499         (.PHONY): Remove all from list.
13500         (mkinstalldirs): Remove.
13501         (.PHONY): Remove installdirs from list.
13502         ($(inst_infodir)/libc.info): Use make-target-directory.
13503         (installdirs): Remove.
13504         (subdir_%): Remove.
13505         (glibc-targets): Remove.
13506         (lib): Remove.
13507         (stubs): Remove.
13508         ($(objpfx)stubs ../po/manual.pot): Remove.
13509         ($(objpfx)stamp%): Remove.
13510         (make-target-directory): Remove.
13511         (subdir_install): Remove.
13512         (routines): Remove.
13513         (aux): Remove.
13514         (sources): Remove.
13515         (objects): Remove.
13516         (headers): Remove.
13517
13518         [BZ #13750]
13519         * manual/.gitignore: Remove, it's not needed anymore.
13520         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
13521         all files in it.
13522         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
13523         directory.
13524         (texis): Renamed to $(objpfx)texis.
13525         (texis-path): New, contains path to generated files.
13526         (chapters.%): Use texis-path for complete path, add extra argument
13527         libc-texinfo.sh.
13528         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
13529         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
13530         (summary,texi, stamp-summary): Use complete path of
13531         files. Generate files in build dir.
13532         (dir-add.texi): Build in build dir.
13533         (libm-err.texi,stamp-libm-err): Likewise.
13534         (version.texi, stamp-version): Likewise.
13535         (.%c.texi): Likewise.
13536         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
13537         (mostlyclean): Remove target.
13538         (realclean): Remove target.
13539         (generated): Add new variable with contents from mostlyclean and
13540         realclean, remove entries duplicated in common-mostlyclean, add
13541         stamp-libm-err and stamp-version.
13542         (generated-dirs): Add libc directory.
13543         ($(inst_infodir)/libc.info): Install files from build dir.
13544
13545         * manual/install.texi (Configuring and compiling): Adjust since
13546         the info files are not part of the tar ball anymore.
13547
13548 2012-05-14  Andreas Jaeger  <aj@suse.de>
13549
13550         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
13551         variable.
13552
13553 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
13554
13555         [BZ #13717]
13556         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
13557         to 2.2.0 where earlier.
13558         * sysdeps/unix/sysv/linux/configure: Regenerated.
13559         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
13560         Remove conditional code.
13561         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
13562         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
13563         Remove conditional code.
13564         [!__NR_lchown]: Likewise.
13565         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
13566         [__NR_lchown]: Likewise.
13567         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
13568         comment referencing __ASSUME_LCHOWN_SYSCALL.
13569         * sysdeps/unix/sysv/linux/i386/sigaction.c
13570         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
13571         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
13572         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
13573         Remove conditional code.
13574         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
13575         (__protocol_available): Remove #if 0 code.
13576         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
13577         conditional code.
13578         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
13579         * sysdeps/unix/sysv/linux/kernel-features.h
13580         (__ASSUME_GETCWD_SYSCALL): Don't define.
13581         (__ASSUME_REALTIME_SIGNALS): Likewise.
13582         (__ASSUME_PREAD_SYSCALL): Likewise.
13583         (__ASSUME_PWRITE_SYSCALL): Likewise.
13584         (__ASSUME_POLL_SYSCALL): Likewise.
13585         (__ASSUME_LCHOWN_SYSCALL): Likewise.
13586         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
13587         non-SPARC.
13588         (__ASSUME_SIOCGIFNAME): Don't define.
13589         (__ASSUME_MSG_NOSIGNAL): Likewise.
13590         (__ASSUME_SENDFILE): Define unconditionally.
13591         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
13592         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
13593         conditional code.
13594         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
13595         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
13596         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
13597         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
13598         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
13599         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
13600         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
13601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
13602         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
13603         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
13604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
13605         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
13606         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
13607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
13608         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
13609         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
13610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
13611         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
13612         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
13613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
13614         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
13615         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
13616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
13617         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
13618         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
13619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
13620         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
13621         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
13622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
13623         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
13624         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
13625         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
13626         Remove conditional code.
13627         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
13628         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
13629         Remove conditional code.
13630         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
13631         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
13632         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
13633         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
13634         Remove conditional code.
13635         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
13636         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
13637         Remove conditional code.
13638         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
13639         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
13640         Remove conditional code.
13641         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
13642         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
13643         Remove conditional code.
13644         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
13645         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
13646         Remove conditional code.
13647         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
13648         * sysdeps/unix/sysv/linux/sh/pwrite64.c
13649         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
13650         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
13651         * sysdeps/unix/sysv/linux/sigaction.c
13652         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
13653         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
13654         * sysdeps/unix/sysv/linux/sigpending.c
13655         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
13656         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
13657         * sysdeps/unix/sysv/linux/sigprocmask.c
13658         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
13659         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
13660         * sysdeps/unix/sysv/linux/sigsuspend.c
13661         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
13662         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
13663         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
13664         (__libc_missing_rt_sigs): Remove.
13665         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
13666         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
13667         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
13668         Remove conditional code.
13669         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
13670         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
13671         return 1.
13672         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
13673         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
13674         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
13675         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
13676
13677 2012-05-14  Andreas Jaeger  <aj@suse.de>
13678
13679         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
13680         it's not used in glibc.
13681         (__coshm1): Likewise.
13682         (__acosh1p): Likewise.
13683         (__sgn): Likewise.
13684
13685         * manual/string.texi (Copying and Concatenation): Add missing
13686         variable in concat example.
13687         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
13688
13689 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13690
13691         [BZ #14103]
13692         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
13693         __builtin_clzl with __builtin_clzll.
13694
13695 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13696
13697         [BZ #14104]
13698         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
13699         libc_freeres_ptr.
13700
13701 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13702
13703         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
13704         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
13705         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
13706         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
13707
13708 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
13709
13710         * NEWS: Update ia64 info.
13711
13712 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
13713
13714         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
13715         used as bcopy.
13716
13717 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
13718
13719         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
13720         * sysdeps/unix/syscalls.list (dup3): Likewise.
13721         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
13722         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
13723
13724 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
13725
13726         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
13727         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
13728
13729 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
13730
13731         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
13732         thread pointer.
13733         (TLS_IE): Use mov/add instead of movq/addq to load thread
13734         pointer.
13735         (TLS_GD_PREFIX): New.
13736         (TLS_GD): Use it.
13737
13738 2012-05-11  David S. Miller  <davem@davemloft.net>
13739
13740         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
13741         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
13742         (_FPU_SETCW): Likewise.
13743
13744 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13745
13746         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
13747         is 32-byte aligned.
13748
13749 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
13750
13751         [BZ #11837]
13752         * iconvdata/gb18030.c: Update tables.
13753         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
13754         characters specially.
13755         (BODY for TO_LOOP): Add encoding of missing ranges.
13756
13757 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
13758
13759         [BZ #13673]
13760         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
13761         * sysdeps/mach/hurd/dup3.c: Likewise.
13762         * sysdeps/mach/hurd/readlinkat.c: Likewise.
13763         * sysdeps/powerpc/memmove.c:: Likewise.
13764
13765 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13766
13767         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
13768         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
13769
13770 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13771
13772         * elf/elf.h (R_X86_64_RELATIVE64): New.
13773         (R_X86_64_NUM): Updated.
13774         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
13775         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
13776         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
13777         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
13778         tst-quad1pie tst-quad2pie
13779         (modules-names): Add tst-quadmod1 tst-quadmod2.
13780         ($(objpfx)tst-quad1): New dependency.
13781         ($(objpfx)tst-quad2): Likewise.
13782         ($(objpfx)tst-quad1pie): Likewise.
13783         ($(objpfx)tst-quad2pie): Likewise.
13784         * sysdeps/x86_64/tst-quad1.c: New file.
13785         * sysdeps/x86_64/tst-quad1pie.c: New file.
13786         * sysdeps/x86_64/tst-quad2.c: Likewise.
13787         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
13788         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
13789         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
13790         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
13791         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
13792
13793 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13794
13795         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
13796         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
13797         * streams/stropts.h (t_scalar_t): Define type.
13798
13799         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
13800         (_PATH_PRESERVE): Set to "/var/lib".
13801         (_PATH_RWHODIR): Set to "/var/spool/rwho".
13802
13803         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
13804         instead of int.
13805
13806         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
13807         if __dir_mkfile succeeded.
13808
13809         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
13810         checking for _hurd_dtablesize.  Unlock it right after having
13811         finished _hurd_dtable allocation.
13812
13813 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13814
13815         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
13816         * sysdeps/mach/hurd/configure: Regenerated.
13817         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
13818         special-casing to...
13819         * sysdeps/gnu/configure.in: ... this new file.
13820         * sysdeps/unix/sysv/linux/configure: Regenerated.
13821         * sysdeps/gnu/configure: New generated file.
13822
13823         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
13824         for Linux: use nsec instead of usec, as well as:
13825         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
13826         members of type struct timespec.
13827         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
13828         New macros.
13829         (struct stat64): Likewise.
13830         (_STATBUF_ST_NSEC): New macro.
13831         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
13832
13833         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
13834         __strtoul_internal rather than strtoul.
13835
13836 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
13837
13838         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
13839         and reject them.
13840
13841 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13842
13843         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
13844         which preserves existing values.
13845         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
13846
13847 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
13848
13849         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
13850         TIMEOUT values.  Return EINVAL for NFDS values either negative or
13851         greater than FD_SETSIZE.
13852
13853 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13854
13855         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
13856         allocated, call __vm_protect to finish enabling the existing space, and
13857         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
13858         allocate the remainder.
13859
13860 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
13861
13862         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
13863         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
13864
13865 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13866
13867         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
13868         sysdeps/mach/hurd/readlink.c.
13869
13870         * posix/tst-sysconf.c (posix_options): Only use
13871         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
13872         _POSIX_SYNCHRONIZED_IO when they are defined
13873         * sysdeps/mach/hurd/bits/posix_opt.h:
13874         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
13875         (_XOPEN_REALTIME): Undefine macro.
13876         (_XOPEN_REALTIME_THREADS): Undefine macro.
13877         (_XOPEN_SHM): Undefine macro.
13878         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
13879         macro to -1.
13880         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
13881         macro to -1.
13882         (_POSIX_ASYNC_IO): Undefine macro.
13883         (_POSIX_PRIORITIZED_IO): Undefine macro.
13884         (_POSIX_SPIN_LOCKS): Define macro to -1.
13885
13886         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
13887         SA_NODEFER, SA_RESETHAND.
13888         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
13889         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
13890         F_DUPFD_CLOEXEC.
13891
13892 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13893
13894         * elf/Makefile (pldd-modules): Define unconditionally.
13895
13896 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13897
13898         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
13899
13900 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13901
13902         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
13903         Return ENOENT when name is empty.
13904         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
13905
13906 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13907
13908         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
13909
13910         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
13911
13912 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13913
13914         Fix mlock in all cases except non-readable pages.
13915         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
13916         instead of VM_PROT_ALL as parameter to __vm_wire function.
13917
13918         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
13919         (__mkdir): When path is `/', just fail with EEXIST.
13920         * sysdeps/mach/hurd/mkdirat.c: Likewise.
13921
13922 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13923
13924         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
13925         <sys/uio.h> (for writev).
13926         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
13927         and <sys/param.h> (for MIN).
13928
13929 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
13930
13931         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
13932         REQUESTED_TIME.  Properly set the remaining time and return EINTR
13933         if interrupted.
13934
13935 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13936
13937         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
13938         Depend on against $(link-rpcuserlibs).
13939
13940 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13941
13942         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
13943         (__libc_stack_end): Do not use attribute_relro.
13944         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
13945         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
13946         to libthread-provided value.
13947         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
13948         attribute_relro.
13949
13950 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13951
13952         [BZ #3748]
13953         * bits/libc-lock.h (__libc_once_get): New macro.
13954         * sysdeps/mach/bits/libc-lock.h: Likewise.
13955         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
13956         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
13957         instead of using implementation details.
13958
13959         * libio/fileops.c: Unconditionally include <kernel-features.h>.
13960         * libio/freopen.c: Likewise.
13961         * libio/freopen64.c: Likewise.
13962         * misc/syslog.c: Likewise.
13963         * nscd/connections.c: Likewise.
13964         * nscd/netgroupcache.c: Likewise.
13965         * sysdeps/posix/getcwd.c: Likewise.
13966
13967 2012-05-10  Roland McGrath  <roland@hack.frob.com>
13968
13969         * math/w_ilogbf.c: Add #include <limits.h>.
13970
13971 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13972
13973         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
13974         path instead of returning without unlocking.
13975
13976         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
13977         immediate-write ioctls.
13978         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
13979
13980 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13981
13982         * sysdeps/mach/hurd/i386/init-first.c (init): Use
13983         __builtin_frame_address instead of making assumptions about the
13984         location of the return address relative to DATA.  Force early load of
13985         the return address.
13986         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
13987         __builtin_frame_address.
13988
13989         dup3 for GNU Hurd.
13990         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
13991         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
13992         implement dup3 and do some further code clean-ups.
13993         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
13994         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
13995
13996 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13997
13998         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
13999
14000         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
14001         HURD_CRITICAL_END around holding _hurd_dtable_lock.
14002         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
14003         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
14004         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
14005         d->port.lock.
14006
14007         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
14008         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
14009         when handler == SIG_ERR, not when handler != SIG_ERR.
14010
14011 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14012
14013         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
14014         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
14015         definitions.
14016
14017         accept4 for GNU Hurd.
14018         * include/sys/socket.h (__libc_accept4): New prototype.
14019         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
14020         to implement __libc_accept4.
14021         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
14022         __libc_accept4.
14023         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
14024
14025         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
14026         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
14027         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
14028         signal-defines.sym.
14029
14030 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14031
14032         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
14033
14034 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14035
14036         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
14037         assertion on O_CLOEXEC flag.
14038         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
14039         * hurd/intern-fd.c: Likewise.
14040         * hurd/port2fd.c: Likewise.
14041
14042 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14043
14044         [BZ #3906]
14045         * bits/in.h (IPV6_PKTINFO): Define new macro.
14046         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
14047
14048 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14049
14050         [BZ #13954]
14051         [BZ #13955]
14052         [BZ #13956]
14053         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
14054         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
14055         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
14056         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
14057         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
14058         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
14059         * math/libm-test.inc (logb_test) : Additional logb tests.
14060
14061 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
14062             Andreas Jaeger  <aj@suse.de>
14063
14064         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
14065         * configure: Regenerated.
14066         * config.h.in (LINK_OBSOLETE_RPC): New macro.
14067         * config.make.in (link-obsolete-rpc): New substituted variable.
14068         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
14069         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
14070         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
14071         (shared-only-routines): Don't set it under [link-obsolete-rpc],
14072         so that libc.a contains the symbols.
14073         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
14074         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
14075         * sunrpc/auth_none.c: Likewise.
14076         * sunrpc/auth_unix.c: Likewise.
14077         * sunrpc/authdes_prot.c: Likewise.
14078         * sunrpc/authuxprot.c: Likewise.
14079         * sunrpc/clnt_gen.c: Likewise.
14080         * sunrpc/clnt_perr.c: Likewise.
14081         * sunrpc/clnt_raw.c: Likewise.
14082         * sunrpc/clnt_simp.c: Likewise.
14083         * sunrpc/clnt_tcp.c: Likewise.
14084         * sunrpc/clnt_udp.c: Likewise.
14085         * sunrpc/clnt_unix.c: Likewise.
14086         * sunrpc/des_crypt.c: Likewise.
14087         * sunrpc/des_soft.c: Likewise.
14088         * sunrpc/get_myaddr.c: Likewise.
14089         * sunrpc/key_call.c: Likewise.
14090         * sunrpc/key_prot.c: Likewise.
14091         * sunrpc/netname.c: Likewise.
14092         * sunrpc/pm_getmaps.c: Likewise.
14093         * sunrpc/pm_getport.c: Likewise.
14094         * sunrpc/pmap_clnt.c: Likewise.
14095         * sunrpc/pmap_prot.c: Likewise.
14096         * sunrpc/pmap_prot2.c: Likewise.
14097         * sunrpc/pmap_rmt.c: Likewise.
14098         * sunrpc/publickey.c: Likewise.
14099         * sunrpc/rpc_cmsg.c: Likewise.
14100         * sunrpc/rpc_common.c: Likewise.
14101         * sunrpc/rpc_dtable.c: Likewise.
14102         * sunrpc/rpc_prot.c: Likewise.
14103         * sunrpc/rpc_thread.c: Likewise.
14104         * sunrpc/rtime.c: Likewise.
14105         * sunrpc/svc.c: Likewise.
14106         * sunrpc/svc_auth.c: Likewise.
14107         * sunrpc/svc_raw.c: Likewise.
14108         * sunrpc/svc_run.c: Likewise.
14109         * sunrpc/svc_tcp.c: Likewise.
14110         * sunrpc/svc_udp.c: Likewise.
14111         * sunrpc/svc_unix.c: Likewise.
14112         * sunrpc/svcauth_des.c: Likewise.
14113         * sunrpc/xcrypt.c: Likewise.
14114         * sunrpc/xdr.c: Likewise.
14115         * sunrpc/xdr_array.c: Likewise.
14116         * sunrpc/xdr_float.c: Likewise.
14117         * sunrpc/xdr_intXX_t.c: Likewise.
14118         * sunrpc/xdr_mem.c: Likewise.
14119         * sunrpc/xdr_rec.c: Likewise.
14120         * sunrpc/xdr_ref.c: Likewise.
14121         * sunrpc/xdr_sizeof.c: Likewise.
14122         * sunrpc/xdr_stdio.c: Likewise.
14123
14124 2012-05-10  Roland McGrath  <roland@hack.frob.com>
14125
14126         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
14127         change.  Update copyright years.
14128
14129 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
14130
14131         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
14132
14133 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
14134             Joseph Myers  <joseph@codesourcery.com>
14135             Paul Pluzhnikov  <ppluzhnikov@google.com>
14136
14137         [BZ #14012]
14138         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
14139         requiring rpcgen.
14140         [cross-compiling] (extra-libs): Likewise.
14141         [cross-compiling] (extra-libs-others): Likewise.
14142         [cross-compiling] (librpcsvc-routines): Likewise.
14143         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
14144         [cross-compiling] (omit-deps): Likewise.
14145         (sunrpc-CPPFLAGS): New variable.
14146         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
14147         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
14148         (cross-rpcgen-objs): New variable.
14149         (extra-objs): Append $(cross-rpcgen-objs).
14150         ($(cross-rpcgen-objs)): New rule.
14151         ($(objpfx)cross-rpcgen): Likewise.
14152         (rpcgen-cmd): Define to use $(built-program-file).  Expand
14153         comment.
14154         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
14155         ($(objpfx)x%.stmp): Likewise.
14156         * sunrpc/proto.h [IS_IN_build] (_): Define.
14157         [IS_IN_build] (_libc_intl_domainname): Likewise.
14158
14159 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14160
14161         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
14162         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
14163         and R_X86_64_TPOFF64.
14164
14165 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
14166
14167         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
14168         sysdeps/unix/sysv/syscalls.list.
14169         (stime): Likewise.
14170         (utime): Likewise.
14171         * sysdeps/unix/sysv/syscalls.list: Remove file.
14172
14173 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
14174
14175         [BZ #3440]
14176         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
14177         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
14178         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
14179         (__LC_IDENTIFICATION): Make these macros useful in #if
14180         expressions, as required by C99.
14181
14182 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
14183
14184         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
14185         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
14186         after this.
14187
14188 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
14189
14190         * stdlib/longlong.h: Updated from GCC.
14191
14192 2012-05-09  Andreas Jaeger  <aj@suse.de>
14193
14194         * nscd/nscd.c (run_modes): Make named enum, reorder so that
14195         default is first entry.
14196         (run_mode): Set type.
14197         (main): Remove informal message about syslog.
14198         (options): Fix typo.
14199
14200         [BZ #14053]
14201         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
14202         to asm.
14203         (lrint): Likewise.
14204         (llrintf): Likewise.
14205         (llrint): Likewise.
14206         (rint): Likewise.
14207         (rintf): Likewise.
14208         (nearbyint): Likewise.
14209         (nearbyintf): Likewise.
14210
14211 2012-05-09  Andreas Jaeger  <aj@suse.de>
14212             Pedro Alves  <palves@redhat.com>
14213
14214         * nscd/nscd.c (run_mode): Use enum.
14215         (main): Cleanup coding style issue.
14216
14217 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
14218             Andreas Jaeger  <aj@suse.de>
14219
14220         * nscd/nscd.c (go_background): Replaced with...
14221         (run_mode): ... this.
14222         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
14223         (options): Add -F --foreground.
14224         (main): Implement it.
14225         (parse_opt): Parse it.
14226
14227 2012-05-09  Andreas Jaeger  <aj@suse.de>
14228
14229         [BZ #14083]
14230         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
14231         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
14232         -Wconversion warning.
14233         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
14234         Likewise.
14235
14236 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
14237
14238         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
14239         == 0.
14240         (LC_ALL): Use macro-int-constant.
14241         (LC_COLLATE): Likewise.
14242         (LC_CTYPE): Likewise.
14243         (LC_MESSAGES): Likewise.
14244         (LC_MONETARY): Likewise.
14245         (LC_NUMERIC): Likewise.
14246         (LC_TIME): Likewise.
14247         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
14248         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
14249         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14250         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
14251         Specify type.
14252         [C99-based standards] (float_t): Expect type.
14253         [C99-based standards] (double_t): Expect type.
14254         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
14255         type.
14256         [C99-based standards] (HUGE_VALL): Likewise.
14257         [C99-based standards] (INFINITY): Likewise.
14258         [C99-based standards] (NAN): Likewise.
14259         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
14260         [C99-based standards] (FP_NAN): Likewise.
14261         [C99-based standards] (FP_NORMAL): Likewise.
14262         [C99-based standards] (FP_SUBNORMAL): Likewise.
14263         [C99-based standards] (FP_ZERO): Likewise.
14264         [C99-based standards] (FP_FAST_FMA): Use
14265         optional-macro-int-constant.  Specify type.  Require == 1.
14266         [C99-based standards] (FP_FAST_FMAF): Likewise.
14267         [C99-based standards] (FP_FAST_FMAL): Likewise.
14268         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
14269         [C99-based standards] (FP_ILOGBNAN): Likewise.
14270         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
14271         Specify type.
14272         [C99-based standards] (MATH_ERREXCEPT): Likewise.
14273         [C99-based standards] (math_errhandling): Specify type.
14274         [ISO99 || ISO11] (signgam): Do not allow.
14275         [non-C99-based standards] (copysignf): Do not allow.
14276         [non-C99-based standards] (exp2f): Likewise.
14277         [non-C99-based standards] (log2f): Likewise.
14278         [non-C99-based standards] (modff): Allow.
14279         [non-C99-based standards] (erff): Do not allow.
14280         [non-C99-based standards] (erfcf): Likewise.
14281         [non-C99-based standards] (gammaf): Likewise.
14282         [non-C99-based standards] (hypotf): Likewise.
14283         [non-C99-based standards] (j0f): Likewise.
14284         [non-C99-based standards] (j1f): Likewise.
14285         [non-C99-based standards] (jnf): Likewise.
14286         [non-C99-based standards] (lgammaf): Likewise.
14287         [non-C99-based standards] (tgammaf): Likewise.
14288         [non-C99-based standards] (y0f): Likewise.
14289         [non-C99-based standards] (y1f): Likewise.
14290         [non-C99-based standards] (ynf): Likewise.
14291         [non-C99-based standards] (isnanf): Likewise.
14292         [non-C99-based standards] (acoshf): Likewise.
14293         [non-C99-based standards] (asinhf): Likewise.
14294         [non-C99-based standards] (atanhf): Likewise.
14295         [non-C99-based standards] (cbrtf): Likewise.
14296         [non-C99-based standards] (expm1f): Likewise.
14297         [non-C99-based standards] (ilogbf): Likewise.
14298         [non-C99-based standards] (log1pf): Likewise.
14299         [non-C99-based standards] (logbf): Likewise.
14300         [non-C99-based standards] (nextafterf): Likewise.
14301         [non-C99-based standards] (remainderf): Likewise.
14302         [non-C99-based standards] (rintf): Likewise.
14303         [non-C99-based standards] (scalbf): Likewise.
14304         [non-C99-based standards] (copysignl): Likewise.
14305         [non-C99-based standards] (exp2l): Likewise.
14306         [non-C99-based standards] (log2l): Likewise.
14307         [non-C99-based standards] (modfl): Allow.
14308         [non-C99-based standards] (erfl): Do not allow.
14309         [non-C99-based standards] (erfcl): Likewise.
14310         [non-C99-based standards] (gammal): Likewise.
14311         [non-C99-based standards] (hypotl): Likewise.
14312         [non-C99-based standards] (j0l): Likewise.
14313         [non-C99-based standards] (j1l): Likewise.
14314         [non-C99-based standards] (jnl): Likewise.
14315         [non-C99-based standards] (lgammal): Likewise.
14316         [non-C99-based standards] (tgammal): Likewise.
14317         [non-C99-based standards] (y0l): Likewise.
14318         [non-C99-based standards] (y1l): Likewise.
14319         [non-C99-based standards] (ynl): Likewise.
14320         [non-C99-based standards] (isnanl): Likewise.
14321         [non-C99-based standards] (acoshl): Likewise.
14322         [non-C99-based standards] (asinhl): Likewise.
14323         [non-C99-based standards] (atanhl): Likewise.
14324         [non-C99-based standards] (cbrtl): Likewise.
14325         [non-C99-based standards] (expm1l): Likewise.
14326         [non-C99-based standards] (ilogbl): Likewise.
14327         [non-C99-based standards] (log1pl): Likewise.
14328         [non-C99-based standards] (logbl): Likewise.
14329         [non-C99-based standards] (nextafterl): Likewise.
14330         [non-C99-based standards] (remainderl): Likewise.
14331         [non-C99-based standards] (rintl): Likewise.
14332         [non-C99-based standards] (scalbl): Likewise.
14333         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14334         [non-C99-based standards] (FP_*): Do not allow.
14335         [C99-based standards] (FP_*): Change to
14336         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
14337         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
14338         allow.
14339         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
14340         (SIG_ERR): Likewise.
14341         [X/Open-based standards] (SIG_HOLD): Likewise.
14342         (SIG_IGN): Likewise.
14343         (SIGABRT): Use macro-int-constant.  Specify type.  Require
14344         positive value.
14345         (SIGFPE): Likewise.
14346         (SIGILL): Likewise.
14347         (SIGINT): Likewise.
14348         (SIGSEGV): Likewise.
14349         (SIGTER): Likewise.
14350         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
14351         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
14352         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
14353         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
14354         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
14355         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
14356         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
14357         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
14358         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
14359         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
14360         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
14361         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
14362         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
14363         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
14364         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
14365         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
14366         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
14367         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
14368         [X/Open-based standards] (SIGTRAP): Likewise.
14369         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
14370         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
14371         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
14372         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
14373         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
14374         allow.
14375
14376 2012-05-08  Ian Wienand  <ianw@vmware.com>
14377
14378         [BZ #14080]
14379         * time/tzset.c (__tzset_parse_tz): Update default rules for
14380         daylight time changes in the Energy Policy Act of 2005.
14381
14382 2012-05-09  Andreas Jaeger  <aj@suse.de>
14383
14384         [BZ #13983]
14385         * elf/ldconfig.c (parse_conf): Change string to make clear that
14386         ldconfig only issued a warning if ld.so.conf does not exist.
14387
14388 2012-05-08  David S. Miller  <davem@davemloft.net>
14389
14390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
14391         movxtod instead of popping the value on the stack.
14392
14393         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14394
14395 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
14396
14397         * config.h.in: Add HAVE_ARM_PCS_VFP.
14398
14399 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
14400
14401         [BZ #13979]
14402         * include/features.h: Warn if user requests __FORTIFY_SOURCE
14403         checking but the checks are disabled for any reason.
14404
14405 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
14406
14407         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
14408         and ELF64_R_TYPE with ELFW(R_TYPE).
14409
14410 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
14411
14412         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
14413         (ulimit): Likewise.
14414
14415         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
14416         (settimeofday): Likewise.
14417
14418 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
14419
14420         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
14421         a struct th_u2 inside the union, and move tu_block/tu_code into
14422         a new th_u3 union of tu_block/tu_code inside of that.  Move
14423         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
14424         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
14425         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
14426         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
14427         (th_stuff): Change to th_u1.tu_stuff.
14428         (th_data): Define.
14429         (th_msg): Change to th_u1.th_u2.tu_data.
14430
14431 2012-05-07  David S. Miller  <davem@davemloft.net>
14432
14433         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14434
14435         [BZ #14074]
14436         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
14437         (SETUP_PIC_REG): Use it.
14438         (SETUP_PIC_REG_LEAF): Use it.
14439
14440 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
14441
14442         [BZ #13885]
14443         [BZ #13923]
14444         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
14445         USE_AS_EXPM1L.
14446         (EXPL_FINITE): Likewise.
14447         (FLDLOG): Likewise.
14448         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
14449         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
14450         e_expl.S.
14451         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
14452         USE_AS_EXPM1L.
14453         (EXPL_FINITE): Likewise.
14454         (FLDLOG): Likewise.
14455         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
14456         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
14457         e_expl.S.
14458         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
14459         test of -max_value argument for long double.
14460         * sysdeps/i386/fpu/libm-test-ulps: Update.
14461         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14462
14463 2012-05-06  David S. Miller  <davem@davemloft.net>
14464
14465         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
14466         quad soft-float symbols whose references which are compiler
14467         generated.
14468         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
14469
14470 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
14471
14472         [BZ #13884]
14473         [BZ #13914]
14474         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
14475         USE_AS_EXP10L.
14476         (EXPL_FINITE): Likewise.
14477         (FLDLOG): Likewise.
14478         (c0): Likewise.
14479         (c1): Likewise.
14480         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
14481         Adjust comments for base varying.
14482         (__expl_finite): Change alias to EXPL_FINITE.
14483         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
14484         e_expl.S.
14485         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
14486         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
14487         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
14488         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
14489         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
14490         USE_AS_EXP10L.
14491         (EXPL_FINITE): Likewise.
14492         (FLDLOG): Likewise.
14493         (c0): Likewise.
14494         (c1): Likewise.
14495         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
14496         Adjust comments for base varying.
14497         (__expl_finite): Change alias to EXPL_FINITE.
14498         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
14499         tests for bugs.
14500         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14501
14502         [BZ #14064]
14503         * math/libm-test.inc (check_float_internal): Correct ulp
14504         calculation for subnormal expected results.
14505
14506 2012-05-06  Andreas Jaeger  <aj@suse.de>
14507
14508         * Makeconfig (+math-flags): New, set to -frounding-math.
14509         (+cflags): Add +math-flags so that all of glibc gets compiled with
14510         it.
14511
14512         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
14513
14514 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
14515
14516         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
14517         Disable one test.
14518
14519         [BZ #13787]
14520         [BZ #13922]
14521         [BZ #14036]
14522         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
14523         (__ieee754_expl): Allow for and saturate large arguments.
14524         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
14525         (u_threshold): Likewise.
14526         (__exp): Call __ieee754_exp before checking for overflow and
14527         underflow.
14528         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
14529         (u_threshold): Likewise.
14530         (__expf): Call __ieee754_expf before checking for overflow and
14531         underflow.
14532         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
14533         (u_threshold): Likewise.
14534         (__expl): Call __ieee754_expl before checking for overflow and
14535         underflow.
14536         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
14537         (__ieee754_expl): Allow for and saturate large arguments.
14538         * math/libm-test.inc (exp_test): Add another test.  Do not allow
14539         missing overflow exception on overflow.
14540         (expm1_test): Do not allow missing overflow exception on overflow.
14541
14542         * sysdeps/i386/fpu/e_expl.c: Move to ...
14543         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
14544         rather than using inline asm.
14545         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
14546         * sysdeps/x86_64/fpu/e_expl.S: Copy from
14547         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
14548
14549         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
14550         (nice): Likewise.
14551         (poll): Likewise.
14552         (signal): Likewise.
14553         (time): Likewise.
14554         (times): Likewise.
14555
14556 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
14557
14558         * sysdeps/unix/syscalls.list (adjtime): Add entry from
14559         sysdeps/unix/common/syscalls.list.
14560         (fchmod): Likewise.
14561         (fchown): Likewise.
14562         (ftruncate): Likewise.
14563         (getrusage): Likewise.
14564         (gettimeofday): Likewise.
14565         (setpgid): Likewise.
14566         (setregid): Likewise.
14567         (setreuid): Likewise.
14568         (sigaction): Likewise.
14569         (truncate): Likewise.
14570         (vhangup): Likewise.
14571         * sysdeps/unix/common/syscalls.list: Remove file.
14572         * sysdeps/unix/bsd/Implies: Don't include unix/common.
14573         * sysdeps/unix/sysv/linux/Implies: Likewise.
14574
14575 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
14576
14577         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
14578         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
14579         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
14580         Moved to ...
14581         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
14582         Here.
14583         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
14584         to ...
14585         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
14586         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
14587         to ...
14588         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
14589         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
14590         to ...
14591         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
14592         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
14593         to ...
14594         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
14595         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
14596         to ...
14597         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
14598         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
14599         to ...
14600         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
14601         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
14602         to ...
14603         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
14604         Here.
14605         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
14606         to ...
14607         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
14608         Here.
14609         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
14610         to ...
14611         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
14612         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
14613         Moved to ...
14614         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
14615         Here.
14616         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
14617         to ...
14618         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
14619
14620 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
14621
14622         * sysdeps/unix/common/bits/dirent.h: Remove file.
14623         * sysdeps/unix/common/bits/fcntl.h: Likewise.
14624
14625         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
14626         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
14627         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
14628         * sysdeps/unix/bsd/isatty.c: Likewise.
14629         * sysdeps/unix/bsd/tcdrain.c: Likewise.
14630         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
14631         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
14632
14633 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14634
14635         [BZ #13563]
14636         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
14637         long double comparison inaccuracies.
14638         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14639         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14640
14641 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
14642
14643         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
14644         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
14645
14646 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
14647
14648         [BZ #14049]
14649         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
14650         nonzero digits before rounding a hex value.
14651         * stdlib/tst-strtod.c (tests): Add another test.
14652
14653 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14654
14655         * sysdeps/s390/fpu/libm-test-ulps: Update.
14656
14657 2012-05-03  Andreas Jaeger  <aj@suse.de>
14658
14659         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
14660         does not get optimized out.
14661         (malloc_opt_barrier): New.
14662
14663 2012-05-03  Andreas Jaeger  <aj@suse.de>
14664             Roland McGrath  <roland@hack.frob.com>
14665
14666         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
14667         intermediate file deletion.
14668         (generated): Add .symlist files.
14669
14670 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
14671
14672         [BZ #13775]
14673         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
14674         Redirect under this condition.
14675         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
14676         [__USE_GNU] (__dprintf_chk): Not under this condition.
14677         [__USE_GNU] (__vdprintf_chk): Likewise.
14678         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
14679         under this condition.
14680         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
14681         [__USE_XOPEN2K8] (dprintf): Define under this condition.
14682         [__USE_XOPEN2K8] (vdprintf): Likewise.
14683         [__USE_GNU] (__dprintf_chk): Not under this condition.
14684         [__USE_GNU] (__vdprintf_chk): Likewise.
14685         [__USE_GNU] (dprintf): Likewise.
14686         [__USE_GNU] (vdprintf): Likewise.
14687
14688 2012-05-03  Roland McGrath  <roland@hack.frob.com>
14689
14690         * elf/Makefile (common-generated): Set this instead of generated for
14691         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
14692         $(all-built-dso)-derived lists.
14693
14694 2012-05-03  Andreas Jaeger  <aj@suse.de>
14695
14696         * sysdeps/i386/fpu/libm-test-ulps: Update.
14697
14698         * FAQ: Removed.
14699         * FAQ.in: Likewise.
14700         * scripts/gen-FAQ.pl: Likewise.
14701         * manual/install.texi (Installation): Point to online location of
14702         FAQ.
14703         * Makefile (files-for-dist): Remove FAQ.
14704         (FAQ): Remove.
14705
14706 2012-05-02  Allan McRae  <allan@archlinux.org>
14707
14708         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
14709         (LDFLAGS-reldepmod5.so): Likewise.
14710         (LDFLAGS-reldep6mod1.so): Likewise.
14711         (LDFLAGS-reldep6mod4.so): Likewise.
14712         (LDFLAGS-reldep8mod3.so): Likewise.
14713         (LDFLAGS-unload4mod1.so): Likewise.
14714         (LDFLAGS-unload4mod2.so): Likewise.
14715         (LDFLAGS-tst-initorder): Likewise.
14716         (LDFLAGS-tst-initordera2.so): Likewise.
14717         (LDFLAGS-tst-initordera3.so): Likewise.
14718         (LDFLAGS-tst-initordera4.so): Likewise.
14719         (LDFLAGS-tst-initorderb2.so): Likewise.
14720         (LDFLAGS-noload): Likewise.
14721         (LDFLAGS-next): Likewise.
14722         (LDFLAGS-order2mod1.so): Likewise.
14723         (LDFLAGS-order2mod2.so): Likewise.
14724         (LDFLAGS-tst-initorder2): Likewise.
14725         (LDFLAGS-tst-initorder2a.so): Likewise.
14726         (LDFLAGS-tst-initorder2b.so): Likewise.
14727         (LDFLAGS-tst-initorder2c.so): Likewise.
14728         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
14729
14730 2012-05-02  David S. Miller  <davem@davemloft.net>
14731
14732         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14733
14734 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
14735
14736         [BZ #14055]
14737         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
14738
14739 2012-05-02  Andreas Jaeger  <aj@suse.de>
14740
14741         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
14742         since we manipulate rounding mode.
14743         (CPPFLAGS-test-idouble.c): Likewise.
14744         (CPPFLAGS-test-ifloat.c): Likewise.
14745         (CFLAGS-test-ldouble.c): Likewise.
14746         (CFLAGS-test-double.c): Likewise.
14747         (CFLAGS-test-float.c): Likewise.
14748         (CFLAGS-test-misc.c): Likewise.
14749         (CFLAGS-test-test-fenv.c): Likewise.
14750
14751 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14752
14753         [BZ #2550]
14754         [BZ #2570]
14755         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
14756         comparisons to determine direction to adjust input.
14757
14758 2012-05-01  Roland McGrath  <roland@hack.frob.com>
14759
14760         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
14761         output to the target.
14762
14763         * scripts/localplt.awk: New file.
14764         * elf/Makefile ($(objpfx)check-localplt): Target removed.
14765         (check-localplt-CFLAGS): Variable removed.
14766         ($(all-built-dso:=.jmprel)): New static pattern rule.
14767         (generated): Add those targets.
14768         (localplt-built-dso): New variable.
14769         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
14770
14771         * elf/check-localplt.c: File removed.
14772
14773         * scripts/check-execstack.awk: New file.
14774         * elf/Makefile ($(objpfx)check-execstack): Target removed.
14775         (check-execstack-CFLAGS): Variable removed.
14776         ($(objpfx)check-execstack.h): Target removed.
14777         ($(objpfx)execstack-default): New target.
14778         (generated): Add that instead of check-execstack.h.
14779         ($(all-built-dso:=.phdr)): New static pattern rule.
14780         (generated): Add those targets.
14781         * elf/check-execstack.c: File removed.
14782
14783         * scripts/check-textrel.awk: New file.
14784         * elf/Makefile ($(objpfx)check-textrel): Target removed.
14785         (check-textrel-CFLAGS): Variable removed.
14786         (all-built-dso): Use := to define.o
14787         ($(all-built-dso:=.dyn)): New static pattern rule.
14788         (generated): Add those targets.
14789         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
14790         * config.make.in (READELF): New substituted variable.
14791         * elf/check-textrel.c: File removed.
14792
14793 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
14794
14795         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
14796         allow.
14797         * conform/data/ctype.h-data [C99-based standards] (isblank):
14798         Expect function.
14799         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
14800         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
14801         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14802         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
14803         Specify type.  Require positive value.
14804         (EILSEQ): Likewise.
14805         (ERANGE): Likewise.
14806         [ISO || POSIX] (EILSEQ): Do not expect.
14807         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
14808         Specify type.  Require positive value.
14809         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
14810         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
14811         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
14812         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
14813         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
14814         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
14815         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
14816         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
14817         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
14818         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
14819         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
14820         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
14821         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
14822         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
14823         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
14824         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
14825         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
14826         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
14827         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
14828         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
14829         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
14830         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
14831         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
14832         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
14833         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
14834         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
14835         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
14836         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
14837         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
14838         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
14839         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
14840         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
14841         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
14842         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
14843         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
14844         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
14845         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
14846         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
14847         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
14848         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
14849         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
14850         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
14851         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
14852         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
14853         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
14854         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
14855         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
14856         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
14857         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
14858         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
14859         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
14860         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
14861         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
14862         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
14863         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
14864         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
14865         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
14866         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
14867         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
14868         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
14869         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
14870         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
14871         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
14872         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
14873         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
14874         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
14875         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
14876         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
14877         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
14878         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
14879         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
14880         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
14881         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
14882         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
14883         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
14884         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
14885         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
14886         Require >= 2.
14887         (FLT_ROUNDS): Expect as macro, not constant.
14888         (FLT_MANT_DIG): Use macro-int-constant.
14889         (DBL_MANT_DIG): Likewise.
14890         (LDBL_MANT_DIG): Likewise.
14891         (FLT_DIG): Likewise.
14892         (DBL_DIG): Likewise.
14893         (LDBL_DIG): Likewise.
14894         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
14895         (DBL_MIN_EXP): Likewise.
14896         (LDBL_MIN_EXP): Likewise.
14897         (FLT_MAX_EXP): Use macro-int-constant.
14898         (DBL_MAX_EXP): Likewise.
14899         (LDBL_MAX_EXP): Likewise.
14900         (FLT_MAX_10_EXP): Likewise.
14901         (DBL_MAX_10_EXP): Likewise.
14902         (LDBL_MAX_10_EXP): Likewise.
14903         (FLT_MAX): Use macro-constant.
14904         (DBL_MAX): Likewise.
14905         (LDBL_MAX): Likewise.
14906         (FLT_EPSILON): Use macro-constant.  Give upper bound.
14907         (DBL_EPSILON): Likewise.
14908         (LDBL_EPSILON): Likewise.
14909         (FLT_MIN): Likewise.
14910         (DBL_MIN): Likewise.
14911         (LDBL_MIN): Likewise.
14912         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
14913         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
14914         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
14915         [ISO11] (FLT_HAS_SUBNORM): Likewise.
14916         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
14917         [ISO11] (DBL_DECIMAL_DIG): Likewise.
14918         [ISO11] (FLT_DECIMAL_DIG): Likewise.
14919         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
14920         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
14921         [ISO11] (FLT_TRUE_MIN): Likewise.
14922         [ISO11] (LDBL_TRUE_MIN): Likewise.
14923         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14924         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
14925         (SCHAR_MIN): Use macro-int-constant.  Specify type.
14926         (SCHAR_MAX): Likewise.
14927         (UCHAR_MAX): Likewise.
14928         (CHAR_MIN): Likewise.
14929         (CHAR_MAX): Likewise.
14930         (MB_LEN_MAX): Use macro-int-constant.
14931         (SHRT_MIN): Use macro-int-constant.  Specify type.
14932         (SHRT_MAX): Likewise.
14933         (USHRT_MAX): Likewise.
14934         (INT_MAX): Likewise.
14935         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
14936         bound negative.
14937         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
14938         bound with "U".
14939         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
14940         bound with "L".
14941         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
14942         bound negative.  Suffix upper bound with "L".
14943         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
14944         bound with "UL".
14945         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
14946         Specify type.
14947         [C99-based standards] (LLONG_MAX): Likewise.
14948         [C99-based standards] (ULLONG_MAX): Likewise.
14949         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
14950         == 0.
14951         [ISO11] (max_align_t): Require type.
14952         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14953
14954         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
14955         from $CFLAGS, without defining away __attribute__ calls.
14956         (checknamespace): Use $CFLAGS_namespace.
14957
14958         * conform/conformtest.pl (@keywords): Only include C99 keywords
14959         for standards based on C99 or C11.
14960
14961         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
14962         Disable tests.
14963         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
14964         UNIX98]: Likewise.
14965
14966         * conform/conformtest.pl: Handle "macro-int-constant" and test for
14967         usability of symbols in #if.
14968
14969         * conform/conformtest.pl: If macro or constant types start
14970         "promoted:", expect the symbol to be of the following type
14971         promoted by the integer promotions.
14972
14973         * conform/conformtest.pl: Parse all "constant" and "macro" lines
14974         in one place.  Also handle "macro-constant".
14975
14976         * conform/conformtest.pl: Only accept expected macro values with
14977         "==".  Parse all "macro" lines in one place.
14978         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
14979
14980         * conform/conformtest.pl: Handle braced types on "constant" lines
14981         instead of handling "typed-constant".
14982         * conform/data/signal.h-data: Use "constant" instead of
14983         "typed-constant".
14984
14985         * conform/conformtest.pl: Handle "optional-" at start of lines in
14986         one place rather than duplicating several cases.  Handle each
14987         format of "macro" line with initial "optional-".
14988
14989         * conform/conformtest.pl: Only accept expected constant or
14990         optional-constant values with "==".  Parse all "constant" lines in
14991         one place.  Parse all "optional-constant" lines in one place.
14992         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
14993         * conform/data/fmtmsg.h-data: Likewise.
14994         * conform/data/netinet/in.h-data: Likewise.
14995         * conform/data/tar.h-data: Likewise.
14996         * conform/data/limits.h-data: Use "==" form on "constant" and
14997         "optional-constant" lines.
14998
14999         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
15000         Use -std=c99 for XOPEN2K.
15001         (@knownproblems): Remove.
15002         (newtoken): Don't check %isknown.
15003
15004         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
15005         Do not expect macro.
15006         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
15007         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
15008         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
15009         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
15010         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
15011         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
15012         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
15013         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
15014         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
15015         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
15016         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
15017         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
15018         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
15019         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
15020         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
15021         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
15022         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
15023         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
15024         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
15025         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
15026         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
15027         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
15028         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
15029         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
15030         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
15031         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
15032         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
15033         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
15034         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
15035         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
15036         [XPG3] (acosh): Likewise.
15037         [XPG3] (asinh): Likewise.
15038         [XPG3] (atanh): Likewise.
15039         [XPG3] (cbrt): Likewise.
15040         [XPG3] (expm1): Likewise.
15041         [XPG3] (ilogb): Likewise.
15042         [XPG3] (log1p): Likewise.
15043         [XPG3] (logb): Likewise.
15044         [XPG3] (nextafter): Likewise.
15045         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
15046         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
15047         [XPG3] (remainder): Likewise.
15048         [XPG3] (rint): Likewise.
15049         [XPG3 || XPG4 || UNIX98] (round): Likewise.
15050         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
15051         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
15052         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
15053         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
15054         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
15055         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
15056         [UNIX98 || XOPEN2K] (scalb): Expect.
15057         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
15058         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
15059         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
15060         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
15061         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
15062         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
15063         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
15064         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
15065         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
15066         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
15067         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
15068         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
15069         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
15070         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
15071         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
15072         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
15073         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
15074         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
15075         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
15076         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
15077         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
15078         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
15079         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
15080         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
15081         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
15082         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
15083         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
15084         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
15085         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
15086         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
15087         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
15088         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
15089         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
15090         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
15091         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
15092         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
15093         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
15094         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
15095         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
15096         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
15097         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
15098         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
15099         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
15100         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
15101         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
15102         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
15103         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
15104         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
15105         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
15106         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
15107         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
15108         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
15109         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
15110         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
15111         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
15112         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
15113         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
15114         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
15115         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
15116         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
15117         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
15118         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
15119         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
15120         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
15121         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
15122         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
15123         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
15124         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
15125         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
15126         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
15127         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
15128         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
15129         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
15130         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
15131         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
15132         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
15133         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
15134         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
15135         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
15136         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
15137         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
15138         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
15139         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
15140         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
15141         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
15142         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
15143         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
15144         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
15145         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
15146         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
15147         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
15148         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
15149         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
15150         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
15151         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
15152         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
15153         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
15154         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
15155         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
15156         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
15157         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
15158         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
15159         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
15160         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
15161         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
15162         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
15163         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
15164         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
15165         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
15166         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
15167         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
15168         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
15169         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
15170         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
15171         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
15172         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
15173         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
15174         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
15175         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
15176         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
15177         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
15178         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
15179         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
15180         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
15181         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
15182         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
15183         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
15184         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
15185         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
15186         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
15187         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
15188         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
15189         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
15190         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
15191         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
15192         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
15193         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
15194
15195         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
15196         _XOPEN_SOURCE_EXTENDED for XPG4.
15197
15198         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
15199
15200         * Makeconfig (localtime): Remove variable.
15201         (inst_localtime-file): Likewise.
15202
15203 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
15204
15205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
15206         Update.
15207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
15208         Update.
15209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
15210         Update.
15211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
15212         Update.
15213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
15214         Update.
15215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
15216         Update.
15217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
15218         Update.
15219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
15220         Update.
15221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
15222         Update.
15223
15224 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
15225
15226         [BZ #2550]
15227         [BZ #2570]
15228         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
15229         comparisons to determine direction to adjust input.
15230         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
15231         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
15232         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
15233         Likewise.
15234         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
15235         Likewise.
15236         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
15237         Likewise.
15238         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
15239         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
15240         Likewise.
15241         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
15242         Likewise.
15243         * math/libm-test.inc (nexttoward_test): Add more tests.
15244
15245 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
15246
15247         [BZ #14040]
15248         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
15249         in version GLIBC_2.1, not GLIBC_2.0.
15250         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
15251         Likewise.
15252
15253 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
15254
15255         [BZ #13942]
15256         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
15257         (1 - x) * (1 + x).
15258         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
15259         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
15260         * math/libm-test.inc (acos_test): Add more tests.
15261         (asin_test): Likewise.
15262         * sysdeps/i386/fpu/libm-test-ulps: Update.
15263         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15264
15265         [BZ #14034]
15266         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
15267         of square root.
15268         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
15269         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
15270         * math/libm-test.inc (acos_test_tonearest): New function.
15271         (acos_test_towardzero): Likewise.
15272         (acos_test_downward): Likewise.
15273         (acos_test_upward): Likewise.
15274         (asin_test_tonearest): Likewise.
15275         (asin_test_towardzero): Likewise.
15276         (asin_test_downward): Likewise.
15277         (asin_test_upward): Likewise.
15278         (main): Call the new functions.
15279         * sysdeps/i386/fpu/libm-test-ulps: Update.
15280         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15281
15282         [BZ #13884]
15283         [BZ #13924]
15284         * math/e_exp10.c: Include <float.h>.
15285         (__ieee754_exp10): Handle underflow here rather than multiplying
15286         large negative argument by M_LN10.
15287         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
15288         of __ieee754_expf.
15289         * math/e_exp10l.c: Include <float.h>.
15290         (__ieee754_exp10l): Handle underflow here rather than multiplying
15291         large negative argument by M_LN10l.
15292         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
15293         spurious overflow exception on underflow.
15294
15295 2012-04-29  Marek Polacek  <polacek@redhat.com>
15296
15297         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
15298         (__fortify_function): New macro.
15299         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
15300         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
15301         __extern_always_inline.
15302         * libio/bits/stdio2.h: Likewise.
15303         * libio/bits/stdio.h: Likewise.
15304         * string/string.h: Likewise.
15305         * string/bits/string3.h: Likewise.
15306         * include/stdio.h: Likewise.
15307         * stdlib/bits/stdlib.h: Likewise.
15308         * stdlib/stdlib.h: Likewise.
15309         * rt/bits/mqueue2.h: Likewise.
15310         * rt/mqueue.h: Likewise.
15311         * posix/bits/unistd.h: Likewise.
15312         * posix/unistd.h: Likewise.
15313         * io/bits/poll2.h: Likewise.
15314         * io/bits/fcntl2.h: Likewise.
15315         * io/fcntl.h: Likewise.
15316         * io/sys/poll.h: Likewise.
15317         * misc/bits/syslog.h: Likewise.
15318         * misc/bits/syslog-ldbl.h: Likewise.
15319         * misc/sys/syslog.h: Likewise.
15320         * socket/bits/socket2.h: Likewise.
15321         * socket/sys/socket.h: Likewise.
15322         * debug/tst-chk1.c: Likewise.
15323         * wcsmbs/bits/wchar2.h: Likewise.
15324         * wcsmbs/bits/wchar-ldbl.h: Likewise.
15325         * wcsmbs/wchar.h: Likewise.
15326
15327 2012-04-29  Andreas Jaeger  <aj@suse.de>
15328
15329         * Makerules (tests): Remove enable-check-abi protection.
15330         (check-abi-warn): Remove.
15331         (check-abi-%): Remove check-abi-warn usage.
15332
15333         * configure.in: Remove check-abi configure option.
15334         * configure: Regenerated.
15335         * config.make.in (enable-check-abi): Remove.
15336
15337 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
15338
15339         [BZ #14033]
15340         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
15341         double functions to double *_finite functions.
15342
15343         [BZ #13941]
15344         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
15345         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
15346         LDBL_MIN_EXP.
15347         * stdio-common/Makefile (tests): Add tst-sprintf3.
15348         * stdio-common/tst-sprintf3.c: New file.
15349
15350         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
15351         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
15352
15353 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
15354
15355         * conform/conformtest.pl: Remove duplicate typed-constant
15356         handling.
15357
15358 2012-04-28  David S. Miller  <davem@davemloft.net>
15359
15360         * Makerules (%.abilist): Add vpath on sysdep_dirs.
15361         (check-abi-%): Remove AWK script prerequisite and explicit
15362         abilist directory.
15363         (check-abi): Rewrite to just diff the symlist with the abilist.
15364         (config-tls, config-abi-config): Delete, no longer used.
15365         (update-abi-%): Remove AWK script and explicit abilist directory.
15366         (update-abi): Rewrite to simply compare and conditionally copy the
15367         symlist and the sysdep abilist file.  Remove update-abi-config
15368         checks.
15369         * abilist/ld.abilist: Remove.
15370         * abilist/libBrokenLocale.abilist: Remove.
15371         * abilist/libanl.abilist: Remove.
15372         * abilist/libcrypt.abilist: Remove.
15373         * abilist/libdl.abilist: Remove.
15374         * abilist/librt.abilist: Remove.
15375         * abilist/libthread_db.abilist: Remove.
15376         * abilist/libutil.abilist: Remove.
15377         * scripts/extract-abilist.awk: Remove.
15378         * scripts/merge-abilist.awk: Remove.
15379         * sysdeps/generic/libcidn.abilist: New file.
15380         * sysdeps/generic/libnss_compat.abilist: New file.
15381         * sysdeps/generic/libnss_db.abilist: New file.
15382         * sysdeps/generic/libnss_dns.abilist: New file.
15383         * sysdeps/generic/libnss_files.abilist: New file.
15384         * sysdeps/generic/libnss_hesiod.abilist: New file.
15385         * sysdeps/generic/libnss_nis.abilist: New file.
15386         * sysdeps/generic/libnss_nisplus.abilist: New file.
15387         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
15388         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
15389         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
15390         file.
15391         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
15392         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
15393         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
15394         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
15395         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
15396         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
15397         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
15398         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
15399         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
15400         file.
15401         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
15402         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
15403         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
15404         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
15405         file.
15406         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
15407         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
15408         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
15409         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
15410         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
15411         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
15412         file.
15413         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
15414         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
15415         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
15416         file.
15417         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
15418         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
15419         New file.
15420         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
15421         New file.
15422         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
15423         New file.
15424         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
15425         New file.
15426         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
15427         New file.
15428         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
15429         New file.
15430         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
15431         New file.
15432         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
15433         New file.
15434         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
15435         New file.
15436         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
15437         New file.
15438         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
15439         New file.
15440         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
15441         New file.
15442         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
15443         New file.
15444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
15445         file.
15446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
15447         New file.
15448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
15449         New file.
15450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
15451         file.
15452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
15453         New file.
15454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
15455         New file.
15456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
15457         file.
15458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
15459         New file.
15460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
15461         New file.
15462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
15463         New file.
15464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
15465         New file.
15466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
15467         New file.
15468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
15469         New file.
15470         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
15471         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
15472         file.
15473         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
15474         New file.
15475         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
15476         file.
15477         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
15478         file.
15479         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
15480         file.
15481         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
15482         file.
15483         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
15484         file.
15485         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
15486         New file.
15487         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
15488         file.
15489         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
15490         file.
15491         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
15492         New file.
15493         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
15494         file.
15495         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
15496         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
15497         file.
15498         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
15499         New file.
15500         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
15501         file.
15502         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
15503         file.
15504         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
15505         file.
15506         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
15507         file.
15508         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
15509         file.
15510         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
15511         New file.
15512         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
15513         file.
15514         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
15515         file.
15516         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
15517         New file.
15518         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
15519         file.
15520         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
15521         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
15522         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
15523         file.
15524         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
15525         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
15526         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
15527         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
15528         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
15529         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
15530         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
15531         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
15532         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
15533         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
15534         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
15535         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
15536         file.
15537         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
15538         New file.
15539         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
15540         file.
15541         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
15542         file.
15543         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
15544         file.
15545         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
15546         file.
15547         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
15548         file.
15549         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
15550         New file.
15551         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
15552         New file.
15553         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
15554         file.
15555         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
15556         New file.
15557         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
15558         file.
15559         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
15560         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
15561         file.
15562         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
15563         New file.
15564         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
15565         file.
15566         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
15567         file.
15568         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
15569         file.
15570         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
15571         file.
15572         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
15573         file.
15574         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
15575         New file.
15576         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
15577         New file.
15578         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
15579         file.
15580         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
15581         New file.
15582         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
15583         file.
15584
15585 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
15586
15587         * conform/conformtest.pl: Fix typo in handling typed-constant from
15588         allow-header.
15589
15590 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
15591
15592         * README: Cut down references to pre-2.6 Linux kernels and
15593         Linuxthreads.  Update lists of configurations in libc and ports
15594         and sort alphabetically.  Say "or newer" with Linux kernel version
15595         requirements.
15596
15597         * config.h.in [IS_IN_build]: Allow compiling without optimization.
15598
15599 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15600
15601         [BZ #887]
15602         * math/libm-test.inc (logb_test_downward): New test to expose
15603         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
15604         rounding mode.
15605
15606 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
15607
15608         [BZ #14027]
15609         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
15610         to be done.
15611         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
15612         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
15613
15614 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
15615
15616         * sysdeps/unix/i386/brk.S: Remove file.
15617         * sysdeps/unix/i386/dl-brk.S: Likewise.
15618         * sysdeps/unix/i386/pipe.S: Likewise.
15619         * sysdeps/unix/i386/sigreturn.S: Likewise.
15620         * sysdeps/unix/i386/syscall.S: Likewise.
15621         * sysdeps/unix/i386/vfork.S: Likewise.
15622         * sysdeps/unix/i386/wait.S: Likewise.
15623
15624         * sysdeps/unix/common/tcsendbrk.c: Move to ...
15625         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
15626
15627         * configure.in (arm*-none*): Do not allow without
15628         --enable-hacker-mode.
15629         (netbsd*): Remove case setting base_os.
15630         (386bsd*): Likewise.
15631         (freebsd*): Likewise.
15632         (bsdi*): Likewise.
15633         (osf*): Likewise.
15634         (sunos*): Likewise.
15635         (ultrix*): Likewise.
15636         (newsos*): Likewise.
15637         (dynix*): Likewise.
15638         (*bsd*): Likewise.
15639         (sysv*): Likewise.
15640         (isc*): Likewise.
15641         (esix*): Likewise.
15642         (sco*): Likewise.
15643         (minix*): Likewise.
15644         (irix4*): Likewise.
15645         (irix6*): Likewise.
15646         (solaris[2-9]*): Likewise.
15647         (none): Likewise.
15648         * configure: Regenerated.
15649
15650 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15651
15652         [BZ #11521]
15653         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
15654         overflow or cancellation in calculating denominator.
15655         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
15656         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
15657         down expression to avoid unexpected rounding in newer GCCs.
15658         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
15659
15660 2012-04-26  David S. Miller  <davem@davemloft.net>
15661
15662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
15663         long-double compat symbols.
15664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
15665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
15666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
15667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
15668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
15669         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
15670         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
15671         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
15672         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
15673         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
15674         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
15675         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
15676         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
15677
15678 2012-04-25  David S. Miller  <davem@davemloft.net>
15679
15680         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
15681         HWCAP_* values only after the memory barriers have been defined.
15682         (atomic_full_barrier): Define.
15683         (atomic_read_barrier): Define.
15684         (atomic_write_barrier): Define.
15685
15686 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
15687
15688         * shlib-versions: Add libgcc_s version information.
15689         * sysdeps/generic/libgcc_s.h: Remove.
15690         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
15691         libgcc_s.h.
15692         * sysdeps/gnu/unwind-resume.c: Likewise.
15693         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
15694
15695 2012-04-25  David S. Miller  <davem@davemloft.net>
15696
15697         * sysdeps/unix/sparc/brk.S: Delete.
15698         * sysdeps/unix/sparc/dl-brk.S: Delete.
15699         * sysdeps/unix/sparc/pipe.S: Delete.
15700         * sysdeps/unix/sparc/sysdep.S: Delete.
15701         * sysdeps/unix/sparc/sysdep.h: Delete.
15702         * sysdeps/unix/sparc/vfork.S: Delete.
15703         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
15704         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
15705         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
15706         ret_ERRVAL, r0, r1, MOVE): Define.
15707         (JUMPTARGET): Remove.
15708         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
15709         sysdeps/unix/sparc/sysdep.h
15710         (ENTRY, END): Remove.
15711         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15712
15713 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
15714
15715         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
15716         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
15717         -DIS_IN_build.
15718
15719         * timezone/README: Update upstream location and email address for
15720         tzcode and tzdata.
15721         * timezone/zdump.c: Update from tzcode 2012b.
15722         * timezone/zic.c: Likewise.
15723
15724         * configure.in (libc_cv_as_needed): Remove test.
15725         * configure: Regenerated.
15726         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
15727         conditional definition.
15728         [$(have-as-needed) != yes] (no-as-needed): Likewise.
15729         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
15730         * config.make.in (have-as-needed): Remove variable.
15731
15732 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
15733             Paul Pluzhnikov  <ppluzhnikov@google.com>
15734
15735         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
15736         strings correctly.
15737
15738 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
15739
15740         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
15741         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
15742         * sysdeps/sh/strlen.S: Likewise.
15743
15744 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
15745
15746         * sysdeps/unix/fork.S: Remove file.
15747         * sysdeps/unix/i386/fork.S: Likewise.
15748         * sysdeps/unix/sparc/fork.S: Likewise.
15749
15750         * sysdeps/unix/system.c: Remove file.
15751         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
15752
15753         * sysdeps/unix/getegid.S: Remove file.
15754         * sysdeps/unix/geteuid.S: Likewise.
15755
15756 2012-04-24  Roland McGrath  <roland@hack.frob.com>
15757
15758         * scripts/check-localplt.awk: New file.
15759         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
15760         of diff.
15761         * scripts/data/localplt-generic.data: Add a comment.
15762
15763         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
15764         NODE when __dir_mkfile failed.
15765         * sysdeps/mach/hurd/symlinkat.c: Likewise.
15766         Reported by Ludovic Courtès <ludo@gnu.org>.
15767
15768 2012-04-24  Andreas Jaeger  <aj@suse.de>
15769
15770         * Makerules (common-clean): Also remove gen-as-const-headers
15771         files.
15772
15773 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
15774
15775         * Makerules (native-compile): Do not change working directory for
15776         build.  Use $(OUTPUT_OPTION) in command.
15777         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
15778
15779 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15780
15781         [BZ #13886]
15782         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
15783         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
15784         * math/libm-test.inc (floor_test): Add more tests.
15785         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
15786
15787 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
15788
15789         * sysdeps/unix/getdents.c: Remove file.
15790         * sysdeps/unix/sysv/getdents.c: Likewise.
15791         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
15792
15793         * sysdeps/unix/syscalls.list (madvise): Add syscall from
15794         sysdeps/unix/mman/syscalls.list.
15795         (mmap): Likewise.
15796         (mprotect): Likewise.
15797         (msync): Likewise.
15798         (munmap): Likewise.
15799         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
15800         * sysdeps/unix/mman/syscalls.list: Remove.
15801         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
15802
15803         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
15804         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
15805         * configure: Regenerated.
15806         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
15807         $(libgcc_s_suffix).
15808         * config.make.in (libgcc_s_suffix): Remove variable.
15809
15810 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
15811
15812         * sysdeps/unix/sysv/gethostname.c: Move to ...
15813         * sysdeps/posix/gethostname.c: ... here.
15814
15815         * sysdeps/unix/execve.S: Remove file.
15816
15817         * sysdeps/unix/_exit.S: Remove file.
15818
15819 2012-04-23  Andreas Jaeger  <aj@suse.de>
15820
15821         [BZ #13739]
15822         * manual/Makefile: Remove make dist support, there's no
15823         need for a stand-alone documentation tar ball.
15824         (TEXI2DVI): Define always, it's not in Makeconfig.
15825         (dist): Removed.
15826         (tar-it): Removed.
15827         (edition): Removed.
15828         (glibc-doc-$(edition).tar): Removed
15829         (%.Z): Removed.
15830         (%.gz): Removed.
15831         (%.uu): Removed.
15832         (ETAGS): Remove, it's in Makeconfig.
15833         (move-if-change): Remove, it's in Makeconfig.
15834
15835 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
15836
15837         [BZ #13970]
15838         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
15839         (strtod, strtof, strtold, strtol, strtoul, strtoq)
15840         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
15841         (strtod_l, strtof_l, strtold_l): Remove __wur.
15842         It is not necessarily an error to ignore strtol's return value.
15843         One can reliably look at the stored endptr to decide whether
15844         the number had valid syntax.
15845
15846 2012-04-21  Andreas Jaeger  <aj@suse.de>
15847
15848         [BZ #13739]
15849         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
15850
15851 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
15852
15853         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
15854         * sysdeps/unix/sysv/Versions: Remove file.
15855
15856 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
15857
15858         [BZ #13927]
15859         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15860
15861 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
15862
15863         [BZ #7064]
15864         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
15865         version from __vm86.
15866
15867 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
15868
15869         * sysdeps/unix/common/lxstat.c: Remove file.
15870         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
15871
15872         * sysdeps/unix/sysv/Makefile: Remove file.
15873
15874         * sysdeps/unix/sysv/direct.h: Remove file.
15875
15876         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
15877         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
15878         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
15879         * sysdeps/unix/sysv/bits/signum.h: Likewise.
15880         * sysdeps/unix/sysv/bits/stat.h: Likewise.
15881         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
15882         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
15883
15884         * sysdeps/unix/sysv/setrlimit.c: Remove file.
15885
15886         * sysdeps/unix/xmknod.c: Remove file.
15887         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
15888
15889         * sysdeps/unix/sysv/settimeofday.c: Remove file.
15890
15891         * sysdeps/unix/sysv/i386/time.S: Remove file.
15892
15893         * sysdeps/unix/fxstat.c: Remove file.
15894         * sysdeps/unix/xstat.c: Likewise.
15895         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
15896
15897         * sysdeps/unix/sysv/sigaction.c: Remove file.
15898
15899         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
15900         (sysdep_headers): Remove variable.
15901         [termio.h not in sysdep_headers] (generated): Likewise.
15902         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
15903         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
15904         * sysdeps/unix/sysv/tcdrain.c: Likewise.
15905         * sysdeps/unix/sysv/tcflow.c: Likewise.
15906         * sysdeps/unix/sysv/tcflush.c: Likewise.
15907         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
15908         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
15909         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
15910         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
15911         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
15912
15913         * sysdeps/unix/siglist.c: Remove file.
15914
15915         * sysdeps/unix/getppid.S: Remove file.
15916
15917         * sysdeps/unix/mkdir.c: Remove file.
15918         * sysdeps/unix/rmdir.c: Likewise.
15919
15920 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
15921
15922         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
15923         ERR_MAX value.
15924         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
15925         errlist-compat value.
15926
15927 2012-04-18  David S. Miller  <davem@davemloft.net>
15928
15929         * sysdeps/generic/memcopy.h (reg_char): Delete.
15930         * debug/strcat_chk.c: Use char, not reg_char.
15931         * debug/strcpy_chk.c: Likewise.
15932         * debug/strncat_chk.c: Likewise.
15933         * debug/strncpy_chk.c: Likewise.
15934         * string/memchr.c: Likewise.
15935         * string/memrchr.c: Likewise.
15936         * string/rawmemchr.c: Likewise.
15937         * string/strcat.c: Likewise.
15938         * string/strchr.c: Likewise.
15939         * string/strchrnul.c: Likewise.
15940         * string/strcmp.c: Likewise.
15941         * string/strcpy.c: Likewise.
15942         * string/strncat.c: Likewise.
15943         * string/strncmp.c: Likewise.
15944         * string/strncpy.c: Likewise.
15945
15946 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
15947
15948         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
15949         __builtin_memcopy is called when src and dest ranges are known to not
15950         overlap.
15951
15952 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
15953
15954         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
15955         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
15956         fwd_align_merge macro call.
15957         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
15958         bwd_align_merge macro call.
15959         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
15960
15961 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
15962
15963         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
15964         bwd_align_merge macros.
15965         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
15966         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
15967         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
15968
15969 2012-04-18  David S. Miller  <davem@davemloft.net>
15970
15971         * sysdeps/sparc/sparc64/memcopy.h: Delete.
15972
15973 2012-04-18  Andreas Jaeger  <aj@suse.de>
15974
15975         [BZ# 6794]
15976         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
15977         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
15978         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
15979
15980         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
15981         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
15982         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
15983
15984         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
15985         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
15986         Adjust for changed ldbl-128 files.
15987
15988         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
15989         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
15990         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
15991
15992 2012-04-17  David S. Miller  <davem@davemloft.net>
15993
15994         * sysdeps/sparc/sparc32/memcopy.h: Delete.
15995
15996 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
15997
15998         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
15999         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
16000         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
16001         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
16002         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
16003         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
16004
16005 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16006
16007         [BZ #6794]
16008         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
16009         * math/libm-test.inc: Add ilogb errno and exception tests.
16010         * math/w_ilogb.c: New file: ilogb wrapper.
16011         * math/w_ilogbf.c: New file: ilogbf wrapper.
16012         * math/w_ilogbl.c: New file: ilogbl wrapper.
16013         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
16014         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
16015         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
16016         exception being thrown with 0.0 as argument.
16017         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
16018         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
16019         exception being thrown with 0.0 as argument.
16020         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
16021         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
16022         exception being thrown with 0.0 as argument.
16023         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
16024         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
16025         exception being thrown with 0.0 as argument.
16026         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
16027         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
16028         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
16029         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
16030         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
16031         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
16032         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
16033         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
16034         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
16035
16036 2012-04-17  Petr Baudis  <pasky@ucw.cz>
16037
16038         * include/sys/uio.h: Change __vector to __iovec to avoid clash
16039         with altivec.
16040
16041 2012-04-16  Marek Polacek  <polacek@redhat.com>
16042
16043         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
16044
16045 2012-04-16  Marek Polacek  <polacek@redhat.com>
16046
16047         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
16048         operands of fdivp instruction.
16049
16050 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
16051
16052         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
16053         * elf/tst-auditmod3b.c: Likewise.
16054         * elf/tst-auditmod4b.c: Likewise.
16055         * elf/tst-auditmod5b.c: Likewise.
16056         * elf/tst-auditmod6b.c: Likewise.
16057         * elf/tst-auditmod6c.c: Likewise.
16058         * elf/tst-auditmod7b.c: Likewise.
16059         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
16060         * sysdeps/x86_64/preconfigure.in: Likewise.
16061         * sysdeps/x86_64/preconfigure: Regenerated.
16062
16063 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
16064
16065         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
16066         __ILP32__.
16067
16068 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
16069
16070         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16071         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
16072
16073 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
16074
16075         [BZ #13973]
16076         * locale/iso-639.def: Fix gl language name. Spotted by
16077         Yaron Shahrabani.
16078
16079 2012-04-12  Roland McGrath  <roland@hack.frob.com>
16080
16081         [BZ #2074]
16082         * libio/libio.h (__io_write_fn): Update comment.
16083
16084 2012-04-12  Petr Baudis  <pasky@ucw.cz>
16085
16086         [BZ #2074]
16087         * stdio.texi (Hook Functions): The user provided writer function
16088         is not allowed to return -1.
16089
16090 2012-04-11  David S. Miller  <davem@davemloft.net>
16091
16092         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16093
16094 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
16095
16096         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
16097         Add a leading slash to rtkaio.
16098
16099 2012-04-11  Jim Meyering  <meyering@redhat.com>
16100
16101         [BZ #11959]
16102         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
16103         It is not necessarily an error to ignore fwrite's return
16104         value.  One can reliably use ferror to test for errors after
16105         the fact.
16106
16107 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
16108
16109         * bits/types.h (__snseconds_t): New type.
16110         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
16111
16112         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
16113         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
16114         (__SNSECONDS_T_TYPE): Likewise.
16115         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
16116         (__SNSECONDS_T_TYPE): Likewise.
16117         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16118         (__SNSECONDS_T_TYPE): Likewise.
16119
16120 2012-04-10  Andreas Jaeger  <aj@suse.de>
16121
16122         [BZ #2636]
16123         * manual/time.texi (Processor Time): Return type of times is
16124         elapsed real time since an arbitrary point in the past.
16125         (CPU Time): Move CLK_TCK from here...
16126         (Processor Time): ...to here.  Correct description.
16127         * manual/conf.texi (Constants for Sysconf): Correct description of
16128         _SC_CLK_TCK.
16129
16130 2012-04-10  David S. Miller  <davem@davemloft.net>
16131
16132         [BZ #13967]
16133         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
16134         where the is a gap between DT_REL(A) and DT_JMPREL.
16135
16136 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
16137
16138         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
16139         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
16140         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
16141
16142 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16143
16144         * elf/dl-support.c (_dl_inhibit_cache): New variable.
16145         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
16146         (dl_main): Handle --inhibit-cache.
16147         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
16148         _dl_inhibit_cache.
16149         * elf/dl-load.c (_dl_map_object): Use it.
16150         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
16151
16152 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
16153
16154         [BZ #13872]
16155         * sysdeps/i386/fpu/e_powl.S (p78): New object.
16156         (__ieee754_powl): Saturate large exponents rather than testing for
16157         overflow of y*log2(x).
16158         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16159         * math/libm-test.inc (pow_test): Do not permit spurious overflow
16160         exceptions.
16161
16162         [BZ #11521]
16163         * math/s_ctan.c: Include <float.h>.
16164         (__ctan): Avoid internal overflow or cancellation in calculating
16165         denominator.
16166         * math/s_ctanf.c: Likewise.
16167         * math/s_ctanl.c: Likewise.
16168         * math/s_ctanh.c: Likewise.
16169         * math/s_ctanhf.c: Likewise.
16170         * math/s_ctanhl.c: Likewise.
16171         * math/libm-test.inc (ctan_test): Add more tests.
16172         (ctanh_test): Likewise.
16173         * sysdeps/i386/fpu/libm-test-ulps: Update.
16174         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16175
16176 2012-04-09  Andreas Jaeger  <aj@suse.de>
16177
16178         [BZ #6894]
16179         * manual/filesys.texi (Directory Entries): Mention that d_namlen
16180         is an optional BSD extension.
16181
16182         [BZ #10254]
16183         * manual/stdio.texi (Opening Streams): Document additional fopen
16184         parameters.
16185
16186 2012-04-09  Roland McGrath  <roland@hack.frob.com>
16187
16188         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
16189         %eax without telling the compiler.
16190
16191 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
16192
16193         [BZ # 13963]
16194         * manual/install.texi: Use sourceware.org.
16195
16196 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
16197
16198         [BZ #13873]
16199         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
16200         (__ieee754_pow): Generate overflow and underflow using huge*huge
16201         and tiny*tiny rather than just returning constant infinity or zero
16202         for large exponents.
16203         * math/libm-test.inc (pow_test): Require overflow exceptions for
16204         applicable cases of large exponents.
16205
16206         [BZ #706]
16207         * sysdeps/i386/fpu/e_pow.S (p10): New object.
16208         (__ieee754_pow): Use iterative multiplication algorithm only for
16209         integer exponents with absolute value below 1024.  Check for odd
16210         integer exponents when using algorithm for real exponents.
16211         * math/libm-test.inc (pow_test): Add more tests.
16212         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16213
16214 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
16215
16216         [BZ #13705]
16217         * math/libm-test.inc (exp_test): Do not allow overflow exception
16218         on underflow test.
16219
16220 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
16221
16222         [BZ #13705]
16223         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
16224         instead of __kernel_standard_f.
16225
16226 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
16227
16228         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
16229         * sysdeps/x86_64/memset_chk.S: Likewise.
16230
16231 2012-04-08  Andreas Jaeger  <aj@suse.de>
16232
16233         [BZ #10153]
16234         * manual/startup.texi (Environment Access): Describe return value
16235         for putenv and setenv.
16236
16237         [BZ #6895]
16238         * manual/filesys.texi (Directory Entries): Add description for
16239         DT_LNK.
16240
16241         [BZ #6890]
16242         * manual/filesys.texi (Directory Entries): Clarify that it's file
16243         system not operating system in the description of DT_UNKNOWN.
16244
16245         [BZ #6578]
16246         * manual/syslog.texi (closelog): Fix reference, it's openlog.
16247
16248 2012-04-08  Stephen Compall  <s11@member.fsf.org>
16249
16250         [BZ #6649]
16251         * manual/llio.texi (Opening and Closing Files): Add cross
16252         reference to explain mode argument.
16253
16254 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
16255
16256         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
16257         * sysdeps/x86_64/memset_chk.S: Likewise.
16258
16259 2012-04-07  David S. Miller  <davem@davemloft.net>
16260
16261         * elf/elf.h (R_SPARC_WDISP10): Define.
16262         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
16263         R_SPARC_SIZE32.
16264         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
16265         R_SPARC_SIZE64 and R_SPARC_H34.
16266
16267 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
16268
16269         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
16270         conditions and remove no longer applicable assertion.
16271
16272 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
16273
16274         * bits/byteswap.h: Include <features.h>.
16275         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
16276         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
16277
16278 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
16279
16280         * bits/byteswap.h (__bswap_16): Removed.
16281         Include <bits/byteswap-16.h> to get __bswap_16.
16282         * sysdeps/i386/bits/byteswap.h: Likewise.
16283         * sysdeps/s390/bits/byteswap.h: Likewise.
16284         * sysdeps/x86_64/bits/byteswap.h: Likewise.
16285         * bits/byteswap-16.h: New file.
16286         * sysdeps/i386/bits/byteswap-16.h: Likewise.
16287         * sysdeps/s390/bits/byteswap-16.h: Likewise.
16288         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
16289         * string/Makefile (headers): Add bits/byteswap-16.h.
16290
16291 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
16292
16293         [BZ #13895]
16294         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
16295         extra indirection.
16296         * nss/Makefile (tests-static, tests): Add tst-nss-static.
16297         * nss/tst-nss-static.c: New.
16298
16299 2012-04-06  Robert Millan  <rmh@gnu.org>
16300
16301         [BZ #6486]
16302         * manual/llio.texi (File Position Primitive): lseek
16303         refers to WHENCE when it really means OFFSET.
16304
16305 2012-04-06  Andreas Jaeger  <aj@suse.de>
16306
16307         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
16308         strncmp declarations.
16309
16310         * abilist/libc.abilist: Add __poll and __ppoll.
16311
16312 2012-04-05  David S. Miller  <davem@davemloft.net>
16313
16314         * scripts/check-local-headers.sh: Accept a host triplet in the
16315         path matched by the exclude regexp.
16316
16317         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
16318         definition.
16319         * sysdeps/powerpc/powerpc32/dl-machine.h
16320         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
16321         * sysdeps/s390/s390-32/dl-machine.h
16322         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
16323         * sysdeps/sparc/sparc32/dl-machine.h
16324         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
16325         * sysdeps/sparc/sparc64/dl-machine.h
16326         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
16327
16328         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
16329         lazy binding.
16330         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
16331         undefined symbol errors.
16332
16333         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
16334         DT_NEEDED entries.
16335
16336 2012-04-05  Michael Matz  <matz@suse.de>
16337
16338         [BZ #13592]
16339         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
16340
16341 2012-04-05  Andreas Jaeger  <aj@suse.de>
16342
16343         [BZ #13908]
16344         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
16345         comment.
16346
16347 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
16348
16349         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
16350         which ROUND is no valid rounding mode.
16351
16352 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
16353
16354         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
16355         read again.
16356         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
16357
16358 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
16359
16360         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
16361         an exception using FPU order intentionally.
16362
16363 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
16364
16365         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
16366         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
16367         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
16368         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
16369
16370 2012-04-05  Simon Josefsson  <simon@josefsson.org>
16371
16372         [BZ #12340]
16373         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
16374         EINVAL when BUFLEN is too smal.
16375
16376 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
16377
16378         [BZ #13553]
16379         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
16380         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
16381
16382 2012-04-03  Andreas Jaeger  <aj@suse.de>
16383
16384         [BZ #13938]
16385         * manual/setjmp.texi (System V contexts): Fix sentence.
16386
16387         [BZ #13926]
16388         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
16389         New macro for this case.
16390         [!__GNUC__] (__bswap_64): New inline function for this case.
16391         * sysdeps/x86_64/bits/byteswap.h: Likewise.
16392         * bits/byteswap.h: Likewise.
16393         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
16394         ull, guard with __GLIBC_HAVE_LONG_LONG.
16395
16396         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
16397         __GLIBC_HAVE_LONG_LONG.
16398
16399         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
16400         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
16401
16402 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16403
16404         [BZ #13691]
16405         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
16406         inptr and inend, rather than using last_ch.
16407
16408 2012-04-02  David S. Miller  <davem@davemloft.net>
16409
16410         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
16411         * stdio-common/printf-parse.h (read_int): Change return type to
16412         'int', return -1 on INT_MAX overflow.
16413         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
16414         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
16415         overflows INT_MAX.  Check for overflow of in-format-string precision
16416         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
16417         SIZE_MAX not INT_MAX for integer overflow test.
16418         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
16419         skip the construct in the format string but do not record anything.
16420         * stdio-common/bug22.c: Adjust to test both width/prevision
16421         INT_MAX overflow as well as total length INT_MAX overflow.  Check
16422         explicitly for proper errno values.
16423
16424 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
16425
16426         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
16427         CHAR_MAX.
16428         * string/test-strcmp.c [! WIDE]: Likewise.
16429         * time/tst-mktime2.c: Likewise for INT_MAX.
16430         * string/test-string.h: #include <sys/param.h> for MIN.
16431
16432         * csu/init-first.c (__libc_init_first): Call __ctype_init.
16433         * sysdeps/i386/init-first.c (init): Likewise.
16434         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
16435         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
16436         * sysdeps/sh/init-first.c (init): Likewise.
16437
16438 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
16439
16440         * po/ru.po: Update from translation team.
16441         * po/vi.po: Likewise.
16442
16443 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
16444
16445         * resolv/nss_dns/dns-host.c: Merge copyright years.
16446
16447 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16448
16449         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16450         Optimize memcpy with prefetch if
16451         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
16452         src, dst pointers have unequal 16 byte alignments.
16453
16454 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
16455
16456         [BZ #13928]
16457         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
16458         from a CNAME entry and return the minimum ttl for the query.
16459         (gaih_getanswer_slice): Likewise.
16460
16461 2012-03-30  Jeff Law  <law@redhat.com>
16462
16463         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
16464         due to long keys.
16465         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
16466         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
16467
16468         * resolv/nss_dns/dns-host.c: Update copyright year.
16469
16470 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
16471
16472         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
16473         requests to save a system call.  Fix check that all bytes are sent.
16474
16475         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
16476         comments for sendmmsg.
16477
16478 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16479
16480         [BZ #13691]
16481         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
16482         with only 1 character between 0x0041 and 0x01b0.
16483         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
16484         * wcsmbs/tst-mbsnrtowcs.c: New file.
16485
16486 2012-03-29  David S. Miller  <davem@davemloft.net>
16487
16488         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
16489         small copies by hand.
16490
16491 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
16492
16493         [BZ #13761]
16494         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
16495         _nss_compat_initgroups_dyn): Fall back to malloc/free
16496         for large group memberships.
16497
16498 2012-03-28  David S. Miller  <davem@davemloft.net>
16499
16500         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
16501         that branches into memcpy.
16502         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
16503         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
16504         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
16505         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
16506         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
16507         bits.
16508         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
16509         implementation too.
16510         * sysdeps/sparc/mempcpy.S: New file.
16511
16512         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
16513         the IFUNC routine in the libc case.
16514         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
16515
16516         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
16517         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
16518         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
16519         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
16520         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
16521         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
16522         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
16523         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
16524
16525         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
16526         loop to 256 bytes instead of 64 bytes and fix test signedness.
16527
16528         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
16529         * sysdeps/sparc/sparc32/Makefile: rather than here...
16530         * sysdeps/sparc/sparc64/Makefile: and here.
16531
16532 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
16533
16534         * malloc/mallocbug.c: Avoid warnings about unused variables.
16535
16536 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
16537
16538         [BZ #13760]
16539         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
16540         in the right place. Discard and retry query if response is
16541         larger than input buffer size.
16542
16543 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
16544
16545         [BZ #369]
16546         [BZ #2678]
16547         [BZ #3866]
16548         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
16549         x for large integer exponent.
16550         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
16551         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
16552         sign of result as needed afterwards.
16553         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
16554         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
16555         result for underflowing pow the same as for overflow.
16556         (__kernel_standard_l): Handle powl overflow and underflow here
16557         rather than calling __kernel_standard.
16558         * math/libm-test.inc (pow_test): Add more tests.
16559
16560         [BZ #3868]
16561         [BZ #13879]
16562         [BZ #13910]
16563         [BZ #13911]
16564         [BZ #13912]
16565         [BZ #13913]
16566         [BZ #13915]
16567         [BZ #13916]
16568         [BZ #13917]
16569         [BZ #13918]
16570         [BZ #13919]
16571         [BZ #13920]
16572         [BZ #13921]
16573         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
16574         * sysdeps/ieee754/k_standard.c: Include <float.h>.
16575         (__kernel_standard_l): New function.
16576         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
16577         __kernel_standard.
16578         * math/w_acosl.c (__acosl): Likewise.
16579         * math/w_asinl.c (__asinl): Likewise.
16580         * math/w_atan2l.c (__atan2l): Likewise.
16581         * math/w_atanhl.c (__atanhl): Likewise.
16582         * math/w_coshl.c (__coshl): Likewise.
16583         * math/w_exp10l.c (__exp10l): Likewise.
16584         * math/w_exp2l.c (__exp2l): Likewise.
16585         * math/w_fmodl.c (__fmodl): Likewise.
16586         * math/w_hypotl.c (__hypotl): Likewise.
16587         * math/w_j0l.c (__j0l, __y0l): Likewise.
16588         * math/w_j1l.c (__j1l, __y1l): Likewise.
16589         * math/w_jnl.c (__jnl, __ynl): Likewise.
16590         * math/w_lgammal.c (__lgammal): Likewise.
16591         * math/w_log10l.c (__log10l): Likewise.
16592         * math/w_log2l.c (__log2l): Likewise.
16593         * math/w_logl.c (__logl): Likewise.
16594         * math/w_powl.c (__powl): Likewise.
16595         * math/w_remainderl.c (__remainderl): Likewise.
16596         * math/w_scalbl.c (sysv_scalbl): Likewise.
16597         * math/w_sinhl.c (__sinhl): Likewise.
16598         * math/w_sqrtl.c (__sqrtl): Likewise.
16599         * math/w_tgammal.c (__tgammal): Likewise.
16600         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
16601         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
16602         * math/libm-test.inc (acos_test): Add more tests.
16603         (acosh_test): Likewise.
16604         (asin_test): Likewise.
16605         (atanh_test): Likewise.
16606         (exp_test): Likewise.
16607         (exp10_test): Likewise.
16608         (exp2_test): Likewise.
16609         (expm1_test): Likewise.
16610         (lgamma_test): Likewise.
16611         (log_test): Likewise.
16612         (log10_test): Likewise.
16613         (log1p_test): Likewise.
16614         (log2_test): Likewise.
16615         (pow_test): Do not allow some spurious overflow exceptions.
16616         (sqrt_test): Add more tests.
16617         (tgamma_test): Likewise.
16618         (y0_test): Likewise.
16619         (y1_test): Likewise.
16620         (yn_test): Likewise.
16621
16622 2012-03-27  Anton Blanchard  <anton@samba.org>
16623
16624         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
16625         MAP_HUGETLB.
16626         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
16627         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
16628         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
16629
16630 2012-03-27  David S. Miller  <davem@davemloft.net>
16631
16632         * conform/Makefile: Run run-conformtest.sh using $(BASH).
16633
16634         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
16635         have-as-vis3 check.
16636
16637 2012-03-27  Andreas Jaeger  <aj@suse.de>
16638
16639         * sysdeps/x86_64/elf/configure.in: Moved to ...
16640         * sysdeps/x86_64/configure.in: ... here.
16641         * sysdeps/x86_64/elf/start.S: Moved to ...
16642         * sysdeps/x86_64/start.S: ... here.
16643         * sysdeps/x86_64/elf/configure: Delete.
16644
16645         * sysdeps/x86_64/configure.in: Merge contents from
16646         sysdeps/i386/configure.in (without i686 check).
16647
16648         * sysdeps/i386/elf/Versions: Merge into ...
16649         * sysdeps/i386/Versions: ... this.
16650         * sysdeps/i386/elf/Versions: Delete file.
16651         * sysdeps/i386/elf/start.S: Moved to ...
16652         * sysdeps/i386/start.S: ...here.
16653         * sysdeps/i386/elf/configure.in: Merge into...
16654         * sysdeps/i386/configure.in: ...here.
16655         * sysdeps/i386/elf/configure.in: Delete file.
16656         * sysdeps/i386/elf/configure: Delete file.
16657
16658         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
16659         * debug/backtracesyms.c: ... here.
16660         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
16661         * debug/backtracesymsfd.c: ... here.
16662         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
16663         * sysdeps/generic/ifunc-sel.h: ... here.
16664
16665         * sysdeps/unix/i386/start.c: Delete file.
16666         * sysdeps/unix/sparc/start.c: Delete file.
16667         * sysdeps/unix/start.c: Delete file.
16668
16669         * sysdeps/sh/elf/configure.in: Moved to ...
16670         * sysdeps/sh/configure.in: ... here.
16671         * sysdeps/sh/elf/start.S: Moved to ...
16672         * sysdeps/sh/start.S: ... here.
16673         * sysdeps/sh/elf/configure: Delete file.
16674
16675         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
16676         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
16677         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
16678         * sysdeps/powerpc/powerpc64/entry.h: ... here.
16679         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
16680         * sysdeps/powerpc/powerpc64/start.S: here.
16681         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
16682         * sysdeps/powerpc/powerpc64/Makefile: ... this.
16683         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
16684         * sysdeps/powerpc/powerpc64/configure.in: ... this.
16685         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
16686
16687         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
16688         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
16689         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
16690         * sysdeps/powerpc/powerpc32/start.S: ... here.
16691         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
16692         * sysdeps/powerpc/powerpc32/configure.in: ... this.
16693         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
16694
16695         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
16696         * sysdeps/powerpc/ifunc-sel.h: ... here.
16697         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
16698         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
16699
16700         * sysdeps/sparc/elf/configure.in: Moved to ...
16701         * sysdeps/sparc/configure.in: ... here.
16702         * sysdeps/sparc/elf/configure: Delete file.
16703         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
16704         * sysdeps/sparc/sparc32/start.S: ... here.
16705         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
16706         * sysdeps/sparc/sparc64/start.S: ... here.
16707         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
16708         * sysdeps/sparc/sparc32/Makefile: ... this.
16709         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
16710         * sysdeps/sparc/sparc64/Makefile: ... this.
16711
16712         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
16713         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
16714         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
16715         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
16716         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
16717         * sysdeps/s390/s390-32/setjmp.S: ... here.
16718         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
16719         * sysdeps/s390/s390-32/configure.in: ... here.
16720         * sysdeps/s390/s390-32/elf/configure: Delete file.
16721         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
16722         * sysdeps/s390/s390-32/start.S: ... here.
16723
16724         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
16725         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
16726         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
16727         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
16728         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
16729         * sysdeps/s390/s390-64/setjmp.S: ... here.
16730         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
16731         * sysdeps/s390/s390-64/configure.in: ... here
16732         * sysdeps/s390/s390-64/elf/configure: Delete file.
16733         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
16734         * sysdeps/s390/s390-64/start.S: ... here.
16735         * sysdeps/s390/s390-64/elf/configure: Delete.
16736
16737         * configure.in: Remove support for elf directories in sysdeps.
16738
16739         * configure: Regenerated.
16740         * sysdeps/i386/configure: Regenerated.
16741         * sysdeps/powerpc/powerpc32/configure: Regenerated.
16742         * sysdeps/powerpc/powerpc64/configure: Regenerated.
16743         * sysdeps/s390/s390-32/configure: Regenerated.
16744         * sysdeps/s390/s390-64/configure: Regenerated.
16745         * sysdeps/sh/configure: Regenerated.
16746         * sysdeps/sparc/configure: Regenerated.
16747         * sysdeps/x86_64/configure: Regenerated.
16748
16749 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
16750
16751         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16752
16753         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
16754         denormal result into account.
16755
16756 2012-03-25  Roland McGrath  <roland@hack.frob.com>
16757
16758         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
16759         Reported by Allan McRae <allan@archlinux.org>.
16760
16761 2012-03-23  Jeff Law  <law@redhat.com>
16762
16763         * nss/getnssent.c (__nss_getent): Fix typo.
16764
16765 2012-03-23  David S. Miller  <davem@davemloft.net>
16766
16767         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16768
16769 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
16770
16771         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
16772         to pad to uint64_t for each field.
16773         (dl_tls_index): Replace unsigned long with uint64_t.
16774
16775 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
16776         Paul Pluzhnikov  <ppluzhnikov@google.com>
16777
16778         [BZ #6528]
16779         * grp/Makefile (otherlibs): Don't set it.
16780         * inet/Makefile (otherlibs): Likewise.
16781         * login/Makefile (otherlibs): Likewise.
16782         * nscd/Makefile (otherlibs): Likewise.
16783         * posix/Makefile (otherlibs): Likewise.
16784         * pwd/Makefile (otherlibs): Likewise.
16785         * rt/Makefile (otherlibs): Likewise.
16786         * sunrpc/Makefile (otherlibs): Likewise.
16787         * nss/Makefile (otherlibs): Likewise.
16788         Add libnss_files to routines and static-only-routines.
16789         ($(objpfx)getent): Remove rule.
16790         * resolv/Makefile: Add libnss_dns and libresolv to routines and
16791         static-only-routines.
16792
16793 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
16794
16795         [BZ #13892]
16796         * math/s_cexp.c: Include <float.h>.
16797         (__cexp): Handle exp result overflowing not necessarily
16798         overflowing both real and imaginary parts of result.
16799         * math/s_cexpf.c: Likewise.
16800         * math/s_cexpl.c: Likewise.
16801         * math/libm-test.inc (cexp_test): Add more tests.
16802         * sysdeps/i386/fpu/libm-test-ulps: Update.
16803         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16804
16805 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
16806
16807         * include/link.h (ELFW): New macro.
16808         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
16809         Replace ELF64_R_TYPE with ELFW(R_TYPE).
16810
16811 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
16812
16813         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
16814         with uint64_t.
16815
16816 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
16817
16818         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
16819         declaration.
16820         (struct La_x32_retval): Likewise.
16821
16822 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
16823
16824         * sysdeps/x86_64/preconfigure.in: New file.
16825         * sysdeps/x86_64/preconfigure: New generated file.
16826
16827 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
16828
16829         [BZ #13824]
16830         * math/e_exp2l.c: Include <float.h>.
16831         (__ieee754_exp2l): Handle overflow and underflow cases
16832         separately.  Only pass fractional part of argument to
16833         __ieee754_expl.
16834         * math/libm-test.inc (exp2_test): Add more tests.
16835
16836         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
16837         negating x to take absolute value.
16838         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
16839         Likewise.
16840         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
16841         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
16842         Likewise.
16843         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
16844         computing low part if x was negated.
16845         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
16846
16847 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
16848
16849         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
16850         la_x32_gnu_pltexit.
16851         (pltexit): Cast int_retval to ptrdiff_t.
16852         * elf/tst-auditmod3b.c: Likewise.
16853         * elf/tst-auditmod4b.c: Likewise.
16854         * elf/tst-auditmod5b.c: Likewise.
16855         * elf/tst-auditmod6b.c: Likewise.
16856         * elf/tst-auditmod6c.c: Likewise.
16857         * elf/tst-auditmod7b.c: Likewise.
16858
16859         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
16860         and x32_gnu_pltexit.
16861
16862         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
16863         __ELF_NATIVE_CLASS.
16864         (La_x32_regs): New macro.
16865         (La_x32_retval): Likewise.
16866         (la_x32_gnu_pltenter): New function prototype.
16867         (la_x32_gnu_pltexit): Likewise.
16868
16869 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
16870
16871         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
16872         exponent.
16873
16874         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16875
16876         * configure.in (libc_cv_cc_nofma): Check for option to disable
16877         generation of FMA instructions.
16878         * configure: Regenerate.
16879         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
16880         * sysdeps/ieee754/dbl-64/Makefile: New file.
16881         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
16882         Remove brandred-fma4.
16883         (CFLAGS-brandred-fma4.c): Remove.
16884         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
16885         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
16886         define.
16887         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
16888         define.
16889
16890 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
16891
16892         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
16893         LLONG_MAX != LONG_MAX.
16894         (_itoa_word): Use _ITOA_WORD_TYPE on value.
16895         (_fitoa_word): Likewise.
16896         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
16897         LLONG_MAX != LONG_MAX.
16898         * stdio-common/_itowa.h: Include <_itoa.h>.
16899         (_itowa_word): Use _ITOA_WORD_TYPE on value.
16900         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
16901         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
16902         only if not defined.
16903         (_ITOA_WORD_TYPE): Likewise.
16904         (_itoa_word): Use _ITOA_WORD_TYPE on value.
16905         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
16906
16907 2012-03-21  David S. Miller  <davem@davemloft.net>
16908
16909         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16910
16911 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
16912
16913         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
16914         of x86_64 when setting libc_cv_slibdir, libdir and
16915         libc_cv_localedir.
16916         * sysdeps/unix/sysv/linux/configure: Regenerated.
16917
16918 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
16919
16920         * manual/lang.texi (Old Varargs): Remove section.
16921         (How Variadic): Update menu.
16922         (va_start): Do not mention varargs.h.
16923
16924 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
16925             Joseph Myers  <joseph@codesourcery.com>
16926
16927         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
16928         link test.
16929         * configure: Regenerated.
16930
16931 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
16932
16933         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
16934         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
16935         conformtest.pl
16936
16937 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
16938
16939         * NOTES: Remove.
16940         * Makefile (files-for-dist): Remove NOTES.
16941         (NOTES): Remove rule.
16942         * README: Don't refer to NOTES.
16943         * manual/creature.texi: Don't include macros.texi.
16944         * manual/intro.texi (creature.texi): Remove comment referring to
16945         NOTES.
16946
16947         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
16948         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
16949         * configure: Regenerated.
16950         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
16951         LIBC_TRY_CC_OPTION.
16952         (libc_cv_as_i686): Likewise.
16953         (libc_cv_cc_avx): Likewise.
16954         (libc_cv_cc_sse2avx): Likewise.
16955         (libc_cv_cc_fma4): Likewise.
16956         (libc_cv_cc_novzeroupper): Likewise.
16957         * sysdeps/i386/configure: Regenerated.
16958
16959         [BZ #13883]
16960         * sysdeps/i386/fpu/s_cexp.S: Remove.
16961         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
16962         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
16963         * math/libm-test.inc (cexp_test): Add more tests.
16964         * sysdeps/i386/fpu/libm-test-ulps: Update.
16965         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16966
16967 2012-03-21  Allan McRae  <allan@archlinux.org>
16968
16969         * timezone/Makefile: Do not install iso3166.tab and zone.tab
16970
16971 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
16972
16973         [BZ #13871]
16974         * math/w_exp2.c: Do not include <float.h>.
16975         (o_threshold, u_threshold): Remove.
16976         (__exp2): Calculate result before checking finiteness and calling
16977         __kernel_standard.
16978         * math/w_exp2f.c: Likewise.
16979         * math/w_exp2l.c: Likewise.
16980         * math/libm-test.inc (exp2_test): Require overflow exception for
16981         1e6 input.
16982
16983         [BZ #3866]
16984         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
16985         range of signed 64-bit integers before using fistpll.  Remove
16986         checks for whether integers fit in mantissa bits.
16987         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
16988         the range of signed 32-bit integers before using fistpl.  Remove
16989         checks for whether integers fit in mantissa bits.
16990         * sysdeps/i386/fpu/e_powl.S (p64): New object.
16991         (__ieee754_powl): Test for y outside the range of signed 64-bit
16992         integers before using fistpll.  Reduce 64-bit values to 63-bit
16993         ones as needed.
16994         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
16995         divide-by-zero is raised for zero to large negative powers.
16996         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
16997         (__ieee754_powl): Test for y outside the range of signed 64-bit
16998         integers before using fistpll.  Reduce 64-bit values to 63-bit
16999         ones as needed.
17000         * math/libm-test.inc (pow_test): Add more tests.
17001
17002 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17003
17004         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
17005         <stdio-common/_itoa.h>.
17006         * debug/segfault.c: Likewise.
17007         * elf/dl-cache.c: Likewise.
17008         * elf/dl-minimal.c: Likewise.
17009         * elf/dl-misc.c: Likewise.
17010         * elf/dl-sysdep.c: Likewise.
17011         * elf/dl-version.c: Likewise.
17012         * elf/rtld.c: Likewise.
17013         * hurd/hurdsock.c: Likewise.
17014         * hurd/lookup-retry.c: Likewise.
17015         * malloc/malloc.c: Likewise.
17016         * malloc/mtrace.c: Likewise.
17017         * nscd/nscd_getgr_r.c: Likewise.
17018         * nscd/nscd_getpw_r.c: Likewise.
17019         * nscd/nscd_getserv_r.c: Likewise.
17020         * posix/getopt_init.c: Likewise.
17021         * posix/wordexp.c: Likewise.
17022         * stdio-common/_itoa.c: Likewise.
17023         * stdio-common/printf_fphex.c: Likewise.
17024         * stdio-common/vfprintf.c: Likewise.
17025         * string/_strerror.c: Likewise.
17026         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
17027         * sysdeps/i386/i686/hp-timing.h: Likewise.
17028         * sysdeps/mach/_strerror.c: Likewise.
17029         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
17030         * sysdeps/mach/hurd/sethostid.c: Likewise.
17031         * sysdeps/mach/hurd/xmknodat.c: Likewise.
17032         * sysdeps/mach/xpg-strerror.c: Likewise.
17033         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
17034         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
17035         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
17036         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
17037         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
17038         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
17039         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
17040         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
17041         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
17042         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
17043         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
17044         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
17045         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
17046         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
17047         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
17048         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
17049         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
17050         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
17051         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
17052         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
17053         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
17054
17055         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
17056
17057         * stdio-common/_itoa.h: Moved to ...
17058         * sysdeps/generic/_itoa.h: Here.
17059
17060         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
17061
17062         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
17063         instead of "_itoa.h" and "_itowa.h".
17064         * stdio-common/vfprintf.: Likewise.
17065
17066 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17067
17068         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
17069         <bits/wordsize.h>.
17070         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
17071         (__signbit): Likwise.
17072         (llrintf): Likwise.
17073         (llrint): Likwise.
17074
17075 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17076
17077         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
17078         __WORDSIZE != 64.
17079
17080 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
17081
17082         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
17083         OVERFLOW_EXCEPTION_OK.
17084         * math/libm-test.inc ("Philosophy"): Update comment about
17085         exception testing.
17086         (OVERFLOW_EXCEPTION): Define.
17087         (OVERFLOW_EXCEPTION_OK): Likewise.
17088         (INVALID_EXCEPTION_OK): Renumber.
17089         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
17090         (IGNORE_ZERO_INF_SIGN): Likewise.
17091         (test_exceptions): Handle FE_OVERFLOW.
17092         (exp10_test): Expect overflow exceptions.
17093         (exp2_test): Likewise.
17094         (expm1_test): Likewise.
17095         (nextafter_test): Likewise.
17096         (pow_test): Likewise.
17097         (scalbn_test): Likewise.
17098         (scalbln_test): Likewise.
17099
17100 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17101
17102         * sysdeps/x86_64/bits/atomic.h
17103         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
17104         64bit integer.
17105         (atomic_exchange_acq): Likewise.
17106         (__arch_exchange_and_add_body): Likewise.
17107         (__arch_add_body): Likewise.
17108         (atomic_add_negative): Likewise.
17109         (atomic_add_zero): Likewise.
17110
17111 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17112
17113         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
17114         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
17115
17116 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17117
17118         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
17119         Check __x86_64__ instead of __WORDSIZE.
17120
17121 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17122
17123         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
17124
17125 2012-03-19  David S. Miller  <davem@davemloft.net>
17126
17127         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17128
17129         * sysdeps/sparc/fpu/fenv_private.h: New file.
17130         * sysdeps/sparc/fpu/math_private.h: Use it.
17131         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
17132         Remove.
17133         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
17134         (libc_feholdexcept_setroundl): Remove.
17135         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
17136         Remove.
17137         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
17138         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
17139
17140 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17141
17142         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
17143         int64_t instead of long int.
17144         (INSERT_WORDS64): Likwise.
17145
17146 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17147
17148         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
17149         _Unwind_GetCFA return to _Unwind_Ptr first.
17150
17151 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
17152
17153         [BZ #13629]
17154         * math/s_clog.c: Include <float.h>.
17155         (__clog): Scale large or subnormal inputs.
17156         * math/s_clogf.c: Likewise.
17157         * math/s_clogl.c: Likewise.
17158         * math/s_clog10.c: Include <float.h>.
17159         (M_LOG10_2): Define.
17160         (__clog10): Scale large or subnormal inputs.
17161         * math/s_clog10f.c: Likewise.
17162         * math/s_clog10l.c: Likewise.
17163         * math/libm-test.inc (clog_test): Add more tests.
17164         (clog10_test): Likewise.
17165         * sysdeps/i386/fpu/libm-test-ulps: Update.
17166         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17167
17168         [BZ #11451]
17169         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
17170         x and y.
17171         * math/libm-test.inc (atan2_test): Add another test.
17172
17173         * Makerules (common-objdir-compile): Remove.
17174         * sysdeps/unix/Makefile (config-generated): Do not add
17175         $(unix-generated) to variable.
17176         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
17177         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
17178         Remove rule.
17179         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
17180         Likewise.
17181         [generic bits/local_lim.h] (before-compile): Do not append to
17182         variable.
17183         [generic bits/local_lim.h] (common-generated): Likewise.
17184         [generic sys/param.h] (before-compile): Do not append to variable.
17185         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
17186         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
17187         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
17188         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
17189         include.
17190         [generic sys/param.h] (sys/param.h-includes): Remove variable.
17191         [generic sys/param.h] (sys/param.h-includes): Remove rule.
17192         [generic sys/param.h] ($(addprefix
17193         $(common-objpfx),$(sys/param.h-includes))): Likewise.
17194         [generic sys/param.h] (common-generated): Do not append to
17195         variable.
17196         [generic sys/param.h] (sysdep_headers): Likewise.
17197         [generic bits/errno.h] (before-compile): Do not append to
17198         variable.
17199         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
17200         rule.
17201         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
17202         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
17203         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
17204         [generic bits/errno.h] (common-generated): Do not append to
17205         variable.
17206         [generic bits/ioctls.h] (before-compile): Do not append to
17207         variable.
17208         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
17209         rule.
17210         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
17211         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
17212         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
17213         rule.
17214         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
17215         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
17216         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
17217         [generic bits/ioctls.h] (common-generated): Do not append to
17218         variable.
17219         [generic sys/syscall.h] (syscall.h): Remove variable.
17220         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
17221         rule.
17222         [generic sys/syscall.h] (before-compile): Do not append to
17223         variable.
17224         [generic sys/syscall.h] (common-generated): Likewise.
17225         * sysdeps/unix/errnos-tmpl.c: Remove file.
17226         * sysdeps/unix/errnos.awk: Likewise.
17227         * sysdeps/unix/ioctls-tmpl.c: Likewise.
17228         * sysdeps/unix/ioctls.awk: Likewise.
17229         * sysdeps/unix/mk-local_lim.c: Likewise.
17230         * sysdeps/unix/snarf-ioctls: Likewise.
17231
17232 2012-03-19  Richard Henderson  <rth@twiddle.net>
17233
17234         * sysdeps/i386/fpu/fenv_private.h: New file.
17235         * sysdeps/i386/fpu/math_private.h: Use it.
17236         (math_opt_barrier, math_force_eval): Remove.
17237         (libc_feholdexcept_setround_53bit): Remove.
17238         (libc_feupdateenv_53bit): Remove.
17239         * sysdeps/x86_64/fpu/math_private.h: Likewise.
17240         (math_opt_barrier, math_force_eval): Remove.
17241         (libc_feholdexcept): Remove.
17242         (libc_feholdexcept_setround): Remove.
17243         (libc_fetestexcept, libc_fesetenv): Remove.
17244         (libc_feupdateenv_test): Remove.
17245         (libc_feupdateenv, libc_feholdsetround): Remove.
17246         (libc_feresetround): Remove.
17247
17248         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
17249         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
17250
17251         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
17252         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
17253         (libc_feupdateenv_testl): New.
17254         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
17255         (libc_feupdateenv_testf): New.
17256         (libc_feupdateenv): Use libc_feupdateenv_test.
17257         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
17258         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
17259
17260         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
17261         (libc_feholdsetroundf, libc_feholdsetroundl): New.
17262         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
17263         (libc_feresetround_noex): New.
17264         (libc_feresetround_noexf): New.
17265         (libc_feresetround_noexl): New.
17266         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
17267         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
17268         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
17269         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
17270         SET_RESTORE_ROUND.
17271         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
17272         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
17273         (__cos): Likewise.
17274         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
17275         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
17276         SET_RESTORE_ROUND_NOEX.
17277         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
17278         SET_RESTORE_ROUND_NOEXF.
17279         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
17280         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
17281         (libc_feholdsetroundf): New.
17282         (libc_feresetround, libc_feresetroundf): New.
17283
17284         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
17285         (libc_feholdexcept_setround_53bit): Convert from macro to function.
17286         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
17287
17288         * sysdeps/generic/math_private.h: Include <fenv.h>.
17289         (default_libc_feholdexcept): New.
17290         (default_libc_feholdexcept_setround): New.
17291         (default_libc_fesetenv, default_libc_feupdateenv): New.
17292         (libc_feholdexcept): Only define if undefined.
17293         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
17294         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
17295         (libc_feholdexcept_setroundl): Likewise.
17296         (libc_feholdexcept_setround_53bit): Likewise.
17297         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
17298         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
17299         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
17300         (libc_feupdateenv_53bit): Likewise.
17301         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
17302         (libc_feholdexcept): Convert from macro to inline function.
17303         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
17304         (libc_fesetenv, libc_feupdateenv): Likewise.
17305
17306         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
17307         not previously defined.
17308         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
17309         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
17310         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
17311         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
17312         * sysdeps/ieee754/flt-32/math_private.h: New file.
17313         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
17314         math_private.h below SET_FLOAT_WORD.
17315         (__isnan, __isinf_ns, __finite): Remove.
17316         (__isnanf, __isinf_nsf, __finitef): Remove.
17317
17318 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
17319
17320         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17321
17322 2012-03-17  David S. Miller  <davem@davemloft.net>
17323
17324         [BZ #6471]
17325         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
17326         for 2.16.
17327
17328 2012-03-16  David S. Miller  <davem@davemloft.net>
17329
17330         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
17331         warnings.
17332
17333         [BZ #6471]
17334         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
17335         properly.
17336         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
17337         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
17338         sysdep_routines when subdir is sysvipc.
17339         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
17340         __getshmlba helper.
17341
17342         * sysdeps/sparc/fpu/libm-test/ulps: Update.
17343
17344 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17345
17346         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
17347         [__LP64__].
17348
17349 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17350
17351         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
17352         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
17353         (__lround): Renamed to ...
17354         (__llround): This.  Replace long int with long long int.
17355         Define lround functions as aliases of llround functions.
17356         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
17357
17358 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17359
17360         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
17361         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
17362         adresses to uintptr_t.  Replace "long int" and "unsigned long
17363         int" with "greg_t" on va_arg.
17364
17365 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17366
17367         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
17368         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
17369
17370         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
17371         Move e_machine check before EI_CLASS check.  Handle x32
17372         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
17373         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
17374         SKIP_EM_IA_64 and include
17375         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
17376
17377         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
17378         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
17379         (add_system_dir): New macro.
17380
17381         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
17382         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
17383
17384 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
17385
17386         [BZ #2551]
17387         [BZ #2552]
17388         [BZ #2553]
17389         [BZ #2554]
17390         [BZ #2562]
17391         [BZ #2563]
17392         [BZ #2565]
17393         [BZ #2566]
17394         [BZ #2576]
17395         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
17396         (y0): Likewise.
17397         * math/w_j0f.c (j0f): Likewise.
17398         (y0f): Likewise.
17399         * math/w_j0l.c (__j0l): Likewise.
17400         (__y0l): Likewise.
17401         * math/w_j1.c (j1): Likewise.
17402         (y1): Likewise.
17403         * math/w_j1f.c (j1f): Likewise.
17404         (y1f): Likewise.
17405         * math/w_j1l.c (__j1l): Likewise.
17406         (__y1l): Likewise.
17407         * math/w_jn.c (jn): Likewise.
17408         (yn): Likewise.
17409         * math/w_jnf.c (jnf): Likewise.
17410         (ynf): Likewise.
17411         * math/w_jnl.c (__jnl): Likewise.
17412         (__ynl): Likewise.
17413         * math/libm-test.inc (j0_test): Add more tests.
17414         (j1_test): Likewise.
17415         (jn_test): Likewise.  Add trailing semicolon to existing test.
17416         (y0_test): Likewise.
17417         (y1_test): Likewise.
17418         * sysdeps/i386/fpu/libm-test-ulps: Update.
17419         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17420
17421         [BZ #13851]
17422         [BZ #13854]
17423         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
17424         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
17425         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
17426         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
17427         (__tanl): Set errno for infinite argument.
17428         * sysdeps/i386/fpu/mptan.c: Remove.
17429         * sysdeps/i386/fpu/s_tan.S: Likewise.
17430         * sysdeps/i386/fpu/s_tanl.S: Likewise.
17431         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
17432         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
17433         * math/libm-test.inc (tan_test): Add more tests and enable more
17434         tests for double and long double.
17435         * sysdeps/i386/fpu/libm-test-ulps: Update.
17436         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17437
17438 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
17439
17440         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
17441         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
17442
17443 2012-03-16  Roland McGrath  <roland@hack.frob.com>
17444
17445         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
17446         * configure.in: Use it for both main tree and add-ons.
17447         * configure: Regenerated.
17448
17449 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17450
17451         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
17452
17453 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
17454
17455         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
17456         in comment.
17457
17458         [BZ #13851]
17459         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
17460         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
17461         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
17462         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
17463         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
17464         infinite argument.
17465         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
17466         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
17467         != 0 for prec == 2.
17468         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
17469         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
17470         * sysdeps/i386/fpu/s_cosl.S: Likewise.
17471         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
17472         * sysdeps/i386/fpu/s_sinl.S: Likewise.
17473         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
17474         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
17475         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
17476         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
17477         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
17478         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
17479         * math/libm-test.inc (cos_test): Add more tests and enable more
17480         tests for long double.
17481         (sin_test): Likewise.
17482         (sincos_test): Likewise.
17483         * sysdeps/i386/fpu/libm-test-ulps: Update.
17484         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17485
17486 2012-03-16  David S. Miller  <davem@davemloft.net>
17487
17488         * sysdeps/sparc/fpu/math_private.h: New file.
17489
17490 2012-03-15  David S. Miller  <davem@davemloft.net>
17491
17492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
17493         file.
17494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
17495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
17496         file.
17497         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
17498         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
17499         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
17500         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
17501         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
17502         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
17503         sysdep routines.
17504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
17505
17506         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
17507         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
17508
17509         * sysdeps/sparc/sparc-ifunc.h: New file.
17510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
17511         sparc-ifunc.h
17512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
17513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
17514         Likewise.
17515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
17516         Likewise.
17517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
17518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
17519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
17520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
17521         Likewise.
17522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
17523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
17524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
17525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
17526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
17527         Likewise.
17528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
17529         Likewise.
17530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
17531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
17532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
17533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
17534         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
17535         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
17536         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
17537         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
17538         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
17539         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
17540         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
17541         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
17542         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
17543         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
17544         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
17545         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
17546         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
17547         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
17548         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
17549         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
17550         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
17551         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
17552         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
17553         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
17554
17555 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
17556
17557         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
17558         scaling.
17559         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17560
17561 2012-03-15  Andreas Jaeger  <aj@suse.de>
17562
17563         [BZ #13852]
17564         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
17565         ieee754/flt-32 implementation for sin, cos and sincos.
17566         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
17567         * sysdeps/i386/fpu/s_cosf.S: Likewise.
17568         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
17569         * sysdeps/i386/fpu/s_sinf.S: Likewise.
17570         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
17571         ieee754/flt-32 implementation for tan.
17572
17573         * math/libm-test.inc (cos_test): Enable some large input tests for
17574         float as well
17575         (sin_test): Likewise.
17576         (sincos_test): Likewise.
17577         (tan_test): Add tests for large input.
17578
17579         * sysdeps/i386/fpu/libm-test-ulps: Update.
17580
17581 2012-03-15  Andreas Jaeger  <aj@suse.de>
17582
17583         [BZ #13658]
17584         * math/libm-test.inc (cos_test): Add more test cases.
17585         (sin_test): Likewise.
17586         (sincos_test): Likewise.
17587
17588 2012-03-15  Andreas Jaeger  <aj@suse.de>
17589
17590         [BZ #13837]
17591         * math/libm-test.inc (cos_test): Add a test case for large input
17592         value.
17593         (sin_test): Likewise.
17594         (sincos_test): Likewise.
17595
17596 2012-03-15  Andreas Jaeger  <aj@suse.de>,
17597         Joseph Myers  <joseph@codesourcery.com>
17598
17599         [BZ #13658]
17600         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
17601         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
17602         * sysdeps/i386/fpu/branred.c: Likewise.
17603         * sysdeps/i386/fpu/dosincos.c: Likewise.
17604         * sysdeps/i386/fpu/mpa.c: Likewise.
17605         * sysdeps/i386/fpu/s_cos.S: Likewise.
17606         * sysdeps/i386/fpu/s_sin.S: Likewise.
17607         * sysdeps/i386/fpu/s_sincos.S: Likewise.
17608         * sysdeps/i386/fpu/sincos32.c: Likewise.
17609
17610         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
17611         Define.
17612         (libc_feupdateenv_53bit): Define.
17613         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
17614         Define.
17615         (libc_feupdateenv_53bit): Define.
17616
17617         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
17618         53 bit (without extend i386 double precision).
17619
17620         * math/libm-test.inc (sincos_test): Add tests for large input.
17621         (sin): Likewise.
17622         (cos): Likewise.
17623
17624         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
17625
17626 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
17627
17628         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17629
17630 2012-03-15  David S. Miller  <davem@davemloft.net>
17631
17632         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
17633         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
17634         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
17635         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
17636         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
17637         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
17638         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
17639         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
17640         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
17641         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
17642         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
17643         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
17644         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
17645         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
17646         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
17647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
17648         file.
17649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
17650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
17651         file.
17652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
17653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
17654         file.
17655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
17656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
17657         file.
17658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
17659         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
17660         fmin/fmax sysdep routines.
17661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
17662
17663 2012-03-14  David S. Miller  <davem@davemloft.net>
17664
17665         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
17666         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
17667         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
17668         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
17669         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
17670         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
17671         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
17672         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
17673         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
17674         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
17675         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
17676         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
17677         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
17678         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
17679         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
17680         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
17681         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
17682         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
17683         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
17684         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
17685         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
17686         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
17687         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
17688         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
17689         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
17690         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
17691         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
17692         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
17693         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
17694         routines.
17695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
17696         file.
17697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
17698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
17699         file.
17700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
17701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
17702         file.
17703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
17704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
17705         file.
17706         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
17707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
17708         file.
17709         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
17710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
17711         file.
17712         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
17713         file.
17714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
17715         file.
17716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
17717         file.
17718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
17719         New file.
17720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
17721         file.
17722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
17723         file.
17724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
17725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
17726         file.
17727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
17728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
17729         file.
17730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
17731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
17732         file.
17733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
17734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
17735         VIS3 routines.
17736
17737         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
17738         New file.
17739
17740         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17741
17742         * sysdeps/sparc/configure.in: New file.
17743         * sysdeps/sparc/configure: Generate.
17744         * configure.in (libc_cv_sparc_as_vis3): Substitute.
17745         * configure: Regenerate.
17746         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
17747         * config.make.in (have-as-vis3): New.
17748         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
17749         available use -Av9d instead of -Av9a.
17750         * sysdeps/sparc/sparc64/Makefile: Likewise.
17751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
17752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
17753         New file.
17754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
17755         file.
17756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
17757         New file.
17758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
17759         file.
17760         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
17761         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
17762         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
17763         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
17764         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
17765
17766         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
17767         fzeros/fnegs to load 0x80000000 into a float register instead of
17768         using the stack.
17769         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
17770
17771 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
17772
17773         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17774         bits/syscall.h.
17775         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
17776         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
17777         ($(inst_includedir)/bits/syscall.h): Remove rule.
17778         ($(objpfx)bits/syscall.d): Include instead of
17779         $(objpfx)syscall-list.d.
17780         (generated): Change syscall-list.h and syscall-list.d to
17781         bits/syscall.h and bits/syscall.d.
17782
17783 2012-03-14  Roland McGrath  <roland@hack.frob.com>
17784
17785         [BZ #13846]
17786         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
17787
17788 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
17789
17790         [BZ #13841]
17791         * math/s_csqrt.c: Include <float.h>.
17792         (__csqrt): Scale large or subnormal inputs.
17793         * math/s_csqrtf.c: Likewise.
17794         * math/s_csqrtl.c: Likewise.
17795         * math/libm-test.inc (csqrt_test): Add more tests.
17796         * sysdeps/i386/fpu/libm-test-ulps: Update.
17797         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17798
17799         [BZ #13840]
17800         * math/libm-test.inc (hypot_test): Add more tests.
17801
17802 2012-03-13  David S. Miller  <davem@davemloft.net>
17803
17804         [BZ #13840]
17805         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
17806         double-precision for the calculation instead of scaling.
17807
17808 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
17809
17810         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
17811         manipulate bits before adding and subtracting TWO52[sx].
17812         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
17813         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
17814         Likewise.
17815         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
17816
17817 2012-03-13  David S. Miller  <davem@davemloft.net>
17818
17819         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
17820         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
17821         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
17822         rtld-global-offsets.h
17823         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17824
17825         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
17826         large parameters.
17827
17828         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
17829
17830         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
17831         'err' in the ifdef scope in which it is actually used.
17832
17833         * nss/nss_db/db-init.c: Include string.h
17834
17835 2012-03-12  David S. Miller  <davem@davemloft.net>
17836
17837         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17838         masking out of the most significant byte of random value used.
17839         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17840         Fix coding style in previous change.
17841
17842         * sysdeps/unix/sysv/linux/kernel-features.h
17843         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
17844         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
17845         expression.
17846         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
17847         later.
17848
17849 2012-03-11  David S. Miller  <davem@davemloft.net>
17850
17851         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
17852         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
17853         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
17854         for 'resultvar' otherwise things get truncated on 64-bit.
17855
17856         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17857         Fix masking out of the most significant byte of random value used.
17858
17859         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17860
17861 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
17862
17863         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17864
17865 2012-03-09  David S. Miller  <davem@davemloft.net>
17866
17867         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
17868         variables with appropriate CPP guards.
17869         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
17870         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
17871         on resulting framesize and the management of the outregs buffer for pltexit.
17872         Preserve floating point return values across _dl_call_pltexit call.
17873         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
17874         framesize and the management of the outregs buffer for pltexit.
17875         Preserve floating point return values across _dl_call_pltexit
17876         call.
17877         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
17878         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
17879         (print_exit): Fix format string for return register value.
17880
17881 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
17882
17883         * sunrpc/Makefile (others): Add rpcgen.
17884         ($(objpfx)rpcgen): Remove special build rule and dependency on
17885         libc.
17886         * sunrpc/rpcgen.c: New file.
17887
17888 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
17889
17890         [BZ #13673]
17891         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
17892         * stdio-common/bug-vfprintf-nargs.c: Likewise.
17893         * sysdeps/i386/crti.S: Likewise.
17894         * sysdeps/i386/crtn.S: Likewise.
17895         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
17896         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
17897         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
17898         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
17899         * sysdeps/sh/crti.S: Likewise.
17900         * sysdeps/sh/crtn.S: Likewise.
17901         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
17902
17903         [BZ #13673]
17904         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
17905         with URL.
17906         * locale/programs/locfile-kw.gperf: Likewise.
17907         * locale/programs/charmap-kw.h: Regenerated.
17908         * locale/programs/locfile-kw.h: Likewise.
17909
17910         [BZ #13673]
17911         * intl/plural.y: Replace FSF snail mail address with URL.
17912         * intl/plural.c: Regenerated.
17913
17914 2012-03-09  Richard Henderson  <rth@twiddle.net>
17915
17916         * include/math_private.h: Remove file.
17917         * math/math_private.h: Move file ...
17918         * sysdeps/generic/math_private.h: ... here.
17919
17920         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
17921         * sysdeps/powerpc/fpu/math_private.h: Likewise.
17922         * sysdeps/x86_64/fpu/math_private.h: Likewise.
17923
17924         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
17925         and <math_private.h>.
17926         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
17927         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
17928         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17929         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17930         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17931         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
17932         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
17933         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17934         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17935         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17936         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17937         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17938         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17939         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17940         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17941         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17942         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17943         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17944         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17945         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17946         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17947         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17948         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17949         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17950         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
17951         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17952         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17953         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17954         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17955         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17956         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17957         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17958         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
17959         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
17960         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
17961         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17962         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17963         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
17964         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
17965         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
17966         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
17967         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
17968         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
17969         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
17970         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
17971         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
17972         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
17973         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
17974         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17975         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
17976         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
17977         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
17978         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
17979         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17980         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
17981         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
17982         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
17983         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
17984         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
17985         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
17986         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17987         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
17988         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17989         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17990         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
17991         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
17992         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
17993         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17994         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
17995         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
17996         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
17997         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
17998         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
17999         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
18000         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
18001         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
18002         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
18003         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
18004         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
18005         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
18006         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
18007         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
18008         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
18009         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
18010         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
18011         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
18012         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
18013         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
18014         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
18015         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
18016         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
18017         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
18018         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18019         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
18020         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
18021         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
18022         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
18023         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
18024         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18025         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
18026         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
18027         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
18028         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
18029         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
18030         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
18031         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
18032         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
18033         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
18034         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
18035         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
18036         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
18037         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
18038         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
18039         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
18040         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
18041         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
18042         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
18043         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
18044         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
18045         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
18046         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
18047         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
18048         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
18049         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
18050         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
18051         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
18052         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
18053         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
18054         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
18055         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
18056         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
18057         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
18058         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
18059         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
18060         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
18061         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
18062         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
18063         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
18064         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
18065         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
18066         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
18067         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
18068         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
18069         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
18070         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
18071         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18072         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
18073         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
18074         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
18075         * sysdeps/ieee754/k_standard.c: Likewise.
18076         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
18077         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
18078         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
18079         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
18080         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
18081         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
18082         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
18083         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
18084         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
18085         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
18086         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18087         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
18088         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
18089         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
18090         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
18091         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
18092         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
18093         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
18094         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
18095         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
18096         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
18097         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
18098         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
18099         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
18100         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
18101         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
18102         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
18103         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
18104         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
18105         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
18106         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
18107         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
18108         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
18109         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
18110         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
18111         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
18112         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
18113         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
18114         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
18115         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
18116         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
18117         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
18118         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
18119         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
18120         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
18121         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
18122         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
18123         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
18124         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
18125         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
18126         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
18127         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
18128         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
18129         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
18130         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
18131         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
18132         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
18133         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
18134         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
18135         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
18136         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
18137         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
18138         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
18139         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
18140         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
18141         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
18142         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
18143         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
18144         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
18145         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
18146         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
18147         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18148         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
18149         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
18150         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
18151         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
18152         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
18153         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
18154         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
18155         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
18156         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
18157         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
18158         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
18159         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
18160         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
18161         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
18162         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
18163         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
18164         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
18165         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
18166         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
18167         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
18168         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
18169         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
18170         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
18171         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
18172         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
18173         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
18174         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
18175         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
18176         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
18177         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
18178         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
18179         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
18180         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
18181         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
18182         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
18183         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
18184         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
18185         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
18186         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
18187         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
18188         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
18189         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
18190         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
18191         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
18192         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
18193         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
18194         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
18195         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
18196         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18197         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
18198         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
18199         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
18200         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
18201         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
18202         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
18203         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
18204         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
18205         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
18206         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
18207         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
18208         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
18209         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
18210         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
18211         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
18212         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
18213         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
18214         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
18215         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
18216         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
18217         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
18218         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
18219         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
18220         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
18221         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
18222         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
18223         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
18224         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
18225         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
18226         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
18227         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
18228         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
18229         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
18230         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
18231         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
18232         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
18233         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
18234         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
18235         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
18236         * sysdeps/ieee754/s_lib_version.c: Likewise.
18237         * sysdeps/ieee754/s_matherr.c: Likewise.
18238         * sysdeps/ieee754/s_signgam.c: Likewise.
18239         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
18240         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18241         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
18242         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
18243         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
18244         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
18245         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
18246         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
18247         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
18248         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
18249         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
18250         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
18251         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
18252         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
18253         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
18254         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
18255         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
18256         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
18257         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
18258         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
18259         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
18260
18261 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
18262
18263         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
18264         * sunrpc/rpc_main.c: Likewise.
18265         * sunrpc/rpc_svcout.c: Likewise.
18266
18267 2012-03-09  David S. Miller  <davem@davemloft.net>
18268
18269         * include/math_private.h: New file.
18270
18271 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
18272
18273         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
18274         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
18275         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
18276         from <bits/socket_type.h>.
18277         (enum __socket_type): Don't define here.
18278         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
18279         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18280         bits/socket_type.h.
18281
18282         [BZ #13566]
18283         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
18284         checking __USE_GNU.
18285
18286         * Makerules ($(inst_includedir)/%.h): New rule.
18287         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
18288         (install-others): Remove variable setting.
18289         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
18290
18291 2012-03-08  Richard Henderson  <rth@twiddle.net>
18292
18293         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
18294         from macro to inline function; merge with the
18295         !__LIBC_INTERNAL_MATH_INLINES version.
18296         (__ieee754_sqrtf): Likewise.
18297
18298         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
18299         to inline function.
18300         (__rintf, __floor, __floorf): Likewise.
18301
18302         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
18303         macro to inline function.
18304         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
18305
18306         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
18307         not <math/math_private.h>.
18308
18309 2012-03-08  David S. Miller  <davem@davemloft.net>
18310
18311         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
18312         copyright year.
18313         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
18314
18315 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
18316
18317         * resolv/gai_misc.c (handle_requests): Fix struct timespec
18318         normalization.
18319         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
18320         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
18321
18322 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
18323
18324         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
18325         be defined individually, they must be defined as a block.  Define
18326         S for printing a string instead of hidint the different by using a
18327         macro for adding the 'l'.
18328         * stdio-common/tst-fphex-wide.c: Adjust.
18329
18330 2012-03-07  Marek Polacek  <polacek@redhat.com>
18331
18332         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
18333
18334 2012-03-08  Marek Polacek  <polacek@redhat.com>
18335
18336         [BZ #13806]
18337         * stdio-common/Makefile (tests): Add tst-fphex-wide.
18338         * stdio-common/tst-fphex.c: Define a few macros to make the
18339         test reusable.  Use them.
18340         * stdio-common/tst-fphex-wide.c: New file.
18341
18342 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
18343
18344         [BZ #6911]
18345         * manual/macros.texi (gnusystems): New macro.
18346         (nongnusystems): Likewise.
18347         (gnulinuxhurdsystems): Likewise.
18348         (gnuhurdsystems): Likewise..
18349         (gnulinuxsystems): Likewise.
18350         * manual/charset.texi: Use new macros or @theglibc{} to refer to
18351         variants of the GNU system, not "GNU system".
18352         * manual/conf.texi: Likewise.
18353         * manual/errno.texi: Likewise.  Update example of errno macro
18354         expansion.
18355         * manual/filesys.texi: Likewise.
18356         (getumask): Document as specific to GNU/Hurd.
18357         * manual/install.texi: Likewise.  Reword some references to
18358         GNU/Linux.
18359         * manual/intro.texi: Likewise.
18360         * manual/io.texi: Likewise.
18361         (File Name Portability): Detail which constraints are inapplicable
18362         to all GNU systems and which are only inapplicable to GNU/Hurd.
18363         * manual/job.texi: Likewise.
18364         * manual/llio.texi: Likewise.
18365         (O_NOCTTY): Document as present on GNU/Linux.
18366         * manual/maint.texi: Likewise.
18367         * manual/memory.texi: Likewise.
18368         * manual/pattern.texi: Likewise.
18369         * manual/pipe.texi: Likewise.
18370         * manual/process.texi: Likewise.
18371         * manual/resource.texi: Likewise.
18372         (RUSAGE_CHILDREN): Remove statement about specifying a particular
18373         child on GNU/Hurd.
18374         * manual/setjmp.texi: Likewise.
18375         * manual/signal.texi: Likewise.
18376         * manual/startup.texi: Likewise.
18377         * manual/stdio.texi: Likewise.
18378         * manual/terminal.texi: Likewise.
18379         (ONLCR): Document as POSIX.
18380         (OXTABS): Document availability on GNU/Linux as XTABS.
18381         (ONOEOT): Document availability separately from other bits.
18382         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
18383         * manual/time.texi: Likewise.
18384         * manual/users.texi: Likewise.
18385         * INSTALL: Regenerated.
18386         * sysdeps/gnu/errlist.c: Regenerated.
18387
18388         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
18389         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
18390         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
18391         puts.
18392         * configure: Regenerated.
18393
18394 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
18395
18396         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
18397         default includes instead of AC_HEADER_CHECK.
18398         * sysdeps/i386/configure: Regenerated.
18399
18400         [BZ #10716]
18401         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
18402         * math/s_cacoshf.c (__cacoshf): Likewise.
18403         * math/s_cacoshl.c (__cacoshl): Likewise.
18404         * math/s_casinh.c (__casinh): Set signs of result from argument.
18405         * math/s_casinhf.c (__casinhf): Likewise.
18406         * math/s_casinhl.c (__casinhl): Likewise.
18407         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
18408         (casinh_test): Add more tests.
18409         * sysdeps/i386/fpu/libm-test-ulps: Update.
18410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18411
18412 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
18413
18414         * po/zh_TW.po: Update from translation team.
18415
18416         * login/Makefile (distribute): Remove variable.
18417         * catgets/Makefile: Likewise.
18418         * mach/Makefile: Likewise.
18419         * malloc/Makefile: Likewise.
18420         * misc/Makefile: Likewise.
18421         * iconv/Makefile: Likewise.
18422         * nscd/Makefile: Likewise.
18423         * hurd/Makefile: Likewise.
18424         * manual/Makefile: Likewise.
18425         * locale/Makefile: Likewise.
18426         * intl/Makefile: Likewise.
18427         * conform/Makefile: Likewise.
18428         * nss/Makefile: Likewise.
18429         * time/Makefile: Likewise.
18430         * soft-fp/Makefile: Likewise.
18431         * dirent/Makefile: Likewise.
18432         * gmon/Makefile: Likewise.
18433         * po/Makefile: Likewise.
18434         * rt/Makefile: Likewise.
18435         * socket/Makefile: Likewise.
18436         * math/Makefile: Likewise.
18437         * signal/Makefile: Likewise.
18438         * debug/Makefile: Likewise.
18439         * elf/Makefile: Likewise.
18440         * timezone/Makefile: Likewise.
18441         * stdlib/Makefile: Likewise.
18442         * iconvdata/Makefile: Likewise.
18443         * sunrpc/Makefile: Likewise.
18444         * io/Makefile: Likewise.
18445         * argp/Makefile: Likewise.
18446         * inet/Makefile: Likewise.
18447         * hesiod/Makefile: Likewise.
18448         * grp/Makefile: Likewise.
18449         * csu/Makefile: Likewise.
18450         * wctype/Makefile: Likewise.
18451         * crypt/Makefile: Likewise.
18452         * libio/Makefile: Likewise.
18453         * string/Makefile: Likewise.
18454         * nis/Makefile: Likewise.
18455         * resolv/Makefile: Likewise.
18456         * stdio-common/Makefile: Likewise.
18457         * wcsmbs/Makefile: Likewise.
18458         * dlfcn/Makefile: Likewise.
18459         * posix/Makefile: Likewise.
18460
18461         [BZ #6959]
18462         * timezone/Makefile: Don't install timezone files, just the programs
18463         and scripts.
18464
18465 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
18466
18467         * nss/databases.def: Add missing gshadow entry.
18468
18469         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
18470
18471 2012-03-06  Marek Polacek  <polacek@redhat.com>
18472
18473         [BZ #13726]
18474         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
18475         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
18476         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
18477         * stdio-common/tst-long-dbl-fphex.c: New file.
18478
18479 2012-03-06  David S. Miller  <davem@davemloft.net>
18480
18481         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18482         (set_obp_int): New function.
18483         (get_obp_int): New function.
18484         (__get_clockfreq_via_dev_openprom): Likewise.
18485         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
18486         Avoid unused variable warnings on 'val' and use builtin_expect.
18487         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
18488         __builtin_expect.
18489         (INLINE_CLONE_SYSCALL): Likewise.
18490
18491 2012-03-05  David S. Miller  <davem@davemloft.net>
18492
18493         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18494
18495 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
18496
18497         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18498
18499         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
18500         only for |x| >= 40.
18501         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
18502
18503 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
18504
18505         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
18506         Replace gettimeofday with __vdso_gettimeofday.
18507
18508         * sysdeps/unix/sysv/linux/x86_64/init-first.c
18509         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
18510         __vdso_clock_gettime and __vdso_getcpu.
18511
18512         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
18513         time with __vdso_time.
18514
18515 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
18516
18517         * manual/lang.texi (size_t): Note types to which size_t may be
18518         equivalent with the GNU C Library, but do not describe when
18519         differences between them are significant.
18520
18521 2012-03-05  Andreas Jaeger  <aj@suse.de>
18522
18523         * sysdeps/i386/fpu/libm-test-ulps: Update.
18524
18525 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
18526
18527         [BZ #3976]
18528         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
18529         (__ieee754_pow): Save and restore rounding mode and use
18530         round-to-nearest for main computations.
18531         * math/libm-test.inc (pow_test_tonearest): New function.
18532         (pow_test_towardzero): Likewise.
18533         (pow_test_downward): Likewise.
18534         (pow_test_upward): Likewise.
18535         (main): Call the new functions.
18536         * sysdeps/i386/fpu/libm-test-ulps: Update.
18537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18538
18539         [BZ #3976]
18540         * math/libm-test.inc (cosh_test_tonearest): New function.
18541         (cosh_test_towardzero): Likewise.
18542         (cosh_test_downward): Likewise.
18543         (cosh_test_upward): Likewise.
18544         (sinh_test_tonearest): Likewise.
18545         (sinh_test_towardzero): Likewise.
18546         (sinh_test_downward): Likewise.
18547         (sinh_test_upward): Likewise.
18548         (main): Call the new functions.
18549         * sysdeps/i386/fpu/libm-test-ulps: Update.
18550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18551
18552 2012-03-05  Tom de Vries  <tom@codesourcery.com>
18553
18554         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
18555         default stack guard is set in last bytes.
18556         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
18557
18558 2012-03-05  Kees Cook  <keescook@chromium.org>
18559
18560         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
18561
18562         [BZ #13656]
18563         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
18564         possibly allocate from heap instead of stack.
18565         * stdio-common/bug-vfprintf-nargs.c: New file.
18566         * stdio-common/Makefile (tests): Add nargs overflow test.
18567
18568 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
18569
18570         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18571
18572 2012-03-03  Marek Polacek  <polacek@redhat.com>
18573
18574         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
18575         * math/math_private.h: Likewise.
18576         * stdlib/tst-strtod.c: Likewise.
18577         * sysdeps/i386/i486/bits/atomic.h: Likewise.
18578         * sysdeps/x86_64/bits/atomic.h: Likewise.
18579
18580 2012-03-02  David S. Miller  <davem@davemloft.net>
18581
18582         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
18583         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
18584         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
18585         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
18586         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
18587         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
18588         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
18589         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
18590
18591 2012-03-02  Roland McGrath  <roland@hack.frob.com>
18592
18593         [BZ #13792]
18594         * manual/examples/README: New file, says the example source files
18595         can be used under GPL>=2.
18596         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
18597         line containing just "*/".
18598         * manual/examples/add.c: Add copyright header (GPL>=2).
18599         * manual/examples/argp-ex1.c: Likewise.
18600         * manual/examples/argp-ex2.c: Likewise.
18601         * manual/examples/argp-ex3.c: Likewise.
18602         * manual/examples/argp-ex4.c: Likewise.
18603         * manual/examples/atexit.c: Likewise.
18604         * manual/examples/db.c: Likewise.
18605         * manual/examples/dir.c: Likewise.
18606         * manual/examples/dir2.c: Likewise.
18607         * manual/examples/execinfo.c: Likewise.
18608         * manual/examples/filecli.c: Likewise.
18609         * manual/examples/filesrv.c: Likewise.
18610         * manual/examples/fmtmsgexpl.c: Likewise.
18611         * manual/examples/genpass.c: Likewise.
18612         * manual/examples/inetcli.c: Likewise.
18613         * manual/examples/inetsrv.c: Likewise.
18614         * manual/examples/isockad.c: Likewise.
18615         * manual/examples/longopt.c: Likewise.
18616         * manual/examples/memopen.c: Likewise.
18617         * manual/examples/memstrm.c: Likewise.
18618         * manual/examples/mkfsock.c: Likewise.
18619         * manual/examples/mkisock.c: Likewise.
18620         * manual/examples/mygetpass.c: Likewise.
18621         * manual/examples/pipe.c: Likewise.
18622         * manual/examples/popen.c: Likewise.
18623         * manual/examples/rprintf.c: Likewise.
18624         * manual/examples/search.c: Likewise.
18625         * manual/examples/select.c: Likewise.
18626         * manual/examples/setjmp.c: Likewise.
18627         * manual/examples/sigh1.c: Likewise.
18628         * manual/examples/sigusr.c: Likewise.
18629         * manual/examples/stpcpy.c: Likewise.
18630         * manual/examples/strdupa.c: Likewise.
18631         * manual/examples/strftim.c: Likewise.
18632         * manual/examples/strncat.c: Likewise.
18633         * manual/examples/subopt.c: Likewise.
18634         * manual/examples/swapcontext.c: Likewise.
18635         * manual/examples/termios.c: Likewise.
18636         * manual/examples/testopt.c: Likewise.
18637         * manual/examples/testpass.c: Likewise.
18638         * manual/examples/timeval_subtract.c: Likewise.
18639
18640         [BZ #13792]
18641         * manual/time.texi (Elapsed Time): Move timeval_subtract example
18642         function to ...
18643         * manual/timeval_subtract.c.texi: ... here, new file.
18644
18645 2012-03-02  David S. Miller  <davem@davemloft.net>
18646
18647         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
18648
18649 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
18650
18651         [BZ #3976]
18652         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
18653         (__sin): Save and restore rounding mode and use round-to-nearest
18654         for all computations.
18655         (__cos): Save and restore rounding mode and use round-to-nearest
18656         for all computations.
18657         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
18658         <fenv.h>.
18659         (tan): Save and restore rounding mode and use round-to-nearest for
18660         all computations.
18661         * math/libm-test.inc (cos_test_tonearest): New function.
18662         (cos_test_towardzero): Likewise.
18663         (cos_test_downward): Likewise.
18664         (cos_test_upward): Likewise.
18665         (sin_test_tonearest): Likewise.
18666         (sin_test_towardzero): Likewise.
18667         (sin_test_downward): Likewise.
18668         (sin_test_upward): Likewise.
18669         (tan_test_tonearest): Likewise.
18670         (tan_test_towardzero): Likewise.
18671         (tan_test_downward): Likewise.
18672         (tan_test_upward): Likewise.
18673         (main): Call the new functions.
18674         * sysdeps/i386/fpu/libm-test-ulps: Update.
18675         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18676
18677         [BZ #10135]
18678         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
18679         small n, then large n, before computing and testing k+n.
18680         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
18681         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
18682         Likewise.
18683         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
18684         Likewise.
18685         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
18686         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
18687         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
18688         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
18689         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
18690         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
18691         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
18692         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
18693         * math/libm-test.inc (scalbn_test): Add more tests.
18694         (scalbln_test): Likewise.
18695
18696         * manual/filesys.texi (mode_t): Describe constraints on size and
18697         signedness, not exact equivalence to a particular type.
18698         (ino_t): Likewise.
18699         (ino64_t): Likewise.
18700         (dev_t): Likewise.
18701         (nlink_t): Likewise.
18702         (blkcnt_t): Likewise.
18703         (blkcnt64_t): Likewise.
18704         * manual/llio.texi (off_t): Likewise.
18705
18706         [BZ #3976]
18707         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
18708         (__ieee754_exp): Save and restore rounding mode and use
18709         round-to-nearest for all computations.
18710         * math/libm-test.inc (exp_test_tonearest): New function.
18711         (exp_test_towardzero): Likewise.
18712         (exp_test_downward): Likewise.
18713         (exp_test_upward): Likewise.
18714         (main): Call the new functions.
18715         * sysdeps/i386/fpu/libm-test-ulps: Update.
18716         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18717
18718 2012-03-01  Chris Demetriou  <cgd@google.com>
18719
18720         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
18721         have predictable order.
18722
18723 2012-03-01  David S. Miller  <davem@davemloft.net>
18724
18725         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
18726
18727         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
18728         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
18729         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
18730         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
18731
18732         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
18733         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
18734         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
18735         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
18736         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
18737         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
18738         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
18739         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
18740         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
18741
18742         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18743
18744         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
18745         * sysdeps/sparc/fpu/libm-test-ulps: to here.
18746         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
18747
18748         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
18749         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
18750         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
18751         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
18752         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
18753         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
18754         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
18755         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
18756         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
18757         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
18758         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
18759         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
18760         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
18761         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
18762         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
18763         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18764         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
18765         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
18766         * sysdeps/sparc/elf/configure: Regenerated.
18767
18768 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
18769
18770         * configure.in (AS, LD): Require binutils 2.20 or later.
18771         * configure: Regenerated.
18772         * manual/install.texi (Tools for Compilation): Give binutils 2.20
18773         as required minimum version.
18774         * INSTALL: Regenerated.
18775
18776         [BZ #2541]
18777         [BZ #4108]
18778         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
18779         before squaring exponent.
18780         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
18781         bottom long double and 27 bits of top long double before squaring
18782         exponent.
18783         * math/libm-test.inc (erfc_test): Add more tests.
18784         * sysdeps/i386/fpu/libm-test-ulps: Update.
18785         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
18786         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18787
18788 2012-03-01  Kai Tietz  <ktietz@redhat.com>
18789
18790         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
18791         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
18792         containing bit-fields.
18793         * soft-fp/extended.h (_FP_UNION_E): Likewise.
18794         * soft-fp/single.h (_FP_UNION_S): Likewise.
18795         * soft-fp/double.h (_FP_UNION_D): Likewise.
18796
18797 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
18798
18799         [BZ #13786]
18800         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
18801         not include ../strcmp.S.
18802         [USE_AS_STRNCASECMP_L]: Likewise.
18803         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
18804         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
18805         * sysdeps/i386/i686/multiarch/strncase_l-c.c
18806         (__strncasecmp_l_ia32): Define as alias to
18807         __strncasecmp_l_nonascii.
18808
18809         [BZ #5794]
18810         * math/libm-test.inc (expm1_test): Add test for bug 5794.
18811         * sysdeps/i386/fpu/libm-test-ulps: Update.
18812         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18813
18814         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
18815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18816
18817 2012-02-29  Jeff Law  <law@redhat.com>
18818
18819         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
18820         out of bounds read.
18821
18822 2012-02-29  Marek Polacek  <polacek@redhat.com>
18823
18824         [BZ #13706]
18825         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
18826         * elf/Makefile: Add rules to run tst-unused-dep.out.
18827
18828 2012-02-28  David S. Miller  <davem@davemloft.net>
18829
18830         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
18831         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
18832         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
18833         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
18834         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
18835         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
18836
18837 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
18838
18839         * math/libm-test.inc (llround_test): Move one test from
18840         lround_test.  Use TEST_f_L in moved test.
18841         (lround_test): Move misplaced test to llround_test.  Add testcase
18842         from bug 2561.
18843
18844 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
18845
18846         * sysdeps/x86_64/fpu/e_expf.S: New file.
18847         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
18848
18849 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
18850
18851         [BZ #13637]
18852         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
18853         of remain_len that may cause incomplete multi-byte character and
18854         false match.
18855         * posix/bug-regex33.c: New file.
18856         * posix/Makefile (tests): Add bug-regex33.
18857
18858 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
18859
18860         * manual/macros.texi: New file.
18861         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
18862         * manual/libc.texinfo: Include macros.texi.
18863         * manual/creatute.texi: Likewise.
18864         * manual/install.texi: Likewise.
18865         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
18866         @glibcadj{} in references to the GNU C Library.
18867         * manual/charset.texi: Likewise.
18868         * manual/conf.texi: Likewise.
18869         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
18870         when not using those macros.
18871         * manual/creature.texi: Likewise.
18872         * manual/crypt.texi: Likewise.
18873         * manual/errno.texi: Likewise.
18874         * manual/filesys.texi: Likewise.
18875         * manual/header.texi: Likewise.
18876         * manual/install.texi: Likewise.
18877         * manual/intro.texi: Likewise.
18878         * manual/io.texi: Likewise.
18879         * manual/job.texi: Likewise.
18880         * manual/lang.texi: Likewise.
18881         * manual/libc.texiinfo: Likewise.
18882         * manual/llio.texi: Likewise.
18883         * manual/locale.texi: Likewise.
18884         * manual/maint.texi: Likewise.
18885         * manual/math.texi: Likewise.
18886         * manual/memory.texi: Likewise.
18887         * manual/message.texi: Likewise.
18888         * manual/nss.texi: Likewise.
18889         * manual/pattern.texi: Likewise.
18890         * manual/process.texi: Likewise.
18891         * manual/resource.texi: Likewise.
18892         * manual/search.texi: Likewise.
18893         * manual/setjmp.texi: Likewise.
18894         * manual/signal.texi: Likewise.
18895         * manual/socket.texi: Likewise.
18896         * manual/startup.texi: Likewise.
18897         * manual/stdio.texi: Likewise.
18898         * manual/string.texi: Likewise.
18899         * manual/sysinfo.texi: Likewise.
18900         * manual/syslog.texi: Likewise.
18901         * manual/terminal.texi: Likewise.
18902         * manual/time.texi: Likewise.
18903         * manual/users.texi: Likewise.
18904         * INSTALL: Regenerated.
18905         * NOTES: Regenerated.
18906         * sysdeps/gnu/errlist.c: Regenerated.
18907
18908 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
18909
18910         * include/dirent.h: Include <dirstream.h> before
18911         <dirent/dirent.h>.
18912
18913 2012-02-28  David S. Miller  <davem@davemloft.net>
18914
18915         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
18916         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
18917         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
18918         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
18919
18920 2012-02-27  David S. Miller  <davem@davemloft.net>
18921
18922         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
18923         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
18924         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
18925         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
18926
18927         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
18928         frame pointer instead of stack pointer relative arg slot.
18929         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
18930         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
18931         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
18932
18933 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
18934
18935         [BZ #3992]
18936         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
18937
18938 2012-02-27  David S. Miller  <davem@davemloft.net>
18939
18940         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
18941         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
18942         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
18943         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
18944         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
18945         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
18946         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
18947         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
18948
18949 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
18950
18951         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
18952         later.  Allow versions 5-9.
18953         * configure: Regenerated.
18954         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
18955         required minimum version and 4.6 as recommended version.  Do not
18956         mention bugs in GCC 2.7 and 2.8.
18957         * INSTALL: Regenerated.
18958
18959 2012-02-27  David S. Miller  <davem@davemloft.net>
18960
18961         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
18962         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
18963         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
18964         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
18965         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
18966         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
18967         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
18968         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
18969
18970         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
18971         manipulate bits before adding and subtracting TWO112[sx].
18972         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
18973
18974 2012-02-27  Roland McGrath  <roland@hack.frob.com>
18975
18976         [BZ #13775]
18977         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
18978         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
18979         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
18980         being in POSIX, because they are in 1003.1-2008.
18981
18982         * rt/tst-aio.c: Include <fcntl.h>.
18983         * rt/tst-aio7.c: Likewise.
18984         * rt/tst-aio64.c: Likewise.
18985
18986         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
18987
18988 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
18989
18990         * manual/install.texi (--with-headers): Describe headers as
18991         interface headers, not private headers.
18992         (Specific advice for GNU/Linux systems): Describe use of headers
18993         from "make headers_install", not private headers from older
18994         kernels.
18995         * INSTALL: Regenerated.
18996         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
18997         Change to 2.6.19.
18998         * sysdeps/unix/sysv/linux/configure: Regenerated.
18999
19000         * manual/llio.texi (fclean): Remove documentation.
19001
19002         * manual/Makefile (libc-texi-generated): New variable.  Include
19003         version.texi.
19004         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
19005         $(libc-texi-generated), not duplicated list of files.
19006         (version.texi, stamp-version): New rules.
19007         (realclean): Remove $(libc-texi-generated), not individual files
19008         from that list.  Do not remove dir-add.texinfo.
19009         * manual/libc.texinfo: Comment out uses of edition numbers and
19010         references to printed manual.  Remove last-updated dates.
19011         (EDITION): Comment out.
19012         (ISBN): Likewise.
19013         (VERSION, UPDATED): Remove.
19014         (version.texi): Include.
19015
19016 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
19017
19018         * sysdeps/posix/spawni.c: Include <signal.h>.
19019         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
19020         * sysdeps/pthread/aio_fsync.c: Likewise.
19021
19022 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
19023
19024         * conform/Makefile (tests): Run only when not cross-compiling and
19025         when fast-check is not defined.
19026
19027         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
19028         * conform/data/limits.h-data: Fixes for POSIX2008.
19029         * conform/run-conformtest.sh: Run all tests.
19030         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
19031         headers.
19032         * include/bits/dlfcn.h: Likewise.
19033         * include/langinfo.h: Likewise.
19034         * include/monetary.h: Likewise.
19035         * include/sys/poll.h: Likewise.
19036
19037         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
19038         for __USE_GNU.
19039         * posix/spawn.h: Define __need_sigset_t.
19040         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
19041         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
19042         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
19043         to get sigevent_t only.
19044         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
19045         only for __USE_GNU.
19046         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19047         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
19048         process_vm_writev only for __USE_GNU.
19049         * termios/termios.h: Declare tcgetsid also for POSIX2008.
19050
19051         * conform/Makefile: For now ignore errors from run-conformtest.
19052         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
19053         POSIX to avoid namespace pollution.  Don't prepend headers.
19054         * conform/data/aio.h-data: Fixes for POSIX testing.
19055         * conform/data/fcntl.h-data: Likewise.
19056         * conform/data/glob.h-data: Likewise.
19057         * conform/data/grp.h-data: Likewise.
19058         * conform/data/pthread.h-data: Likewise.
19059         * conform/data/pwd.h-data: Likewise.
19060         * conform/data/signal.h-data: Likewise.
19061         * conform/data/spawn.h-data: Likewise.
19062         * conform/data/stdio.h-data: Likewise.
19063         * conform/data/stdlib.h-data: Likewise.
19064         * conform/data/stropts.h-data: Likewise.
19065         * conform/data/sys/mman.h-data: Likewise.
19066         * conform/data/sys/stat.h-data: Likewise.
19067         * conform/data/sys/types.h-data: Likewise.
19068         * conform/data/sys/wait.h-data: Likewise.
19069         * conform/data/time.h-data: Likewise.
19070         * conform/data/unistd.h-data: Likewise.
19071         * conform/data/utime.h-data: Likewise.
19072
19073         * io/sys/stat.h: fchmod was always in POSIX.
19074         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
19075         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
19076         * rt/aio.h: Define __need_timespec before including <time.h>.
19077         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
19078         struct.  Add forward declaration of pthread_attr_t and use it in
19079         sigevent.
19080         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19081         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19082         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
19083         always remove CLK_TCK definition.
19084
19085 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
19086
19087         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
19088
19089 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
19090
19091         * conform/run-conformtest.sh: New file.
19092         * conform/Makefile: Run run-conformtest for tests.
19093         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
19094         support.
19095
19096         * conform/data/uchar.h-data: New file.
19097         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
19098         * conform/data/arpa/inet.h-data: Likewise.
19099         * conform/data/assert.h-data: Likewise.
19100         * conform/data/complex.h-data: Likewise.
19101         * conform/data/cpio.h-data: Likewise.
19102         * conform/data/ctype.h-data: Likewise.
19103         * conform/data/dirent.h-data: Likewise.
19104         * conform/data/dlfcn.h-data: Likewise.
19105         * conform/data/errno.h-data: Likewise.
19106         * conform/data/fcntl.h-data: Likewise.
19107         * conform/data/float.h-data: Likewise.
19108         * conform/data/fmtmsg.h-data: Likewise.
19109         * conform/data/fnmatch.h-data: Likewise.
19110         * conform/data/ftw.h-data: Likewise.
19111         * conform/data/glob.h-data: Likewise.
19112         * conform/data/grp.h-data: Likewise.
19113         * conform/data/iconv.h-data: Likewise.
19114         * conform/data/inttypes.h-data: Likewise.
19115         * conform/data/langinfo.h-data: Likewise.
19116         * conform/data/libgen.h-data: Likewise.
19117         * conform/data/limits.h-data: Likewise.
19118         * conform/data/locale.h-data: Likewise.
19119         * conform/data/math.h-data: Likewise.
19120         * conform/data/monetary.h-data: Likewise.
19121         * conform/data/mqueue.h-data: Likewise.
19122         * conform/data/ndbm.h-data: Likewise.
19123         * conform/data/net/if.h-data: Likewise.
19124         * conform/data/netdb.h-data: Likewise.
19125         * conform/data/netinet/in.h-data: Likewise.
19126         * conform/data/nl_types.h-data: Likewise.
19127         * conform/data/poll.h-data: Likewise.
19128         * conform/data/pthread.h-data: Likewise.
19129         * conform/data/pwd.h-data: Likewise.
19130         * conform/data/regex.h-data: Likewise.
19131         * conform/data/sched.h-data: Likewise.
19132         * conform/data/search.h-data: Likewise.
19133         * conform/data/semaphore.h-data: Likewise.
19134         * conform/data/setjmp.h-data: Likewise.
19135         * conform/data/signal.h-data: Likewise.
19136         * conform/data/spawn.h-data: Likewise.
19137         * conform/data/stdarg.h-data: Likewise.
19138         * conform/data/stdio.h-data: Likewise.
19139         * conform/data/stdlib.h-data: Likewise.
19140         * conform/data/string.h-data: Likewise.
19141         * conform/data/strings.h-data: Likewise.
19142         * conform/data/stropts.h-data: Likewise.
19143         * conform/data/sys/ipc.h-data: Likewise.
19144         * conform/data/sys/mman.h-data: Likewise.
19145         * conform/data/sys/msg.h-data: Likewise.
19146         * conform/data/sys/resource.h-data: Likewise.
19147         * conform/data/sys/select.h-data: Likewise.
19148         * conform/data/sys/sem.h-data: Likewise.
19149         * conform/data/sys/shm.h-data: Likewise.
19150         * conform/data/sys/socket.h-data: Likewise.
19151         * conform/data/sys/stat.h-data: Likewise.
19152         * conform/data/sys/statvfs.h-data: Likewise.
19153         * conform/data/sys/time.h-data: Likewise.
19154         * conform/data/sys/timeb.h-data: Likewise.
19155         * conform/data/sys/times.h-data: Likewise.
19156         * conform/data/sys/types.h-data: Likewise.
19157         * conform/data/sys/uio.h-data: Likewise.
19158         * conform/data/sys/un.h-data: Likewise.
19159         * conform/data/sys/utsname.h-data: Likewise.
19160         * conform/data/sys/wait.h-data: Likewise.
19161         * conform/data/syslog.h-data: Likewise.
19162         * conform/data/tar.h-data: Likewise.
19163         * conform/data/termios.h-data: Likewise.
19164         * conform/data/utime.h-data: Likewise.
19165         * conform/data/utmpx.h-data: Likewise.
19166         * conform/data/varargs.h-data: Likewise.
19167         * conform/data/wchar.h-data: Likewise.
19168         * conform/data/wctype.h-data: Likewise.
19169         * conform/data/wordexp.h-data: Likewise.
19170
19171         * include/stropts.h: New file.
19172         * include/uchar.h: New file.
19173         * include/aio.h: Changes to allow conformtest.pl to use the headers.
19174         * include/assert.h: Likewise.
19175         * include/ctype.h: Likewise.
19176         * include/dirent.h: Likewise.
19177         * include/dlfcn.h: Likewise.
19178         * include/fcntl.h: Likewise.
19179         * include/fnmatch.h: Likewise.
19180         * include/glob.h: Likewise.
19181         * include/grp.h: Likewise.
19182         * include/libio.h: Likewise.
19183         * include/locale.h: Likewise.
19184         * include/math.h: Likewise.
19185         * include/net/if.h: Likewise.
19186         * include/netdb.h: Likewise.
19187         * include/netinet/in.h: Likewise.
19188         * include/pthread.h: Likewise.
19189         * include/pwd.h: Likewise.
19190         * include/regex.h: Likewise.
19191         * include/sched.h: Likewise.
19192         * include/search.h: Likewise.
19193         * include/setjmp.h: Likewise.
19194         * include/signal.h: Likewise.
19195         * include/stdio.h: Likewise.
19196         * include/stdlib.h: Likewise.
19197         * include/string.h: Likewise.
19198         * include/sys/cdefs.h: Likewise.
19199         * include/sys/mman.h: Likewise.
19200         * include/sys/msg.h: Likewise.
19201         * include/sys/resource.h: Likewise.
19202         * include/sys/select.h: Likewise.
19203         * include/sys/socket.h: Likewise.
19204         * include/sys/stat.h: Likewise.
19205         * include/sys/statvfs.h: Likewise.
19206         * include/sys/time.h: Likewise.
19207         * include/sys/times.h: Likewise.
19208         * include/sys/uio.h: Likewise.
19209         * include/sys/utsname.h: Likewise.
19210         * include/sys/wait.h: Likewise.
19211         * include/termios.h: Likewise.
19212         * include/time.h: Likewise.
19213         * include/ulimit.h: Likewise.
19214         * include/unistd.h: Likewise.
19215         * include/utime.h: Likewise.
19216         * include/wchar.h: Likewise.
19217         * include/wctype.h: Likewise.
19218         * include/wordexp.h: Likewise.
19219
19220         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
19221
19222         * time/time.h: TIME_UTC must be a macro.
19223         Make timespec_get available for ISO C11 only as well.
19224
19225 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
19226
19227         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
19228         Reported by Peng Haitao <penght@cn.fujitsu.com>.
19229
19230 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
19231
19232         * configure.in: Use -o not -a in test for unsupported multi-arch.
19233
19234 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
19235
19236         * manual/texinfo.tex: Update to version 2012-01-19.16.
19237
19238 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
19239
19240         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
19241
19242 2012-02-24  Roland McGrath  <roland@hack.frob.com>
19243
19244         [BZ #13738]
19245         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
19246         * manual/fdl-1.3.texi: New file.
19247         * manual/fdl-1.1.texi: File removed.
19248
19249         [BZ #13738]
19250         * manual/libc.texinfo (FDL_VERSION): New @set.
19251         Use it for mention of FDL in cover text.
19252         (Documentation License): Use it in @include file name.
19253
19254 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
19255             Roland McGrath  <roland@hack.frob.com>
19256
19257         [BZ #5461]
19258         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
19259         not LONG_LONG_MAX and LONG_LONG_MIN.
19260         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
19261         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
19262         name.
19263         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
19264
19265 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
19266
19267         [BZ #2547]
19268         [BZ #11365]
19269         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
19270         manipulate bits before adding and subtracting TWO23[sx].
19271         * math/libm-test.inc (nearbyint_test): Add more tests.
19272
19273 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
19274
19275         [BZ #2548]
19276         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
19277         bits before adding and subtracting TWO23[sx].
19278         * math/libm-test.inc (rint_test): Add more tests.
19279         (rint_test_tonearest): Likewise.
19280         (rint_test_towardzero): Likewise.
19281         (rint_test_downward): Likewise.
19282         (rint_test_upward: Likewise.
19283
19284 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
19285
19286         [BZ #10110]
19287         * include/stdc-predef.h: New file.  Extracted from features.h.
19288         * include/features.h: Include stdc-predef.h.
19289         * Makefile (headers): Add stdc-predef.h.
19290         * CONFORMANCE (Compiler limitations): Update.
19291
19292 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
19293
19294         * manual/libc.texinfo (VERSION, UPDATED): Revert.
19295
19296 2012-02-21  David S. Miller  <davem@davemloft.net>
19297
19298         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
19299         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
19300
19301 2012-02-20  David S. Miller  <davem@davemloft.net>
19302
19303         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
19304         using a normal save/restore sequence, rather than allocating a
19305         dummy stack frame just to store a frame pointer and restore.
19306         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
19307
19308 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
19309
19310         * manual/install.texi: Fix stray word in line-wrapped comment.
19311
19312 2012-02-20  David S. Miller  <davem@davemloft.net>
19313
19314         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
19315         both binutils and gcc support GOTDATA.
19316
19317         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
19318         "rd %pc" in the PIC register setup sequences.
19319
19320         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
19321         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
19322         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
19323         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
19324         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
19325         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
19326         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
19327         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
19328         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
19329         (SYSCALL_ERROR_HANDLER): Likewise.
19330         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
19331         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
19332         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
19333         (SYSCALL_ERROR_HANDLER): Likewise.
19334
19335         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
19336         (HAVE_GCC_GOTDATA): New.
19337         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
19338         relocation support in both binutils and gcc.
19339         * sysdeps/sparc/elf/configure: Regenerate.
19340
19341         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
19342         * sysdeps/sparc/sparc32/elf/configure: Delete.
19343         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
19344         * sysdeps/sparc/sparc64/elf/configure: Delete.
19345         * sysdeps/sparc/elf/configure.in: New file.
19346         * sysdeps/sparc/elf/configure: Generate.
19347
19348         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
19349         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
19350         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
19351         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
19352         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
19353
19354 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
19355
19356         * manual/install.texi: Do not mention specific glibc version
19357         numbers.
19358         * manual/libc.texinfo (VERSION, UPDATED): Update.
19359         (@copying): Use @copyright{} and range of years.
19360
19361 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
19362
19363         [BZ #13695]
19364         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
19365         [crti.S not in sysdirs] (generated): Do not append.
19366         [crti.S not in sysdirs] (omit-deps): Likewise.
19367         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
19368         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
19369         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
19370         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
19371         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
19372         Likewise.
19373         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
19374         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
19375         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
19376         * csu/defs.awk: Remove file.
19377         * sysdeps/generic/initfini.c: Likewise.
19378         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
19379         variable.
19380         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
19381         Likewise.
19382
19383 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
19384
19385         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
19386         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
19387         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
19388         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
19389         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
19390         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
19391         <bits/epoll.h>.
19392         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
19393         (__EPOLL_PACKED): Define to empty if not defined by
19394         <bits/epoll.h>.
19395         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
19396         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19397         bits/epoll.h.
19398
19399 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
19400
19401         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
19402         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
19403         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
19404         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
19405         <bits/timerfd.h>.
19406         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
19407         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19408         bits/timerfd.h.
19409
19410 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
19411
19412         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
19413         in C locale.
19414         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
19415         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
19416         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
19417         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19418
19419 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
19420
19421         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
19422         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
19423
19424 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
19425
19426         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
19427         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
19428         defined.
19429         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
19430         Likewise.
19431         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
19432         entry for 2.16.
19433
19434 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
19435
19436         * math/w_acos.c: Use non-signaling floating-point comparisons.
19437         * math/w_acosf.c: Likewise.
19438         * math/w_acosh.c: Likewise.
19439         * math/w_acoshf.c: Likewise.
19440         * math/w_acoshl.c: Likewise.
19441         * math/w_acosl.c: Likewise.
19442         * math/w_asin.c: Likewise.
19443         * math/w_asinf.c: Likewise.
19444         * math/w_asinl.c: Likewise.
19445         * math/w_atanh.c: Likewise.
19446         * math/w_atanhf.c: Likewise.
19447         * math/w_atanhl.c: Likewise.
19448         * math/w_exp2.c: Likewise.
19449         * math/w_exp2f.c: Likewise.
19450         * math/w_exp2l.c: Likewise.
19451         * math/w_j0.c: Likewise.
19452         * math/w_j0f.c: Likewise.
19453         * math/w_j0l.c: Likewise.
19454         * math/w_j1.c: Likewise.
19455         * math/w_j1f.c: Likewise.
19456         * math/w_j1l.c: Likewise.
19457         * math/w_jn.c: Likewise.
19458         * math/w_jnf.c: Likewise.
19459         * math/w_log.c: Likewise.
19460         * math/w_log10.c: Likewise.
19461         * math/w_log10f.c: Likewise.
19462         * math/w_log10l.c: Likewise.
19463         * math/w_log2.c: Likewise.
19464         * math/w_log2f.c: Likewise.
19465         * math/w_log2l.c: Likewise.
19466         * math/w_logf.c: Likewise.
19467         * math/w_logl.c: Likewise.
19468         * math/w_sqrt.c: Likewise.
19469         * math/w_sqrtf.c: Likewise.
19470         * math/w_sqrtl.c: Likewise.
19471         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
19472         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
19473         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
19474         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
19475         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
19476
19477 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
19478
19479         [BZ #9739]
19480         * manual/string.texi (strnlen): Use correct parameter name in
19481         equivalent expression.
19482
19483 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
19484
19485         [BZ #11174]
19486         * manual/users.texi (seteuid): Consistently use neweuid for
19487         argument name.
19488
19489 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
19490
19491         [BZ #13704]
19492         * manual/nss.texi (Services in the NSS configuration): Correct
19493         list of services in example configuration file.
19494
19495 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
19496
19497         [BZ #11322]
19498         * manual/arith.texi: Remove statements about negative zero
19499         behaving identically to zero.
19500
19501 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
19502
19503         [BZ #5993]
19504         * manual/install.texi: Do not document upgrading from libc5.
19505
19506 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
19507
19508         [BZ #4596]
19509         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
19510
19511 2012-02-18  David S. Miller  <davem@davemloft.net>
19512
19513         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
19514         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
19515         %o7 across the call.
19516         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
19517         instead.
19518         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
19519         SETUP_PIC_REG_LEAF.
19520         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
19521         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
19522         * sysdeps/sparc/crtn.S: Likewise.
19523
19524 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
19525
19526         * aout/Makefile: Remove.
19527
19528 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
19529
19530         [BZ #13058]
19531         * manual/examples/argp-ex1.c (main): Format definition in GNU
19532         style.
19533         * manual/examples/argp-ex2.c (main): Likewise.
19534         * manual/examples/argp-ex3.c (main): Likewise.
19535         * manual/examples/argp-ex4.c (main): Likewise.
19536         * manual/examples/longopt.c (main): Use new-style prototype
19537         definition.
19538         * manual/examples/strncat.c (main): Specify return type and use
19539         (void) for arguments.
19540         * manual/examples/subopt.c (main): Use char **argv argument.
19541
19542 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
19543
19544         [BZ #5077]
19545         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
19546         rounding modes.
19547
19548 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
19549
19550         [BZ #6907]
19551         * manual/string.texi (strchr): Change when strchrnul is
19552         recommended.
19553
19554 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
19555
19556         [BZ #174]
19557         * manual/locale.texi (setlocale): Document LOCPATH.
19558
19559 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
19560
19561         [BZ #10210]
19562         * manual/process.texi (execle): Move @dots{} before last argument.
19563
19564 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
19565
19566         [BZ #12047]
19567         * manual/charset.texi (Generic Charset Conversion): Fix typo
19568         (LC_TYPE -> LC_CTYPE).
19569
19570 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
19571
19572         [BZ #5805]
19573         * manual/arith.texi (scalbn): Use @var{} on parameter names.
19574         (scalbnf): Likewise.
19575         (scalbnl): Likewise.
19576         (scalbln): Likewise.
19577         (scalblnf): Likewise.
19578         (scalblnl): Likewise.
19579         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
19580         (vwarnx): Likewise.
19581         (verr): Likewise.
19582         (verrx): Likewise.
19583         * manual/filesys.texi (telldir): Use braces around return type.
19584         * manual/llio.texi (mmap): Add space after comma.
19585         (mmap64): Likewise.
19586         * manual/math.texi (jn): Use @var{} on parameter names.
19587         (jnf): Likewise.
19588         (jnl): Likewise.
19589         (yn): Likewise.
19590         (ynf): Likewise.
19591         (ynl): Likewise.
19592         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
19593         line.
19594         * manual/resource.texi (ulimit): Use @dots{} instead of literal
19595         "...".
19596         (sched_get_priority_min): Remove semicolon on @deftypefun line.
19597         (sched_get_priority_max): Likewise.
19598         * manual/signal.texi (sigvec): Add space after comma.
19599         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
19600         names.
19601         (if_indextoname): Likewise.
19602         (if_freenameindex): Likewise.
19603         (sendto): Use ',' instead of '.' in prototype.
19604         * manual/startup.texi (syscall): Use @dots{} instead of literal
19605         "...".
19606         * manual/stdio.texi (__fpending): Separate initial words of
19607         paragraph from @deftypefun line.
19608         * manual/syslog.texi (syslog): Use @dots{} instead of literal
19609         "...".
19610         (vsyslog): Use @var{} on parameter names.
19611         * manual/terminal.texi (stty): Use @var{} on parameter names.
19612         * manual/users.texi (getutmp): Use @var{} on parameter names.
19613         (getutmpx): Likewise.
19614
19615 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
19616
19617         [BZ #6884]
19618         * manual/stdio.texi (fopen): Fix typos in description of
19619         ",ccs=STRING".
19620
19621 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
19622
19623         [BZ #4026]
19624         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
19625         get clock_id definition.
19626
19627 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
19628
19629         [BZ #4822]
19630         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
19631         (madvise): Cast every argument to void on its own.
19632
19633 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
19634
19635         [BZ #9902]
19636         * manual/startup.texi (Exit Status): Fix typo.
19637
19638 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
19639
19640         [BZ #10140]
19641         * manual/examples/argp-ex1.c: Include <stdlib.h>.
19642         * manual/examples/argp-ex2.c: Likewise.
19643         * manual/examples/argp-ex3.c: Likewise.
19644
19645 2012-02-16  Richard Henderson  <rth@redhat.com>
19646
19647         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
19648         * sysdeps/s390/s390-32/initfini.c: Remove.
19649         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
19650         * sysdeps/s390/s390-64/initfini.c: Remove.
19651
19652 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
19653
19654         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
19655         compiler output for sysdeps/generic/initfini.c.
19656         * sysdeps/sh/elf/initfini.c: Remove file.
19657
19658 2012-02-16  David S. Miller  <davem@davemloft.net>
19659
19660         [BZ #11494]
19661         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
19662
19663         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
19664         * sysdeps/sparc/crti.S: New file.
19665         * sysdeps/sparc/crtn.S: New file.
19666         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
19667         * sysdeps/sparc/sparc64/Makefile: Likewise.
19668
19669 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
19670
19671         [BZ #3335]
19672         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
19673
19674 2012-02-15  Roland McGrath  <roland@hack.frob.com>
19675
19676         [BZ #4822]
19677         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
19678
19679         * mach/devstream.c (cookie_io_functions_t): Macro removed.
19680         (write, read, close): Likewise.
19681         Patch by Aurelien Jarno <aurelien@aurel32.net>.
19682
19683 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
19684
19685         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
19686         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
19687         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
19688         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
19689         <bits/signalfd.h>.
19690         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
19691         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19692         bits/signalfd.h.
19693
19694 2012-02-14  Marek Polacek  <polacek@redhat.com>
19695
19696         * sysdeps/x86_64/crti.S: New file.
19697         * sysdeps/x86_64/crtn.S: New file.
19698         * sysdeps/x86_64/elf/initfini.c: Remove file.
19699
19700 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
19701
19702         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
19703         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
19704         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
19705         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
19706         <bits/inotify.h>.
19707         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
19708         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19709         bits/inotify.h.
19710
19711 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
19712
19713         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
19714         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
19715         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
19716         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
19717         <bits/eventfd.h>.
19718         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
19719         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19720         bits/eventfd.h.
19721
19722 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
19723
19724         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
19725         __feraiseexcept instead of feraiseexcept.
19726
19727         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
19728         nanosleep invocations.
19729         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
19730         strings, and add error checking for a nanosleep invocations.
19731
19732 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19733
19734         Replace FSF snail mail address with URLs, as per GNU coding standards.
19735         Most of the snail mail addresses were wrong anyway, and omitting
19736         them makes the source code easier to maintain.  Almost all of the
19737         changes are to license notices and to locale LC_IDENTIFICATION
19738         addresses, except for this one:
19739         * manual/libc.texinfo: In "Published by", give the FSF's URL,
19740         not its snail mail address.
19741
19742 2012-02-09  Richard Henderson  <rth@twiddle.net>
19743
19744         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
19745         of kernel-features.h.
19746
19747         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
19748
19749 2012-02-08  Marek Polacek  <polacek@redhat.com>
19750
19751         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
19752         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
19753         * sysdeps/gnu/_G_config.h: Likewise.
19754         * sysdeps/generic/_G_config.h: Likewise.
19755
19756 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
19757
19758         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
19759         tests.
19760         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19761
19762         * sysdeps/powerpc/powerpc32/crti.S: New file.
19763         * sysdeps/powerpc/powerpc32/crtn.S: New file.
19764         * sysdeps/powerpc/powerpc64/crti.S: New file.
19765         * sysdeps/powerpc/powerpc64/crtn.S: New file.
19766
19767         * Makeconfig (have-initfini): Don't set.
19768         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
19769         * configure.in (nopic_initfini): Don't substitute.
19770         * config.h.in (HAVE_INITFINI): Don't #undef.
19771         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
19772         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
19773
19774 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
19775
19776         Support crti.S and crtn.S provided directly by architectures.
19777         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
19778         [crti.S in sysdirs] (omit-deps): Likewise.
19779         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
19780         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
19781         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
19782         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
19783         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
19784         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
19785         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
19786         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
19787         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
19788         compiler output for sysdeps/generic/initfini.c.
19789         * sysdeps/i386/elf/Makefile: Remove file.
19790         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
19791
19792 2012-02-07  Marek Polacek  <polacek@redhat.com>
19793
19794         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
19795         * sysdeps/gnu/_G_config.h: Likewise.
19796         * sysdeps/mach/hurd/_G_config.h: Likewise.
19797
19798 2012-02-07  Marek Polacek  <polacek@redhat.com>
19799
19800         * math/Makefile (tests): Add tst-CMPLX2.
19801         * math/tst-CMPLX2.c: New file.
19802
19803 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
19804
19805         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
19806
19807         * math/libm-test.inc (jn_test): Add missing L suffix.
19808
19809 2012-02-06  Marek Polacek  <polacek@redhat.com>
19810
19811         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
19812         * sysdeps/i386/fpu/e_powf.S: Likewise.
19813         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
19814         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
19815         * sysdeps/i386/fpu/e_acosh.S: Likewise.
19816         * sysdeps/i386/fpu/e_pow.S: Likewise.
19817         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
19818         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
19819         * sysdeps/i386/fpu/s_expm1.S: Likewise.
19820         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
19821         * sysdeps/i386/fpu/e_log2.S: Likewise.
19822         * sysdeps/i386/fpu/e_log2l.S: Likewise.
19823         * sysdeps/i386/fpu/e_scalb.S: Likewise.
19824         * sysdeps/i386/fpu/e_powl.S: Likewise.
19825         * sysdeps/i386/fpu/s_log1p.S: Likewise.
19826         * sysdeps/i386/fpu/e_log10f.S: Likewise.
19827         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
19828         * sysdeps/i386/fpu/e_logl.S: Likewise.
19829         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
19830         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
19831         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
19832         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
19833         * sysdeps/i386/fpu/e_log2f.S: Likewise.
19834         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
19835         * sysdeps/i386/fpu/e_log.S: Likewise.
19836         * sysdeps/i386/fpu/s_cexp.S: Likewise.
19837         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
19838         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
19839         * sysdeps/i386/fpu/e_logf.S: Likewise.
19840         * sysdeps/i386/fpu/e_log10l.S: Likewise.
19841         * sysdeps/i386/fpu/e_atanh.S: Likewise.
19842         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
19843         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
19844         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
19845         * sysdeps/i386/fpu/e_log10.S: Likewise.
19846         * sysdeps/i386/fpu/s_frexp.S: Likewise.
19847         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
19848         * sysdeps/i386/fpu/s_asinh.S: Likewise.
19849         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
19850         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
19851         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
19852         * sysdeps/i386/asm-syntax.h: Likewise.
19853         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
19854         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
19855         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
19856         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
19857         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
19858         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
19859         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
19860         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
19861         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
19862         * sysdeps/powerpc/sysdep.h: Likewise.
19863         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19864         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
19865
19866 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
19867
19868         [BZ #411]
19869         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
19870
19871 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
19872
19873         * sysdeps/i386/sysdep.h: Include <features.h>.
19874         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
19875         version.
19876
19877 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
19878
19879         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
19880         Define.
19881         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
19882         LOAD_PIC_REG_STR.
19883
19884 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
19885
19886         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
19887         (SETUP_PIC_REG): Use GET_PC_THUNK.
19888         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
19889         macro.
19890
19891 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
19892
19893         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
19894         for non-PIC compilation.
19895         (SETUP_PIC_REG): Add .p2align directive.
19896         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
19897         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
19898         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
19899         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
19900         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
19901         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
19902         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
19903         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19904         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
19905         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
19906         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
19907         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
19908         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
19909         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
19910         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
19911         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
19912         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
19913         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
19914         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
19915         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
19916         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
19917         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
19918         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
19919         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
19920         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
19921         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
19922         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
19923         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
19924         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
19925         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
19926         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
19927         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
19928         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
19929         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
19930         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
19931         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
19932         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
19933         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
19934         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
19935         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
19936         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
19937
19938 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
19939
19940         * math/tst-CMPLX.c: Include <stdio.h>.
19941
19942 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
19943
19944         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
19945         float.
19946         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
19947         * sysdeps/sparc/bits/mathdef.h: Likewise.
19948
19949 2012-01-31  Marek Polacek  <polacek@redhat.com>
19950
19951         * libio/libio.h: Don't define _PARAMS.
19952         * locale/programs/config.h: Don't define PARAMS.
19953         * stdlib/strtol_l.c: Likewise.
19954         (__strtol_l): Remove PARAMS from the prototype.
19955
19956 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
19957
19958         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
19959         names.  Just use the correct names.  Remove unnecessary wrapper
19960         functions.
19961         * malloc/arena.c: Likewise.
19962         * malloc/hooks.c: Likewise.
19963
19964         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
19965         ARENA_TEST says not to.  Simplify test for creation of a new arena.
19966         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
19967
19968 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
19969
19970         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
19971         into tail calls.
19972         (update_get_addr): New function.
19973         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
19974         GET_ADDR_MODULE parameter.
19975
19976 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
19977
19978         * crypt/cert.c: Remove __STDC__ conditionals.
19979         * crypt/crypt-entry.c: Likewise.
19980         * crypt/crypt_util.c: Likewise.
19981         * libio/filedoalloc.c: Likewise.
19982         * libio/fileops.c: Likewise.
19983         * libio/genops.c: Likewise.
19984         * libio/iofclose.c: Likewise.
19985         * libio/iofdopen.c: Likewise.
19986         * libio/iofopen.c: Likewise.
19987         * libio/iofopen64.c: Likewise.
19988         * libio/iogetdelim.c: Likewise.
19989         * libio/iopopen.c: Likewise.
19990         * libio/obprintf.c: Likewise.
19991         * libio/oldfileops.c: Likewise.
19992         * libio/oldiofclose.c: Likewise.
19993         * libio/oldiofdopen.c: Likewise.
19994         * libio/oldiofopen.c: Likewise.
19995         * libio/oldiopopen.c: Likewise.
19996         * libio/wfiledoalloc.c: Likewise.
19997         * libio/wgenops.c: Likewise.
19998         * locale/programs/xmalloc.c: Likewise.
19999         * misc/syslog.c: Likewise.
20000         * stdio-common/xbug.c: Likewise.
20001         * string/memchr.c: Likewise.
20002         * string/memcmp.c: Likewise.
20003         * string/memrchr.c: Likewise.
20004         * string/rawmemchr.c: Likewise.
20005         * sysdeps/posix/getcwd.c: Likewise.
20006         * time/strftime_l.c: Likewise.
20007
20008 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
20009
20010         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
20011         * config.make.in (config-cflags-sse2avx): Define.
20012         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
20013         Fix typo.
20014
20015 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
20016
20017         * scripts/config.guess: Update from upstream config git repository.
20018         * scripts/config.sub: Likewise.
20019
20020 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
20021
20022         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
20023         (EM_NUM): Update.
20024         (R_TILEPRO_*, R_TILEGX_*): New macros.
20025
20026         * scripts/firstversions.awk: Fix bug in version range handling.
20027
20028         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
20029
20030         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
20031
20032         * include/sys/epoll.h: New file.
20033         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
20034         libc_hidden_def.
20035
20036 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
20037
20038         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
20039         Avoid unnecessary __WORDSIZE == 64 test.
20040         (fmaxf): Use VEX format if possible.
20041         (fmax): Likewise.
20042         (fminf): Likewise.
20043         (fmin): Likewise.
20044
20045         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
20046         * math/math_private.h: Remove libc_fegetround* and
20047         libc_fesetround*.
20048         * sysdeps/i386/configure.in: Check for -msse2avx.
20049         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
20050         also if SSE2AVX is defined.
20051         Remove libc_fegetround* and libc_fesetround*.
20052         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
20053         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
20054         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
20055         of HAS_YMM_USABLE.
20056         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20057         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20058         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20059         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20060         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20061
20062         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
20063
20064 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20065
20066         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
20067         size is not set.
20068         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20069
20070 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
20071
20072         [BZ #13618]
20073         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
20074         relocation.
20075         * Makeconfig (libm): Define.
20076         * elf/Makefile: Add rules to build and run tst-relsort1.
20077         * elf/tst-relsort1.c: New file.
20078         * elf/tst-relsort1mod1.c: New file.
20079         * elf/tst-relsort1mod2.c: New file.
20080
20081 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
20082
20083         * math/s_ldexp.c: Remove __STDC__ conditionals.
20084         * math/s_ldexpf.c: Likewise.
20085         * math/s_ldexpl.c: Likewise.
20086         * math/s_nextafter.c: Likewise.
20087         * math/s_nexttowardf.c: Likewise.
20088         * math/s_significand.c: Likewise.
20089         * math/s_significandf.c: Likewise.
20090         * math/s_significandl.c: Likewise.
20091         * math/w_jnl.c: Likewise.
20092         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
20093         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
20094         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
20095         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
20096         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
20097         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
20098         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
20099         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
20100         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
20101         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
20102         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
20103         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
20104         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
20105         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
20106         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
20107         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
20108         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
20109         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
20110         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
20111         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
20112         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
20113         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
20114         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
20115         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
20116         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
20117         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
20118         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
20119         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
20120         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
20121         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
20122         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
20123         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
20124         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
20125         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
20126         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
20127         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
20128         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
20129         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20130         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
20131         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
20132         * sysdeps/ieee754/k_standard.c: Likewise.
20133         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
20134         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
20135         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
20136         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
20137         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
20138         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
20139         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
20140         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
20141         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
20142         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
20143         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
20144         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
20145         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
20146         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
20147         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
20148         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
20149         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
20150         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
20151         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
20152         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
20153         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
20154         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
20155         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
20156         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
20157         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
20158         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
20159         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
20160         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
20161         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
20162         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
20163         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
20164         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
20165         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
20166         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
20167         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
20168         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
20169         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
20170         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
20171         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
20172         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
20173         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
20174         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
20175         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
20176         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
20177         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
20178         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
20179         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
20180         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
20181         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
20182         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
20183         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
20184         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
20185         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
20186         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
20187         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
20188         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
20189         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
20190         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
20191         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
20192         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
20193         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
20194         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
20195         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
20196         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
20197         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
20198         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
20199         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
20200         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
20201         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
20202         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
20203         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
20204         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
20205         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
20206         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
20207         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
20208         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
20209         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
20210         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
20211         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
20212         * sysdeps/ieee754/s_matherr.c: Likewise.
20213         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
20214         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
20215         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
20216         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
20217
20218 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
20219
20220         * crypt/md5.h: Remove __STDC__ conditionals.
20221         * libio/libioP.h: Likewise.
20222         * locale/programs/config.h: Likewise.
20223         * sysdeps/generic/sysdep.h: Likewise.
20224         * sysdeps/i386/asm-syntax.h: Likewise.
20225         * sysdeps/s390/asm-syntax.h: Likewise.
20226         * sysdeps/unix/sysdep.h: Likewise.
20227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
20228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
20229
20230 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
20231
20232         * libio/libio.h: Remove __STDC__ conditionals.
20233         * malloc/obstack.h: Likewise.
20234         * math/complex.h: Likewise.
20235         * math/math.h: Likewise.
20236         * sysdeps/generic/_G_config.h: Likewise.
20237         * sysdeps/gnu/_G_config.h: Likewise.
20238         * sysdeps/mach/hurd/_G_config.h: Likewise.
20239         * sysdeps/powerpc/bits/mathdef.h: Likewise.
20240         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
20241         * sysdeps/sparc/bits/mathdef.h: Likewise.
20242
20243 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
20244
20245         [BZ #13583]
20246         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
20247         Clean up HAS_* macros.
20248         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
20249         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
20250         possible.
20251         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
20252         HAS_AVX.
20253         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20254         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20255         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20256         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20257         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20258
20259 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
20260
20261         * elf/tst-unique3.cc (gets): Remove declaration.
20262         * elf/tst-unique3lib.cc (gets): Likewise.
20263         * elf/tst-unique3lib2.cc (gets): Likewise.
20264         * elf/tst-unique4.cc (gets): Likewise.
20265
20266 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
20267
20268         * include/stdio.h: Add C++ protection.  Add gets declarations and
20269         definitions.
20270         * debug/tst-chk1.c: Don't declare gets here.
20271         * stdio-common/tst-gets.c: Likewise.
20272
20273 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
20274
20275         * posix/glob: Remove directory.
20276
20277 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
20278
20279         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
20280
20281 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
20282
20283         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
20284         of the non-standard EPFNOSUPPORT.
20285
20286 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20287
20288         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
20289         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
20290         ANYWHERE set to 1 only on KERN_NO_SPACE error.
20291
20292 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
20293
20294         * wcsmbs/uchar.h: Test __STDC_VERSION__.
20295
20296 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
20297
20298         * nscd/aicache.c (addhstaiX): Do not cache negative results of
20299         transient errors.
20300         * nscd/grpcache.c (cache_addgr): Likewise.
20301         * nscd/hstcache.c (cache_addhst): Likewise.
20302         * nscd/initgrcache.c (addinitgroupsX): Likewise.
20303         * nscd/pwdcache.c (cache_addpw): Likewise.
20304         * nscd/servicescache.c (cache_addserv): Likewise.
20305
20306 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
20307
20308         * malloc/malloc.c: Various cleanups.
20309         * malloc/hooks.c: Likewise.
20310
20311         * stdlib/Makefile (tests): Add bug-fmtmsg1.
20312         * stdlib/bug-fmtmsg1.c: New file.
20313
20314         * stdlib/fmtmsg.c (init): Add missing unlock.
20315         Patch by Peng Haitao <penght@cn.fujitsu.com>.
20316
20317 2012-01-12  Marek Polacek  <polacek@redhat.com>
20318
20319         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
20320         and _GNU_SOURCE.
20321
20322 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
20323
20324         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
20325         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
20326         macro to ensure uniqueness of label name.
20327         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
20328         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
20329
20330 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
20331
20332         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
20333
20334         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
20335         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
20336         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
20337         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
20338
20339 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
20340
20341         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
20342
20343         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
20344         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
20345         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
20346
20347         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
20348
20349         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
20350         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
20351         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
20352         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
20353
20354         * math/bits/math-finite.h: Add ldexp support.
20355
20356 2012-01-10  Marek Polacek  <polacek@redhat.com>
20357
20358         * locale/programs/localedef.h (show_archive_content): Add noreturn
20359         attribute.
20360
20361 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
20362
20363         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
20364
20365 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
20366
20367         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
20368
20369         * io/Makefile (headers): Add bits/poll2.h.
20370
20371 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
20372
20373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
20374         typo #include statement.
20375
20376 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
20377
20378         * include/sys/cdefs.h: Define __attribute_alloc_size.
20379         * catgets/gencat.c: Add alloc_size attribute and apply consistently
20380         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
20381         * elf/pldd.c: Likewise.
20382         * iconv/iconv_charmap.c: Likewise.
20383         * iconv/iconvconfig.c: Likewise.
20384         * iconv/strtab.c: Likewise.
20385         * locale/programs/locale.c: Likewise.
20386         * locale/programs/localedef.h: Likewise.
20387         * locale/programs/simple-hash.c: Likewise.
20388         * nscd/nscd.h: Likewise.
20389         * nss/makedb.c: Likewise.
20390         * sysdeps/generic/ldconfig.h: Likewise.
20391         * locale/programs/localedef.c: Remove xmalloc prototype.
20392         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
20393
20394 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20395
20396         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
20397         appropriate.
20398
20399 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
20400
20401         * math/Makefile (tests): Add tst-CMPLX.
20402         * math/tst-CMPLX.c: New file.
20403
20404         * math/complex.h (CMPLXL): Fix typo.
20405
20406         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
20407         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
20408         GLIBC_2.16.
20409         * debug/tst-chk1.c: Add poll and ppoll tests.
20410         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
20411         * include/sys/poll.h: Add hidden proto for ppoll.
20412         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
20413         * sysdeps/mach/hurd/ppoll.c: Likewise.
20414         * io/ppoll.c: Likewise.
20415         * debug/poll_chk.c: New file.
20416         * debug/ppoll_chk.c: New file.
20417         * include/bits/poll2.h: New file.
20418         * io/bits/poll2.h: New file.
20419
20420         [BZ #1350]
20421         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
20422
20423         * configure.in: static is always set to yes.  Remove.
20424         * config.make.in: Don't set build-static.
20425         * Makeconfig: Remove use of build-static.
20426         * dlfcn/Makefile: Likewise.
20427         * elf/Makefile: Likewise.
20428         * math/Makefile: Likewise.
20429         * misc/Makefile: Likewise.
20430         * nptl/Makefile: Likewise.
20431         * sysdeps/mach/hurd/Makefile: Likewise.
20432
20433         * configure.in: PWD_P is not used anymore.
20434         * config.make.in: Remove PWD_P entry.
20435
20436         * configure.in: Remove last remnants of RANLIB.
20437         No need to check for signed size_t anymore.
20438         Don't set libc_commonpagesize and libc_relro_required here for Alpha
20439         and IA-64.
20440         Remove __builtin_expect test because we require at least gcc 3.4.
20441         * aclocal.m4: Likewise.
20442
20443         * wcsmbs/mbrtoc16.c: Implement using towc function.
20444         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
20445         * wcsmbs/wcsmbsload.c: Likewise.
20446         * iconv/gconv_simple.c: Likewise.
20447         * iconv/gconv_int.h: Likewise.
20448         * iconv/gconv_builtin.h: Likewise.
20449         * iconv/iconv_prog.c: Remove CHAR16 handling.
20450
20451         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
20452
20453         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
20454
20455         * configure.in: Remove --with-elf and --enable-bounded options.
20456         Dont set base_machine for ia64.  More non-ELF conditions removed.
20457         Remove testing and setting of leading underscore information.
20458         * config.make.in (build-bounded): Set to no.
20459         * config.h.in: Remove NO_UNDERSCORES entry.
20460         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
20461         them.
20462         * csu/start.c: Remove !NO_UNDERSCORE code.
20463         * locale/localeinfo.h: Likewise.
20464         * sysdeps/generic/machine-gmon.h: Likewise.
20465         * sysdeps/generic/sysdep.h: Likewise.
20466         * sysdeps/i386/sysdep.h: Likewise.
20467         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
20468         * sysdeps/mach/sysdep.h: Likewise.
20469         * sysdeps/s390/s390-32/sysdep.h: Likewise.
20470         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20471         * sysdeps/sh/sysdep.h: Likewise.
20472         * sysdeps/sparc/sparc32/alloca.S: Likewise.
20473         * sysdeps/unix/i386/sysdep.S: Likewise.
20474         * sysdeps/unix/sparc/start.c: Likewise.
20475         * sysdeps/unix/sparc/sysdep.S: Likewise.
20476         * sysdeps/unix/sparc/sysdep.h: Likewise.
20477         * sysdeps/unix/start.c: Likewise.
20478         * sysdeps/unix/x86_64/sysdep.S: Likewise.
20479         * sysdeps/x86_64/sysdep.h: Likewise.
20480
20481 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
20482
20483         [BZ #13553]
20484         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
20485         for non-gcc.
20486         * argp/argp-fmtstream.h: Use const instead __const.
20487         * argp/argp.h: Likewise.
20488         * assert/assert.h: Likewise.
20489         * bits/fenv.h: Likewise.
20490         * bits/sched.h: Likewise.
20491         * bits/sigset.h: Likewise.
20492         * bits/sigthread.h: Likewise.
20493         * catgets/nl_types.h: Likewise.
20494         * conform/data/pthread.h-data: Likewise.
20495         * crypt/crypt-private.h: Likewise.
20496         * crypt/crypt.h: Likewise.
20497         * crypt/crypt_util.c: Likewise.
20498         * ctype/ctype.h: Likewise.
20499         * debug/execinfo.h: Likewise.
20500         * debug/mbsnrtowcs_chk.c: Likewise.
20501         * debug/mbsrtowcs_chk.c: Likewise.
20502         * debug/wcsnrtombs_chk.c: Likewise.
20503         * debug/wcsrtombs_chk.c: Likewise.
20504         * debug/wcstombs_chk.c: Likewise.
20505         * dirent/dirent.h: Likewise.
20506         * dlfcn/dlfcn.h: Likewise.
20507         * elf/neededtest4.c: Likewise.
20508         * grp/grp.h: Likewise.
20509         * gshadow/gshadow.h: Likewise.
20510         * iconv/gconv.h: Likewise.
20511         * iconv/gconv_int.h: Likewise.
20512         * iconv/gconv_simple.c: Likewise.
20513         * iconv/iconv.h: Likewise.
20514         * iconv/loop.c: Likewise.
20515         * iconv/skeleton.c: Likewise.
20516         * include/aio.h: Likewise.
20517         * include/aliases.h: Likewise.
20518         * include/argz.h: Likewise.
20519         * include/arpa/inet.h: Likewise.
20520         * include/assert.h: Likewise.
20521         * include/dirent.h: Likewise.
20522         * include/dlfcn.h: Likewise.
20523         * include/execinfo.h: Likewise.
20524         * include/fcntl.h: Likewise.
20525         * include/fenv.h: Likewise.
20526         * include/glob.h: Likewise.
20527         * include/grp.h: Likewise.
20528         * include/libintl.h: Likewise.
20529         * include/mntent.h: Likewise.
20530         * include/netdb.h: Likewise.
20531         * include/pwd.h: Likewise.
20532         * include/rpc/netdb.h: Likewise.
20533         * include/sched.h: Likewise.
20534         * include/search.h: Likewise.
20535         * include/shadow.h: Likewise.
20536         * include/signal.h: Likewise.
20537         * include/stdio.h: Likewise.
20538         * include/stdlib.h: Likewise.
20539         * include/string.h: Likewise.
20540         * include/sys/socket.h: Likewise.
20541         * include/sys/stat.h: Likewise.
20542         * include/sys/statfs.h: Likewise.
20543         * include/sys/statvfs.h: Likewise.
20544         * include/sys/syslog.h: Likewise.
20545         * include/sys/time.h: Likewise.
20546         * include/sys/uio.h: Likewise.
20547         * include/time.h: Likewise.
20548         * include/unistd.h: Likewise.
20549         * include/utmp.h: Likewise.
20550         * include/wchar.h: Likewise.
20551         * include/wctype.h: Likewise.
20552         * inet/aliases.h: Likewise.
20553         * inet/arpa/inet.h: Likewise.
20554         * inet/netinet/ether.h: Likewise.
20555         * inet/netinet/in.h: Likewise.
20556         * intl/libintl.h: Likewise.
20557         * io/bits/fcntl2.h: Likewise.
20558         * io/fcntl.h: Likewise.
20559         * io/ftw.h: Likewise.
20560         * io/sys/poll.h: Likewise.
20561         * io/sys/stat.h: Likewise.
20562         * io/sys/statfs.h: Likewise.
20563         * io/sys/statvfs.h: Likewise.
20564         * io/utime.h: Likewise.
20565         * libio/bits/stdio.h: Likewise.
20566         * libio/bits/stdio2.h: Likewise.
20567         * libio/libio.h: Likewise.
20568         * libio/libioP.h: Likewise.
20569         * libio/stdio.h: Likewise.
20570         * locale/lc-ctype.c: Likewise.
20571         * locale/locale.h: Likewise.
20572         * login/utmp.h: Likewise.
20573         * malloc/arena.c: Likewise.
20574         * malloc/malloc.c: Likewise.
20575         * malloc/malloc.h: Likewise.
20576         * malloc/mcheck.c: Likewise.
20577         * malloc/mtrace.c: Likewise.
20578         * math/bits/mathcalls.h: Likewise.
20579         * math/fenv.h: Likewise.
20580         * math/math_private.h: Likewise.
20581         * misc/bits/error.h: Likewise.
20582         * misc/bits/syslog.h: Likewise.
20583         * misc/err.h: Likewise.
20584         * misc/error.h: Likewise.
20585         * misc/fstab.h: Likewise.
20586         * misc/mntent.h: Likewise.
20587         * misc/regexp.h: Likewise.
20588         * misc/search.h: Likewise.
20589         * misc/sgtty.h: Likewise.
20590         * misc/sys/mman.h: Likewise.
20591         * misc/sys/syslog.h: Likewise.
20592         * misc/sys/uio.h: Likewise.
20593         * misc/sys/xattr.h: Likewise.
20594         * misc/ttyent.h: Likewise.
20595         * nis/rpcsvc/ypclnt.h: Likewise.
20596         * nss/nss.h: Likewise.
20597         * posix/bits/unistd.h: Likewise.
20598         * posix/fnmatch.h: Likewise.
20599         * posix/glob.h: Likewise.
20600         * posix/sched.h: Likewise.
20601         * posix/spawn.h: Likewise.
20602         * posix/sys/wait.h: Likewise.
20603         * posix/unistd.h: Likewise.
20604         * posix/wordexp.h: Likewise.
20605         * pwd/pwd.h: Likewise.
20606         * resolv/netdb.h: Likewise.
20607         * resource/sys/resource.h: Likewise.
20608         * rt/aio.h: Likewise.
20609         * rt/bits/mqueue2.h: Likewise.
20610         * rt/mqueue.h: Likewise.
20611         * shadow/shadow.h: Likewise.
20612         * signal/signal.h: Likewise.
20613         * socket/send.c: Likewise.
20614         * socket/sendto.c: Likewise.
20615         * socket/sys/socket.h: Likewise.
20616         * stdio-common/printf.h: Likewise.
20617         * stdlib/bits/stdlib.h: Likewise.
20618         * stdlib/fmtmsg.h: Likewise.
20619         * stdlib/monetary.h: Likewise.
20620         * stdlib/stdlib.h: Likewise.
20621         * stdlib/ucontext.h: Likewise.
20622         * streams/stropts.h: Likewise.
20623         * string/argz.h: Likewise.
20624         * string/bits/string2.h: Likewise.
20625         * string/string.h: Likewise.
20626         * string/strings.h: Likewise.
20627         * sunrpc/rpc/auth.h: Likewise.
20628         * sunrpc/rpc/auth_des.h: Likewise.
20629         * sunrpc/rpc/clnt.h: Likewise.
20630         * sunrpc/rpc/netdb.h: Likewise.
20631         * sunrpc/rpc/pmap_clnt.h: Likewise.
20632         * sunrpc/rpc/xdr.h: Likewise.
20633         * sysdeps/generic/inttypes.h: Likewise.
20634         * sysdeps/generic/net/if.h: Likewise.
20635         * sysdeps/generic/sys/swap.h: Likewise.
20636         * sysdeps/gnu/net/if.h: Likewise.
20637         * sysdeps/gnu/utmpx.h: Likewise.
20638         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
20639         * sysdeps/i386/i486/bits/string.h: Likewise.
20640         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
20641         * sysdeps/s390/bits/string.h: Likewise.
20642         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
20643         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
20644         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
20645         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
20646         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
20647         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
20648         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
20649         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
20650         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
20651         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
20652         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
20653         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
20654         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
20655         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
20656         * sysdeps/unix/sysv/linux/readv.c: Likewise.
20657         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
20658         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
20659         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20660         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
20661         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
20662         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
20663         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
20664         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
20665         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
20666         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
20667         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
20668         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
20669         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
20670         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
20671         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
20672         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
20673         * sysvipc/sys/ipc.h: Likewise.
20674         * sysvipc/sys/msg.h: Likewise.
20675         * sysvipc/sys/sem.h: Likewise.
20676         * sysvipc/sys/shm.h: Likewise.
20677         * termios/termios.h: Likewise.
20678         * time/sys/time.h: Likewise.
20679         * time/time.h: Likewise.
20680         * wcsmbs/bits/wchar2.h: Likewise.
20681         * wcsmbs/uchar.h: Likewise.
20682         * wcsmbs/wchar.h: Likewise.
20683         * wctype/wctype.h: Likewise.
20684
20685         [BZ #13551]
20686         * Makeconfig: Remove all but ELF support including AIX support.
20687         * Makerules: Likewise.
20688         * config.h.in: Likewise.
20689         * config.make.in: Likewise.
20690         * configure: Likewise.
20691         * configure.in: Likewise.
20692         * csu/Makefile: Likewise.
20693         * csu/version.c: Likewise.
20694         * debug/Makefile: Likewise.
20695         * dlfcn/Makefile: Likewise.
20696         * elf/Makefile: Likewise.
20697         * extra-lib.mk: Likewise.
20698         * iconv/Makefile: Likewise.
20699         * include/libc-symbols.h: Likewise.
20700         * include/shlib-compat.h: Likewise.
20701         * resolv/Makefile: Likewise.
20702         * resolv/res_libc.c: Likewise.
20703         * rt/Makefile: Likewise.
20704         * sysdeps/i386/asm-syntax.h: Likewise.
20705         * sysdeps/i386/sysdep.h: Likewise.
20706         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
20707         * sysdeps/mach/sysdep.h: Likewise.
20708         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
20709         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
20710         * sysdeps/s390/asm-syntax.h: Likewise.
20711         * sysdeps/s390/s390-32/sysdep.h: Likewise.
20712         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20713         * sysdeps/sh/sysdep.h: Likewise.
20714         * sysdeps/unix/sparc/sysdep.h: Likewise.
20715         * sysdeps/wordsize-32/divdi3.c: Likewise.
20716         * sysdeps/x86_64/sysdep.h: Likewise.
20717
20718         * argp/Versions: Remove _argp_unlock_xxx.
20719
20720         [BZ #13559]
20721         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
20722         * abilist/libBrokenLocale.abilist: Likewise.
20723         * abilist/libanl.abilist: Likewise.
20724         * abilist/libc.abilist: Likewise.
20725         * abilist/libcrypt.abilist: Likewise.
20726         * abilist/libdl.abilist: Likewise.
20727         * abilist/libm.abilist: Likewise.
20728         * abilist/libnsl.abilist: Likewise.
20729         * abilist/libpthread.abilist: Likewise.
20730         * abilist/libresolv.abilist: Likewise.
20731         * abilist/librt.abilist: Likewise.
20732         * abilist/libthread_db.abilist: Likewise.
20733         * abilist/libutil.abilist: Likewise.
20734         * abilist/libnss_db.abilist: New file.
20735
20736         * scripts/abilist.awk: Add support for indirect functions.
20737
20738         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
20739
20740         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
20741
20742         * shlib-versions: Remove entries for ports architectures.
20743
20744         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
20745         files in ports.
20746         * elf/stackguard-macros.h: Remove support for IA-64.
20747         * elf/tst-auditmod1.c: Likewise.
20748         * sysdeps/generic/ldsodefs.h: Likewise.
20749
20750         * sysdeps/unix/sysv/linux/configure.in: Ports should define
20751         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
20752         configure files.
20753
20754         [BZ #13552]
20755         * configure.in: Remove --enable-omitfp support.
20756         * FAQ.in: Adjust.
20757         * config.make.in: Likewise.
20758         * Makeconfig: Likewise.
20759         * manual/install.texi: Likewise.
20760
20761         In case anyone cares, the IA-64 architecture could move to ports.
20762         * sysdeps/ia64/*: Removed.
20763         * sysdeps/unix/sysv/linux/ia64/*: Removed.
20764         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
20765
20766         [BZ #13555]
20767         * configure.in: Remove entries for unsupported architectures.
20768
20769         [BZ #13533]
20770         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
20771         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
20772         routines.
20773         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
20774         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
20775         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
20776         fall back to using wcrtomb.
20777         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
20778         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
20779         renaming.
20780         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
20781         * wcsmbs/tst-c16c32-1.c: New file.
20782
20783         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
20784         local variable.
20785
20786         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
20787
20788         * elf/tst-unique3.cc: Add explicit declaration of gets.
20789         * elf/tst-unique3lib.cc: Likewise.
20790         * elf/tst-unique3lib2.cc: Likewise.
20791         * elf/tst-unique4.cc: Likewise.
20792
20793         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
20794
20795 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
20796
20797         [BZ #13566]
20798         * assert/assert.h (static_assert): Don't define for C++.
20799         * libio/stdio.h (gets): Do declare for C++ <= C++11.
20800         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
20801
20802 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
20803
20804         * iconv/loop.c (single loop): Fix assertion in storing of
20805         remaining bytes.
20806
20807         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
20808
20809 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
20810
20811         * posix/getconf.c: Update copyright year.
20812         * nss/getent.c: Likewise.
20813         * nss/makedb.c: Likewise.
20814         * iconv/iconvconfig.c: Likewise.
20815         * iconv/iconv_prog.c: Likewise.
20816         * elf/ldconfig.c: Likewise.
20817         * elf/pldd.c: Likewise.
20818         * elf/sotruss.ksh: Likewise.
20819         * catgets/gencat.c: Likewise.
20820         * csu/version.c: Likewise.
20821         * elf/ldd.bash.in: Likewise.
20822         * elf/sprof.c (print_version): Likewise.
20823         * locale/programs/locale.c: Likewise.
20824         * locale/programs/localedef.c: Likewise.
20825         * login/programs/pt_chown.c: Likewise.
20826         * nscd/nscd.c (print_version): Likewise.
20827         * debug/xtrace.sh: Likewise.
20828         * malloc/memusage.sh: Likewise.
20829         * malloc/mtrace.pl: Likewise.
20830         * debug/catchsegv.sh: Likewise.
20831
20832 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
20833
20834         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
20835         pure attribute.
20836
20837 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
20838
20839         [BZ #13533]
20840         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
20841         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
20842         transformations.
20843         * iconv/gconv_int.h: Likewise.
20844         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
20845         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
20846         from libc for GLIBC_2.16.
20847         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
20848         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
20849         * wcsmbs/uchar.h: Really define mbstate_t.
20850         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
20851         * wcsmbs/c16rtomb.c: New file.
20852         * wcsmbs/mbrtoc16.c: New file.
20853         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
20854         for C/POSIX locale.
20855         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
20856         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
20857
20858         * wcsmbs/wchar.h: Add missing __restrict.
20859
20860 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
20861
20862         [BZ #13532]
20863         * time/Makefile (routines): Add timespec_get.
20864         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
20865         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
20866         timespec for ISO C11.
20867         * time/timespec_get.c: New file.
20868         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
20869         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
20870
20871         [BZ #13531]
20872         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
20873         * stdlib/stdlib.h: Declare aligned_alloc.
20874         * Versions.def: Add GLIBC_2.16 for libc.
20875         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
20876
20877         [BZ 13527]
20878         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
20879         ISO C11.
20880
20881         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
20882         code.
20883
20884         [BZ #13528]
20885         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
20886
20887         [BZ #13529]
20888         * assert/assert.h (static_assert): Define.
20889
20890         * version.h: Update for 2.16 development version.
20891
20892         [BZ #13526]
20893         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
20894         _ISOC11_SOURCE.
20895
20896         * version.h (RELEASE): Bump for 2.15 release.
20897         * include/features.h (__GLIBC_MINOR__): Bump to 15.
20898
20899         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
20900         Patch by Marek Polacek <mpolacek@redhat.com>.
20901
20902         * bits/byteswap.h: Protect long long constants with __extension__.
20903         * sysdeps/i386/bits/byteswap.h: Likewise.
20904         * sysdeps/ia64/bits/byteswap.h: Likewise.
20905         * sysdeps/s390/bits/byteswap.h: Likewise.
20906         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20907
20908 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20909
20910         [BZ #13540]
20911         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
20912         destination buffer.
20913         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
20914
20915 2011-12-23  Marek Polacek  <polacek@redhat.com>
20916
20917         * elf/dl-addr.c (determine_info): Add inline keyword.
20918         * elf/tst-auditmod4b.c (check_avx): Likewise.
20919         * elf/tst-auditmod6b.c (check_avx): Likewise.
20920         * elf/tst-auditmod6c.c (check_avx): Likewise.
20921         * elf/tst-auditmod7b.c (check_avx): Likewise.
20922
20923 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
20924
20925         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
20926         !__SSE_MATH__.
20927
20928 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20929
20930         [BZ #13540]
20931         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
20932         processing for last bytes.
20933
20934 2011-08-06  Bruno Haible  <bruno@clisp.org>
20935
20936         [BZ #13061]
20937         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
20938         U+0385, not to U+1FEE.
20939
20940         [BZ #13062]
20941         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
20942         entry for U+00A5 U+0301.
20943
20944 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
20945
20946         [BZ #13166]
20947         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
20948         buffer for the output is too small.
20949
20950         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
20951         optimization.
20952
20953         [BZ #13185]
20954         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
20955         SSE flags if possible.
20956
20957 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20958
20959         [BZ #13540]
20960         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
20961         processing for last bytes.
20962
20963 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
20964
20965         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
20966         (syscall-list-default-options, syscall-list-default-condition)
20967         (syscall-list-includes): Define.
20968         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
20969         list of ABIs and options and #if conditions for each ABI.  Do not
20970         handle common syscalls between ABIs specially.
20971         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
20972         Remove.
20973         (syscall-list-variants, syscall-list-32bit-options)
20974         (syscall-list-32bit-condition, syscall-list-64bit-options)
20975         (syscall-list-64bit-condition): Define.
20976         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
20977         (syscall-list-variants, syscall-list-32bit-options)
20978         (syscall-list-32bit-condition, syscall-list-64bit-options)
20979         (syscall-list-64bit-condition): Define.
20980         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
20981         Remove.
20982         (syscall-list-variants, syscall-list-32bit-options)
20983         (syscall-list-32bit-condition, syscall-list-64bit-options)
20984         (syscall-list-64bit-condition): Define.
20985         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
20986         Remove.
20987         (syscall-list-variants, syscall-list-32bit-options)
20988         (syscall-list-32bit-condition, syscall-list-64bit-options)
20989         (syscall-list-64bit-condition): Define.
20990
20991 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
20992
20993         * locale/iso-639.def: Add brx entry.
20994
20995         [BZ #13328]
20996         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
20997         Proposed by Mariusz_Cukr <marcukr@op.pl>.
20998
20999         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
21000         __feraiseexcept_renamed.
21001
21002 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
21003
21004         [BZ #13538]
21005         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
21006         EPOLLET with unsigned values.
21007         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
21008         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
21009
21010         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
21011         to large cancellation.
21012         * math/s_cacoshf.c: Likewise.
21013         * math/s_cacoshl.c: Likewise.
21014
21015 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
21016
21017         [BZ #13305]
21018         [BZ #12786]
21019         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
21020         * math/s_cacoshf.c: Likewise.
21021         * math/s_cacoshl.c: Likewise.
21022
21023 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
21024
21025         [BZ #13439]
21026         * iconv/gconv.h: Define __GCONV_SWAP.
21027         * iconvdata/unicode.c: The swap bit must be stored in __flags.
21028         * iconvdata/utf-16.c: Likewise.
21029         * iconvdata/utf-32.c: Likewise.
21030
21031 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
21032
21033         [BZ #13524]
21034         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
21035         numerator after shifting it by one limb.
21036
21037 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21038
21039         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
21040         under [__USE_EXTERN_INLINES].
21041
21042 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
21043
21044         [BZ #13446]
21045         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
21046
21047 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21048
21049         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
21050         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
21051         optimized code.
21052         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
21053         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
21054         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
21055         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
21056         for strncasecmp/strncasecmp_l compilation.
21057         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
21058         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
21059
21060 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
21061
21062         [BZ #13484]
21063         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
21064         of __asm__.
21065
21066 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
21067
21068         [BZ #13506]
21069         * time/tzfile.c (__tzfile_read): Check values from file header.
21070
21071 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
21072
21073         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
21074         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
21075         * powerpc/powerpc32/dl-start.S: Likewise.
21076         * powerpc/powerpc32/elf/start.S: Likewise.
21077         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
21078         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
21079         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
21080         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
21081         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
21082         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
21083         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
21084         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
21085         * powerpc/powerpc32/fpu/s_round.S: Likewise.
21086         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
21087         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
21088         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
21089         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
21090         * powerpc/powerpc32/memset.S: Likewise.
21091         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
21092         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
21093         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
21094         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
21095         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
21096         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
21097         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
21098         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
21099         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
21100         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
21101         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
21102         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
21103         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
21104
21105 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21106
21107         * math/libm-test.inc: Added more nearbyint tests.
21108         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
21109         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
21110         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
21111         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
21112
21113 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
21114
21115         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
21116         FD_CLOEXEC.
21117
21118 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21119
21120         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
21121         Add wcscpy-ssse3 wcscpy-c.
21122         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
21123         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
21124         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
21125         * sysdeps/x86_64/wcschr.S: New file.
21126         * sysdeps/x86_64/wcsrchr.S: New file.
21127         * string/test-strcmp.c: Remove checking of wcscmp function for
21128         wrong alignments.
21129         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
21130         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
21131         wcsrchr-sse2 wcsrchr-c.
21132         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
21133         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
21134         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
21135         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
21136         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
21137         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
21138         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
21139         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
21140         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
21141         * wcsmbc/wcschr.c (WCSCHR): New macro.
21142
21143 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21144
21145         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
21146         * wcsmbs/test-wcsrchr.c: New file.
21147         * string/test-strrchr.c: Add wcsrchr support.
21148         (WIDE): New macro.
21149         * wcsmbs/test-wcscpy.c: New file.
21150         * string/test-strcpy.c: Add wcscpy support.
21151         (WIDE): New macro.
21152
21153 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
21154
21155         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
21156         the inner loop.
21157
21158 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
21159
21160         [BZ #13472]
21161         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
21162
21163 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
21164
21165         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
21166         Minor optimizations.
21167
21168         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
21169         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
21170         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
21171
21172 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
21173
21174         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
21175         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
21176         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
21177         for gcc to avoid warnings.
21178         * inet/Makefile (tests): Add tst-checks.
21179         * inet/tst-checks.c: New file.
21180
21181         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
21182         warning.
21183
21184         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
21185         __wmemcmp_sse2.
21186
21187         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
21188         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
21189
21190         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
21191
21192 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
21193
21194         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
21195         problem.
21196
21197         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
21198
21199 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
21200
21201         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
21202         conditional on GCC version.
21203         (__arch_compare_and_exchange_val_8_acq)
21204         (__arch_compare_and_exchange_val_16_acq)
21205         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
21206         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
21207         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
21208
21209 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
21210
21211         * sysdeps/sh/backtrace.c: New file.
21212
21213 2011-12-02  Andreas Schwab  <schwab@redhat.com>
21214
21215         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
21216         parenthesis.
21217
21218 2011-12-01  Andreas Schwab  <schwab@redhat.com>
21219
21220         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
21221         falling back to utime.
21222
21223 2011-11-30  Andreas Schwab  <schwab@redhat.com>
21224
21225         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
21226         expectations for float.
21227
21228 2011-11-29  Andreas Schwab  <schwab@redhat.com>
21229
21230         * locale/weight.h (findidx): Add parameter len.
21231         * locale/weightwc.h (findidx): Likewise.
21232         * posix/fnmatch_loop.c (FCT): Adjust caller.
21233         * posix/regcomp.c (build_equiv_class): Likewise.
21234         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
21235         * posix/regexec.c (check_node_accept_bytes): Likewise.
21236         * string/strcoll_l.c (STRCOLL): Likewise.
21237         * string/strxfrm_l.c (STRXFRM): Likewise.
21238
21239 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
21240
21241         * Makefile.in: Remove CVSOPT handling.
21242         * configure.in: Remove use of AC_REVISION.
21243         * iconvdata/Makefile (distribute): No need to filter out CVS.
21244         * scripts/list-sources.sh: Remove CVS, subversion and monotone
21245         handling.
21246
21247 2011-11-16  Andreas Schwab  <schwab@redhat.com>
21248
21249         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
21250         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
21251         [USE_AS_STRNCASECMP_L]: Likewise.
21252         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
21253         NO_TLS_DIRECT_SEG_REFS.
21254         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
21255         Fix argument offsets for non-PIC.
21256         [USE_AS_STRNCASECMP_L]: Likewise.
21257         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
21258         NO_TLS_DIRECT_SEG_REFS.
21259
21260 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
21261
21262         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
21263         O_CLOEXEC.
21264         * locale/loadlocale.c (_nl_load_locale): Likewise.
21265
21266 2011-11-15  Andreas Schwab  <schwab@redhat.com>
21267
21268         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
21269         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
21270         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
21271         (SYSCALL_GETTIME): Set errno on error.
21272
21273         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
21274         count references to noai6ai_cached.
21275
21276 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
21277
21278         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
21279
21280         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
21281         FD_CLOEXEC for /proc/self/maps.
21282
21283         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
21284         FD_CLOEXEC for /proc/meminfo.
21285
21286         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
21287         gai.conf.
21288
21289         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
21290         FD_CLOEXEC for given file.
21291
21292         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
21293
21294         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
21295         FD_CLOEXEC for /etc/hosts.
21296         (_gethtent): Likewise.
21297
21298         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
21299
21300         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
21301         cancellation and set FD_CLOEXEC for /etc/netgroup.
21302
21303         * nss/nss_files/files-key.c (search): Don't allow cancellation when
21304         reading /etc/publickey.
21305
21306         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
21307         allow cancellation when reading /etc/group.
21308
21309         * nss/nss_files/files-alias.c (internal_setent): Don't allow
21310         cancellation.
21311         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
21312
21313         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
21314         when using data file.
21315
21316         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
21317
21318         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
21319         (write_nis_obj): Use "c" and "e" in fopen.
21320
21321         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
21322
21323         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
21324
21325         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
21326
21327         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
21328
21329         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
21330         locale.alias.
21331
21332         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
21333
21334         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
21335
21336         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
21337
21338         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
21339         file parsing and set FD_CLOEXEC.
21340
21341 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
21342
21343         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
21344
21345 2011-11-14  Andreas Schwab  <schwab@redhat.com>
21346
21347         * malloc/arena.c (arena_get2): Don't call reused_arena when
21348         _int_new_arena failed.
21349
21350 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
21351
21352         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
21353         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
21354         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
21355         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
21356         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
21357         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
21358         to compile strcasecmp and strncasecmp.
21359         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
21360         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
21361
21362         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
21363
21364 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
21365
21366         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
21367         locale-defines.sym to gen-as-const-headers.
21368         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
21369         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
21370         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
21371         to compile strcasecmp and strncasecmp.
21372         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
21373         strcasecmp_l and strncasecmp_l.
21374         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
21375         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
21376         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
21377         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
21378         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
21379         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
21380         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
21381         * sysdeps/i386/i686/multiarch/strncase.S: New file.
21382         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
21383         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
21384         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
21385
21386 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
21387
21388         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
21389         result of SYSDEP_GETTIME_CPU to retval.
21390         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
21391         parameter list to macro.  Remove trailing semicolon.  Adjust users.
21392
21393         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
21394         variable.
21395
21396         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
21397         mantissa words.
21398         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
21399
21400         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
21401         from unused variable.
21402
21403         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
21404         DWARF definitions.
21405         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
21406         for assembling.
21407
21408         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
21409         over namespaces.
21410
21411         * sunrpc/rpc_prot.c (rejected): Fix case value.
21412
21413         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
21414         unsigned long long int to avoid warnings in shift.
21415
21416         * posix/regex_internal.c (re_string_reconstruct): Actually use result
21417         of use of trans.
21418         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
21419         variable tmp.
21420
21421         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
21422         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
21423         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
21424
21425         * nis/nis_table.c (nis_list): Use variable of correct type for
21426         result of __follow_path call.
21427
21428 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21429
21430         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
21431         of math functions ceil, trunc, floor, round, and sqrt, when
21432         avaliable on the platform.
21433         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
21434         name clash.
21435         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
21436         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
21437         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
21438
21439 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
21440
21441         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
21442         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
21443
21444 2011-11-11  Roland McGrath  <roland@hack.frob.com>
21445
21446         * include/unistd.h: Fix __readlink return type.
21447         Reported by Chris Metcalf <cmetcalf@tilera.com>.
21448
21449 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
21450
21451         * stdlib/ucontext.h: Undo last change for makecontext.
21452
21453 2011-11-11  Andreas Schwab  <schwab@redhat.com>
21454
21455         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
21456
21457         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
21458         * setjmp/setjmp.h: Mark functions as non-leaf.
21459         * setjmp/bits/setjmp2.h: Likewise.
21460         * stdlib/ucontext.h: Likewise.
21461
21462 2011-11-10  Andreas Schwab  <schwab@redhat.com>
21463
21464         * malloc/arena.c (_int_new_arena): Don't increment narenas.
21465         (reused_arena): Don't check arena limit.
21466         (arena_get2): Atomically check arena limit.
21467
21468 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
21469
21470         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
21471         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
21472
21473         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
21474         instructions.
21475
21476 2011-11-07  Andreas Schwab  <schwab@redhat.com>
21477
21478         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
21479         handler when locking.
21480
21481         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
21482         Fix size of allocated buffer.
21483
21484 2011-11-04  Andreas Schwab  <schwab@redhat.com>
21485
21486         [BZ #10103]
21487         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
21488         declarations for long double functions.
21489         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
21490
21491         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
21492
21493 2011-11-03  Andreas Schwab  <schwab@redhat.com>
21494
21495         * nscd/nscd.c (main): Don't start AVC thread until credentials are
21496         installed.
21497
21498         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
21499         is disabled.
21500
21501 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21502
21503         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
21504
21505 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
21506
21507         * include/alloca.h (stackinfo_alloca_round): Define.
21508         (extend_alloca): Use it.
21509         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
21510         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
21511         here.
21512
21513         * scripts/check-local-headers.sh: Ignore libaudit.h.
21514
21515         * nscd/Makefile (extra-objs): Make recursively expanded.
21516
21517 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
21518
21519         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
21520         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
21521
21522         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
21523         * posix/tst-rfc3484-2.c: Likewise.
21524         * posix/tst-rfc3484-3.c: Likewise.
21525
21526         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
21527         process_vm_writev.
21528         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
21529         process_vm_writev.
21530         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
21531         process_vm_writev from libc using GLIBC_2.15 version.
21532
21533         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
21534
21535 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
21536
21537         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
21538         stack usage.
21539
21540 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
21541
21542         [BZ #13367]
21543         * nss/getent.c (initgroups_keys): Show error message in case no group
21544         names are given.
21545
21546         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
21547         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
21548         __bump_nl_timestamp.
21549         * nscd/connections (nscd_init): When host database is served open
21550         netlink socket and request notification about configuration changes.
21551         (main_loop_poll): Track netlink file descriptor and bump timestamp
21552         in case data becomes available.
21553         (main_loop_epoll): Likewise.
21554         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
21555         (database_pers_head): Add extra_data fileds.
21556         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
21557         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
21558         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
21559         Adjust caller.
21560         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
21561         in6ai data, call __free_in6ai.
21562         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
21563         Add -DHAVE_NETLINK.
21564         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
21565         interface information.  Reuse previous data if netlink timestamp
21566         is not changed.
21567         (__bump_nl_timestamp): New function.
21568         (__free_in6ai): New function.
21569
21570 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
21571
21572         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
21573         close_not_cancel_no_status here.
21574         (__check_pf): Reorganize code a bit to not call close twice if OOM.
21575
21576 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
21577
21578         [BZ #13276]
21579         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
21580         return value.
21581
21582         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
21583         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
21584         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
21585
21586 2011-07-03  Andreas Jaeger  <aj@suse.de>
21587
21588         [BZ #10709]
21589         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
21590         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
21591         * math/libm-test.inc (sin_test): Add test case.
21592
21593 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
21594
21595         [BZ #13337]
21596         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
21597         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
21598
21599         * elf/chroot_canon.c (chroot_canon): Cleanups.
21600
21601         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
21602
21603         [BZ #13335]
21604         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
21605         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
21606
21607         * string/test-strchr.c: Make usable for strchrnul testing.
21608         * string/test-strchrnul.c: New file.
21609         * string/Makefile (strop-tests): Add strchrnul.
21610
21611         * po/it.po: Update from translation team.
21612         * po/es.po: Likewise.
21613
21614 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
21615
21616         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
21617         the three constants needed as parameters.  Drop the others.
21618         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
21619         __m128i_strloadu_tolower.
21620         Create and initialize variable zero and use it in all the places
21621         where _mm_setzero_si128 was used.
21622
21623         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
21624         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
21625         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
21626         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
21627         anymore.
21628         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
21629         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
21630         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
21631         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
21632         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
21633         __mpranred, __mptan.
21634         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
21635         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
21636         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
21637         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
21638         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
21639         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
21640         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
21641         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
21642         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
21643
21644 2011-10-28  Andreas Schwab  <schwab@redhat.com>
21645
21646         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
21647         redefine if SHARED.
21648         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
21649
21650         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
21651         wide char related routines to wcsmbs subdir.
21652
21653 2011-10-27  Andreas Schwab  <schwab@redhat.com>
21654
21655         [BZ #13344]
21656         * misc/sys/cdefs.h (__THROWNL): Define.
21657         * posix/unistd.h: Use __THREADNL instead of __THREAD
21658         for memory synchronization functions.
21659
21660 2011-10-26  Roland McGrath  <roland@hack.frob.com>
21661
21662         [BZ #13349]
21663         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
21664         doesn't exist.
21665         * manual/stdio.texi (Obstack Streams): Node removed.
21666
21667 2011-10-26  Andreas Schwab  <schwab@redhat.com>
21668
21669         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
21670         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
21671         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
21672
21673         * math/math_private.h (math_force_eval): Allow non-addressable
21674         arguments.
21675         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
21676
21677 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
21678
21679         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
21680         file is not needed.
21681
21682         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
21683         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
21684         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21685         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21686         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21687         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21688         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21689         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
21690         Add AVX variants.
21691         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
21692         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
21693         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
21694         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
21695         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
21696         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
21697         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
21698         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
21699         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
21700         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
21701         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
21702         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
21703         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
21704         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
21705         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
21706         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
21707         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
21708         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
21709         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
21710
21711         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
21712         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
21713
21714         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
21715         place.  Use VEX encoding when compiling for AVX.
21716
21717 2011-10-25  Andreas Schwab  <schwab@redhat.com>
21718
21719         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
21720         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
21721
21722         * string/test-strchr.c (do_test): Don't generate NUL bytes.
21723
21724 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
21725
21726         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
21727         useless if() expression.
21728         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
21729         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
21730         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
21731         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
21732         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
21733         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
21734         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
21735         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
21736         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
21737         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
21738         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
21739         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
21740         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
21741         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
21742         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
21743         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
21744         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
21745         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
21746         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
21747
21748         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
21749
21750 2011-10-25  Andreas Schwab  <schwab@redhat.com>
21751
21752         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
21753         condition.
21754         * elf/dl-fini.c (_dl_sort_fini): Likewise.
21755
21756 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
21757
21758         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
21759         .text section.  Avoid duplicate constants.
21760         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
21761         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21762         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
21763         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21764         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
21765         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21766         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21767         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21768         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
21769         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
21770         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
21771         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
21772         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
21773         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
21774         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
21775         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
21776         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
21777         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
21778         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
21779         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
21780         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
21781         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
21782         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21783         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
21784         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
21785         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
21786         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
21787         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
21788         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
21789         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
21790         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
21791         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
21792         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
21793         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
21794         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
21795         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
21796         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
21797         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
21798         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
21799         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
21800         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
21801         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
21802         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
21803         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
21804         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
21805
21806 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
21807
21808         * sysdeps/x86_64/dla.h: Move to ...
21809         * sysdeps/x86_64/fpu/dla.h: ...here.
21810         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
21811         situations.  Use __builtin_fma only for gcc 4.6 and up.
21812
21813         * config.make.in: Add have-mfma4 entry.
21814         * configure.in: Substitute libc_cv_cc_fma4.
21815         * math/Makefile (dbl-only-routines): Add sincostab.
21816         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
21817         Use __sincostab not sincos.
21818         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
21819         name is a macro.
21820         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
21821         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21822         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21823         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
21824         using __copysign.
21825         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
21826         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
21827         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
21828         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
21829         and __inv.
21830         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
21831         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
21832         __copysign.
21833         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
21834         define aliases when function name is a macro.
21835         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
21836         sysdeps/ieee754/dbl-64/sincos.tbl.
21837         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
21838         fma4-enabled routines.
21839         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
21840         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
21841         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
21842         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
21843         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
21844         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
21845         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
21846         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
21847         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
21848         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
21849         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
21850         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
21851         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
21852         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
21853         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
21854         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
21855         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
21856         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
21857         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
21858         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
21859         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
21860         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
21861         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
21862         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
21863         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
21864         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
21865         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
21866         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
21867         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
21868         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
21869
21870         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
21871         rename.
21872         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21873         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21874         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21875         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21876         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21877         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21878         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
21879         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
21880
21881 2011-10-24  Andreas Schwab  <schwab@redhat.com>
21882
21883         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
21884
21885 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
21886
21887         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
21888
21889         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
21890         prediction.
21891         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
21892
21893         * string/strnlen.c: Don't define STRNLEN, reverse logic.
21894         Remove unused variable magic_bits.
21895         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
21896
21897         * string/strnlen.c: Define and use STRNLEN macro.
21898         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
21899         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
21900         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
21901         * wcsmbs/wcslen.c: Define and use WCSLEN.
21902         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
21903         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
21904         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
21905         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
21906         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
21907         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
21908         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
21909
21910 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21911
21912         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21913         strnlen-sse2-no-bsf.
21914         Rename strlen-no-bsf to strlen-sse2-no-bsf.
21915         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
21916         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
21917         Add strnlen support.
21918         (USE_AS_STRNLEN): New macro.
21919         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
21920         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
21921         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
21922         * sysdeps/x86_64/wcslen.S: New file.
21923
21924 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
21925
21926         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
21927         XMM-moves are used for copying on small sizes.
21928
21929 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21930
21931         * wcsmbs/Makefile (strop-tests): Add wcschr.
21932         * wcsmbs/test-wcschr.c: New file.
21933         * string/test-strchr.c: Update.
21934         Add wcschr support.
21935         (WIDE): New macro.
21936
21937 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21938
21939         * wcsmbs/Makefile (strop-tests): Add wcslen.
21940         * wcsmbs/test-wcslen.c: New file.
21941         * string/test-strlen.c: Update.
21942         Add wcslen support.
21943         (WIDE): New macro.
21944
21945 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
21946
21947         * po/it.po: Update from translation team.
21948
21949 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21950
21951         * sysdeps/x86_64/wcscmp.S: Update.
21952         Fix wrong comparison semantics.
21953         wcscmp shall use signed comparison not unsigned.
21954         Don't use substraction to avoid overflow bug.
21955         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
21956         * wcsmbc/wcscmp.c: Likewise.
21957         * string/test-strcmp.c: Likewise.
21958         Add new tests to check cases with negative values.
21959
21960 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
21961
21962         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
21963         * sysdeps/x86_64/dla.h: ...here.  New file.
21964         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
21965         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21966         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21967         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21968         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21969         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
21970         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21971         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
21972         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
21973
21974 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
21975
21976         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
21977         __ynl_finite aliases.
21978
21979 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
21980
21981         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21982
21983         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
21984         define DLA_FMA.
21985         [DLA_FMA] (EMULV): Use DLA_FMA.
21986         [DLA_FMA] (MUL12): Use EMULV.
21987         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
21988         that are not needed.
21989         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21990         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21991         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21992         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21993         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21994         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
21995         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
21996
21997 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
21998
21999         * math/s_nan.c: Undef __nan.
22000         * math/s_nanf.c: Undef __nanf.
22001         * math/s_nanl.c: Undef __nanl.
22002         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
22003         "math_private.h".
22004
22005 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
22006
22007         * math/s_catan.c: Add branch predictions.
22008         * math/s_catanf.c: Likewise.
22009         * math/s_catanh.c: Likewise.
22010         * math/s_catanhf.c: Likewise.
22011         * math/s_catanhl.c: Likewise.
22012         * math/s_catanl.c: Likewise.
22013         * math/s_cexp.c: Likewise.
22014         * math/s_cexpf.c: Likewise.
22015         * math/s_cexpl.c: Likewise.
22016         * math/s_clog.c: Likewise.
22017         * math/s_clog10.c: Likewise.
22018         * math/s_clog10f.c: Likewise.
22019         * math/s_clog10l.c: Likewise.
22020         * math/s_clogf.c: Likewise.
22021         * math/s_clogl.c: Likewise.
22022         * math/s_csqrt.c: Likewise.
22023         * math/s_csqrtf.c: Likewise.
22024         * math/s_csqrtl.c: Likewise.
22025         * math/s_ctanf.c: Likewise.
22026         * math/s_ctanh.c: Likewise.
22027         * math/s_ctanhf.c: Likewise.
22028         * math/s_ctanhl.c: Likewise.
22029         * math/s_ctanl.c: Likewise.
22030
22031         * math/math_private.h: Define __nan, __nanf, __nanl.
22032         * math/s_cacosh.c: Include <math_private.h>.
22033         * math/s_cacoshl.c: Likewise.
22034         * math/s_casinh.c: Likewise.
22035         * math/s_casinhf.c: Likewise.
22036         * math/s_casinhl.c: Likewise.
22037         * math/s_ccos.c: Rely entire on ccosh.
22038         * math/s_ccosf.c: Rely entire on ccoshf.
22039         * math/s_ccosl.c: Rely entirely on ccoshl.
22040         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
22041         Remove tests for FE_INVALID.
22042         * math/s_ccoshf.c: Likewise.
22043         * math/s_ccoshl.c: Likewise.
22044         * math/s_csin.c: Likewise.
22045         * math/s_csinf.c: Likewise.
22046         * math/s_csinh.c Likewise.
22047         * math/s_csinhf.c: Likewise.
22048         * math/s_csinhl.c: Likewise.
22049         * math/s_csinl.c: Likewise.
22050         * math/s_ctan.c: Likewise.
22051         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
22052         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
22053         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
22054
22055 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
22056
22057         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
22058         compilation problems.
22059
22060         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
22061         __builtin_expect.
22062
22063 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
22064
22065         * sysdeps/i386/configure.in: Test for -mfma4 option.
22066         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
22067         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
22068         COMMON_CPUID_INDEX_80000001.
22069         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
22070         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
22071         use it if FMA3 is not supported.
22072         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
22073
22074         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
22075         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
22076
22077 2011-10-20  Andreas Schwab  <schwab@redhat.com>
22078
22079         [BZ #12892]
22080         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
22081         it would create a cycle with a link time dependency.
22082
22083 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
22084
22085         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
22086         instruction.
22087         * string/Makefile (strop-tests): Add rawmemchr.
22088         * string/test-rawmemchr.c: New file.
22089
22090         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
22091         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
22092         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
22093         when compiling str{,n}casecmp and when AVX is available.  Hook up
22094         new optimized code in initializers.
22095
22096 2011-10-19  Andreas Schwab  <schwab@redhat.com>
22097
22098         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
22099         __feraiseexcept instead of feraiseexcept.
22100
22101 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
22102
22103         * math/math_private.h: Define defaults for libc_fetestexcept and
22104         libc_feupdateenv.
22105         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
22106         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
22107         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
22108         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
22109         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
22110         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
22111         libc_fetestexcept and libc_feupdateenv.
22112
22113         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
22114         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
22115         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
22116         * sysdeps/x86_64/fpu/math_private.h: Define special version of
22117         libc_feholdexcept_setround.
22118
22119         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
22120         Add s_nearbyint-c and s_nearbyintf-c.
22121         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
22122         nearbyintf inlines.
22123         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
22124         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
22125         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
22126         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
22127
22128         * math/math_private.h: Define defaults for libc_fegetround,
22129         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
22130         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
22131         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
22132         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
22133         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
22134         standard functions.
22135         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
22136         Remove comments and hacks for old compiler versions.
22137         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
22138         libc_fegetround, libc_fesetround, libc_feholdexcept, and
22139         libc_feholdexceptl.
22140
22141 2011-10-18  Andreas Schwab  <schwab@redhat.com>
22142
22143         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
22144         (__feraiseexcept_renamed): Add __NTH.
22145         (feraiseexcept): Add __NTH.  Rename local variables to fix
22146         namespace violations.
22147
22148 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
22149
22150         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
22151
22152         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
22153
22154         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
22155         recently added interfaces.
22156         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
22157
22158         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
22159         about macro parameter expansion.
22160
22161         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
22162         __NO_MATH_INLINES is defined.  Cleanups.
22163
22164         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
22165         and __floorf is target has SSE4.1.
22166         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
22167         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
22168         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
22169         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
22170
22171         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
22172         name.
22173         (floorf): Likewise.
22174
22175         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
22176
22177 2011-10-17  Andreas Schwab  <schwab@redhat.com>
22178
22179         * misc/sys/cdefs.h: Fix last change.
22180
22181         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
22182         database lookup.
22183
22184 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
22185
22186         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
22187
22188         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
22189         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
22190         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
22191         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
22192         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
22193         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
22194         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
22195         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
22196         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
22197         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
22198         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
22199         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
22200         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
22201         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
22202         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
22203         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
22204         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
22205         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
22206         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
22207         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
22208         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
22209         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
22210
22211         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
22212         ceil, ceilf, floor, floorf.
22213
22214         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
22215         Perform IRELATIVE relocations last.
22216
22217         * elf/do-rel.h: Add another parameter nrelative, replacing the
22218         local variable with the same name.  Change name of the function
22219         to end in Rel or Rela (uppercase).
22220         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
22221         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
22222         elf_dynamic_do_##reloc function.
22223
22224 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
22225
22226         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
22227         is sufficient, at least on modern CPUs.
22228
22229         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
22230
22231         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
22232         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
22233
22234         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
22235         __expl_finite.
22236         * math/bits/math-finite.h: Add entries for exp.
22237         * math/e_expl.c: Add __*_finite alias.
22238         * sysdeps/i386/fpu/e_exp.S: Likewise.
22239         * sysdeps/i386/fpu/e_expf.S: Likewise.
22240         * sysdeps/i386/fpu/e_expl.c: Likewise.
22241         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
22242         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
22243         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
22244         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
22245         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
22246         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
22247         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
22248
22249         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
22250         is sufficient, at least on modern CPUs.
22251
22252         * ctype/ctype-info.c (__ctype_init): Define.
22253         * include/ctype.h (__ctype_init): Declare.
22254         (__ctype_b_loc): The variable is always initialized.
22255         (__ctype_toupper_loc): Likewise.
22256         (__ctype_tolower_loc): Likewise.
22257         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
22258         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
22259
22260 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
22261
22262         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
22263
22264         * configure.in: Also look in $cxxmachine/include for C++ system
22265         headers.
22266
22267 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22268
22269         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
22270         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
22271         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
22272         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
22273         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
22274         (USE_AS_WMEMCMP): New macro.
22275         Fixing indents.
22276         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
22277         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
22278         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
22279         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
22280         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22281         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
22282         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
22283         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
22284         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
22285         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
22286         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
22287         (USE_AS_WMEMCMP): New macro.
22288         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
22289         * sysdeps/string/test-memcmp.c: Update.
22290         Fix simple_wmemcmp.
22291         Add new tests.
22292         * wcsmbs/wmemcmp.c: Update.
22293         (WMEMCMP): New macro.
22294         Fix overflow bug.
22295
22296 2011-10-12  Andreas Jaeger  <aj@suse.de>
22297
22298         [BZ #13268]
22299         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
22300
22301 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
22302
22303         * libio/iofwide.c (do_length): Avoid warning.
22304
22305         * ctype/ctype.h (__isctype_f): Add missing __THROW.
22306
22307 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
22308
22309         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
22310
22311         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
22312         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
22313         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
22314         * sysdeps/i386/i686/fpu/e_log.S: New file.
22315         * sysdeps/i386/i686/fpu/e_logf.S: New file.
22316         * sysdeps/i386/i686/fpu/e_logl.S: New file.
22317
22318         * ctype/ctype.h: Add support for inlined isXXX functions when
22319         compiling C++ code.
22320
22321 2011-10-14  Andreas Schwab  <schwab@redhat.com>
22322
22323         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
22324
22325         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
22326
22327 2011-10-13  Roland McGrath  <roland@hack.frob.com>
22328
22329         [BZ #13291]
22330         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
22331
22332 2011-10-13  Andreas Schwab  <schwab@redhat.com>
22333
22334         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
22335         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
22336         feraiseexcept.
22337
22338         * sysdeps/x86_64/memrchr.S: Check for zero size.
22339
22340         * string/stratcliff.c: Add memrchr tests.
22341
22342 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22343
22344         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22345         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
22346         rawmemchr-sse2 rawmemchr-sse2-bsf.
22347         * sysdeps/i386/i686/multiarch/memchr.S: New file.
22348         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
22349         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
22350         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
22351         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
22352         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
22353         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
22354         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
22355         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
22356         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
22357         * string/memrchr.c (MEMRCHR): New macro.
22358
22359 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
22360
22361         Add integration with gcc's -ffinite-math-only and optimize wrapper
22362         functions in libm.
22363         * Versions.def: Define GLIBC_2.15 version for libm.
22364         * math/Makefile (headers): Add bits/math-finite.h.
22365         * math/bits/math-finite.h: New file.
22366         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
22367         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
22368         * math/e_acoshl.c: Add __*_finite alias.
22369         * math/e_acosl.c: Likewise.
22370         * math/e_asinl.c: Likewise.
22371         * math/e_atan2l.c: Likewise.
22372         * math/e_atanhl.c: Likewise.
22373         * math/e_coshl.c: Likewise.
22374         * math/e_exp10.c: Likewise.
22375         * math/e_exp10f.c: Likewise.
22376         * math/e_exp10l.c: Likewise.
22377         * math/e_exp2l.c: Likewise.
22378         * math/e_fmodl.c: Likewise.
22379         * math/e_gammal_r.c: Likewise.
22380         * math/e_hypotl.c: Likewise.
22381         * math/e_j0l.c: Likewise.
22382         * math/e_j1l.c: Likewise.
22383         * math/e_jnl.c: Likewise.
22384         * math/e_lgammal_r.c: Likewise.
22385         * math/e_log10l.c: Likewise.
22386         * math/e_log2l.c: Likewise.
22387         * math/e_logl.c: Likewise.
22388         * math/e_powl.c: Likewise.
22389         * math/e_sinhl.c: Likewise.
22390         * math/e_sqrtl.c: Likewise.
22391         * math/e_scalb.c: Completely rewritten and optimized.
22392         * math/e_scalbf.c: Likewise.
22393         * math/e_scalbl.c: Likewise.
22394         * math/w_acos.c: Likewise.
22395         * math/w_acosf.c: Likewise.
22396         * math/w_acosl.c: Likewise.
22397         * math/w_acosh.c: Likewise.
22398         * math/w_acoshf.c: Likewise.
22399         * math/w_acoshl.c: Likewise.
22400         * math/w_asin.c: Likewise.
22401         * math/w_asinf.c: Likewise.
22402         * math/w_asinl.c: Likewise.
22403         * math/w_atan2.c: Likewise.
22404         * math/w_atan2f.c: Likewise.
22405         * math/w_atan2l.c: Likewise.
22406         * math/w_atanh.c: Likewise.
22407         * math/w_atanhf.c: Likewise.
22408         * math/w_atanhl.c: Likewise.
22409         * math/w_exp10.c: Likewise.
22410         * math/w_exp10f.c: Likewise.
22411         * math/w_exp10l.c: Likewise.
22412         * math/w_fmod.c: Likewise.
22413         * math/w_fmodf.c: Likewise.
22414         * math/w_fmodl.c: Likewise.
22415         * math/w_j0.c: Likewise.
22416         * math/w_j0f.c: Likewise.
22417         * math/w_j0l.c: Likewise.
22418         * math/w_j1.c: Likewise.
22419         * math/w_j1f.c: Likewise.
22420         * math/w_j1l.c: Likewise.
22421         * math/w_jn.c: Likewise.
22422         * math/w_jnf.c: Likewise.
22423         * math/w_log.c: Likewise.
22424         * math/w_logf.c: Likewise.
22425         * math/w_logl.c: Likewise.
22426         * math/w_log10.c: Likewise.
22427         * math/w_log10f.c: Likewise.
22428         * math/w_log10l.c: Likewise.
22429         * math/w_log2.c: Likewise.
22430         * math/w_log2f.c: Likewise.
22431         * math/w_log2l.c: Likewise.
22432         * math/w_pow.c: Likewise.
22433         * math/w_powf.c: Likewise.
22434         * math/w_powl.c: Likewise.
22435         * math/w_remainder.c: Likewise.
22436         * math/w_remainderf.c: Likewise.
22437         * math/w_remainderl.c: Likewise.
22438         * math/w_scalb.c: Likewise.
22439         * math/w_scalbf.c: Likewise.
22440         * math/w_scalbl.c: Likewise.
22441         * math/w_sqrt.c: Likewise.
22442         * math/w_sqrtf.c: Likewise.
22443         * math/w_sqrtl.c: Likewise.
22444         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
22445         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
22446         used.
22447         * math/math_private.h: Declare __kernel_standard_f.
22448         * math/w_cosh.c: Remove cruft and optimize a bit.
22449         * math/w_coshf.c: Likewise.
22450         * math/w_coshl.c: Likewise.
22451         * math/w_exp2.c: Likewise.
22452         * math/w_exp2f.c: Likewise.
22453         * math/w_exp2l.c: Likewise.
22454         * math/w_hypot.c: Likewise.
22455         * math/w_hypotf.c: Likewise.
22456         * math/w_hypotl.c: Likewise.
22457         * math/w_lgamma.c: Likewise.
22458         * math/w_lgamma_r.c: Likewise.
22459         * math/w_lgammaf.c: Likewise.
22460         * math/w_lgammaf_r.c: Likewise.
22461         * math/w_lgammal.c: Likewise.
22462         * math/w_lgammal_r.c: Likewise.
22463         * math/w_sinh.c: Likewise.
22464         * math/w_sinhf.c: Likewise.
22465         * math/w_sinhl.c: Likewise.
22466         * math/w_tgamma.c: Likewise.
22467         * math/w_tgammaf.c: Likewise.
22468         * math/w_tgammal.c: Likewise.
22469         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
22470         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
22471         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
22472         Minor optimizations.  Pretty printing.  Remove cruft.
22473         * sysdeps/i386/fpu/e_acosf.S: Likewise.
22474         * sysdeps/i386/fpu/e_acosh.S: Likewise.
22475         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
22476         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
22477         * sysdeps/i386/fpu/e_acosl.c: Likewise.
22478         * sysdeps/i386/fpu/e_asin.S: Likewise.
22479         * sysdeps/i386/fpu/e_asinf.S: Likewise.
22480         * sysdeps/i386/fpu/e_atan2.S: Likewise.
22481         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
22482         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
22483         * sysdeps/i386/fpu/e_atanh.S: Likewise.
22484         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
22485         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
22486         * sysdeps/i386/fpu/e_exp10.S: Likewise.
22487         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
22488         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
22489         * sysdeps/i386/fpu/e_exp2.S: Likewise.
22490         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
22491         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
22492         * sysdeps/i386/fpu/e_fmod.S: Likewise.
22493         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
22494         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
22495         * sysdeps/i386/fpu/e_hypot.S: Likewise.
22496         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
22497         * sysdeps/i386/fpu/e_log.S: Likewise.
22498         * sysdeps/i386/fpu/e_log10.S: Likewise.
22499         * sysdeps/i386/fpu/e_log10f.S: Likewise.
22500         * sysdeps/i386/fpu/e_log10l.S: Likewise.
22501         * sysdeps/i386/fpu/e_log2.S: Likewise.
22502         * sysdeps/i386/fpu/e_log2f.S: Likewise.
22503         * sysdeps/i386/fpu/e_log2l.S: Likewise.
22504         * sysdeps/i386/fpu/e_logf.S: Likewise.
22505         * sysdeps/i386/fpu/e_logl.S: Likewise.
22506         * sysdeps/i386/fpu/e_pow.S: Likewise.
22507         * sysdeps/i386/fpu/e_powf.S: Likewise.
22508         * sysdeps/i386/fpu/e_powl.S: Likewise.
22509         * sysdeps/i386/fpu/e_remainder.S: Likewise.
22510         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
22511         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
22512         * sysdeps/i386/fpu/e_scalb.S: Likewise.
22513         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
22514         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
22515         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
22516         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
22517         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
22518         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
22519         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
22520         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22521         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
22522         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
22523         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
22524         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
22525         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
22526         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
22527         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
22528         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
22529         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
22530         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22531         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
22532         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
22533         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22534         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
22535         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
22536         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
22537         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22538         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
22539         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
22540         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
22541         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
22542         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
22543         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
22544         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
22545         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
22546         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
22547         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
22548         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
22549         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
22550         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
22551         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
22552         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
22553         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
22554         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
22555         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
22556         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
22557         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
22558         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
22559         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
22560         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
22561         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
22562         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
22563         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
22564         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
22565         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
22566         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
22567         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
22568         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
22569         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
22570         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
22571         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
22572         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
22573         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
22574         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
22575         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
22576         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
22577         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
22578         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
22579         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
22580         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
22581         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
22582         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
22583         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
22584         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
22585         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
22586         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
22587         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
22588         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
22589         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
22590         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
22591         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
22592         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
22593         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
22594         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
22595         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
22596         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
22597         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
22598         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
22599         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
22600         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
22601         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
22602         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
22603         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
22604         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
22605         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
22606         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
22607         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
22608         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
22609         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
22610         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
22611         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
22612         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
22613         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
22614         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
22615         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
22616         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
22617         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
22618         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
22619         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
22620         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
22621         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
22622         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
22623         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
22624         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
22625         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
22626         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
22627         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
22628         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
22629         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
22630         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
22631         (__isnanf): Likewise.
22632         (__isinf_ns): Likewise.
22633         (__isinf_nsf): Likewise.
22634         (__finite): Likewise.
22635         (__finitef): Likewise.
22636         (__ieee754_sqrt): Define as macro.
22637         (__ieee754_sqrtf): Define as macro.
22638         (__ieee754_sqrtl): Define as macro.
22639         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
22640         inlined copy.
22641         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
22642         __FINITE_MATH_ONLY__ consistent.
22643         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
22644
22645 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
22646
22647         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
22648         of rawmemchr.
22649
22650         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
22651
22652 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
22653
22654         * po/ja.po: Update from translation team.
22655
22656 2011-10-08  Roland McGrath  <roland@hack.frob.com>
22657
22658         * locale/programs/locarchive.c (prepare_address_space): New function.
22659         (create_archive, enlarge_archive, open_archive): Use it.
22660
22661         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
22662         inside [SHARED], where it is used.
22663
22664         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
22665
22666         * nss/getent.c (netgroup_keys): Remove unused variable.
22667         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
22668
22669 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
22670
22671         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
22672         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
22673         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
22674         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
22675         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
22676         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
22677         * math/Makefile (libm-calls): Add s_isinf_ns.
22678         * math/divtc3.c: Use __isinf_nsl instead of isinf.
22679         * math/multc3.c: Likewise.
22680         * math/s_casin.c: Likewise.
22681         * math/s_casinf.c: Likewise.
22682         * math/s_casinl.c: Likewise.
22683         * math/s_ccos.c: Likewise.
22684         * math/s_ccosf.c: Likewise.
22685         * math/s_ccosl.c: Likewise.
22686         * math/s_ctan.c: Likewise.
22687         * math/s_ctanf.c: Likewise.
22688         * math/s_ctanh.c: Likewise.
22689         * math/s_ctanhf.c: Likewise.
22690         * math/s_ctanhl.c: Likewise.
22691         * math/s_ctanl.c: Likewise.
22692         * math/w_fmod.c: Likewise.
22693         * math/w_fmodf.c: Likewise.
22694         * math/w_fmodl.c: Likewise.
22695         * math/w_remainder.c: Likewise.
22696         * math/w_remainderf.c: Likewise.
22697         * math/w_remainderl.c: Likewise.
22698         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
22699         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
22700         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
22701         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
22702         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
22703         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
22704         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
22705         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
22706
22707         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
22708         of the number.
22709         * stdio-common/printf_fphex.c: Likewise.
22710         * stdio-common/printf_size.c: Likewise.
22711
22712         * math/e_exp10.c: Include math_private.h using <...> not "...".
22713         * math/e_exp10f.c: Likewise.
22714         * math/e_exp10l.c: Likewise.
22715         * math/e_exp2l.c: Likewise.
22716         * math/e_j0l.c: Likewise.
22717         * math/e_j1l.c: Likewise.
22718         * math/e_jnl.c: Likewise.
22719         * math/e_lgammal_r.c: Likewise.
22720         * math/e_rem_pio2l.c: Likewise.
22721         * math/e_scalb.c: Likewise.
22722         * math/e_scalbf.c: Likewise.
22723         * math/e_scalbl.c: Likewise.
22724         * math/k_cosl.c: Likewise.
22725         * math/k_sinl.c: Likewise.
22726         * math/k_tanl.c: Likewise.
22727         * math/s_cacoshf.c: Likewise.
22728         * math/s_catan.c: Likewise.
22729         * math/s_catanf.c: Likewise.
22730         * math/s_catanh.c: Likewise.
22731         * math/s_catanhf.c: Likewise.
22732         * math/s_catanhl.c: Likewise.
22733         * math/s_catanl.c: Likewise.
22734         * math/s_ccosh.c: Likewise.
22735         * math/s_ccoshf.c: Likewise.
22736         * math/s_ccoshl.c: Likewise.
22737         * math/s_cexp.c: Likewise.
22738         * math/s_cexpf.c: Likewise.
22739         * math/s_cexpl.c: Likewise.
22740         * math/s_clog.c: Likewise.
22741         * math/s_clog10.c: Likewise.
22742         * math/s_clog10f.c: Likewise.
22743         * math/s_clog10l.c: Likewise.
22744         * math/s_clogf.c: Likewise.
22745         * math/s_clogl.c: Likewise.
22746         * math/s_csin.c: Likewise.
22747         * math/s_csinf.c: Likewise.
22748         * math/s_csinh.c: Likewise.
22749         * math/s_csinhf.c: Likewise.
22750         * math/s_csinhl.c: Likewise.
22751         * math/s_csinl.c: Likewise.
22752         * math/s_csqrt.c: Likewise.
22753         * math/s_csqrtf.c: Likewise.
22754         * math/s_csqrtl.c: Likewise.
22755         * math/s_ctan.c: Likewise.
22756         * math/s_ctanf.c: Likewise.
22757         * math/s_ctanh.c: Likewise.
22758         * math/s_ctanhf.c: Likewise.
22759         * math/s_ctanhl.c: Likewise.
22760         * math/s_ctanl.c: Likewise.
22761         * math/s_ldexp.c: Likewise.
22762         * math/s_ldexpf.c: Likewise.
22763         * math/s_ldexpl.c: Likewise.
22764         * math/s_significand.c: Likewise.
22765         * math/s_significandf.c: Likewise.
22766         * math/s_significandl.c: Likewise.
22767         * math/w_acos.c: Likewise.
22768         * math/w_acosf.c: Likewise.
22769         * math/w_acosh.c: Likewise.
22770         * math/w_acoshf.c: Likewise.
22771         * math/w_acoshl.c: Likewise.
22772         * math/w_acosl.c: Likewise.
22773         * math/w_asin.c: Likewise.
22774         * math/w_asinf.c: Likewise.
22775         * math/w_asinl.c: Likewise.
22776         * math/w_atan2.c: Likewise.
22777         * math/w_atan2f.c: Likewise.
22778         * math/w_atan2l.c: Likewise.
22779         * math/w_atanh.c: Likewise.
22780         * math/w_atanhf.c: Likewise.
22781         * math/w_atanhl.c: Likewise.
22782         * math/w_cosh.c: Likewise.
22783         * math/w_coshf.c: Likewise.
22784         * math/w_coshl.c: Likewise.
22785         * math/w_dremf.c: Likewise.
22786         * math/w_exp10.c: Likewise.
22787         * math/w_exp10f.c: Likewise.
22788         * math/w_exp10l.c: Likewise.
22789         * math/w_exp2.c: Likewise.
22790         * math/w_exp2f.c: Likewise.
22791         * math/w_fmod.c: Likewise.
22792         * math/w_fmodf.c: Likewise.
22793         * math/w_fmodl.c: Likewise.
22794         * math/w_hypot.c: Likewise.
22795         * math/w_hypotf.c: Likewise.
22796         * math/w_hypotl.c: Likewise.
22797         * math/w_j0.c: Likewise.
22798         * math/w_j0f.c: Likewise.
22799         * math/w_j0l.c: Likewise.
22800         * math/w_j1.c: Likewise.
22801         * math/w_j1f.c: Likewise.
22802         * math/w_j1l.c: Likewise.
22803         * math/w_jn.c: Likewise.
22804         * math/w_jnf.c: Likewise.
22805         * math/w_jnl.c: Likewise.
22806         * math/w_lgamma.c: Likewise.
22807         * math/w_lgamma_r.c: Likewise.
22808         * math/w_lgammaf.c: Likewise.
22809         * math/w_lgammaf_r.c: Likewise.
22810         * math/w_lgammal.c: Likewise.
22811         * math/w_lgammal_r.c: Likewise.
22812         * math/w_log.c: Likewise.
22813         * math/w_log10.c: Likewise.
22814         * math/w_log10f.c: Likewise.
22815         * math/w_log10l.c: Likewise.
22816         * math/w_log2.c: Likewise.
22817         * math/w_log2f.c: Likewise.
22818         * math/w_log2l.c: Likewise.
22819         * math/w_logf.c: Likewise.
22820         * math/w_logl.c: Likewise.
22821         * math/w_pow.c: Likewise.
22822         * math/w_powf.c: Likewise.
22823         * math/w_powl.c: Likewise.
22824         * math/w_remainder.c: Likewise.
22825         * math/w_remainderf.c: Likewise.
22826         * math/w_remainderl.c: Likewise.
22827         * math/w_scalb.c: Likewise.
22828         * math/w_scalbf.c: Likewise.
22829         * math/w_scalbl.c: Likewise.
22830         * math/w_sinh.c: Likewise.
22831         * math/w_sinhf.c: Likewise.
22832         * math/w_sinhl.c: Likewise.
22833         * math/w_sqrt.c: Likewise.
22834         * math/w_sqrtf.c: Likewise.
22835         * math/w_sqrtl.c: Likewise.
22836         * math/w_tgamma.c: Likewise.
22837         * math/w_tgammaf.c: Likewise.
22838         * math/w_tgammal.c: Likewise.
22839
22840         * po/ja.po: Update from translation team.
22841
22842 2011-09-29  Andreas Jaeger  <aj@suse.de>
22843
22844         [BZ #13179]
22845         * sunrpc/netname.c (netname2host): Fix logic.
22846
22847         [BZ #6779]
22848         [BZ #6783]
22849         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
22850         correctly.
22851         * math/w_remainder.c (__remainder): Likewise.
22852         * math/w_remainderf.c (__remainderf): Likewise.
22853         * math/libm-test.inc (remainder_test): Add test cases.
22854
22855 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22856
22857         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
22858         sdiv_qrnnd.
22859
22860 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
22861
22862         * string/test-memcmp.c: Avoid unncessary #defines.
22863         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
22864
22865 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22866
22867         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
22868         Use new sse2 version for core i3 - i7 as it's faster
22869         than sse42 version.
22870         (bit_Prefer_PMINUB_for_stringop): New.
22871         * sysdeps/x86_64/rawmemchr.S: Update.
22872         Replace with faster SSE2 version.
22873         * sysdeps/x86_64/memrchr.S: New file.
22874         * sysdeps/x86_64/memchr.S: Update.
22875         Replace with faster SSE2 version.
22876
22877 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
22878
22879         * elf/dl-load.c (lose): Add cast to avoid warning.
22880
22881 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
22882
22883         * po/ca.po: Update from translation team.
22884
22885         * inet/getnetgrent_r.c: Hook up nscd.
22886         * nscd/Makefile (routines): Add nscd_netgroup.
22887         (nscd-modules): Add netgroupcache.
22888         (CFLAGS-netgroupcache.c): Define.
22889         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
22890         (cache_search): Add const to second parameter.
22891         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
22892         INNETGR.
22893         (dbs): Add netgrdb entry.
22894         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
22895         (verify_persistent_db): Handle netgrdb.
22896         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
22897         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
22898         GETFDNETGR.
22899         (netgroup_response_header): Define.
22900         (innetgroup_response_header): Define.
22901         (datahead): Add netgroup_response_header and innetgroup_response_header
22902         elements.
22903         * nscd/nscd.conf: Add entries for netgroup cache.
22904         * nscd/nscd.h (dbtype): Add netgrdb.
22905         (_PATH_NSCD_NETGROUP_DB): Define.
22906         (netgroup_iov_disabled): Declare.
22907         (xmalloc, xcalloc, xrealloc): Move declarations here.
22908         (cache_search): Adjust prototype.
22909         Add netgroup-related prototypes.
22910         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
22911         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
22912         (__nscd_innetgr): Declare.
22913         * nscd/selinux.c (perms): Use access_vector_t as element type and
22914         add netgroup-related initializers.
22915         * nscd/netgroupcache.c: New file.
22916         * nscd/nscd_netgroup.c: New file.
22917         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
22918         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
22919         For four parameters use innetgr.
22920         * nss/nss_files/files-init.c: Add definition and callback for netgr.
22921         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
22922         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
22923         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
22924
22925         * nscd/connections.c (register_traced_file): Don't register file
22926         for disabled databases.
22927
22928 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
22929
22930         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
22931
22932         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
22933         from tree and freeing node.
22934
22935 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
22936
22937         * nss/nsswitch.c (__nss_database_lookup): Handle
22938         nss_parse_service_list out of memory case.
22939
22940 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
22941
22942         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
22943         out of memory case.
22944
22945 2011-10-04  Andreas Schwab  <schwab@redhat.com>
22946
22947         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
22948         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
22949         pass it down.
22950         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
22951         elf_machine_rela, elf_machine_lazy_rel.
22952         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
22953         (ELF_DYNAMIC_DO_REL): Likewise.
22954         (ELF_DYNAMIC_DO_RELA): Likewise.
22955         (ELF_DYNAMIC_RELOCATE): Likewise.
22956         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
22957         to ELF_DYNAMIC_DO_REL.
22958         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
22959         (dl_main): In trace mode always set __RTLD_NOIFUNC.
22960         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
22961         elf_machine_rela.
22962         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
22963         skip_ifunc, don't call ifunc function if non-zero.
22964         (elf_machine_rela): Likewise.
22965         (elf_machine_lazy_rel): Likewise.
22966         (elf_machine_lazy_rela): Likewise.
22967         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
22968         (elf_machine_lazy_rel): Likewise.
22969         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
22970         Likewise.
22971         (elf_machine_lazy_rel): Likewise.
22972         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
22973         Likewise.
22974         (elf_machine_lazy_rel): Likewise.
22975         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
22976         (elf_machine_lazy_rel): Likewise.
22977         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
22978         (elf_machine_lazy_rel): Likewise.
22979         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
22980         (elf_machine_lazy_rel): Likewise.
22981         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
22982         (elf_machine_lazy_rel): Likewise.
22983         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
22984         (elf_machine_lazy_rel): Likewise.
22985         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
22986         (elf_machine_lazy_rel): Likewise.
22987
22988 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
22989
22990         * nss/nss_files/files-init.c (_nss_files_init): Use static
22991         initialization for all the *_traced_file variables.
22992
22993 2011-09-28  Andreas Schwab  <schwab@redhat.com>
22994
22995         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
22996
22997 2011-09-27  Roland McGrath  <roland@hack.frob.com>
22998
22999         [BZ #13226]
23000         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
23001
23002 2011-09-27  Andreas Schwab  <schwab@redhat.com>
23003
23004         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
23005         Reread the line before reparsing it.
23006
23007 2011-09-26  Andreas Schwab  <schwab@redhat.com>
23008
23009         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
23010
23011 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
23012             Maxim Kuvyrkov  <maxim@codesourcery.com>
23013             Joseph Myers  <joseph@codesourcery.com>
23014
23015         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
23016         if needed for __stack_chk_guard.
23017
23018 2011-09-19  Roland McGrath  <roland@hack.frob.com>
23019
23020         * sysdeps/posix/spawni.c (script_execute): Always define it.
23021         It will be optimized away if unused.
23022         (maybe_script_execute): New function.
23023         (__spawni): Call it.
23024
23025         * Makerules: Don't include tls.make.
23026         (config-tls): Always set to thread.
23027         * tls.make.c: File removed.
23028
23029 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
23030
23031         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
23032         * config.make.in (CPPFLAGS-config): New substituted variable.
23033
23034 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
23035
23036         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
23037
23038         [BZ #13192]
23039         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
23040         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
23041
23042 2011-09-15  Roland McGrath  <roland@hack.frob.com>
23043
23044         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
23045         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
23046         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
23047         (CALL_FAIL): Likewise.
23048         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
23049         (CALL_FAIL): Macro removed.
23050         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
23051
23052 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
23053
23054         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
23055         for __FINITE_MATH_ONLY__ == 1.
23056
23057 2011-09-15  Andreas Schwab  <schwab@redhat.com>
23058
23059         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
23060         __ieee754_sqrt instead of sqrt.
23061         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
23062         __ieee754_sqrtf instead of sqrtf.
23063         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
23064         __floorf instead of floorf.
23065         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
23066         __floorf, __truncf instead of floorf, truncf.
23067
23068 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
23069
23070         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
23071
23072         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
23073         __extern_always_inline.
23074         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
23075         32-bit.
23076
23077 2011-09-14  Andreas Schwab  <schwab@redhat.com>
23078
23079         * elf/rtld.c (dl_main): Also relocate in dependency order when
23080         doing symbol dependency testing.
23081
23082 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
23083
23084         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
23085         Always define `refsym'.
23086
23087 2011-09-13  Andreas Schwab  <schwab@redhat.com>
23088
23089         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
23090         (__FD_ELT): Renamed from __FDELT.
23091         * misc/bits/select2.h (__FD_ELT): Likewise.
23092         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
23093         __FD_MASK instead of __FDELT, __FDMASK.
23094         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
23095         Likewise.
23096         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
23097         Likewise.
23098
23099         * elf/Makefile (gen-ldd): Fix pattern.
23100
23101         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
23102         (init_tls): Likewise.
23103
23104 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
23105
23106         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
23107
23108 2011-09-12  Andreas Schwab  <schwab@redhat.com>
23109
23110         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
23111         `struct cmsghdr *' instead of `void *'.
23112         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
23113         Likewise.
23114
23115 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
23116
23117         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
23118         if non-absolute.
23119         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
23120         ldd_rewrite_script.
23121
23122 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
23123
23124         * configure.in: Remove --with-tls option.
23125         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
23126         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
23127         out in case it is missing.
23128         * sysdeps/ia64/elf/configure.in: Likewise.
23129         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
23130         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
23131         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
23132         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
23133         * sysdeps/sh/elf/configure.in: Likewise.
23134         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
23135         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
23136         * sysdeps/x86_64/elf/configure.in: Likewise.
23137         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
23138         * sysdeps/mach/hurd/tls.h: Likewise.
23139
23140         [BZ #13067]
23141         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
23142
23143         [BZ #13090]
23144         * configure.in: Fix use of AC_INIT.
23145
23146         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
23147
23148 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
23149
23150         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
23151         __set_errno.
23152         * malloc/hooks.c: Likewise.
23153
23154         [BZ #11929]
23155         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
23156         variables statically.
23157         (narenas): Initialize.
23158         (list_lock): Initialize.
23159         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
23160         initializtion of main_arena and list_lock.  Small cleanups.
23161         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
23162         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
23163         Add initializers to main_arena and mp_.
23164         (malloc_state): Remove pagesize member.  Change all users to use
23165         GLRO(dl_pagesize).
23166
23167         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
23168         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
23169         is always initialized.
23170
23171         * malloc/malloc.c: Removed unused configurations and dead code.
23172         * malloc/arena.c: Likewise.
23173         * malloc/hooks.c: Likewise.
23174         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
23175
23176         * include/tls.h: Removed.  USE___THREAD must always be defined.
23177         * bits/libc-tsd.h: Don't handle !USE___THREAD.
23178         * elf/dl-libc.c: Likewise.
23179         * elf/dl-tsd.c: Likewise.
23180         * include/errno.h: Likewise.
23181         * include/netdb.h: Likewise.
23182         * include/resolv.h: Likewise.
23183         * inet/herrno-loc.c: Likewise.
23184         * inet/herrno.c: Likewise.
23185         * malloc/arena.c: Likewise.
23186         * malloc/hooks.c: Likewise.
23187         * malloc/malloc.c: Likewise.
23188         * resolv/res-state.c: Likewise.
23189         * resolv/res_libc.c: Likewise.
23190         * sysdeps/i386/dl-machine.h: Likewise.
23191         * sysdeps/ia64/dl-machine.h: Likewise.
23192         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
23193         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
23194         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
23195         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
23196         * sysdeps/sh/dl-machine.h: Likewise.
23197         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
23198         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
23199         * sysdeps/unix/i386/sysdep.S: Likewise.
23200         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23201         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
23202         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
23203         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23204         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
23205         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23206         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23207         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23208         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23209         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23210         * sysdeps/unix/x86_64/sysdep.S: Likewise.
23211         * sysdeps/x86_64/dl-machine.h: Likewise.
23212         * tls.make.c: Likewise.
23213
23214         * configure.in: Remove --with-__thread option.  Make tests for
23215         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
23216         tls_model attribute fail if no support is available.  Remove
23217         USE_IN_LIBIO.
23218         * Makeconfig: Adjust for dropped configure option.  All features are
23219         now mandatory.
23220         * Makerules: Likewise.
23221         * Versions.def: Likewise.
23222         * argp/argp-fmtstream.c: Likewise.
23223         * argp/argp-fmtstream.h: Likewise.
23224         * argp/argp-help.c: Likewise.
23225         * assert/assert.c: Likewise.
23226         * config.h.in: Likewise.
23227         * config.make.in: Likewise.
23228         * configure: Likewise.
23229         * configure.in: Likewise.
23230         * csu/Versions: Likewise.
23231         * csu/init.c: Likewise.
23232         * elf/tst-audit2.c: Likewise.
23233         * elf/tst-tls10.c: Likewise.
23234         * elf/tst-tls10.h: Likewise.
23235         * elf/tst-tls11.c: Likewise.
23236         * elf/tst-tls12.c: Likewise.
23237         * elf/tst-tls14.c: Likewise.
23238         * elf/tst-tlsmod11.c: Likewise.
23239         * elf/tst-tlsmod12.c: Likewise.
23240         * elf/tst-tlsmod13.c: Likewise.
23241         * elf/tst-tlsmod13a.c: Likewise.
23242         * elf/tst-tlsmod14a.c: Likewise.
23243         * elf/tst-tlsmod15b.c: Likewise.
23244         * elf/tst-tlsmod16a.c: Likewise.
23245         * elf/tst-tlsmod16b.c: Likewise.
23246         * elf/tst-tlsmod7.c: Likewise.
23247         * elf/tst-tlsmod8.c: Likewise.
23248         * elf/tst-tlsmod9.c: Likewise.
23249         * gmon/gmon.c: Likewise.
23250         * grp/fgetgrent_r.c: Likewise.
23251         * grp/putgrent.c: Likewise.
23252         * hurd/fopenport.c: Likewise.
23253         * include/libc-symbols.h: Likewise.
23254         * include/tls.h: Likewise.
23255         * intl/gettextP.h: Likewise.
23256         * intl/loadinfo.h: Likewise.
23257         * locale/global-locale.c: Likewise.
23258         * locale/localeinfo.h: Likewise.
23259         * mach/devstream.c: Likewise.
23260         * malloc/arena.c: Likewise.
23261         * malloc/set-freeres.c: Likewise.
23262         * misc/err.c: Likewise.
23263         * misc/getttyent.c: Likewise.
23264         * misc/mntent_r.c: Likewise.
23265         * posix/getopt.c: Likewise.
23266         * posix/wordexp.c: Likewise.
23267         * pwd/fgetpwent_r.c: Likewise.
23268         * resolv/Versions: Likewise.
23269         * resolv/res_hconf.c: Likewise.
23270         * shadow/fgetspent_r.c: Likewise.
23271         * shadow/putspent.c: Likewise.
23272         * stdio-common/printf_fphex.c: Likewise.
23273         * stdio-common/tmpfile.c: Likewise.
23274         * stdlib/abort.c: Likewise.
23275         * stdlib/fmtmsg.c: Likewise.
23276         * sunrpc/auth_unix.c: Likewise.
23277         * sunrpc/clnt_perr.c: Likewise.
23278         * sunrpc/clnt_tcp.c: Likewise.
23279         * sunrpc/clnt_udp.c: Likewise.
23280         * sunrpc/clnt_unix.c: Likewise.
23281         * sunrpc/openchild.c: Likewise.
23282         * sunrpc/svc_simple.c: Likewise.
23283         * sunrpc/svc_tcp.c: Likewise.
23284         * sunrpc/svc_udp.c: Likewise.
23285         * sunrpc/svc_unix.c: Likewise.
23286         * sunrpc/xdr.c: Likewise.
23287         * sunrpc/xdr_array.c: Likewise.
23288         * sunrpc/xdr_rec.c: Likewise.
23289         * sunrpc/xdr_ref.c: Likewise.
23290         * sunrpc/xdr_stdio.c: Likewise.
23291
23292 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
23293
23294         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
23295
23296 2011-07-03  Andreas Jaeger  <aj@suse.de>
23297
23298         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
23299         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
23300         regenerate with gen-libm-tests.pl.
23301
23302 2010-05-12  Petr Baudis  <pasky@suse.cz>
23303
23304         [BZ #11589]
23305         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
23306         around j0() zero points by switching to j1().
23307         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23308         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23309         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
23310         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23311
23312 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
23313
23314         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
23315         instead of 0.
23316         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
23317         instead of 0.
23318         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
23319         Patch in part by Pavel Roskin <proski@gnu.org>.
23320
23321         [BZ #13138]
23322         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
23323         realloc.
23324         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
23325         Free memory block if necessary.
23326
23327         [BZ #12847]
23328         * libio/genops.c (INTDEF): For string streams the _lock pointer can
23329         be NULL.  Don't lock in this case.
23330
23331 2011-09-09  Roland McGrath  <roland@hack.frob.com>
23332
23333         * elf/elf.h (ELFOSABI_GNU): New macro.
23334         (ELFOSABI_LINUX): Define to that.
23335
23336 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
23337
23338         * string/strncat.c (strncat): Undef the symbol in case it has been
23339         defined in bits/string.h.
23340
23341 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
23342
23343         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
23344
23345         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
23346         link map.
23347
23348 2011-08-17  Andreas Jaeger  <aj@suse.de>
23349
23350         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
23351
23352 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
23353             Ian Lance Taylor  <iant@google.com>
23354
23355         * math/libm-test.inc (lround_test): New testcase.
23356         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
23357
23358 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
23359
23360         * Makefile: Remove support for automatic cvs check-ins.
23361         * Makerules: Likewise.
23362         * config.make.in: Likewise.
23363         * configure.in: Likewise.
23364         * intl/Makefile: Likewise.
23365         * locale/Makefile: Likewise.
23366         * po/Makefile: Likewise.
23367         * posix/Makefile: Likewise.
23368         * sysdeps/gnu/Makefile: Likewise.
23369         * sysdeps/mach/hurd/Makefile: Likewise.
23370         * sysdeps/sparc/sparc32/Makefile: Likewise.
23371
23372         [BZ #13118]
23373         * posix/Makefile (bug-regex32-ENV): Define.
23374         Patch by John Stanley <jpsinthemix@verizon.net>.
23375
23376         * misc/Makefile (headers): Add bits/select2.h.
23377         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
23378         * misc/bits/select2.h: New file.
23379         * include/bits/select2.h: New file.
23380         * debug/Makefile (routines): Add fdelt_chk.
23381         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
23382         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
23383         FD_ISSET.
23384         * debug/fdelt_chk.c: New file.
23385
23386         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
23387         * wcsmbs/test-wmemcmp.c: Likewise.
23388         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
23389         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
23390
23391 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23392
23393         * string/Makefile (strop-tests): Add memcmp.
23394         * string/test-wmemcmp.c: New file.
23395         * string/test-memcmp.c: Add wmemcmp support.
23396
23397 2011-09-08  Roland McGrath  <roland@hack.frob.com>
23398
23399         [BZ #13153]
23400         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
23401         2011-07-19 change.
23402
23403         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
23404         garbage value in a __mach_port_mod_refs call in the cases of the
23405         task-self and thread-self ports.
23406
23407 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23408
23409         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
23410
23411 2011-09-08  Andreas Schwab  <schwab@redhat.com>
23412
23413         * elf/dl-load.c (lose): Check for non-null L.
23414
23415 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
23416
23417         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
23418
23419         * elf/dl-libc.c (dlerror_run): Pass back error code from
23420         dl_catch_error.
23421
23422         [BZ #13123]
23423         * elf/dl-load.c (lose): Free l_origin if it is valid.
23424
23425         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
23426         names.
23427         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
23428         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
23429         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
23430         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
23431         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
23432         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
23433
23434 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23435
23436         * sysdeps/powerpc/fpu/e_hypot.c: New file.
23437         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
23438         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
23439         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
23440         * sysdeps/powerpc/fpu/k_cosf.c: New file.
23441         * sysdeps/powerpc/fpu/k_sinf.c: New file.
23442         * sysdeps/powerpc/fpu/s_cosf.c: New file.
23443         * sysdeps/powerpc/fpu/s_sinf.c: New file.
23444         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
23445         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
23446
23447 2011-08-15  Alan Modra  <amodra@gmail.com>
23448
23449         [BZ #13092]
23450         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
23451         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
23452         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
23453         ppc_mcount to static-only-routines.
23454         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
23455         __mcount_internal.
23456         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
23457         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
23458
23459 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
23460
23461         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
23462         for finite and infinity parameters.
23463
23464 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
23465
23466         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
23467         and add nop instructions for throughput optimization.
23468         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
23469
23470 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
23471
23472         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
23473         aligned copy for power7 with vector-scalar instructions.
23474         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
23475
23476 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
23477
23478         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
23479         AVX check.
23480
23481 2011-09-07  Andreas Schwab  <schwab@redhat.com>
23482
23483         [BZ #13144]
23484         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
23485         last change.
23486
23487 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
23488
23489         * sysdeps/unix/sysv/linux/x86_64/init-first.c
23490         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
23491         syscall wrapper around clock_gettime in __vdso_clock_gettime.
23492         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
23493         clock_gettime.
23494
23495 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
23496
23497         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
23498         Forgot to demangle the pointer.
23499
23500         * sysdeps/i386/sysdep.h: Define atom_text_section.
23501         * sysdeps/x86_64/sysdep.h: Likewise.
23502         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
23503         section with atom_text_section.
23504         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
23505         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
23506         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
23507         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
23508         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
23509
23510         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
23511         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
23512         already be defined.  Change to take two parameters and don't assign
23513         result to variable.  Adjust all users.
23514         Define INTERNAL_GETTIME if not already defined.
23515         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
23516         call.
23517         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
23518         HAVE_CLOCK_GETTIME_VSYSCALL.
23519         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
23520
23521         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
23522         gettimeofday vsyscall, just use time.
23523
23524 2011-09-06  Andreas Schwab  <schwab@redhat.com>
23525
23526         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
23527         <errno.h>.
23528
23529 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
23530
23531         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
23532         syscall on x86-64.
23533         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
23534         syscall.
23535         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
23536         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
23537         syscall if possible.
23538
23539 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
23540
23541         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
23542         e_ident.  Don't pass to find_mapsXX.
23543         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
23544
23545 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
23546
23547         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23548         strchr-sse2-no-bsf strrchr-sse2-no-bsf
23549         * sysdeps/x86_64/multiarch/strchr.S: Update.
23550         Check bit_slow_BSF bit.
23551         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
23552         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
23553         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
23554
23555 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
23556
23557         [BZ #13134]
23558         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
23559         before glibc 2.15.
23560         (tryshell): Define.
23561         (__spawni): Change last parameter to be flag.  Test
23562         SPAWN_XFLAGS_USE_PATH flag to use path or not.
23563         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
23564         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
23565         * posix/spawni.c: Likewise.
23566         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
23567         * posix/spawnp.c: Likewise.  Change normal version to use
23568         SPAWN_XFLAGS_USE_PATH.
23569         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
23570         SPAWN_XFLAGS_TRY_SHELL.
23571
23572         [BZ #13150]
23573         * posix/glob.h: Remove gcc 1.x support.
23574
23575         [BZ #13068]
23576         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
23577
23578 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
23579
23580         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23581         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
23582         strrchr-sse2-bsf
23583         * sysdeps/i386/i686/multiarch/strchr.S: New file.
23584         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
23585         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
23586         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
23587         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
23588         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
23589
23590 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23591
23592         * sysdeps/x86_64/wcscmp.S: New file.
23593
23594         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
23595         wcscmp-c wcscmp-sse2
23596         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
23597         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
23598         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
23599         * wcsmbs/wcscmp.c: Allow renaming.
23600
23601 2011-09-05  David S. Miller  <davem@davemloft.net>
23602
23603         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
23604         stack slot, rather than the struct return pointer slot.
23605         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
23606         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
23607         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
23608         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
23609
23610 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
23611
23612         * po/ja.po: Update from translation team.
23613
23614         [BZ #13144]
23615         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
23616         kernel in 64-bit binaries.
23617
23618 2011-09-01  David S. Miller  <davem@davemloft.net>
23619
23620         * elf/elf.h (HWCAP_SPARC_*): Move to..
23621         * sysdeps/sparc/sysdep.h: this new file and add new values.
23622         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
23623         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
23624         _DL_HWCAP_COUNT to 24.
23625         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
23626         entries.
23627         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
23628         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
23629         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
23630         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
23631         instead of magic constants.
23632         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23633
23634 2011-08-31  David S. Miller  <davem@davemloft.net>
23635
23636         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
23637         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
23638         Reimplement to do errno handling inline.
23639         (SYSCALL_ERROR_HANDLER): New macro.
23640         (__SYSCALL_STRING): Do not do errno handling in asm.
23641         (__CLONE_SYSCALL_STRING): Delete.
23642         (__INTERNAL_SYSCALL_STRING): Delete.
23643         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
23644         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
23645         (PSEUDO): Reimplement to do errno handling inline.
23646         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
23647         (SYSCALL_ERROR_HANDLER): New macro.
23648         (__SYSCALL_STRING): Do not do errno handling in asm.
23649         (__CLONE_SYSCALL_STRING): Delete.
23650         (__INTERNAL_SYSCALL_STRING): Delete.
23651         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
23652         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
23653         i386.
23654         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
23655         (inline_syscall*): Add 'err' argument.
23656         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
23657         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
23658         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
23659         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
23660
23661         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
23662         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
23663
23664 2011-08-30  Andreas Schwab  <schwab@redhat.com>
23665
23666         * elf/rtld.c (dl_main): Relocate objects in dependency order.
23667
23668 2011-08-29  Jiri Olsa <jolsa@redhat.com>
23669
23670         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
23671         directive.
23672
23673 2011-08-24  David S. Miller  <davem@davemloft.net>
23674
23675         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
23676
23677 2011-08-24  Andreas Schwab  <schwab@redhat.com>
23678
23679         * elf/Makefile: Add rules to build and run unload8 test.
23680         * elf/unload8.c: New file.
23681         * elf/unload8mod1.c: New file.
23682         * elf/unload8mod1x.c: New file.
23683         * elf/unload8mod2.c: New file.
23684         * elf/unload8mod3.c: New file.
23685
23686         * elf/dl-close.c (_dl_close_worker): Reset private search list if
23687         it wasn't used.
23688
23689 2011-08-23  David S. Miller  <davem@davemloft.net>
23690
23691         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
23692         subtract stack bias.
23693         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
23694         %sp not %fp in calculations.
23695         (_JMPBUF_UNWINDS_ADJ): Likewise.
23696
23697         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
23698         (aio_suspend): Call it to force an exception region around the
23699         AIO_MISC_WAIT() invocation.
23700
23701 2011-08-23  Andreas Schwab  <schwab@redhat.com>
23702
23703         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
23704         backslash.
23705
23706 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
23707
23708         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
23709         protection macro.
23710         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
23711         and <dl-machine.h>.
23712         (Elf64_FuncDesc): Remove.
23713
23714 2011-08-22  David S. Miller  <davem@davemloft.net>
23715
23716         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
23717         sigaltstack check, add missing cfi directives.
23718         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
23719         missing cfi directives, and sigaltstack handling.
23720
23721 2011-08-16  Andreas Schwab  <schwab@redhat.com>
23722
23723         [BZ #11724]
23724         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
23725         object is seen twice.
23726         * elf/dl-fini.c (_dl_sort_fini): Likewise.
23727
23728         * elf/Makefile (distribute): Add tst-initorder2.c.
23729         (tests): Add tst-initorder2.
23730         (modules-names): Add tst-initorder2a tst-initorder2b
23731         tst-initorder2c tst-initorder2d.  Add rules to build them.
23732         ($(objpfx)tst-initorder2.out): New rule.
23733         * elf/tst-initorder2.c: New file.
23734         * elf/tst-initorder2.exp: New file.
23735
23736 2011-08-22  Andreas Schwab  <schwab@redhat.com>
23737
23738         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
23739
23740         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
23741         dependencies back to end of function.
23742
23743         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
23744         $(elfobjdir)/ld.so.
23745
23746 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
23747
23748         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
23749         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
23750         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
23751         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
23752         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
23753         of __vdso_gettimeofday.
23754         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
23755         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
23756         attribute_hidden.
23757         (_libc_vdso_platform_setup): Remove initialization of
23758         __vdso_gettimeofday and __vdso_time.
23759
23760 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
23761
23762         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
23763         and fgetc_unlocked.
23764         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
23765         getc_unlocked.
23766
23767         * elf/dl-open.c (add_to_global): Report additions to the global scope
23768         for LD_DEBUG=scopes.
23769         (dl_open_worker): Also print scope of newly loaded dependencies.
23770         (_dl_show_scope): Indicate if there is no scope.
23771
23772         [BZ #13114]
23773         * stdio-common/Makefile (tests): Add bug24.
23774         * stdio-common/bug24.c: New file.
23775
23776 2011-08-19  Andreas Jaeger  <aj@suse.de>
23777
23778         [BZ #13114]
23779         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
23780         non-existant file when using close-on-exec mode.
23781
23782 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
23783
23784         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
23785         the very first instruction.
23786
23787         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
23788         the CFI state in the end.
23789         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
23790         inclusion of dl-trampoline.h.
23791         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
23792
23793 2011-08-19  Andreas Schwab  <schwab@redhat.com>
23794
23795         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
23796         expectations for long double.
23797
23798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
23799         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
23800
23801 2011-08-14  David S. Miller  <davem@davemloft.net>
23802
23803         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
23804         artificual limit depends upon the system page size.
23805
23806 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
23807
23808         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
23809         * resolv/Makefile: Define CFLAGS-libresolv.
23810
23811 2011-08-17  Andreas Schwab  <schwab@redhat.com>
23812
23813         * nss/makedb.c (compute_tables): Make variables used in nested
23814         function static.
23815
23816 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
23817
23818         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
23819         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
23820         if buffer was too small.
23821
23822         * elf/pldd.c (main): Attach to all threads in the process.
23823         Rewrite /proc handling to use *at functions.
23824
23825 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
23826
23827         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
23828         specifies first scope to show.
23829         (dl_open_worker): Update callers.  Move printing scope of new
23830         object to before the relocation.
23831         * elf/rtld.c (dl_main): Update _dl_show_scope call.
23832         * sysdeps/generic/ldsodefs.h: Update declaration.
23833
23834         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
23835         string for the scope number.
23836
23837 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
23838
23839         * nscd/servicescache.c (cache_addserv): Make sure written is always
23840         initialized.
23841
23842 2011-08-14  Roland McGrath  <roland@hack.frob.com>
23843
23844         * sysdeps/i386/i486/bits/atomic.h
23845         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
23846         statement expression, so as to suppress "set but not used" warning.
23847         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
23848
23849         * string/strncat.c (STRNCAT): Use prototype definition.
23850
23851         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
23852         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
23853         -Iprograms here.
23854         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
23855         (localedef-modules): Add localedef.
23856         (locale-modules): Add locale.
23857
23858         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
23859         * elf/rtld.c (dl_main): Invert order of assignment in last change,
23860         to avoid a warning.
23861
23862 2011-08-14  David S. Miller  <davem@davemloft.net>
23863
23864         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
23865         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
23866
23867 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
23868
23869         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
23870         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
23871         * elf/rtld.c (dl_main): Set l_name of vDSO.
23872         Call _dl_show_scope when DL_DEBUG_SCOPES.
23873         (process_dl_debug): Recognize scopes flag and also set it for all.
23874         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
23875         Declare _dl_show_scope.
23876
23877         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
23878         (do_dlopen): Pass caller_dlopen to dl_open.
23879         (__libc_dlopen_mode): Initialize caller_dlopen.
23880
23881         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
23882         of libc.  Make tolower call locale-independent.  Optimize a bit by
23883         using isdigit instead of isalnum.
23884         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
23885
23886 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
23887
23888         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
23889         was a dependency or dynamically loaded.
23890
23891 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
23892
23893         * intl/l10nflist.c: Allow architecture-specific pop function.
23894         * sysdeps/x86_64/l10nflist.c: New file.
23895
23896         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
23897         classification.
23898
23899 2011-08-10  Andreas Schwab  <schwab@redhat.com>
23900
23901         * include/dirent.h: Add libc_hidden_proto for scandirat and
23902         scandirat64.  Don't declare __scandirat64.
23903         * dirent/scandirat.c: Add libc_hidden_def.
23904         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
23905         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
23906
23907 2011-08-10  David S. Miller  <davem@davemloft.net>
23908
23909         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
23910         enum.
23911         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23912         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23913         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23914
23915 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
23916
23917         * Versions.def [libc]: Add GLIBC_2.15.
23918         * dirent/Makefile (routines): Add scandirat and scandirat64.
23919         * dirent/Versions [libc]: Export scandirat and scandirat64 for
23920         GLIBC_2.15.
23921         * dirent/dirent.h: Declare scandirat and scandirat64.
23922         * dirent/scandirat.c: New file.
23923         * dirent/scandirat64.c: New file.
23924         * sysdeps/wordsize-64/scandirat.c: New file.
23925         * sysdeps/wordsize-64/scandirat64.c: New file.
23926         * dirent/opendir.c: Define opendirat.
23927         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
23928         using scandirat.
23929         * dirent/scandir64.c: Adjust for scandir.c change.
23930         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
23931         __scandirat64, and __scandir_cancel_handler.
23932         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
23933         additional parameter and use openat instead of open (outside of ld.so).
23934         Add new __opendir as wrapper around __opendirat.
23935         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
23936         here without requiring old scandirat implementation.
23937
23938 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
23939
23940         * dirent/scandir.c (cancel_handler): Renamed to
23941         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
23942         defined.  Adjust users.
23943         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
23944         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
23945
23946 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
23947
23948         * string/test-string.h (IMPL): Use __STRING to expand name and then
23949         stringify it.
23950
23951         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
23952         of cleanups.
23953
23954 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23955
23956         * string/Makefile: Update.
23957         (strop-tests): Append strncat.
23958         * string/test-wcscmp.c: New file.
23959         New comprehensive test for wcscmp.
23960         * string/test-strcmp.c: Update.
23961         (WIDE): New define.
23962
23963 2011-07-22  Andreas Schwab  <schwab@redhat.com>
23964
23965         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
23966         line.
23967
23968 2011-07-26  Andreas Schwab  <schwab@redhat.com>
23969
23970         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
23971         encoding to ACE if AI_IDN.
23972
23973 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
23974
23975         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
23976         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
23977
23978 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
23979
23980         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
23981         Fix overflow bug in strncat.
23982         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
23983
23984         * string/test-strncat.c: Update.
23985         Add new tests for checking overflow bugs.
23986
23987 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
23988
23989         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23990         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
23991         * sysdeps/i386/i686/multiarch/strcat.S: New file.
23992         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
23993         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
23994         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
23995         * sysdeps/i386/i686/multiarch/strncat.S: New file.
23996         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
23997         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
23998
23999         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
24000         (USE_AS_STRCAT): Define.
24001         Add strcat and strncat support.
24002         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24003
24004 2011-07-25  Andreas Schwab  <schwab@redhat.com>
24005
24006         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
24007         __n bigger than INT_MAX+1.
24008         (__strncmp_g): Likewise.
24009
24010 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
24011
24012         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
24013         * libio/stido.h: Likewise.
24014
24015         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
24016         (AF_NFC): Define.
24017         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
24018         (AF_NFC): Define.
24019
24020         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
24021         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24022         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24023         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
24024         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24025
24026         [BZ #13021]
24027         * scripts/test-installation.pl: Don't expect libnss_test1 to be
24028         installed.
24029
24030         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
24031         typo.
24032         (_dl_x86_64_save_sse): Likewise.
24033
24034 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
24035
24036         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
24037         OSXSAVE.
24038         (_dl_x86_64_save_sse): Likewise.
24039
24040         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
24041
24042         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
24043
24044 2011-07-21  Andreas Schwab  <schwab@redhat.com>
24045
24046         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
24047         change.
24048         (_dl_x86_64_save_sse): Use correct AVX check.
24049
24050 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24051
24052         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
24053         bug in strncpy/strncat.
24054         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24055
24056 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
24057
24058         * string/tester.c (test_strcat): Add tests for different alignments
24059         of source and destination.
24060         (test_strncat): Likewise.
24061
24062 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
24063
24064         [BZ #12852]
24065         * posix/glob.c (glob): Check passed in values before using them in
24066         expressions to avoid some overflows.
24067         (glob_in_dir): Likewise.
24068
24069         [BZ #13007]
24070         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
24071         check for AVX enablement so that we don't crash with old kernels and
24072         new hardware.
24073         * elf/tst-audit4.c: Add same checks here.
24074         * elf/tst-audit6.c: Likewise.
24075
24076         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
24077
24078 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
24079
24080         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
24081
24082 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
24083
24084         * po/cs.po: Update from translation team.
24085         * po/bg.po: Likewise.
24086
24087 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
24088
24089         * misc/sys/cdefs.h: Add support for const attribute.
24090         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
24091         to gnu_dev_{major,minor,makedev} functions.
24092
24093 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
24094
24095         * intl/dcigettext.c (get_output_charset): Add missing bracket.
24096
24097 2011-07-20  Andreas Schwab  <schwab@redhat.com>
24098
24099         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
24100         strlen results.
24101
24102 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24103
24104         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
24105         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
24106         register in order to avoid conflicts with the soft frame pointer
24107         being held in r11 when necessary.
24108         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24109         (INTERNAL_VSYSCALL_NCS): Likewise.
24110
24111 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
24112
24113         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
24114         * elf/dl-fini.c (_dl_fini): Adjust caller.
24115         * elf/dl-close.c (_dl_close_worker): Likewise.
24116         * sysdeps/generic/ldsodefs.h: Adjust declaration.
24117
24118 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
24119
24120         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
24121         "aux_cache->nlibs < 0".
24122
24123         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
24124         in the reload-count case.
24125
24126 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24127
24128         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24129         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
24130         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
24131         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
24132         * sysdeps/x86_64/multiarch/strcat.S: New file.
24133         * sysdeps/x86_64/multiarch/strncat.S: New file.
24134         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
24135         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
24136         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
24137         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
24138         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
24139         (USE_AS_STRCAT): Define.
24140         Add strcat and strncat support.
24141         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
24142         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24143         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
24144         * string/strncat.c: Update.
24145         (USE_AS_STRNCAT): Define.
24146         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24147         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
24148         and i7.
24149         * sysdeps/x86_64/multiarch/init-arch.h
24150         (bit_Prefer_PMINUB_for_stringop): New.
24151         (index_Prefer_PMINUB_for_stringop): Likewise.
24152         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
24153         bit_Prefer_PMINUB_for_stringop.
24154
24155 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
24156
24157         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
24158         buffer64.
24159         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
24160         of casting of buffer.
24161         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
24162         buffer32 and buffer64.
24163         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
24164         writes instead of casting of buffer.
24165         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
24166         buffer32.
24167         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
24168         casting of buffer.
24169
24170 2011-07-19  Andreas Schwab  <schwab@redhat.com>
24171
24172         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
24173
24174 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
24175
24176         * nscd/nscd.c (termination_handler): Don't do anything for a database
24177         if it has not yet been initialized.
24178
24179 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
24180
24181         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
24182
24183 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
24184
24185         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
24186
24187 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
24188
24189         * po/nl.po: Update from translation team.
24190         * po/sv.po: Likewise.
24191
24192 2011-07-16  Roland McGrath  <roland@hack.frob.com>
24193
24194         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
24195         now disallowed by GCC.
24196
24197         * configure.in (use-default-link): Default to yes if a test -shared
24198         link meets our qualifications.
24199         * configure: Regenerated.
24200
24201         * config.make.in (output-format): New variable.
24202         * configure.in: Check for ld --print-output-format support.
24203         * configure: Regenerated.
24204         * Makerules ($(common-objpfx)format.lds)
24205         [$(output-format) != unknown]: Just use $(output-format),
24206         instead of the linker-script munging.
24207
24208 2011-07-14  Roland McGrath  <roland@hack.frob.com>
24209
24210         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
24211         of $(common-objpfx)shlib.lds.
24212         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
24213
24214         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
24215         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
24216
24217         * configure.in (-z relro check): Adjust test code to add a large
24218         writable data section after it.
24219         * configure: Regenerated.
24220
24221 2011-07-11  Roland McGrath  <roland@hack.frob.com>
24222
24223         * configure.in (-z relro check): Fix test code to make the variable
24224         truly const.
24225         * configure: Regenerated.
24226
24227 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
24228
24229         * nscd/nscd.h (struct traced_file): Define.
24230         (struct database_dyn): Remove inotify_descr, reset_res, and filename
24231         elements.  Add traced_files.
24232         (inotify_fd): Declare.
24233         (register_traced_file): Declare.
24234         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
24235         (inotify_fd): Export.
24236         (resolv_conf_descr): Remove.
24237         (nscd_init): Move inotify descriptor creation to main.
24238         Don't register files for notification here.
24239         (register_traced_file): New function.
24240         (invalidate_cache): Don't use reset_res to determine whether to call
24241         res_init, go through the list of registered files.
24242         (main_loop_poll): The inotify descriptors are now stored in the
24243         structures for the traced files.
24244         (main_loop_epoll): Likewise
24245         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
24246         to __nss_disable_nscd.
24247         * nscd/cache.c (prune_cache): There is no single inotify descriptor
24248         for a database anymore.  Check the records for all the registered
24249         files instead.
24250         * nss/Makefile (libnss_files-routines): Add files-init.
24251         (libnss_db-routines): Add db-init.
24252         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
24253         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
24254         * nss/nss_db/db-init.c: New file.
24255         * nss/nss_files/files-init.c: New file.
24256         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
24257         __nss_lookup_function.
24258         (__nss_lookup_function): Call nss_load_library.
24259         (nss_load_all_libraries): New function.
24260         (__nss_disable_nscd): Take parameter with callback function for files
24261         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
24262         used for the cached services.
24263         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
24264         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
24265         options for features to all the files in nscd.
24266
24267         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
24268
24269 2011-07-10  Roland McGrath  <roland@hack.frob.com>
24270
24271         * csu/elf-init.c (__libc_csu_init): Comment typo.
24272
24273 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
24274
24275         * po/pl.po: Update from translation team.
24276         * po/ja.po: Likewise.
24277         * po/ru.po: Likewise.
24278         * po/ko.po: Likewise.
24279         * po/fr.po: Likewise.
24280
24281 2011-07-09  Roland McGrath  <roland@hack.frob.com>
24282
24283         * configure.in (.ctors/.dtors header and trailer check):
24284         Use an empirical test on a built program.
24285         * configure: Regenerated.
24286
24287         * configure.in (-z relro check): Use an empirical test on a built DSO.
24288         Detect, but do not require, on ia64.
24289         * configure: Regenerated.
24290
24291         * configure.in (READELF): Find it with AC_CHECK_TOOL.
24292         Update tests that use readelf to use $READELF instead.
24293         * configure: Regenerated.
24294
24295 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
24296
24297         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
24298         if the result is not used.
24299
24300 2011-07-05  Andreas Jaeger  <aj@suse.de>
24301
24302         [BZ#9696]
24303         * stdlib/tst-strtod.c: Add testcase.
24304
24305 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
24306
24307         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
24308         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
24309         The latter has a higher limit.  Take additional parameter to pass to
24310         the new function.
24311         (__pathconf): Pass file to __statfs_link_max.
24312         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
24313         __statfs_link_max.
24314         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
24315         __statfs_link_max.
24316
24317         [BZ #12868]
24318         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
24319         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
24320         Handle Lustre.
24321         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
24322         (__statfs_filesize_max): Likewise.
24323         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
24324
24325 2011-07-05  Andreas Jaeger  <aj@suse.de>
24326
24327         * resolv/res_comp.c (dn_skipname): Remove unused variable.
24328
24329 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
24330
24331         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
24332         `status' variable.
24333         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
24334         Likewise.
24335
24336 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
24337
24338         * Makefile (strop-tests): Add strncat.
24339         * string/test-strncat.c: New file.
24340
24341 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
24342
24343         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
24344
24345 2011-06-21  Andreas Jaeger  <aj@suse.de>
24346
24347         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
24348         Copy rule from iconvdata/Makefile.
24349
24350 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
24351
24352         [BZ #12922]
24353         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
24354         but no long options are defined, just return 'W'.
24355
24356 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
24357
24358         [BZ #9696]
24359         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
24360
24361 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
24362
24363         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
24364         netgroups to read.
24365         (innetgr): Likewise.
24366
24367 2011-07-05  Roland McGrath  <roland@hack.frob.com>
24368
24369         * config.make.in (install_root): Default to $(DESTDIR).
24370
24371 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
24372
24373         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
24374
24375 2011-07-02  Roland McGrath  <roland@hack.frob.com>
24376
24377         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
24378
24379         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
24380         containing directory rather than embedding absolute directory names.
24381
24382         * scripts/check-local-headers.sh: Rewritten using awk.
24383         Match by word, not by line.  Print error messages for matches.
24384         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
24385
24386         * Makerules [shlib-lds-flags empty]:
24387         ($(common-objpfx)libc_pic.opts): New target.
24388         ($(common-objpfx)libc_pic.os.clean): New target.
24389         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
24390
24391         * config.make.in (OBJCOPY): New variable.
24392         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
24393         * configure: Regenerated.
24394
24395         * config.make.in (use-default-link): New variable.
24396         * configure.in (use_default_link): Grok --with-default-link to set it.
24397         * configure: Regenerated.
24398         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
24399         (shlib-lds, shlib-lds-flags): Define to empty.
24400
24401         * Makerules (shlib-lds): New variable.
24402         (shlib-lds-flags): New variable.
24403         (build-shlib, build-moduile, build-module-asneeded): Use it.
24404         ($(common-objpfx)libc.so): Use $(shlib-lds).
24405         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
24406         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
24407
24408         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
24409         DT_FLAGS/DT_FLAGS_1 with zero flags.
24410
24411         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
24412         linker script munging.
24413
24414 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
24415
24416         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
24417         as 128-bit value.
24418         * crypt/sha512.c (sha512_process_block): Perform total addition using
24419         128-bit if possible.
24420         (__sha512_finish_ctx): Likewise.
24421         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
24422         as 64-bit value.
24423         * crypt/sha256.c (SWAP64): Define.
24424         (sha256_process_block): Perform total addition using 64-bit if
24425         possible.
24426         (__sha256_finish_ctx): Likewise.
24427
24428 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
24429
24430         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
24431         * nscd/initgrcache.c (addinitgroupsX): Likewise.
24432         * nscd/hstcache.c (cache_addhst): Likewise.
24433         * nscd/grpcache.c (cache_addgr): Likewise.
24434         * nscd/aicache.c (addhstaiX): Likewise
24435         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
24436
24437 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
24438
24439         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
24440         * nscd/initgrcache.c (addinitgroupsX): Likewise.
24441         * nscd/hstcache.c (cache_addhst): Likewise.
24442         * nscd/grpcache.c (cache_addgr): Likewise.
24443         * nscd/aicache.c (addhstaiX): Likewise
24444
24445 2011-07-01  Andreas Schwab  <schwab@redhat.com>
24446
24447         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
24448         domain only when needed.
24449
24450 2011-06-30  Andreas Schwab  <schwab@redhat.com>
24451
24452         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
24453         is always restored.
24454
24455 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
24456
24457         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
24458         are re-adding the entry.
24459         * nscd/servicescache.c (cache_addserv): Likewise.
24460
24461 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
24462
24463         * sysdeps/generic/dl-irel.h: fix protection against multiple
24464         inclusions.
24465         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
24466
24467 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
24468
24469         [BZ #12935]
24470         * malloc/memusage.sh: Fix quoting in message.
24471         * debug/xtrace.sh: Likewise.
24472
24473         * configure.in: Remove support for --experimental-malloc option, make
24474         it the default.
24475         * config.make.in: Likewise.
24476         * malloc/Makefile: Likewise.
24477
24478 2011-06-27  Andreas Schwab  <schwab@redhat.com>
24479
24480         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
24481         two-byte characters.
24482
24483 2011-06-27  Roland McGrath  <roland@hack.frob.com>
24484
24485         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
24486         AC_CACHE_CHECK invocation.
24487         * configure: Regenerated.
24488
24489         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
24490
24491 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
24492
24493         [BZ #12350]
24494         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
24495         bit from old_res_options.
24496
24497         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
24498
24499         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
24500         value type for setfct.
24501
24502 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
24503
24504         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
24505         __gettimeofday instead of gettimeofday.
24506
24507 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
24508
24509         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
24510
24511 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
24512
24513         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
24514
24515         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
24516         info.
24517
24518 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
24519
24520         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24521         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
24522         strcpy-sse2-unaligned strncpy-sse2-unaligned
24523         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
24524         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
24525         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
24526         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
24527         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
24528         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
24529         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
24530         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
24531         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
24532         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
24533         (STRCPY): Support SSE2 and SSSE3 versions.
24534
24535 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
24536
24537         [BZ #12874]
24538         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
24539         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
24540         kernels which artificially limit size of requests.
24541
24542 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
24543
24544         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24545         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
24546         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
24547         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
24548         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
24549         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
24550         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
24551         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
24552         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
24553         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
24554         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
24555         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
24556         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
24557         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
24558         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
24559         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24560         Enable unaligned load optimization for Intel Core i3, i5 and i7
24561         processors.
24562         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
24563         Define.
24564         (index_Fast_Unaligned_Load): Define.
24565         (HAS_FAST_UNALIGNED_LOAD): Define.
24566
24567 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
24568
24569         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
24570
24571 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
24572
24573         [BZ #12907]
24574         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
24575         until it is clear that the information is realy needed.
24576         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
24577
24578 2011-06-22  Andreas Schwab  <schwab@redhat.com>
24579
24580         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
24581
24582 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
24583
24584         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
24585         /sys/devices/system/cpu/online if it is usable.
24586
24587         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
24588         reading the information from the /proc filesystem to once a second.
24589
24590 2011-06-21  Andreas Jaeger  <aj@suse.de>
24591
24592         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
24593         NULL after inclusion of kernel headers.
24594
24595 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
24596
24597         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
24598         calls to internal_setent.
24599
24600         [BZ #12885]
24601         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
24602         addresses using gethostbyname4_r ignore IPv4 addresses.
24603
24604         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
24605         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
24606
24607         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
24608
24609 2011-06-20  David S. Miller  <davem@davemloft.net>
24610
24611         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
24612         inclusions.
24613         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
24614
24615         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
24616         (elf_irel): Use it.
24617         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
24618         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
24619         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
24620         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
24621         * sysdeps/x86_64/dl-irel.h: Likewise.
24622
24623         * elf/dl-runtime.c: Use elf_ifunc_invoke.
24624         * elf/dl-sym.c: Likewise.
24625
24626 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
24627
24628         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
24629         need to dereference resplen2.
24630
24631 2011-06-14  Andreas Schwab  <schwab@redhat.com>
24632
24633         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
24634
24635 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
24636
24637         * Makeconfig: Define vardbdir and inst_vardbdir.
24638         * nss/Makefile: Add rules to install db-Makefile.
24639
24640         * nss/nss_db/db-XXX.c: Cleanup.
24641
24642         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
24643         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
24644         GLIBC_PRIVATE.
24645         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
24646         * nss/makedb.c: Implement -g option to specify that value strings
24647         are generated and should not be added to table iterated over for
24648         get*ent calls.
24649         * nss/nss_db/db-initgroups.c: New file.
24650
24651         * nss/getent.c: Add support for initgroups lookups through getgrouplist
24652         interface.
24653
24654         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
24655         (internal_getgrouplist): Adjust to name change.
24656         Update use_initgroups_entry if this is not the first call.
24657         * nss/databases.def: Add initgroups entry.
24658
24659         * nss/makedb.c (compute_tables): Check result of multiple hash table
24660         sizes to minimize maximum chain length.
24661
24662 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
24663
24664         * Versions.def: Add entry for libnss_db.
24665         * shlib-versions: Likewise.
24666         * nss/Makefile: Add rules to build libnss_db.
24667         * nss/Versions: Add libnss_db information.  Organize libnss_files
24668         entries better.
24669         * nss/db-Makefile: Add gshadow support.  Change rules for the new
24670         makedb progra.  Some minor improvements to generate smaller files.
24671         * nss/nss_db/nss_db.h: Move NSS database header data structures to
24672         here from...
24673         * nss/makedb.c: ...here.
24674         Improve database format to be smaller and require less memory at
24675         runtime.
24676         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
24677         db anymore.
24678         * nss/nss_db/db-netgrp.c: Likewise.
24679         * nss/nss_db/db-open.c: Likewise.
24680         * nss/nss_files/flies-XXX.x: Adjust comments.
24681         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
24682         * nss/nss_files/files-grp.c: Likewise.
24683         * nss/nss_files/files-hosts.c: Likewise.
24684         * nss/nss_files/files-network.c: Likewise.
24685         * nss/nss_files/files-proto.c: Likewise.
24686         * nss/nss_files/files-pwd.c: Likewise.
24687         * nss/nss_files/files-rpc.c: Likewise.
24688         * nss/nss_files/files-service.c: Likewise.
24689         * nss/nss_files/files-sgrp.c: Likewise.
24690         * nss/nss_files/files-spwd.c: Likewise.
24691         * nss/nss_db/db-alias.c: Removed.
24692         * nss/nss_db/dummy-db.h: Removed.
24693
24694 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
24695
24696         * nss/makedb.c: Rewritten to not use database library.
24697         * nss/Makefile: Update to build new makedb program.
24698
24699 2011-06-14  Andreas Jaeger  <aj@suse.de>
24700
24701         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
24702         memset declaration.
24703
24704 2011-06-10  Andreas Schwab  <schwab@redhat.com>
24705
24706         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
24707         tmpbuf.
24708
24709 2011-06-10  Roland McGrath  <roland@hack.frob.com>
24710
24711         * Makerules (shlib.lds): Fail if the linker script comes out empty.
24712         * elf/Makefile ($(objpfx)ld.so): Likewise.
24713
24714         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
24715         Don't list ld.so twice in dependencies.
24716
24717         * posix/bug-regex31.c: Include <stdlib.h>.
24718
24719         * nscd/hstcache.c (cache_addhst): Remove unused variable.
24720
24721         * nis/nss_compat/compat-spwd.c
24722         (getspent_next_nss_netgr): Remove unused variable.
24723         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
24724
24725         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
24726         nonmembers" output to use the right array.
24727
24728         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
24729
24730         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
24731
24732         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
24733         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
24734         * catgets/gencat.c (read_input_file): Likewise.
24735         * locale/programs/locarchive.c (enlarge_archive): Likewise.
24736
24737         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
24738         variable definition inside #if's controlling its use.
24739
24740         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
24741
24742         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
24743
24744         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
24745
24746         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
24747         unreachable code.
24748
24749         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
24750
24751         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
24752         * configure: Regenerated.
24753
24754         * Makerules: Revert last change.
24755         * elf/Makefile: Likewise.
24756
24757 2011-06-09  Roland McGrath  <roland@hack.frob.com>
24758
24759         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
24760         * elf/Makefile ($(objpfx)librtld.os): Likewise.
24761         (reloc-link): Likewise.
24762
24763 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
24764
24765         * elf/Makefile: Add rules to build pldd.
24766         * elf/pldd.c: New file.
24767         * elf/pldd-xx.c: New file.
24768
24769 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
24770
24771         * version.h: Update for 2.15 development version.
24772
24773 2011-06-07  David S. Miller  <davem@davemloft.net>
24774
24775         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
24776         ifuncs.
24777         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
24778         elf_machine_lazy_rel): Likewise.
24779         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
24780         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
24781         elf_machine_lazy_rel): Likewise.
24782         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
24783         dl_hwcap via passed in argument.
24784         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
24785         Likewise.
24786
24787 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24788
24789         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
24790
24791 2011-06-06  Roland McGrath  <roland@hack.frob.com>
24792
24793         [BZ #12849]
24794         * manual/fdl-1.1.texi: New file, verbatim from:
24795         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
24796         * manual/lgpl-2.1.texi: New file, verbatim from:
24797         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
24798         * manual/Makefile (licenses): New variable, list those new file names.
24799         (texis): Use it.
24800         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
24801
24802         * manual/fdl.texi: File removed.
24803         * manual/lesser.texi: File removed.
24804         * manual/libc.texinfo (Copying, Documentation License):
24805         Use new @include file names, put @appendix directive before @include.
24806
24807 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
24808
24809         [BZ #12841]
24810         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
24811         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
24812         (mq_open): Add __NTH.
24813
24814 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
24815
24816         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24817         Assume Intel Core i3/i5/i7 processor if AVX is available.
24818
24819 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
24820
24821         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
24822         typo.
24823
24824 2011-05-31  Andreas Schwab  <schwab@redhat.com>
24825
24826         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
24827         memory.  Use alloca_account.  Fix memory leak when retrying.
24828
24829 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
24830
24831         * version.h (RELEASE): Bump for 2.14 release.
24832         * include/features.h (__GLIBC_MINOR__): Bump to 14.
24833
24834         * config.make.in (RANLIB): Remove entry.
24835
24836 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
24837
24838         * po/Makefile (po-sed-cmd): Add ksh to extensions.
24839         (libc.pot): Work around missing support for .ksh extension in xgettext.
24840
24841         [BZ #12684]
24842         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
24843         if both request failed.
24844         (send_dg): In case of server errors clear resplen or *resplen2.
24845
24846         [BZ #12454]
24847         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
24848         when there are multiple maps.
24849         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
24850         (_dl_fini): Remove test here.
24851
24852         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
24853
24854 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
24855
24856         [BZ #12350]
24857         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
24858         bit from old_res_options.
24859         (gaih_inet): Likewise.
24860
24861         [BZ #11099]
24862         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
24863         as signed.
24864
24865         * resolv/res_init.c (res_setoptions): Make the code more compact.
24866
24867         [BZ #11558]
24868         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
24869         set RES_USEVC.
24870
24871         [BZ #11634]
24872         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
24873
24874         * malloc/malloc.h: Mark malloc hook variables as deprecated.
24875
24876         [BZ #11781]
24877         * malloc/malloc.h: Declare malloc hook variables as volatile.
24878
24879         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
24880         in last patch.
24881
24882         [BZ #11799]
24883         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
24884         raise in the comment.
24885         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
24886         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
24887         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
24888
24889 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
24890
24891         [BZ #12811]
24892         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
24893         grow the buffers more if it already has to be sufficient.
24894         (build_wcs_upper_buffer): Likewise.
24895         * posix/regexec.c (check_matching): Likewise.
24896         (clean_state_log_if_needed): Likewise.
24897         (extend_buffers): Don't enlarge buffers beyond size of the input
24898         buffer.
24899         Patches mostly by Emil Wojak <emil@wojak.eu>.
24900         * posix/bug-regex32.c: New file.
24901         * posix/Makefile (tests): Add bug-regex32.
24902
24903         * locale/findlocale.c (_nl_find_locale): Return right away if
24904         _nl_explode_name failed.
24905         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
24906
24907         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
24908
24909         * debug/xtrace.sh: Unify messages.
24910         * malloc/memusage.sh: Likewise.
24911
24912         [BZ #12813]
24913         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
24914         time symbol from vDSO.  Substitute with vsyscall if not available.
24915         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
24916         __vdso_time.
24917
24918         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
24919         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
24920         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
24921         Add sendmmsg and internal_sendmmsg.
24922         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
24923         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
24924         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
24925
24926         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
24927         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
24928         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
24929
24930 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
24931
24932         [BZ #12813]
24933         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
24934         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
24935         available.
24936         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
24937         __vdso_getcpu.
24938
24939         [BZ #12814]
24940         * iconvdata/Makefile (tests): Add bug-iconv9.
24941         * iconvdata/bug-iconv9.c: New file.
24942
24943 2011-05-27  Andreas Schwab  <schwab@redhat.com>
24944
24945         [BZ #12814]
24946         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
24947
24948 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
24949
24950         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
24951         (struct user_regs_struct): Change intcs field back to cs.
24952
24953 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
24954
24955         * po/ja.po: Update from translation team.
24956
24957 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
24958
24959         [BZ #12795]
24960         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
24961         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
24962
24963 2011-05-20  Andreas Schwab  <schwab@redhat.com>
24964
24965         * stdlib/longlong.h: Update from GCC.
24966
24967 2011-05-23  Andreas Schwab  <schwab@redhat.com>
24968
24969         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
24970         parameter name.
24971         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
24972         Add parameter name.
24973         (__sysconf): Pass it down.
24974
24975 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
24976
24977         [BZ #12671]
24978         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
24979         some situations.
24980         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
24981         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
24982         add in in __libc_use_alloca calls.  Adjust callers.
24983         (glob): Use malloc in some situations.
24984
24985         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
24986         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
24987         pltexit.
24988
24989 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
24990
24991         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
24992         and CLOCK_BOOTTIME_ALARM.
24993
24994         [BZ #12782]
24995         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
24996         is returned.
24997
24998         * string/_strerror.c (__strerror_r): Print negative errors as signed
24999         numbers.
25000
25001         [BZ #12777]
25002         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
25003         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
25004         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
25005
25006         * configure.in: Fix typo in redirection and correct removal of test
25007         files in two cases.
25008
25009         [BZ #12788]
25010         * locale/setlocale.c (new_composite_name): Fix test to check for
25011         identical name of all categories.
25012
25013         [BZ #12792]
25014         * libio/filedoalloc.c (local_isatty): New function.
25015         (_IO_file_doallocate): Use local_isatty.
25016         * stdio-common/perror.c (perror): In case a new stream is used
25017         forward the stream error.
25018         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
25019         error flag.
25020
25021 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
25022
25023         [BZ #11869]
25024         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
25025         alloca.
25026         * include/alloca.h (extend_alloca_account): Define.
25027
25028         [BZ #11857]
25029         * posix/regex.h: Fix comments with documentation of user-accessible
25030         fields after compilation and describe correct free'ing of pattern
25031         after re_compile_pattern.
25032         Patch by Reuben Thomas <rrt@sc3d.org>.
25033
25034 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
25035
25036         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
25037         and -mno-altivec to prevent the compiler from using Altivec and/or
25038         VSX instructions when the corresponding registers are not available.
25039
25040 2011-05-19  Andreas Schwab  <schwab@redhat.com>
25041
25042         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
25043
25044 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
25045
25046         * libio/freopen.c (freopen): Use __dup2, not dup2.
25047         * libio/freopen64.c (freopen64): Likewise.
25048
25049 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
25050
25051         [BZ #12775]
25052         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
25053         * math/Makefile (tests): Add test-powl.
25054         (CFLAGS-test-powl.c): Define.
25055         * math/test-powl.c: New file.
25056
25057 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
25058
25059         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
25060
25061 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
25062
25063         [BZ #11837]
25064         * iconvdata/gb18030.c: Update to GB18020-2005.
25065
25066 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
25067
25068         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
25069         RE_SYNTAX_POSIX_AWK): Update to match recent development.
25070         Patch by Aharon Robbins <arnold@skeeve.com>.
25071
25072         [BZ #11892]
25073         * stdlib/putenv.c (putenv): Don't always create copy of the variable
25074         on the stack.
25075
25076         [BZ #11895]
25077         * misc/pselect.c (__pselect): Handle timeout value errors hidden
25078         through underflows.
25079
25080         [BZ #12766]
25081         * misc/error.c (error_at_line): Ensure file_name and old_file_name
25082         point to strings before performing equality test for error_one_per_line
25083         mode.
25084
25085         [BZ #11697]
25086         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
25087
25088         [BZ #11820]
25089         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
25090         (struct user_fpregs_struct): Avoid __uint*_t types.
25091
25092         [BZ #6420]
25093         * malloc/mtrace.c (tr_where): Add additional parameter to point to
25094         symbol info.  Use it instead of calling _dl_addr locally.
25095         (lock_and_info): New function.
25096         (tr_freehook): Call lock_and_info and pass symbol info as additional
25097         parameter to tr_where.
25098         (tr_mallochook): Likewise.
25099         (tr_reallochook): Likewise.
25100         (tr_memalignhook): Likewise.
25101
25102         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
25103         used and couldn't be at all thread-safe.
25104
25105 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
25106
25107         * libio/freopen.c (freopen): Don't close old file descriptor
25108         before the new one is opened.  Instead dup the new file descriptor
25109         to the old one after the new stream is created.
25110         * libio/freopen64.c (freopen64): Likewise.
25111         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
25112         * libio/fileops.c (_IO_new_file_close_it): Handle new
25113         _IO_FLAGS2_NOCLOSE flag.
25114         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
25115         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
25116         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
25117         _IO_FLAGS2_NOCLOSE flag.
25118         * include/unistd.h: Add hidden_proto for dup3.
25119         Define __have_dup3.
25120         * io/dup3.c: Define hidden symbol.
25121         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
25122
25123         [BZ #7101]
25124         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
25125         when an incomplete long option is used.
25126         * posix/tst-getopt_long1.c: New file.
25127         * posix/Makefile (tests): Add tst-getopt_long1.
25128
25129         [BZ #10138]
25130         * scripts/config.guess: Update from autoconf-2.68.
25131         * scripts/config.sub: Likewise.
25132
25133         [BZ #10157]
25134         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
25135         tests into ...
25136         (has_cpuclock): ...this.  New function.
25137         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
25138         macro here based on has_cpuclock code.
25139
25140         [BZ #10149]
25141         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
25142         First byte (not low byte) is now always NUL.
25143         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
25144
25145         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
25146         Use non-cancelable interfaces.
25147
25148         [BZ #9809]
25149         * locale/iso-639.def: Add entry for Sorani.
25150
25151         [BZ #11901]
25152         * include/stdlib.h: Move include protection to the right place.
25153         Define abort_msg_s.  Declare __abort_msg with it.
25154         * stdlib/abort.c (__abort_msg): Adjust type.
25155         * assert/assert.c (__assert_fail_base): New function.  Majority
25156         of code from __assert_fail.  Allocate memory for __abort_msg with
25157         mmap.
25158         (__assert_fail): Now call __assert_fail_base.
25159         * assert/assert-perr.c: Remove bulk of implementation.  Use
25160         __assert_fail_base.
25161         * include/assert.hL Declare __assert_fail_base.
25162         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
25163         mmap.
25164         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
25165
25166 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
25167
25168         [BZ #11952]
25169         [BZ #12453]
25170         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
25171         until all modules are registered in the DTV.
25172         * elf/Makefile: Add rules to build and run tst-tls19.
25173         * elf/tst-tls19.c: New file.
25174         * elf/tst-tls19mod1.c: New file.
25175         * elf/tst-tls19mod2.c: New file.
25176         * elf/tst-tls19mod3.c: New file.
25177         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
25178
25179         [BZ #12083]
25180         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
25181         correctly.
25182
25183         [BZ #12601]
25184         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
25185         two-byte sequence errors.
25186         * iconvdata/Makefile (tests): Add bug-iconv8.
25187         * iconvdata/bug-iconv8.c: New file.
25188
25189         [BZ #12626]
25190         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
25191         buf2 definition.
25192
25193         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
25194
25195         [BZ #12432]
25196         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
25197         (dummy_getcfa): New function.
25198         (init): Get _Unwind_GetCFA address, use dummy if not found.
25199         (backtrace_helper): In recursion check, also check whether CFA changes.
25200         (__backtrace): Completely initialize arg.
25201
25202         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
25203         storing incomplete byte sequence in state object.  Avoid testing for
25204         guaranteed too small input if we know there is enough data available.
25205
25206 2011-05-11  Andreas Schwab  <schwab@redhat.com>
25207
25208         * Makeconfig (+link-pie): Indent.
25209         * Rules (binaries-pie): Define if $(have-fpie) and
25210         $(build-shared).
25211         (binaries-shared): Also filter out $(binaries-pie).
25212         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
25213         * nscd/Makefile (others-pie): Add nscd.
25214         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
25215         ($(objpfx)nscd): Remove command override.
25216         * login/Makefile (others-pie): Add pt_chown.
25217         ($(objpfx)pt_chown): Remove command override.
25218         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
25219         remove command overrides.
25220
25221 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
25222
25223         * libio/tst_putwc.c: Fix error messages.
25224
25225         [BZ #12724]
25226         * libio/fileops.c (_IO_new_file_close_it): Always flush when
25227         currently writing and seek to current position when not.
25228         * libio/Makefile (tests): Add bug-fclose1.
25229         * libio/bug-fclose1.c: New file.
25230
25231 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
25232
25233         [BZ #12511]
25234         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
25235         don't set DF_1_NODELETE here.
25236         (do_lookup_x): When entering new entry test for copy relocation
25237         and if necessary set DF_1_NODELETE flag.
25238         * elf/tst-unique4.cc: New file.
25239         * elf/tst-unique4.h: New file.
25240         * elf/tst-unique4lib.cc: New file.
25241         * elf/Makefile: Add rules to build and run tst-unique4.
25242         Patch by Piotr Bury <pbury@goahead.com>.
25243
25244 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
25245
25246         [BZ #12052]
25247         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
25248
25249         [BZ #12625]
25250         * misc/mntent_r.c (addmntent): Flush the stream after the output
25251
25252         [BZ #12393]
25253         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
25254         (is_trusted_path_normalize): Skip initial colon.  Append slash
25255         to empty buffer.  Duplicate is_trusted_path code but allow
25256         constructed patch to be prefix.
25257         (is_dst): Allow $ORIGIN followed by /.
25258         (_dl_dst_substitute): Correct clearing of check_for_trusted.
25259         Correct testing of result of is_trusted_path_normalize
25260         (decompose_rpath): Fix warning.
25261
25262 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
25263
25264         [BZ #11257]
25265         * grp/initgroups.c (internal_getgrouplist): When we found the service
25266         list through the initgroups entry in nsswitch.conf do not always
25267         continue on a successful lookup.  Don't always use the
25268         __nss_group_database value if it is set.
25269         * nss/nsswitch.conf (initgroups): Change action for successful db
25270         lookup to continue for compatibility.
25271
25272 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
25273
25274         [BZ #11532]
25275         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
25276         and CP774 modules.
25277         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
25278         and CP774 modules.
25279         * iconvdata/tst-tables.sh: Likewise.
25280         * iconvdata/cp770.c: New file.
25281         * iconvdata/cp771.c: New file.
25282         * iconvdata/cp772.c: New file.
25283         * iconvdata/cp773.c: New file.
25284         * iconvdata/cp774.c: New file.
25285         * iconvdata/testdata/CP770: New file.
25286         * iconvdata/testdata/CP770..UTF8: New file.
25287         * iconvdata/testdata/CP771: New file.
25288         * iconvdata/testdata/CP771..UTF8: New file.
25289         * iconvdata/testdata/CP772: New file.
25290         * iconvdata/testdata/CP772..UTF8: New file.
25291         * iconvdata/testdata/CP773: New file.
25292         * iconvdata/testdata/CP773..UTF8: New file.
25293         * iconvdata/testdata/CP774: New file.
25294         * iconvdata/testdata/CP774..UTF8: New file.
25295
25296         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
25297         END CHARMAP line.
25298         * iconvdata/gen-8bit-gap.sh: Likewise.
25299         * iconvdata/gen-8bit.sh: Likewise.
25300
25301         * locale/iso-639.def: Add ary entry.
25302
25303         [BZ #11258]
25304         * locale/C-translit.h.in: Add U20A1 transliteration.
25305
25306         [BZ #12178]
25307         * locale/iso-639.def: Add wae entry.
25308         Patch by Kevin Bortis <bortis@translate-wae.ch>.
25309
25310         [BZ #12545]
25311         * locale/programs/localedef.c (construct_output_path): Use ssize_t
25312         for n.
25313
25314         [BZ #12711]
25315         * locale/C-translit.h.in: Add entry for U20B9.
25316         Patch by pravin.d.s@gmail.com.
25317
25318 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
25319
25320         [BZ #12713]
25321         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
25322         ENAMETOOLONG use generic getcwd.
25323         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
25324         in rtld.  Use *stat64.
25325         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
25326         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
25327         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
25328         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
25329         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
25330         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
25331         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
25332         __fstatat64 macros.
25333         * include/dirent.h: Add libc_hidden_proto for rewinddir.
25334         * dirent/rewinddir.c: Add libc_hidden_def.
25335         * sysdeps/mach/hurd/rewinddir.c: Likewise.
25336         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
25337
25338         * include/dirent.h (__alloc_dir): Add flags parameter.
25339         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
25340         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
25341         __alloc_dir.
25342         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
25343         from fdopendir if O_CLOEXEC is already set.
25344
25345 2011-03-15  Alan Modra  <amodra@gmail.com>
25346
25347         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
25348         l_tls_firstbyte_offset non-zero.  Save padding offset in
25349         l_tls_firstbyte_offset for later use.
25350         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
25351         freeing static tls block.
25352
25353 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
25354
25355         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
25356         where #ifdef was intended.  The intent is to prevent ARG_MAX from
25357         being defined by the kernel headers.
25358
25359 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
25360
25361         [BZ #12734]
25362         * resolv/resolv.h: Define RES_NOTLDQUERY.
25363         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
25364         no-tld-query and set RES_NOTLDQUERY.
25365         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
25366         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
25367         modern BIND to search name as TLD unless forbidden.
25368
25369 2011-05-07  Petr Baudis  <pasky@suse.cz>
25370             Ulrich Drepper  <drepper@gmail.com>
25371
25372         [BZ #12393]
25373         * elf/dl-load.c (fillin_rpath): Move trusted path check...
25374         (is_trusted_path): ...to here.
25375         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
25376         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
25377         using is_trusted_path_normalize() in setuid scripts.
25378
25379 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
25380
25381         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
25382         __BEGIN/__END_DECLS.
25383
25384 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
25385
25386         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
25387         NSS_STATUS_NOTFOUND if no record was found.
25388
25389 2011-05-05  Andreas Schwab  <schwab@redhat.com>
25390
25391         * sunrpc/Makefile (headers): Add rpc/netdb.h.
25392         (headers-not-in-tirpc): Remove rpc/netdb.h
25393         * resolv/netdb.h: Revert last change.
25394
25395 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
25396
25397         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
25398         circular dependency between libgcc.a and libc.a.
25399
25400 2011-05-05  Andreas Schwab  <schwab@redhat.com>
25401
25402         * resolv/netdb.h: Don't include <rpc/netdb.h>.
25403         * nis/Makefile: Don't install rpcsvc/*.
25404         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
25405         instead of <rpc/types.h>.
25406         (MAXHOSTNAMELEN): Define.
25407
25408 2011-05-03  Andreas Schwab  <schwab@redhat.com>
25409
25410         * elf/ldconfig.c (add_dir): Don't crash on empty path.
25411
25412 2011-04-28  Maciej Babinski  <mbabinski@google.com>
25413
25414         [BZ #12714]
25415         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
25416         gethostbyname4_r when IPv6 results are possible.
25417
25418 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
25419
25420         [BZ #12723]
25421         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
25422         _PC_PIPE_BUF handling.
25423
25424 2011-04-30  Bruno Haible  <bruno@clisp.org>
25425
25426         [BZ #12717]
25427         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
25428         * resolv/netdb.h (getnameinfo): Change type of flags parameter
25429         to 'int'.
25430         * inet/getnameinfo.c (getnameinfo): Likewise.
25431
25432 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
25433
25434         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
25435         to groups setting in database lookup.
25436         * nss/nsswitch.conf: Add initgroups entry.
25437
25438 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
25439
25440         [BZ #12685]
25441         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
25442         mode string.
25443         Patch by Eric Blake <eblake@redhat.com>.
25444
25445 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
25446
25447         * sunrpc/Makefile (need-export-routines): Add svc_run.
25448         (routines): Remove svc_run.
25449         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
25450         * sunrpc/clnt_perr.c (clnt_perrno): Export.
25451         * sunrpc/svc_run.c (svc_run): Likewise.
25452         * sunrpc/svc_udp.c (svcudp_create): Likewise.
25453
25454 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
25455
25456         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
25457         problem in reallocation in last patch.
25458
25459 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
25460
25461         * sunrpc/Makefile: Move inclusion of Rules.
25462
25463 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
25464
25465         * nss/nss_files/files-initgroups.c: New file.
25466         * nss/Makefile (libnss_files-routines): Add files-initgroups.
25467         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
25468         _nss_files_initgroups_dyn.
25469
25470 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
25471
25472         * elf/elf.h (R_ARM_IRELATIVE): Define.
25473
25474 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
25475
25476         * po/ru.po: Update from translation team.
25477
25478 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
25479
25480         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
25481         dependencies.
25482
25483 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
25484
25485         [BZ #12653]
25486         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
25487         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
25488         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
25489         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
25490         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
25491
25492 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
25493
25494         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
25495         differing bytes.
25496         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
25497         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
25498         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
25499
25500 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
25501
25502         [BZ #12420]
25503         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
25504         storing it.
25505         * stdlib/bug-getcontext.c: New file.
25506         * stdlib/Makefile: Add rules to build and run bug-getcontext.
25507
25508 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25509
25510         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
25511         instructions into .machine "z9-109".
25512         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
25513         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
25514
25515 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25516
25517         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
25518         between environment variables and auxiliary vector.
25519
25520 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
25521
25522         * Makefile: Add rules to build linkobj/libc.so.
25523         * include/libc-symbols.h: Define libc_hidden_nolink.
25524         * include/rpc/auth.h: Mark functions which are to be hidden.
25525         * include/rpc/auth_des.h: Likewise.
25526         * include/rpc/auth_unix.h: Likewise.
25527         * include/rpc/clnt.h: Likewise.
25528         * include/rpc/des_crypt.h: Likewise.
25529         * include/rpc/key_prot.h: Likewise.
25530         * include/rpc/pmap_clnt.h: Likewise.
25531         * include/rpc/pmap_prot.h: Likewise.
25532         * include/rpc/pmap_rmt.h: Likewise.
25533         * include/rpc/rpc_msg.h: Likewise.
25534         * include/rpc/svc.h: Likewise.
25535         * include/rpc/svc_auth.h: Likewise.
25536         * include/rpc/xdr.h: Likewise.
25537         * nis/Makefile: Link all DSOs against linkobj/libc.so.
25538         * nss/Makefile: Likewise.
25539         * sunrpc/Makefile: Don't install headers.  Build library with normal
25540         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
25541         * sunrpc/auth_des.c: Hide exported symbols by default, export some
25542         for the compat linking library.  Remove use of INTDEF/INTUSE.
25543         * sunrpc/auth_none.c: Likewise.
25544         * sunrpc/auth_unix.c: Likewise.
25545         * sunrpc/authdes_prot.c: Likewise.
25546         * sunrpc/authuxprot.c: Likewise.
25547         * sunrpc/clnt_gen.c: Likewise.
25548         * sunrpc/clnt_perr.c: Likewise.
25549         * sunrpc/clnt_raw.c: Likewise.
25550         * sunrpc/clnt_simp.c: Likewise.
25551         * sunrpc/clnt_tcp.c: Likewise.
25552         * sunrpc/clnt_udp.c: Likewise.
25553         * sunrpc/clnt_unix.c: Likewise.
25554         * sunrpc/des_crypt.c: Likewise.
25555         * sunrpc/des_soft.c: Likewise.
25556         * sunrpc/get_myaddr.c: Likewise.
25557         * sunrpc/key_call.c: Likewise.
25558         * sunrpc/key_prot.c: Likewise.
25559         * sunrpc/netname.c: Likewise.
25560         * sunrpc/pm_getmaps.c: Likewise.
25561         * sunrpc/pm_getport.c: Likewise.
25562         * sunrpc/pmap_clnt.c: Likewise.
25563         * sunrpc/pmap_prot.c: Likewise.
25564         * sunrpc/pmap_prot2.c: Likewise.
25565         * sunrpc/pmap_rmt.c: Likewise.
25566         * sunrpc/publickey.c: Likewise.
25567         * sunrpc/rpc_cmsg.c: Likewise.
25568         * sunrpc/rpc_common.c: Likewise.
25569         * sunrpc/rpc_dtable.c: Likewise.
25570         * sunrpc/rpc_prot.c: Likewise.
25571         * sunrpc/rpc_thread.c: Likewise.
25572         * sunrpc/rtime.c: Likewise.
25573         * sunrpc/svc.c: Likewise.
25574         * sunrpc/svc_auth.c: Likewise.
25575         * sunrpc/svc_authux.c: Likewise.
25576         * sunrpc/svc_raw.c: Likewise.
25577         * sunrpc/svc_run.c: Likewise.
25578         * sunrpc/svc_simple.c: Likewise.
25579         * sunrpc/svc_tcp.c: Likewise.
25580         * sunrpc/svc_udp.c: Likewise.
25581         * sunrpc/svc_unix.c: Likewise.
25582         * sunrpc/svcauth_des.c: Likewise.
25583         * sunrpc/xcrypt.c: Likewise.
25584         * sunrpc/xdr.c: Likewise.
25585         * sunrpc/xdr_array.c: Likewise.
25586         * sunrpc/xdr_float.c: Likewise.
25587         * sunrpc/xdr_intXX_t.c: Likewise.
25588         * sunrpc/xdr_mem.c: Likewise.
25589         * sunrpc/xdr_rec.c: Likewise.
25590         * sunrpc/xdr_ref.c: Likewise.
25591         * sunrpc/xdr_sizeof.c: Likewise.
25592         * sunrpc/xdr_stdio.c: Likewise.
25593
25594 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
25595
25596         [BZ #12650]
25597         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
25598         * sysdeps/ia64/dl-tls.h: Likewise.
25599         * sysdeps/powerpc/dl-tls.h: Likewise.
25600         * sysdeps/s390/dl-tls.h: Likewise.
25601         * sysdeps/sh/dl-tls.h: Likewise.
25602         * sysdeps/sparc/dl-tls.h: Likewise.
25603         * sysdeps/x86_64/dl-tls.h: Likewise.
25604         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
25605
25606 2011-03-14  Andreas Schwab  <schwab@redhat.com>
25607
25608         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
25609         rpath element also skip the following colon.
25610         (expand_dynamic_string_token): Add is_path parameter and pass
25611         down to DL_DST_REQUIRED and _dl_dst_substitute.
25612         (decompose_rpath): Call expand_dynamic_string_token with
25613         non-zero is_path.  Ignore empty rpaths.
25614         (_dl_map_object_from_fd): Call expand_dynamic_string_token
25615         with zero is_path.
25616
25617 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
25618
25619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
25620         Make cancelable.
25621
25622 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
25623
25624         [BZ #12655]
25625         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
25626         Patch by Filipe David Manana <fdmanana@apache.org>.
25627
25628 2011-04-07  Andreas Schwab  <schwab@redhat.com>
25629
25630         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
25631         Maintain aligned stack.
25632         (CHECK_RSP): Remove unused macro.
25633
25634 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
25635
25636         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
25637         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
25638
25639 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
25640
25641         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
25642
25643         * include/features.h: Mention __USE_XOPEN2K8 in comment.
25644
25645 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
25646
25647         [BZ #12518]
25648         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
25649         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
25650         * sysdeps/x86_64/memmove.c: New file.
25651         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
25652         (memcpy): Renamed to ...
25653         (__new_memcpy): This.
25654         (memcpy): Provide GLIBC_2_14 memcpy.
25655         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
25656         (memcpy): Provide GLIBC_2_2_5 memcpy.
25657
25658 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
25659
25660         [BZ #12631]
25661         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
25662
25663 2011-03-30  Andreas Schwab  <schwab@redhat.com>
25664
25665         * misc/syncfs.c: New file.
25666         * misc/Makefile (routines): Add syncfs.
25667         * posix/unistd.h: Declare syncfs.
25668         * sysdeps/unix/syscalls.list: Add syncfs.
25669
25670 2011-04-01  Andreas Schwab  <schwab@redhat.com>
25671
25672         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
25673         open_by_handle_at.
25674         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
25675         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
25676         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
25677         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
25678         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
25679         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
25680         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
25681
25682 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
25683
25684         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
25685         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
25686         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
25687         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
25688         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
25689         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
25690         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
25691
25692         * io/Makefile: Compile fallocate.c, fallocate64.c, and
25693         sync_file_range.c with -fexceptions.
25694         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
25695         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
25696         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
25697         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
25698         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
25699         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
25700         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
25701         sync_file_range as cancellation point
25702         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
25703         now a wrapper around __call_sync_file_range with cancellation handling.
25704         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
25705         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
25706         function name to __call_sync_file_range.
25707         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
25708         Add call_sync_file_range.
25709
25710 2011-04-01  Andreas Schwab  <schwab@redhat.com>
25711
25712         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25713         bits/timex.h.
25714
25715 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
25716
25717         * iconv/iconv.h: Fix typo in comment.
25718         * io/fcntl.h: Likewise.
25719         * libio/stdio.h: Likewise.
25720         * posix/spawn.h: Likewise.
25721         * posix/unistd.h: Likewise.
25722         * stdlib/stdlib.h: Likewise.
25723         * time/time.h: Likewise.
25724         * wcsmbs/wchar.h: Likewise.
25725
25726         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
25727         open_by_handle): Add.
25728         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
25729         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
25730         Augment a few comments.
25731         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
25732         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
25733         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
25734         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
25735         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
25736         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
25737         open_by_handle.
25738
25739         * io/fcntl.h (AT_EMPTY_PATH): Define.
25740
25741 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
25742
25743         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
25744         * sysdeps/unix/sysv/linux/bits/time.h: New file.
25745         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
25746         to...
25747         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
25748         * Versions.def: Add GLIBC_2.14.
25749         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
25750         Export.
25751
25752 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
25753
25754         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
25755         round counter.
25756         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
25757
25758 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
25759
25760         [BZ #12597]
25761         * string/test-strncmp.c (do_page_test): New function.
25762         (check2): Likewise.
25763         (test_main): Call check2.
25764         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
25765
25766 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
25767
25768         [BZ #12587]
25769         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
25770         Handle cache information in CPU leaf 4.
25771         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
25772
25773 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
25774
25775         [BZ #12583]
25776         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
25777         character representation.
25778         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
25779
25780 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
25781
25782         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
25783         END(__isnan) to END(__isnanf) to match function entry point/label
25784         EALIGN(__isnanf,...).
25785
25786 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
25787
25788         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
25789
25790 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
25791
25792         [BZ #12510]
25793         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
25794         copy from the symbol referenced in the relocation to initialize the
25795         used variable.
25796         Patch by Piotr Bury <pbury@goahead.com>.
25797         * elf/Makefile: Add rules to build and tst-unique3.
25798         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
25799         * elf/tst-unique3.cc: New file.
25800         * elf/tst-unique3.h: New file.
25801         * elf/tst-unique3lib.cc: New file.
25802         * elf/tst-unique3lib2.cc: New file.
25803
25804         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
25805
25806 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
25807
25808         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
25809         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
25810         to _start.
25811
25812 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
25813
25814         * elf/dl-load.c (_dl_map_object): If we are looking for the first
25815         to-be-loaded object along a path to loader is ld.so.
25816
25817 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
25818             Ulrich Drepper  <drepper@gmail.com>
25819
25820         * sysdeps/x86_64/memset.S: After aligning destination, code
25821         branches to different locations depending on the value of
25822         misalignment, when multiarch is enabled. Fix this.
25823
25824 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
25825
25826         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
25827         Set _x86_64_preferred_memory_instruction for AMD processsors.
25828         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25829         Set bit_Prefer_SSE_for_memop for AMD processors.
25830
25831 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
25832
25833         * libio/fmemopen.c (fmemopen): Optimize a bit.
25834
25835 2011-03-03  Andreas Schwab  <schwab@redhat.com>
25836
25837         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
25838
25839 2011-03-03  Roland McGrath  <roland@redhat.com>
25840
25841         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
25842
25843 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
25844
25845         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
25846         __bzero_ultra1 instead of __memset_ultra1.
25847
25848 2011-02-23  Andreas Schwab  <schwab@redhat.com>
25849             Ulrich Drepper  <drepper@gmail.com>
25850
25851         [BZ #12509]
25852         * include/link.h (struct link_map): Add l_orig_initfini.
25853         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
25854         returning unsuccessfully.
25855         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
25856         close of a file loaded at startup, restore the original l_initfini
25857         list.
25858         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
25859         list, store the pointer.
25860         * elf/Makefile ($(objpfx)noload-mem): New rule.
25861         (noload-ENV): Define.
25862         (tests): Add $(objpfx)noload-mem.
25863         * elf/noload.c: Include <memcheck.h>.
25864         (main): Call mtrace.  Close all opened handles.
25865
25866 2011-02-17  Andreas Schwab  <schwab@redhat.com>
25867
25868         [BZ #12454]
25869         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
25870         dependencies are missing.
25871
25872 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25873
25874         Fix __if_freereq crash: Unlike the generic version which uses free,
25875         Hurd needs munmap.
25876         * sysdeps/mach/hurd/ifreq.h: New file.
25877
25878 2011-01-27  Petr Baudis  <pasky@suse.cz>
25879             Ulrich Drepper  <drepper@gmail.com>
25880
25881         [BZ 12445]#
25882         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
25883         to extend_alloca().
25884         * stdio-common/bug23.c: New file.
25885         * stdio-common/Makefile (tests): Add bug23.
25886
25887 2010-09-28  Andreas Schwab  <schwab@redhat.com>
25888             Ulrich Drepper  <drepper@gmail.com>
25889
25890         [BZ #12489]
25891         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
25892         before performing relro protection.  At old place add assertion
25893         to make sure nothing changed.
25894
25895 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
25896             Glauber de Oliveira Costa  <glommer@gmail.com>
25897
25898         * elf/elf.h: Add new ARM TLS relocs.
25899
25900 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
25901
25902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
25903         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
25904         cast from r3.
25905         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
25906         'tests' variable.
25907         * sysdeps/wordsize-64/tst-writev.c: New file.
25908
25909 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
25910
25911         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
25912         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
25913         insns in _dl_start to prevent a TOC reference before relocs are
25914         resolved.
25915
25916 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
25917
25918         [BZ #12469]
25919         * Makeconfig: Remove RANLIB definition.
25920         * Makerules: Don't use RANLIB.
25921         * aclocal.m4: Remove ranlib test.
25922         * configure.in: No need to check for ranlib.
25923         * elf/rtld-Rules: Don't use RANLIB.
25924
25925 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25926
25927         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
25928         protection macro.
25929         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
25930         inclusion protection macro.
25931
25932         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
25933         SIGRTMIN and SIGRTMAX and print information in that case only when
25934         SIGRTMIN is defined.
25935
25936 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
25937
25938         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
25939         arginfo fn returning -1.
25940
25941         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
25942         and thousands string is zero terminated.
25943
25944 2011-02-03  Andreas Schwab  <schwab@redhat.com>
25945
25946         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
25947         sysdeps/unix/sysv/linux/bits/socket.h.
25948
25949 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25950
25951         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
25952         (__CPU_COUNT): Remove old macros.
25953         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
25954         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
25955         (__CPU_ALLOC, __CPU_FREE): Add macros.
25956         (__sched_cpualloc, __sched_cpufree): Add declarations.
25957
25958 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
25959
25960         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
25961         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
25962         * nscd/aicache.c (addhstaiX): Return timeout of added value.
25963         (readdhstai): Return value of addhstaiX call.
25964         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
25965         (addgrbyX): Return value returned by cache_addgr.
25966         (readdgrbyname): Return value returned by addgrbyX.
25967         (readdgrbygid): Likewise.
25968         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
25969         (addpwbyX): Return value returned by cache_addpw.
25970         (readdpwbyname): Return value returned by addhstbyX.
25971         (readdpwbyuid): Likewise.
25972         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
25973         (addservbyX): Return value returned by cache_addserv.
25974         (readdservbyname): Return value returned by addservbyX:
25975         (readdservbyport): Likewise.
25976         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
25977         (addhstbyX): Return value returned by cache_addhst.
25978         (readdhstbyname): Return value returned by addhstbyX.
25979         (readdhstbyaddr): Likewise.
25980         (readdhstbynamev6): Likewise.
25981         (readdhstbyaddrv6): Likewise.
25982         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
25983         (readdinitgroups): Return value returned by addinitgroupsX.
25984         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
25985         (prune_cache): Keep track of timeout value of re-added entries.
25986         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
25987         * nscd/nscd.h: Adjust prototypes of readd* functions.
25988
25989 2011-02-04  Roland McGrath  <roland@redhat.com>
25990
25991         * nis/nis_server.c (nis_servstate): Use the right name for 0.
25992         (nis_stats): Likewise.
25993         * nis/nis_modify.c (nis_modify): Likewise.
25994         * nis/nis_remove.c (nis_remove): Likewise.
25995         * nis/nis_add.c (nis_add): Likewise.
25996
25997         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
25998
25999         * posix/fnmatch_loop.c: Add some consts.
26000
26001         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
26002
26003 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
26004
26005         [BZ #12460]
26006         * config.make.in (config-cflags-novzeroupper): Define.
26007         * configure.in: Substitute libc_cv_cc_novzeroupper.
26008         * elf/Makefile (AVX-CFLAGS): Define.
26009         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
26010         (CFLAGS-tst-auditmod4a.c): Likewise.
26011         (CFLAGS-tst-auditmod4b.c): Likewise.
26012         (CFLAGS-tst-auditmod6b.c): Likewise.
26013         (CFLAGS-tst-auditmod6c.c): Likewise.
26014         (CFLAGS-tst-auditmod7b.c): Likewise.
26015         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
26016
26017 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
26018
26019         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
26020         function to the callback.
26021         Patch partly by Jiri Olsa <jolsa@redhat.com>.
26022
26023 2011-02-02  Andreas Schwab  <schwab@redhat.com>
26024
26025         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
26026         of errno.
26027
26028 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
26029
26030         [BZ #11724]
26031         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
26032         of constructors.
26033         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
26034         of destructors.
26035         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
26036
26037         [BZ #11724]
26038         * elf/Makefile: Add rules to build and run new test.
26039         * elf/tst-initorder.c: New file.
26040         * elf/tst-initorder.exp: New file.
26041         * elf/tst-initordera1.c: New file.
26042         * elf/tst-initordera2.c: New file.
26043         * elf/tst-initordera3.c: New file.
26044         * elf/tst-initordera4.c: New file.
26045         * elf/tst-initorderb1.c: New file.
26046         * elf/tst-initorderb2.c: New file.
26047         * elf/tst-order-a1.c: New file.
26048         * elf/tst-order-a2.c: New file.
26049         * elf/tst-order-a3.c: New file.
26050         * elf/tst-order-a4.c: New file.
26051         * elf/tst-order-b1.c: New file.
26052         * elf/tst-order-b2.c: New file.
26053         * elf/tst-order-main.c: New file.
26054         New test case by George Gensure <werkt0@gmail.com>.
26055
26056 2010-10-01  Andreas Schwab  <schwab@redhat.com>
26057
26058         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
26059         decoding ACE if AI_CANONIDN.
26060
26061 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
26062
26063         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
26064
26065 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
26066
26067         * version.h (RELEASE): Bump for 2.13 release.
26068         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
26069
26070         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
26071
26072         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
26073         MADV_NOHUGEPAGE.
26074         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
26075         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
26076         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
26077         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
26078         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
26079         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
26080
26081         * posix/getconf.c: Update copyright year.
26082         * catgets/gencat.c: Likewise.
26083         * csu/version.c: Likewise.
26084         * debug/catchsegv.sh: Likewise.
26085         * debug/xtrace.sh: Likewise.
26086         * elf/ldconfig.c: Likewise.
26087         * elf/ldd.bash.in: Likewise.
26088         * elf/sprof.c (print_version): Likewise.
26089         * iconv/iconv_prog.c: Likewise.
26090         * iconv/iconvconfig.c: Likewise.
26091         * locale/programs/locale.c: Likewise.
26092         * locale/programs/localedef.c: Likewise.
26093         * malloc/memusage.sh: Likewise.
26094         * malloc/mtrace.pl: Likewise.
26095         * nscd/nscd.c (print_version): Likewise.
26096         * nss/getent.c: Likewise.
26097
26098         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
26099         PF_CAIF, and PF_ALG.
26100         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
26101
26102 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
26103
26104         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
26105         (modules-names): Use them.
26106         (ifunc-test-modules, ifunc-pie-tests): Define.
26107         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
26108         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
26109         (test-extras): Likewise.
26110         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
26111         $(compile-command.c).
26112         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
26113         (all-built-dso): Define.
26114         (check-textrel.out, check-execstack.out): Depend on it.
26115
26116         * configure.in: Don't override --enable-multi-arch.
26117
26118 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
26119
26120         [BZ #6812]
26121         * nscd/hstcache.c (tryagain): Define.
26122         (cache_addhst): Return tryagain not notfound for temporary errors.
26123         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
26124         failed.
26125
26126 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
26127
26128         [BZ #10563]
26129         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
26130         to make the syscall.
26131         * sysdeps/unix/sysv/linux/setgroups.c: New file.
26132
26133         [BZ #12378]
26134         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
26135         and fall back to matching as normal character if the string ends before
26136         the matching ']' is found.  This is what POSIX requires.
26137         * posix/testfnm.c: Adjust test result.
26138         * posix/globtest.sh: Adjust test result.  Add new test.
26139         * posix/tst-fnmatch.input: Likewise.
26140         * posix/tst-fnmatch2.c: Add new test.
26141
26142 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
26143
26144         * elf/Makefile (check-execstack): Revert last change.  Depend on
26145         check-execstack.h.
26146         (check-execstack.h): New target.
26147         (generated): Add check-execstack.h.
26148         * elf/check-execstack.c: Include "check-execstack.h".
26149         (main): Revert last change.
26150         (handle_file): Return zero if GNU_STACK is absent and
26151         DEFAULT_STACK_PERMS doesn't include PF_X.
26152
26153 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
26154
26155         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
26156         in child fails because the descriptor is already closed.
26157         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
26158         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
26159         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
26160
26161         [BZ #12397]
26162         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
26163         syscall.
26164
26165         [BZ #10484]
26166         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
26167         temporary buffer used to handle multi lookups locally.
26168         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
26169
26170 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
26171
26172         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
26173         loader is ld.so.
26174
26175 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
26176
26177         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
26178         alignment for SSE2.
26179
26180 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
26181
26182         [BZ #12394]
26183         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
26184         characters.  When rounding increased number of integer digits recompute
26185         number of groups.
26186         * stdio-common/tst-grouping.c: New file.
26187         * stdio-common/Makefile: Add rules to build and run tst-grouping.
26188
26189 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
26190
26191         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
26192         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
26193
26194         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
26195         void.
26196         * bits/select.h: Likewise.
26197
26198 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
26199
26200         * po/ja.po: Update from translation team.
26201
26202 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
26203
26204         [BZ #11155]
26205         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
26206         implementation just like for lxstat, fxstatat, et al.
26207
26208 2010-12-27  Jim Meyering  <meyering@redhat.com>
26209
26210         [BZ #12348]
26211         * posix/regexec.c (build_trtable): Return failure indication upon
26212         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26213
26214 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
26215
26216         [BZ #12201]
26217         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
26218         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
26219         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
26220         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
26221
26222         [BZ #12207]
26223         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
26224
26225         [BZ #12204]
26226         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
26227         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
26228
26229 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
26230
26231         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
26232         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
26233         script has SORT_BY_INIT_PRIORITY.
26234         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
26235         NO_CTORS_DTORS_SECTIONS is defined.
26236         * elf/soinit.c: Likewise.
26237         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
26238         NO_CTORS_DTORS_SECTIONS is defined.
26239         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
26240         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
26241         * sysdeps/sh/init-first.c: Likewise.
26242         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
26243
26244 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
26245
26246         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
26247         always use the slow path.
26248
26249 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
26250
26251         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
26252         similar rule which adds the sysdep directories to the header search in
26253         order to pick up the correct platform stackinfo.h.
26254         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
26255         perform test if it is, otherwise return successfully without testing.
26256         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
26257         DEFAULT_STACK_PERMS define in stackinfo.h.
26258         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
26259         defined in stackinfo.h.
26260         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
26261         DEFAULT_STACK_PERMS defined in stackinfo.h.
26262         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
26263         * sysdeps/ia64/stackinfo.h: Likewise.
26264         * sysdeps/s390/stackinfo.h: Likewise.
26265         * sysdeps/sh/stackinfo.h: Likewise.
26266         * sysdeps/sparc/stackinfo.h: Likewise.
26267         * sysdeps/x86_64/stackinfo.h: Likewise.
26268         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
26269         PF_X for powerpc64.  Retain PF_X for powerpc32.
26270
26271 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
26272
26273         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
26274         accurately.
26275         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
26276         GETDENTS_64BIT_ALIGNED.
26277
26278 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
26279
26280         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
26281
26282 2010-12-10  Andreas Schwab  <schwab@redhat.com>
26283
26284         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
26285         _GNU_SOURCE.
26286
26287         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
26288         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
26289         Remove __restrict.
26290         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
26291         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
26292
26293 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
26294
26295         [BZ #11655]
26296         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
26297         are initialized.
26298
26299 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
26300
26301         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
26302
26303 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
26304
26305         * po/it.po: Update from translation team.
26306
26307 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
26308
26309         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
26310         unused codes.
26311
26312 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
26313
26314         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
26315
26316 2010-11-24  Andreas Schwab  <schwab@redhat.com>
26317
26318         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
26319         specially.
26320         (gaih_getanswer_slice): Likewise.
26321
26322 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
26323
26324         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
26325
26326 2010-05-31  Petr Baudis  <pasky@suse.cz>
26327
26328         [BZ #11149]
26329         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
26330         silently even in the chroot mode.
26331
26332 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
26333
26334         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
26335         last patch a bit.  Pretty printing
26336
26337 2010-05-31  Petr Baudis <pasky@suse.cz>
26338
26339         [BZ #10085]
26340         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
26341         initialization of skip_initgroups_dyn.
26342
26343 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
26344
26345         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
26346         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
26347
26348 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
26349
26350         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
26351
26352 2010-11-11  Andreas Schwab  <schwab@redhat.com>
26353
26354         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
26355         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
26356         (tst-fnmatch-ENV): Set MALLOC_TRACE.
26357         ($(objpfx)tst-fnmatch-mem): New rule.
26358         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
26359         * posix/tst-fnmatch.c (main): Call mtrace.
26360
26361 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
26362
26363         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26364         Support Intel processor model 6 and model 0x2c.
26365
26366 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
26367
26368         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
26369           signed comparison.
26370
26371 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
26372
26373         [BZ #12205]
26374         * string/test-strncasecmp.c (check_result): New function.
26375         (do_one_test): Use it.
26376         (check1): New function.
26377         (test_main): Use it.
26378         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
26379         Support strcasecmp and strncasecmp.
26380
26381 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
26382
26383         [BZ #12194]
26384         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
26385         * sysdeps/x86_64/bits/byteswap.h: Likewise.
26386
26387 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
26388
26389         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
26390         IFUNC support.
26391         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26392         memset-x86-64.
26393         * sysdeps/x86_64/multiarch/bzero.S: New file.
26394         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
26395         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
26396         * sysdeps/x86_64/multiarch/memset.S: New file.
26397         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
26398         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26399         Set bit_Prefer_SSE_for_memop for Intel processors.
26400         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
26401         Define.
26402         (index_Prefer_SSE_for_memop): Define.
26403         (HAS_PREFER_SSE_FOR_MEMOP): Define.
26404
26405 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
26406
26407         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
26408         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
26409
26410 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
26411
26412         [BZ #12191]
26413         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
26414         (__x86_64_raw_data_cache_size_half): Likewise.
26415         (__x86_64_raw_shared_cache_size): Likewise.
26416         (__x86_64_raw_shared_cache_size_half): Likewise.
26417
26418         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
26419         (__x86_64_raw_data_cache_size_half): Likewise.
26420         (__x86_64_raw_shared_cache_size): Likewise.
26421         (__x86_64_raw_shared_cache_size_half): Likewise.
26422         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
26423         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
26424         and __x86_64_raw_shared_cache_size_half.  Round
26425         __x86_64_data_cache_size_half, __x86_64_data_cache_size
26426         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
26427         to multiple of 256 bytes.
26428
26429 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
26430
26431         [BZ #12167]
26432         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
26433         of inacessible symlinks.  Verify result of symlink before returning it.
26434         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
26435         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
26436
26437 2010-10-28  Erich Ritz  <erichritz@gmail.com>
26438
26439         * math/math.h (isinf): Fix typo in comment.
26440
26441 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
26442
26443         * po/da.po: Update from translation team.
26444
26445 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
26446
26447         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
26448         is added to the list.
26449
26450 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26451             Ulrich Drepper  <drepper@gmail.com>
26452
26453         * elf/dl-object.c (_dl_new_object): Don't append the new object to
26454         the global list here.  Move code to...
26455         (_dl_add_to_namespace_list): ...here.  New function.
26456         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
26457         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
26458         * elf/dl-load.c (lose): Don't remove the element from the list.
26459         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
26460         (_dl_map_object): Likewise.
26461
26462 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
26463
26464         [BZ #12159]
26465         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
26466         into all bytes of SSE register.
26467         Patch by Richard Li <richardpku@gmail.com>.
26468
26469 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
26470
26471         [BZ #12140]
26472         * malloc/malloc.c (_int_free): Fill correct number of bytes when
26473         perturbing.
26474
26475 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
26476
26477         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
26478         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
26479         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
26480         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
26481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
26482         submachine.
26483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
26484
26485 2010-10-22  Andreas Schwab  <schwab@redhat.com>
26486
26487         * include/dlfcn.h (__RTLD_SECURE): Define.
26488         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
26489         mode & __RTLD_SECURE instead.
26490         (open_path): Rename preloaded parameter to secure.
26491         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
26492         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
26493         * elf/dl-deps.c (openaux): Likewise.
26494         * elf/rtld.c (struct map_args): Remove is_preloaded.
26495         (map_doit): Don't use it.
26496         (dl_main): Likewise.
26497         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
26498         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
26499
26500 2010-09-09  Andreas Schwab  <schwab@redhat.com>
26501
26502         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
26503         (sysd-rules-targets): Remove duplicates.
26504         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
26505         rtld-%.$o dependency.
26506
26507 2010-10-18  Andreas Schwab  <schwab@redhat.com>
26508
26509         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
26510         _dl_map_object do it.
26511
26512 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
26513
26514         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
26515         fast fma builtins, define the macros in the C99 standard.
26516         (FP_FAST_FMAF): Likewise.
26517         (FP_FAST_FMAL): Likewise.
26518         * sysdeps/x86_64/bits/mathdef.h: Likewise.
26519
26520         * bits/mathdef.h: Update copyright year.
26521         * sysdeps/powerpc/bits/mathdef.h: Likewise.
26522
26523 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
26524
26525         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
26526         builtins, define the macros in the C99 standard.
26527         (FP_FAST_FMAF): Likewise.
26528         (FP_FAST_FMAL): Likewise.
26529         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
26530         multiply/add.
26531         (FP_FAST_FMAF): Likewise.
26532
26533 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
26534
26535         [BZ #3268]
26536         * math/libm-test.inc (fma_test): Some new testcases.
26537         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
26538         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
26539         y and infinite z.  Do multiplication by C already in long double.
26540         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
26541         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
26542         y and infinite z.  Do bitwise or of inexact bit into u.d.
26543         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
26544         * sysdeps/i386/fpu/s_fmaf.S: Removed.
26545         * sysdeps/i386/fpu/s_fma.S: Removed.
26546         * sysdeps/i386/fpu/s_fmal.S: Removed.
26547
26548 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
26549
26550         [BZ #3268]
26551         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
26552         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
26553         computation is not scheduled after fetestexcept.  Fix value
26554         of minimum denormal long double.
26555
26556 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
26557
26558         [BZ #3268]
26559         * math/libm-test.inc (fma_test): Add some more tests.
26560         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
26561         correctly.
26562
26563 2010-10-15  Andreas Schwab  <schwab@redhat.com>
26564
26565         * scripts/data/localplt-s390-linux-gnu.data: New file.
26566         * scripts/data/localplt-s390x-linux-gnu.data: New file.
26567
26568 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
26569
26570         [BZ #3268]
26571         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
26572         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
26573         instead of dbl-64.
26574         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
26575         inlines.
26576         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
26577         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
26578         if one of x and y is very large and the other is subnormal.
26579         * sysdeps/s390/fpu/s_fmaf.c: New file.
26580         * sysdeps/s390/fpu/s_fma.c: New file.
26581         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
26582         * sysdeps/powerpc/fpu/s_fma.S: New file.
26583         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
26584         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
26585         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
26586
26587 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
26588
26589         [BZ #3268]
26590         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
26591         fma tests.
26592         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
26593         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
26594         * sysdeps/i386/i686/multiarch/s_fma.c: Include
26595         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
26596         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
26597         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
26598         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
26599
26600 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
26601
26602         [BZ #12078]
26603         * posix/regcomp.c (parse_branch): One more memory leak plugged.
26604         * posix/bug-regex31.input: Add test case.
26605
26606 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
26607
26608         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
26609         * posix/bug-regex31.input: New file.
26610
26611         [BZ #12078]
26612         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
26613         (parse_sub_exp): Fix last change, use postorder.
26614
26615         * posix/bug-regex31.c: New file.
26616         * posix/Makefile: Add rules to build and run bug-regex31.
26617
26618         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
26619
26620         [BZ #12078]
26621         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
26622
26623         [BZ #12108]
26624         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
26625         to have entries in sys_siglist.
26626
26627         [BZ #12093]
26628         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
26629         be NULL.
26630
26631 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
26632
26633         [BZ #3268]
26634         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
26635         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
26636         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
26637         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
26638         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
26639         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
26640         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
26641         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
26642         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
26643         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
26644         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
26645         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
26646         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
26647         * math/ftestexcept.c (fetestexcept): Likewise.
26648         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
26649         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
26650         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
26651         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
26652         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
26653         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
26654         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
26655
26656 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
26657
26658         [BZ #12107]
26659         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
26660         newline.
26661
26662 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
26663
26664         * string/bug-strstr1.c: New file.
26665         * string/Makefile: Add rules to build and run bug-strstr1.
26666
26667 2010-10-05  Eric Blake  <eblake@redhat.com>
26668
26669         [BZ #12092]
26670         * string/str-two-way.h (two_way_long_needle): Always clear memory
26671         when skipping input due to the shift table.
26672
26673 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
26674
26675         [BZ #12005]
26676         * malloc/mcheck.c: Handle large requests.
26677
26678         [BZ #12077]
26679         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
26680         for strncmp and strncasecmp.
26681         * string/stratcliff.c: Add tests for strcmp and strncmp.
26682         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
26683
26684 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26685
26686         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
26687         __set_fpscr.
26688
26689 2010-09-30  Andreas Jaeger  <aj@suse.de>
26690
26691         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
26692         (CGROUP_SUPER_MAGIC): Define.
26693         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
26694         Handle btrfs and cgroup file systems.
26695         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
26696         Likewise.
26697
26698 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
26699
26700         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
26701         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
26702
26703 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26704
26705         [BZ #12067]
26706         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
26707         trying to locate the ELF header.
26708
26709 2010-09-27  Andreas Schwab  <schwab@redhat.com>
26710
26711         [BZ #11611]
26712         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
26713         Mask out sign-bit copies when constructing f_fsid.
26714
26715 2010-09-24  Petr Baudis <pasky@suse.cz>
26716
26717         * debug/stack_chk_fail_local.c: Add missing licence exception.
26718         * debug/warning-nop.c: Likewise.
26719
26720 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
26721
26722         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
26723         implementing getdents64 using getdents syscall, set d_type if
26724         __ASSUME_GETDENTS32_D_TYPE.
26725
26726 2010-09-16  Andreas Schwab  <schwab@redhat.com>
26727
26728         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
26729         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
26730
26731 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
26732
26733         [BZ #12037]
26734         * posix/unistd.h: Undo change of feature selection for ftruncate from
26735         2010-01-11.
26736
26737 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
26738
26739         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
26740         detection.
26741
26742 2010-09-20  Andreas Schwab  <schwab@redhat.com>
26743
26744         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
26745         fanotify_mark.
26746         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
26747
26748 2010-09-14  Andreas Schwab  <schwab@redhat.com>
26749
26750         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
26751         variables after CHECK_SP call.
26752         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
26753
26754 2010-09-13  Andreas Schwab  <schwab@redhat.com>
26755             Ulrich Drepper  <drepper@redhat.com>
26756
26757         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
26758         re-relocationg ld.so.
26759         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
26760         _dl_init_paths call.
26761         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
26762         here anymore.
26763
26764 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
26765
26766         * resolv/res_init.c (__res_vinit): Count the default server we added.
26767
26768 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
26769             Ulrich Drepper  <drepper@redhat.com>
26770
26771         [BZ #11968]
26772         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
26773         (____longjmp_chk): Use %ebx for saving value across system call.
26774         Add unwind info.
26775
26776 2010-09-06  Andreas Schwab  <schwab@redhat.com>
26777
26778         * manual/Makefile: Don't mix pattern rules with normal rules.
26779
26780 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
26781
26782         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
26783         operation.
26784         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
26785         * libio/iofopncook.c (_IO_cookie_init): Likewise.
26786         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
26787         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
26788         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
26789         Likewise.
26790
26791 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
26792
26793         [BZ #11979]
26794         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
26795         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
26796
26797 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
26798
26799         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
26800         * sysdeps/x86_64/addmul_1.S: Likewise.
26801         * sysdeps/x86_64/lshift.S: Likewise.
26802         * sysdeps/x86_64/mul_1.S: Likewise.
26803         * sysdeps/x86_64/rshift.S: Likewise.
26804         * sysdeps/x86_64/sub_n.S: Likewise.
26805         * sysdeps/x86_64/submul_1.S: Likewise.
26806
26807 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26808
26809         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
26810         Define __sched_param instead of SCHED_* and sched_param when
26811         <bits/sched.h> is included with __need_schedparam defined.
26812         * bits/sched.h [__need_schedparam]
26813         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
26814         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
26815         (__defined_schedparam): Define to 1.
26816         (__sched_param): New structure, identical to sched_param.
26817         (__need_schedparam): Undefine.
26818
26819 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
26820
26821         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
26822         (epoll_create1): Declare.
26823
26824         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
26825
26826 2010-08-31  Andreas Schwab  <schwab@redhat.com>
26827
26828         [BZ #7066]
26829         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
26830         shifting retval into place.
26831
26832 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
26833
26834         * nis/rpcsvc/nis.h: Update copyright notice.
26835         * nis/rpcsvc/nis.x: Likewise.
26836         * nis/rpcsvc/nis_callback.h: Likewise.
26837         * nis/rpcsvc/nis_callback.x: Likewise.
26838         * nis/rpcsvc/nis_object.x: Likewise.
26839         * nis/rpcsvc/nis_tags.h: Likewise.
26840         * nis/rpcsvc/yp.h: Likewise.
26841         * nis/rpcsvc/yp.x: Likewise.
26842         * nis/rpcsvc/ypupd.h: Likewise.
26843         * nis/yp_xdr.c: Likewise.
26844         * nis/ypupdate_xdr.c: Likewise.
26845
26846         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
26847         mainly the body of pmap_getport.  Add parameters to specify timeouts.
26848         (pmap_getport): Use __libc_rpc_getport.
26849         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
26850         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
26851         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
26852
26853 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
26854
26855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
26856         fanotify_mark.
26857
26858 2010-08-27  Roland McGrath  <roland@redhat.com>
26859
26860         * sysdeps/i386/i686/multiarch/Makefile
26861         (CFLAGS-varshift.c): New variable.
26862
26863 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
26864
26865         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
26866         * sysdeps/i386/i686/multiarch/varshift.c: New file.
26867
26868         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
26869
26870         * sysdeps/x86_64/strlen.S: Minimal code improvement.
26871
26872 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
26873
26874         * sysdeps/x86_64/strlen.S: Unroll the loop.
26875         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26876         strlen-sse2 strlen-sse2-bsf.
26877         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
26878         __strlen_no_bsf if bit_Slow_BSF is set.
26879         (__strlen_sse42): Removed.
26880         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
26881         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
26882
26883 2010-08-25  Roland McGrath  <roland@redhat.com>
26884
26885         * sysdeps/x86_64/multiarch/varshift.S: File removed.
26886         * sysdeps/x86_64/multiarch/varshift.c: New file.
26887         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
26888         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
26889         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
26890         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
26891
26892 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26893
26894         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26895         strlen-sse2 strlen-sse2-bsf.
26896         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
26897         __strlen_sse2_bsf if bit_Slow_BSF is unset.
26898         (__strlen_sse2): Removed.
26899         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
26900         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
26901         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
26902         bit_Slow_BSF for Atom.
26903         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
26904         (index_Slow_BSF): Define.
26905         (HAS_SLOW_BSF): Define.
26906
26907 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
26908
26909         [BZ #10851]
26910         * resolv/res_init.c (__res_vinit): When no server address at all
26911         is given default to loopback.
26912
26913 2010-08-24  Roland McGrath  <roland@redhat.com>
26914
26915         * configure.in: Remove config-name.h generation.
26916         * configure: Regenerated.
26917         * config-name.in: File removed.
26918         * scripts/config-uname.sh: New file.
26919         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
26920         ($(objdir)config-name.h): New target.
26921
26922         * sunrpc/rpc_parse.h: Avoid nested comment.
26923
26924 2010-08-24  Richard Henderson  <rth@redhat.com>
26925             Ulrich Drepper  <drepper@redhat.com>
26926             H.J. Lu  <hongjiu.lu@intel.com>
26927
26928         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
26929         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
26930         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
26931         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
26932         _mm_alignr_epi8 with _mm_loadu_si128.
26933         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
26934         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
26935         (__m128i_shift_right): Removed.
26936         * sysdeps/i386/i686/multiarch/varshift.h: New file.
26937         * sysdeps/i386/i686/multiarch/varshift.S: New file.
26938         * sysdeps/x86_64/multiarch/varshift.h: New file.
26939         * sysdeps/x86_64/multiarch/varshift.S: New file.
26940
26941 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
26942
26943         * configure.in: Move assembler checks to before sysdep dir checking.
26944
26945 2010-08-20  Petr Baudis  <pasky@suse.cz>
26946
26947         * LICENSES: Sync the sunrpc license.
26948
26949 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
26950
26951         * sunrpc/auth_des.c: Update copyright notice once again.
26952         * sunrpc/auth_none.c: Likewise.
26953         * sunrpc/auth_unix.c: Likewise.
26954         * sunrpc/authdes_prot.c: Likewise.
26955         * sunrpc/authuxprot.c: Likewise.
26956         * sunrpc/bindrsvprt.c: Likewise.
26957         * sunrpc/clnt_gen.c: Likewise.
26958         * sunrpc/clnt_perr.c: Likewise.
26959         * sunrpc/clnt_raw.c: Likewise.
26960         * sunrpc/clnt_simp.c: Likewise.
26961         * sunrpc/clnt_tcp.c: Likewise.
26962         * sunrpc/clnt_udp.c: Likewise.
26963         * sunrpc/clnt_unix.c: Likewise.
26964         * sunrpc/des_crypt.c: Likewise.
26965         * sunrpc/des_soft.c: Likewise.
26966         * sunrpc/get_myaddr.c: Likewise.
26967         * sunrpc/getrpcport.c: Likewise.
26968         * sunrpc/key_call.c: Likewise.
26969         * sunrpc/key_prot.c: Likewise.
26970         * sunrpc/openchild.c: Likewise.
26971         * sunrpc/pm_getmaps.c: Likewise.
26972         * sunrpc/pm_getport.c: Likewise.
26973         * sunrpc/pmap_clnt.c: Likewise.
26974         * sunrpc/pmap_prot.c: Likewise.
26975         * sunrpc/pmap_prot2.c: Likewise.
26976         * sunrpc/pmap_rmt.c: Likewise.
26977         * sunrpc/rpc/auth.h: Likewise.
26978         * sunrpc/rpc/auth_unix.h: Likewise.
26979         * sunrpc/rpc/clnt.h: Likewise.
26980         * sunrpc/rpc/des_crypt.h: Likewise.
26981         * sunrpc/rpc/key_prot.h: Likewise.
26982         * sunrpc/rpc/netdb.h: Likewise.
26983         * sunrpc/rpc/pmap_clnt.h: Likewise.
26984         * sunrpc/rpc/pmap_prot.h: Likewise.
26985         * sunrpc/rpc/pmap_rmt.h: Likewise.
26986         * sunrpc/rpc/rpc.h: Likewise.
26987         * sunrpc/rpc/rpc_des.h: Likewise.
26988         * sunrpc/rpc/rpc_msg.h: Likewise.
26989         * sunrpc/rpc/svc.h: Likewise.
26990         * sunrpc/rpc/svc_auth.h: Likewise.
26991         * sunrpc/rpc/types.h: Likewise.
26992         * sunrpc/rpc/xdr.h: Likewise.
26993         * sunrpc/rpc_clntout.c: Likewise.
26994         * sunrpc/rpc_cmsg.c: Likewise.
26995         * sunrpc/rpc_common.c: Likewise.
26996         * sunrpc/rpc_cout.c: Likewise.
26997         * sunrpc/rpc_dtable.c: Likewise.
26998         * sunrpc/rpc_hout.c: Likewise.
26999         * sunrpc/rpc_main.c: Likewise.
27000         * sunrpc/rpc_parse.c: Likewise.
27001         * sunrpc/rpc_parse.h: Likewise.
27002         * sunrpc/rpc_prot.c: Likewise.
27003         * sunrpc/rpc_sample.c: Likewise.
27004         * sunrpc/rpc_scan.c: Likewise.
27005         * sunrpc/rpc_scan.h: Likewise.
27006         * sunrpc/rpc_svcout.c: Likewise.
27007         * sunrpc/rpc_tblout.c: Likewise.
27008         * sunrpc/rpc_util.c: Likewise.
27009         * sunrpc/rpc_util.h: Likewise.
27010         * sunrpc/rpcinfo.c: Likewise.
27011         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
27012         * sunrpc/rpcsvc/key_prot.x: Likewise.
27013         * sunrpc/rpcsvc/klm_prot.x: Likewise.
27014         * sunrpc/rpcsvc/mount.x: Likewise.
27015         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
27016         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
27017         * sunrpc/rpcsvc/rex.x: Likewise.
27018         * sunrpc/rpcsvc/rstat.x: Likewise.
27019         * sunrpc/rpcsvc/rusers.x: Likewise.
27020         * sunrpc/rpcsvc/sm_inter.x: Likewise.
27021         * sunrpc/rpcsvc/spray.x: Likewise.
27022         * sunrpc/rpcsvc/yppasswd.x: Likewise.
27023         * sunrpc/rtime.c: Likewise.
27024         * sunrpc/svc.c: Likewise.
27025         * sunrpc/svc_auth.c: Likewise.
27026         * sunrpc/svc_authux.c: Likewise.
27027         * sunrpc/svc_raw.c: Likewise.
27028         * sunrpc/svc_run.c: Likewise.
27029         * sunrpc/svc_simple.c: Likewise.
27030         * sunrpc/svc_tcp.c: Likewise.
27031         * sunrpc/svc_udp.c: Likewise.
27032         * sunrpc/svc_unix.c: Likewise.
27033         * sunrpc/svcauth_des.c: Likewise.
27034         * sunrpc/xcrypt.c: Likewise.
27035         * sunrpc/xdr.c: Likewise.
27036         * sunrpc/xdr_array.c: Likewise.
27037         * sunrpc/xdr_float.c: Likewise.
27038         * sunrpc/xdr_mem.c: Likewise.
27039         * sunrpc/xdr_rec.c: Likewise.
27040         * sunrpc/xdr_ref.c: Likewise.
27041         * sunrpc/xdr_sizeof.c: Likewise.
27042         * sunrpc/xdr_stdio.c: Likewise.
27043
27044         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
27045         handling.
27046
27047 2010-08-19  Andreas Schwab  <schwab@redhat.com>
27048
27049         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
27050
27051 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
27052
27053         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
27054         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
27055         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
27056         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
27057         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
27058         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
27059         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
27060         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
27061         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
27062         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
27063         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
27064         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
27065         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
27066         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
27067
27068 2010-07-26  Anton Blanchard  <anton@samba.org>
27069
27070         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
27071         * malloc/arena.c (heap_trim): Likewise.
27072
27073 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
27074
27075         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
27076         here.  Not...
27077         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
27078         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
27079
27080 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27081
27082         * sysdeps/i386/elf/Makefile: New file.
27083
27084 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
27085
27086         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
27087         from fanotify_init.
27088         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
27089         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
27090
27091 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
27092
27093         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
27094         of strncasecmp_l.
27095         * sysdeps/multiarch/strcmp.S: Likewise.
27096
27097 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
27098
27099         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
27100         strncase_l-nonascii.
27101         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
27102         Add strncase_l-ssse3.
27103         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
27104         * sysdeps/x86_64/strcmp.S: Likewise.
27105         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
27106         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
27107         * sysdeps/x86_64/strncase.S: New file.
27108         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
27109         * sysdeps/x86_64/strncase_l.S: New file.
27110         * string/Makefile (strop-tests): Add strncasecmp.
27111         * string/test-strncasecmp.c: New file.
27112
27113         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
27114         warning.
27115
27116         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
27117         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
27118
27119 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
27120
27121         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
27122
27123 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
27124
27125         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
27126         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
27127         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
27128
27129 2010-05-01  Alan Modra  <amodra@gmail.com>
27130
27131         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
27132         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
27133         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
27134         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
27135         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
27136         tidying.  Don't tail-call __sigjmp_save for static lib.
27137         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
27138         save location.
27139         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
27140         (CALL_MCOUNT): Add eh info, and nop after bl.
27141         (TAIL_CALL_SYSCALL_ERROR): New macro.
27142         (PSEUDO_RET): Use it.
27143         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
27144         Correct save location of integer regs and cr.
27145         (_dl_profile_resolve): Correct cr save location.  Delete nops
27146         after bl when SHARED.  Reduce cfi size a little by better
27147         placement of cfi directives.
27148         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
27149         make a stack frame.  Instead use parm save area as a temp.
27150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
27151         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
27152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
27153         Don't make a stack frame for parent, use parm save area.
27154         Increase child stack frame to 112 bytes.  Don't save unused reg,
27155         and adjust reg usage.  Set up cfi on error recovery and
27156         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
27157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
27158         (__makecontext): Add dummy nop after jump to exit.
27159         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
27160         Use correct parm save area and cr save, reduce stack frame.
27161         Correct cfi for possible PSEUDO_RET frame setup.
27162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
27163         Branch to local label emitted by PSEUDO_RET rather than
27164         __syscall_error.
27165
27166 2010-08-12  Andreas Schwab  <schwab@redhat.com>
27167
27168         [BZ #11904]
27169         * locale/programs/locale.c (print_assignment): New function.
27170         (show_locale_vars): Use it.
27171
27172 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
27173
27174         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
27175         field.
27176         (struct statfs64): Likewise.
27177         (_STATFS_F_FLAGS): Define.
27178         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
27179         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
27180         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
27181         (ST_VALID): Define locally.
27182         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
27183         __statvfs_getflags, use the provided value.
27184         * sysdeps/unix/sysv/linux/kernel-features.h: Define
27185         __ASSUME_STATFS_F_FLAGS.
27186
27187         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
27188
27189         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
27190         Add sys/fanotify.h.
27191         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
27192         fanotify_mask for GLIBC_2.13.
27193         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
27194         fanotify_init and fanotify_mark.
27195         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
27196         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
27197
27198         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
27199         Add prlimit.
27200         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
27201         prlimit64 for GLIBC_2.13.
27202         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
27203         prlimit64.
27204         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
27205         syscall.
27206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
27207         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
27208         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
27209         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
27210         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
27211         add prlimit alias.
27212         * sysdeps/unix/sysv/linux/prlimit.c: New file.
27213
27214         [BZ #11903]
27215         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
27216         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
27217
27218         * nss/Makefile: Add rules to build and run tst-nss-test1.
27219         * shlib-versions: Add entry for libnss_test1.
27220         * nss/nss_test1.c: New file.
27221         * nss/tst-nss-test1.c: New file.
27222
27223         * nss/nsswitch.c (__nss_database_custom): Define new variable.
27224         (__nss_configure_lookup): Set appropriate entry in
27225         __nss_configure_lookup to true.
27226         * nss/nsswitch.h: Define enum with indeces of databases in
27227         databases and __nss_database_custom arrays.  Declare
27228         __nss_database_custom.
27229         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
27230         to avoid using nscd when custom rules are installed.
27231         * nss/getXXbyYY_r.c: Likewise.
27232         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
27233
27234         * nss/nss_files/files-parse.c: Whitespace fixes.
27235
27236 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
27237
27238         [BZ #11883]
27239         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
27240         * posix/fnmatch_loop.c: Likewise.
27241
27242 2010-07-17  Andi Kleen  <ak@linux.intel.com>
27243
27244         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
27245         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
27246         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
27247         * Versions.def [GLIBC_2.13]: Add.
27248
27249 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
27250
27251         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
27252         Also fail if tpwd after pwuid call is NULL.
27253
27254 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27255
27256         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
27257         when converting to ms.
27258
27259 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27260
27261         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
27262         EOPNOTSUPP errors with ENOTTY.
27263         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
27264         EOPNOTSUPP errors with ENOTTY.
27265
27266 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
27267
27268         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
27269         Add strcasecmp_l-ssse3.
27270         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
27271         strcasecmp.
27272         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
27273         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
27274         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
27275
27276 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
27277
27278         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
27279
27280         * string/Makefile (strop-tests): Add strcasecmp.
27281         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
27282         strcasecmp_l-nonascii.
27283         (gen-as-const-headers): Add locale-defines.sym.
27284         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
27285         * sysdeps/x86_64/strcasecmp.S: New file.
27286         * sysdeps/x86_64/strcasecmp_l.S: New file.
27287         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
27288         * sysdeps/x86_64/locale-defines.sym: New file.
27289         * string/test-strcasecmp.c: New file.
27290
27291         * string/test-strcasestr.c: Test both ends of the range of characters.
27292         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
27293
27294 2010-07-29  Roland McGrath  <roland@redhat.com>
27295
27296         [BZ #11856]
27297         * manual/locale.texi (Yes-or-No Questions): Fix example code.
27298
27299 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
27300
27301         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
27302         for ld.so.
27303
27304 2010-07-27  Andreas Schwab  <schwab@redhat.com>
27305
27306         * manual/memory.texi (Malloc Tunable Parameters): Document
27307         M_PERTURB.
27308
27309 2010-07-26  Roland McGrath  <roland@redhat.com>
27310
27311         [BZ #11840]
27312         * configure.in (-fgnu89-inline check): Set and substitute
27313         gnu89_inline, not libc_cv_gnu89_inline.
27314         * configure: Regenerated.
27315         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
27316
27317 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
27318
27319         * string/test-strnlen.c: New file.
27320         * string/Makefile (strop-tests): Add strnlen.
27321         * string/tester.c (test_strnlen): Add a few more test cases.
27322         * string/tst-strlen.c: Better error reporting.
27323
27324         * sysdeps/x86_64/strnlen.S: New file.
27325
27326 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
27327
27328         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
27329         lower-latency instructions.
27330
27331 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
27332
27333         * string/test-strcasestr.c: New file.
27334         * string/test-strstr.c: New file.
27335         * string/Makefile (strop-tests): Add strstr and strcasestr.
27336         * string/str-two-way.h: Don't undefine MAX.
27337         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
27338
27339 2010-07-21  Andreas Schwab  <schwab@redhat.com>
27340
27341         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
27342         strcasestr-nonascii.
27343         (CFLAGS-strcasestr-nonascii.c): Define.
27344         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
27345         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
27346         Remove unused attribute.
27347
27348 2010-07-20  Roland McGrath  <roland@redhat.com>
27349
27350         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
27351         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
27352         ld.so.cache was broken.  With it, there is no way to disable dsocaps
27353         like LD_HWCAP_MASK can disable hwcaps.
27354
27355 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
27356
27357         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
27358
27359 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
27360
27361         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
27362         call in strcasestr.
27363         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
27364         __strcasestr_sse42_nonascii.
27365         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
27366         strcasestr-nonascii.c.
27367         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
27368
27369 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
27370
27371         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
27372         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
27373         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
27374         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
27375
27376 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
27377
27378         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
27379         fcntl.
27380
27381 2010-07-06  Andreas Schwab  <schwab@redhat.com>
27382
27383         [BZ #11577]
27384         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
27385         dl_signal_cerror.
27386
27387 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
27388
27389         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
27390         _PC_PIPE_BUF using F_GETPIPE_SZ.
27391
27392 2010-07-05  Roland McGrath  <roland@redhat.com>
27393
27394         * manual/arith.texi (Rounding Functions): Fix rint description
27395         implicit in round description.
27396
27397 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
27398
27399         * elf/Makefile: Fix linking for a few tests to make recent linker
27400         happy.
27401
27402 2010-06-30  Andreas Schwab  <schwab@redhat.com>
27403
27404         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
27405         $(common-objpfx)libc_nonshared.a.
27406
27407 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
27408
27409         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
27410         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
27411         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
27412         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
27413         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
27414         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
27415         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
27416         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
27417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
27418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
27419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
27420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
27421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
27422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
27423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
27424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
27425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
27426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
27427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
27428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
27429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
27430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
27431         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
27432         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
27433         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
27434         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
27435         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
27436         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
27437         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
27438         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
27439         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
27440         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
27441         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
27442         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
27443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
27444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
27445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
27446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
27447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
27448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
27449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
27450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
27451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
27452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
27453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
27454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
27455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
27456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
27457
27458 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
27459
27460         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
27461         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
27462         * string/memmove.c (memmove): Renamed to ...
27463         (MEMMOVE): ...this.  Default to memmove.
27464         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
27465         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
27466         (END_CHK): Define.
27467         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27468         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
27469         mempcpy-ssse3-back memmove-ssse3-back.
27470         * sysdeps/x86_64/multiarch/bcopy.S: New file .
27471         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
27472         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
27473         * sysdeps/x86_64/multiarch/memcpy.S: New file.
27474         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
27475         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
27476         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
27477         * sysdeps/x86_64/multiarch/memmove.c: New file.
27478         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
27479         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
27480         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
27481         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
27482         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
27483         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
27484         Define.
27485         (index_Fast_Copy_Backward): Define.
27486         (HAS_ARCH_FEATURE): Define.
27487         (HAS_FAST_REP_STRING): Define.
27488         (HAS_FAST_COPY_BACKWARD): Define.
27489
27490 2010-06-21  Andreas Schwab  <schwab@redhat.com>
27491
27492         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
27493         Restore proper fallback handling.
27494
27495 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
27496
27497         [BZ #11701]
27498         * posix/group_member.c (__group_member): Correct checking loop.
27499
27500         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
27501         OOM in getpwuid_r correctly.  Return error number when the caller
27502         should return, otherwise -1.
27503         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
27504         call returning > 0 value.
27505         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
27506
27507 2010-06-07  Andreas Schwab  <schwab@redhat.com>
27508
27509         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
27510         libc_nonshared.a from targets in modules-names.
27511
27512 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
27513
27514         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
27515         requires it.
27516
27517 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
27518
27519         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
27520         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
27521         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
27522         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
27523
27524 2010-06-02  Andreas Schwab  <schwab@redhat.com>
27525
27526         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
27527
27528 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
27529
27530         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
27531         and F_GETPIPE_SZ.
27532         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
27533         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27534         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27535         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27536         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27537         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
27538
27539 2010-06-14  Roland McGrath  <roland@redhat.com>
27540
27541         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
27542
27543 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
27544
27545         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
27546         __REDIRECT followed by __THROW.
27547         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
27548         * posix/getopt.h (getopt): Likewise.
27549
27550 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
27551
27552         * hurd/lookup-at.c (__file_name_lookup_at): Accept
27553         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
27554         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
27555         in AT_FLAGS.
27556         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
27557         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
27558
27559 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
27560
27561         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
27562
27563 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
27564
27565         [BZ #11640]
27566         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27567         Properly check family and model.
27568
27569 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
27570
27571         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
27572
27573 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
27574
27575         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
27576
27577 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
27578
27579         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
27580         symbol reference.
27581
27582 2010-05-19  Andreas Schwab  <schwab@redhat.com>
27583
27584         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
27585         symbol reference.
27586
27587 2010-05-21  Andreas Schwab  <schwab@redhat.com>
27588
27589         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
27590         and internal_recvmmsg.
27591         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
27592         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
27593         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
27594         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
27595
27596         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
27597         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
27598         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
27599
27600 2010-05-20  Andreas Schwab  <schwab@redhat.com>
27601
27602         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
27603
27604 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
27605
27606         POWER7 optimizations.
27607         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
27608         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
27609
27610 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
27611
27612         * version.h: Update for 2.13 development version.
27613
27614 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
27615
27616         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
27617         exceptions.  Return 0.
27618
27619 2010-05-07  Roland McGrath  <roland@redhat.com>
27620
27621         * elf/ldconfig.c (main): Add a const.
27622
27623 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
27624
27625         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
27626         (args_options): Add no-idn option.
27627         (ahosts_keys_int): Add idn_flags to ai_flags.
27628         (parse_option): Handle 'i' option to clear idn_flags.
27629
27630         * malloc/malloc.c (_int_free): Possible race in the most recently
27631         added check.  Only act on the data if no current modification
27632         happened.
27633
27634 See ChangeLog.17 for earlier changes.