Make fenv.h FE_* macros usable in #if (bug 3439).
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #3439]
4         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
5         integer constant usable in #if and use that to give value to enum
6         constant.
7         (FE_DIVBYZERO): Likewise.
8         (FE_UNDERFLOW): Likewise.
9         (FE_OVERFLOW): Likewise.
10         (FE_INVALID): Likewise.
11         (FE_INVALID_SNAN): Likewise.
12         (FE_INVALID_ISI): Likewise.
13         (FE_INVALID_IDI): Likewise.
14         (FE_INVALID_ZDZ): Likewise.
15         (FE_INVALID_IMZ): Likewise.
16         (FE_INVALID_COMPARE): Likewise.
17         (FE_INVALID_SOFTWARE): Likewise.
18         (FE_INVALID_SQRT): Likewise.
19         (FE_INVALID_INTEGER_CONVERSION): Likewise.
20         (FE_TONEAREST): Likewise.
21         (FE_TOWARDZERO): Likewise.
22         (FE_UPWARD): Likewise.
23         (FE_DOWNWARD): Likewise.
24         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
25         (FE_DIVBYZERO): Likewise.
26         (FE_OVERFLOW): Likewise.
27         (FE_UNDERFLOW): Likewise.
28         (FE_INEXACT): Likewise.
29         (FE_TONEAREST): Likewise.
30         (FE_DOWNWARD): Likewise.
31         (FE_UPWARD): Likewise.
32         (FE_TOWARDZERO): Likewise.
33         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
34         (FE_UNDERFLOW): Likewise.
35         (FE_OVERFLOW): Likewise.
36         (FE_DIVBYZERO): Likewise.
37         (FE_INVALID): Likewise.
38         (FE_TONEAREST): Likewise.
39         (FE_TOWARDZERO): Likewise.
40         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
41         (FE_OVERFLOW): Likewise.
42         (FE_UNDERFLOW): Likewise.
43         (FE_DIVBYZERO): Likewise.
44         (FE_INEXACT): Likewise.
45         (FE_TONEAREST): Likewise.
46         (FE_TOWARDZERO): Likewise.
47         (FE_UPWARD): Likewise.
48         (FE_DOWNWARD): Likewise.
49         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
50         (FE_DIVBYZERO): Likewise.
51         (FE_OVERFLOW): Likewise.
52         (FE_UNDERFLOW): Likewise.
53         (FE_INEXACT): Likewise.
54         (FE_TONEAREST): Likewise.
55         (FE_DOWNWARD): Likewise.
56         (FE_UPWARD): Likewise.
57         (FE_TOWARDZERO): Likewise.
58
59 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
60
61         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
62
63 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
64
65         * scripts/cross-test-ssh.sh (command): Use newlines to separate
66         commands.  Quote $PWD.
67         (blacklist_exports): Don't use remove_newlines.  Replace "declare
68         -x" by "export".
69         (remove_newlines): Remove.
70
71 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
72
73         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
74         * stdlib/stdlib.h (atof): Moved to ...
75         * include/bits/stdlib-float.h: Here.  New file.
76         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
77         * stdlib/bits/stdlib-float.h: New file.
78         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
79         -mno-sse -mno-mmx.
80         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
81         <xmmintrin.h>.
82
83 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
84
85         * conform/conformtest.pl (@headers): Add fenv.h.
86         * conform/data/fenv.h-data: New file.
87         * include/fenv.h [_ISOMAC]: Disable all contents of file except
88         include of <math/fenv.h>.
89
90         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
91         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
92         && !UNIX98].  Enables tests for XOPEN2K8.
93         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
94         POSIX2008]: Likewise.
95
96         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
97         (struct rusage): Do not expect type or its members.
98
99         [BZ #3439]
100         * math/math.h (FP_NAN): Define macro to integer constant usable in
101         #if and use that to give value to enum constant.
102         (FP_INFINITE): Likewise.
103         (FP_ZERO): Likewise.
104         (FP_SUBNORMAL): Likewise.
105         (FP_NORMAL): Likewise.
106
107 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
108
109         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
110         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
111         arguments.
112
113 2012-11-02  Roland McGrath  <roland@hack.frob.com>
114
115         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
116         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
117         autoconf-time if not.
118         * configure.in: Remove AC_PREREQ.
119
120 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
121
122         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
123         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
124         of the internal implementation.
125
126 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
127
128         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
129         except include of <misc/sys/syslog.h>.
130
131 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
132
133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
134         function returns with a NULL context exit with zero.
135
136 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
137
138         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
139
140 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
141
142         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
143         (run_program_cmd): This.
144         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
145         (tst_langinfo): New variable.  Use it.
146
147 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
148
149         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
150         floating point opcodes.
151
152 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
153
154         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
155         variable.
156
157         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
158
159         * sysdeps/mach/hurd/powerpc: Remove directory.
160         * sysdeps/mach/powerpc: Likewise.
161
162 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
163
164         * scripts/check-local-headers.sh: Ignore c++ headers.
165
166 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
167
168         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
169         __libc_cleanup_region_start argument.
170
171 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
172
173         [BZ #14784]
174         [BZ #14785]
175         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
176         x * y using scaling, not as x * y + z.
177         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
178         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
179         * math/libm-test.inc (fma_test): Add more tests.
180         (fma_test_towardzero): Likewise.
181         (fma_test_downward): Likewise.
182         (fma_test_upward): Likewise.
183
184 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
185
186         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
187
188 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
189
190         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
191         New variable.
192
193 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
194
195         * rt/tst-shm.c (worker): Correct checking for mmap failure.
196
197 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
198
199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
200         Fix sort order.
201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
202         Likewise.
203
204 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
205
206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
207         Fix the order of the list for glibc 2.17.
208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
209         Likewise.
210
211 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
212
213         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
214
215 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
216
217         [BZ #14610]
218         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
219         for low part of x being zero before using __atanl (y).
220         * math/libm-test.inc (atan2_test): Add another test.
221
222         * manual/install.texi (Configuring and compiling): Document
223         general use of test-wrapper and test-wrapper-env.
224         * INSTALL: Regenerated.
225
226         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
227         (__fma): Do not extract and scale down low bits on after-rounding
228         systems when result rounded to normal precision would have normal
229         exponent.
230         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
231         (__fmal): Do not extract and scale down low bits on after-rounding
232         systems when result rounded to normal precision would have normal
233         exponent.
234         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
235         (__fmal): Do not extract and scale down low bits on after-rounding
236         systems when result rounded to normal precision would have normal
237         exponent.
238         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
239         macro.
240         (fma_test): Add more tests.
241         (fma_test_towardzero): Likewise.
242         (fma_test_downward): Likewise.
243         (fma_test_upward): Likewise.
244
245 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
246
247         * sysdeps/i386/tininess.h: Renamed to ...
248         * sysdeps/x86/tininess.h: This.
249         * sysdeps/x86_64/tininess.h: Removed.
250
251 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
252
253         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
254         input.  Use $(build-program-cmd).
255         ($(objpfx)tst-array1-static.out): Likewise.
256         ($(objpfx)tst-array2.out): Likewise.
257         ($(objpfx)tst-array3.out): Likewise.
258         ($(objpfx)tst-array4.out): Likewise.
259         ($(objpfx)tst-array5.out): Likewise.
260         ($(objpfx)tst-array5-static.out): Likewise.
261
262 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
263
264         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
265         if defined.
266
267         * nss/nsswitch.h (nss_interface_function): Provide new
268         macro for use with NSS functions.
269         * grp/initgroups.c: Use new macro.
270         * nss/getXXbyYY.c: Likewise.
271         * nss/getXXbyYY_r.c: Likewise.
272         * nss/getXXent.c: Likewise.
273         * nss/getXXent_r.c: Likewise.
274         * sysdeps/posix/getaddrinfo.c: Likewise.
275
276 2012-10-30  Andreas Jaeger  <aj@suse.de>
277
278         * po/ru.po: Update Russion translation from translation project.
279
280 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
281
282         [BZ #14152]
283         [BZ #14783]
284         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
285         result and shift together with sticky bit instead of replicating
286         round-to-nearest rounding.
287         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
288         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
289         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
290         missing underflow exceptions.
291         (fma_test_towardzero): Add more tests.
292         (fma_test_downward): Likewise.
293         (fma_test_upward): Likewise.
294
295         [BZ #14047]
296         * sysdeps/generic/tininess.h: New file.
297         * sysdeps/i386/tininess.h: Likewise.
298         * sysdeps/sh/tininess.h: Likewise.
299         * sysdeps/x86_64/tininess.h: Likewise.
300         * stdlib/tst-strtod-underflow.c: Likewise.
301         * stdlib/tst-tininess.c: Likewise.
302         * stdlib/strtod_l.c: Include <tininess.h>.
303         (round_and_return): Do not set errno for exact underflow cases.
304         Force an underflow exception when setting errno for underflow.
305         Determine underflow based on rounding to normal precision if
306         TININESS_AFTER_ROUNDING.
307         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
308         ERANGE for exact underflow cases.
309         * stdlib/Makefile (tests): Add tst-tininess and
310         tst-strtod-underflow.
311         ($(objpfx)tst-tininess): Use $(link-libm).
312         ($(objpfx)tst-strtod-underflow): Likewise.
313
314 2012-10-30  Andreas Jaeger  <aj@suse.de>
315
316         [BZ#14767]
317         * elf/Makefile (tests): Remove conditional for have-initfini-array
318         since this is now always required and the variable does not exist
319         anymore.
320         (tests-static): Likewise.
321         (modules-names): Likewise.
322
323         * po/eo.po: Add Esperanto translation from translation project.
324
325         * elf/tst-array1.c (fini_array): Make writeable so that it can be
326         merged with constructor/destructor.
327         (init_array): Likewise.
328         * elf/tst-array2dep.c (fini_array): Likewise.
329         (init_array): Likewise.
330
331 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
332
333         * manual/message.texi: Delete @cartouche tags.
334
335 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
336
337         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
338         EOPNOTSUPP.
339         * sysdeps/mach/hurd/fsync.c: Likewise.
340
341         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
342         [_POSIX_REALTIME_SIGNALS]: Change condition to
343         [_POSIX_REALTIME_SIGNALS > 0].
344
345 2012-10-27  Andreas Jaeger  <aj@suse.de>
346
347         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
348         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
349         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
350         [__WORDSIZE != 64]: Likewise.
351
352 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
353
354         *  iconvdata/tst-table.sh: Remove ${SHELL}.
355         *  iconvdata/tst-tables.sh: Likewise.
356
357 2012-10-25  David S. Miller  <davem@davemloft.net>
358
359         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
360         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
361         of strtoull.
362
363         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
364         ifunc-impl-list.c
365         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
366         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
367         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
368         file.
369
370 2012-10-25  Roland McGrath  <roland@hack.frob.com>
371
372         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
373         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
374         __getdirentries.
375
376 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
377             Jim Blandy  <jimb@codesourcery.com>
378
379         * scripts/cross-test-ssh.sh: New file.
380         * manual/install.texi (Configuring and compiling): Document use of
381         cross-test-ssh.sh.
382         * INSTALL: Regenerated.
383
384 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
385
386         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
387         EOPNOTSUPP.
388
389 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
390
391         * Makeconfig (run-program-prefix): Fix comment.
392
393 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
394             Jim Blandy  <jimb@codesourcery.com>
395
396         * Makeconfig (test-wrapper): New variable,
397         (test-wrapper-env): Likewise.
398         [$(cross-compiling) = yes && $(test-wrapper) != ""]
399         (run-built-tests): Define to yes.
400         (run-program-prefix): Use $(test-wrapper).
401         (built-program-cmd): Likewise.
402         * Rules (make-test-out): Use $(test-wrapper-env) and
403         $(host-built-program-cmd).
404         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
405         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
406         tst-pathopt.sh.
407         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
408         $(test-wrapper-env) to tst-rtld-load-self.sh.
409         ($(objpfx)order2.out): Use $(test-wrapper).
410         ($(objpfx)tst-initorder.out): Likewise.
411         ($(objpfx)tst-initorder2.out): Likewise.
412         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
413         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
414         (test_wrapper_env): New variable.  Use it to run ld.so.
415         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
416         Use it to run ld.so.
417         (test_wrapper_env): Likewise.
418         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
419         $(test-wrapper) to run-iconv-test.sh.
420         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
421         (ICONV): Use $test_wrapper.
422         * posix/Makefile ($(objpfx)globtest.out): Pass
423         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
424         globtest.sh, not $(run-program-prefix).
425         * posix/globtest.sh (run_via_rtld_prefix): New variable.
426         (test_wrapper): Likewise.
427         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
428         set together with run_via_rtld_prefix.
429         (run_program_prefix): Define in terms of test_wrapper and
430         run_via_rtld_prefix.
431
432 2012-10-24  Roland McGrath  <roland@hack.frob.com>
433
434         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
435         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
436         Targets removed.
437
438         [BZ #14743]
439         * include/time.h: Remove librt_hidden_proto (clock_gettime).
440         Declare __clock_getres, __clock_gettime, __clock_settime,
441         __clock_nanosleep, and __clock_getcpuclockid.
442         * rt/clock_gettime.c: Define __clock_gettime as an alias.
443         Remove librt_hidden_def (clock_gettime).
444         * sysdeps/unix/clock_gettime.c: Likewise.
445         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
446         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
447         * rt/clock_getres.c: Define __clock_getres as an alias.
448         * sysdeps/posix/clock_getres.c: Likewise.
449         * rt/clock_settime.c: Define __clock_settime as an alias.
450         * sysdeps/unix/clock_settime.c: Likewise.
451         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
452         * sysdeps/unix/clock_nanosleep.c: Likewise.
453         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
454         * rt/clock-compat.c: New file.
455         * rt/Makefile (librt-routines): Add clock-compat and move
456         $(clock-routines) to ...
457         (routines): ... here, new variable.
458         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
459         Don't add get_clockfreq here.
460         * rt/Versions (libc: GLIBC_2.17): New version set.
461         Add clock_* symbols here.
462         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
463         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
464         (GLIBC_2.17): Add clock_* symbols.
465         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
466         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
467         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
469         Likewise.
470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
471         Likewise.
472         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
473         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
474         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
475         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
476         * NEWS: Mention the move.
477
478         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
479         Use __open, __read, __close rather than their public counterparts.
480         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
481         (__get_clockfreq_via_cpuinfo): Likewise.
482         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
483         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
484
485         * config.h.in (HAVE_IFUNC): New #undef.
486         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
487         was successful.
488         * configure: Regenerated.
489
490 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
491
492         * configure.in: Move READELF check to start of file.
493         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
494         libc_cv_asm_gnu_indirect_function in the process.
495         * configure: Regenerated.
496
497 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
498
499         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
500         send the output to /dev/null.
501         (libc_cv_cc_with_libunwind): Likewise.
502         (libc_cv_as_noexecstack): Likewise.
503         * configure: Regenerate.
504
505 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
506
507         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
508
509         * posix/globtest.sh (TMPDIR): Do not set.
510         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
511         (testout): Likewise.
512
513 2012-10-24  Andreas Jaeger  <aj@suse.de>
514
515         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
516         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
517         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
518         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
519         posix_fadvise64, posix_fallocate64.
520
521         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
522         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
523         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
524         Likewise.
525         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
526         Likewise.
527         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
528
529         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
530         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
531         <bits/fcntl-linux.h>.
532         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
533
534         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
535         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
536         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
537         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
538         [__WORDSIZE != 64]: Likewise.
539
540 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
541
542         * Makeconfig (run-built-tests): New variable.
543         * Rules [$(cross-compiling) = yes]: Change condition to
544         [$(run-built-tests) = no].
545         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
546         to [$(run-built-tests) = yes].
547         * elf/Makefile [$(cross-compiling) = no]: Likewise
548         * grp/Makefile [$(cross-compiling) = no]: Likewise.
549         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
550         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
551         * intl/Makefile [$(cross-compiling) = no]: Likewise.
552         * io/Makefile [$(cross-compiling) = no]: Likewise.
553         * libio/Makefile [$(cross-compiling) = no]: Likewise.
554         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
555         * misc/Makefile [$(cross-compiling) = no]: Likewise.
556         * posix/Makefile [$(cross-compiling) = no]: Likewise.
557         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
558         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
559         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
560         * string/Makefile [$(cross-compiling) = no]: Likewise.
561
562         * posix/Makefile ($(objpfx)globtest.out): Pass
563         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
564         $(rtld-installed-name).
565         * posix/globtest.sh (elf_objpfx): Remove variable.
566         (rtld_installed_name): Likewise.
567         (library_path): Likewise.
568         (run_program_prefix): New variable.  Use for running globtest
569         binary.
570
571 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
572             Joseph Myers  <joseph@codesourcery.com>
573
574         * Makeconfig (host-built-program-cmd): New variable.
575         * elf/Makefile (tst-stackguard1-ARGS): Use
576         $(host-built-program-cmd).
577         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
578         (tst-spawn-ARGS): Likewise.
579         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
580
581 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
582             Jim Blandy  <jimb@codesourcery.com>
583
584         * Makeconfig (run-via-rtld-prefix): New variable.
585         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
586         (built-program-cmd): Likewise.
587
588 2012-10-22  Andreas Jaeger  <aj@suse.de>
589
590         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
591         __O_RSYNC if it exists, otherwise to O_SYNC.
592
593 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
594             Joseph Myers  <joseph@codesourcery.com>
595
596         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
597         /dev/null.
598         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
599         from /dev/null
600         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
601         /dev/null.
602
603 2012-10-22  Andreas Jaeger  <aj@suse.de>
604
605         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
606         Define always.
607         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
608
609         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
610         bits/fcntl-linux.h.
611
612         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
613         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
614
615         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
616         to __O_LARGEFILE.
617         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
618         to __O_LARGEFILE.
619
620 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
621             Joseph Myers  <joseph@codesourcery.com>
622
623         * config.make.in (NM): New variable.
624
625 2012-10-21  Andreas Jaeger  <aj@suse.de>
626
627         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
628         definitions and declarations that are provided by
629         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
630
631 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
632
633         [BZ #14683]
634         * elf/Makefile (tests-static): Add tst-leaks1-static.
635         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
636         ($(objpfx)tst-leaks1-static): New rule.
637         ($(objpfx)tst-leaks1-static-mem): Likewise.
638         (tst-leaks1-static-ENV): New macro.
639         * elf/dl-open.c (dl_open_worker): Check the main application
640         only if SHARED is defined.
641         * elf/tst-leaks1-static.c: New file.
642
643 2012-10-20  Andreas Jaeger  <aj@suse.de>
644
645         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
646         generic values for Linux.
647         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
648         and declarations that are provided by <bits/fcntl-linux.h> and
649         include <bits/fcntl-linux.h>.
650         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
651         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
652
653 2012-10-20  Roland McGrath  <roland@hack.frob.com>
654
655         * io/fcntl.h: Move include of <bits/types.h> to the top and
656         include it unconditionally.
657
658 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
659
660         * wcsmbs/Makefile (tests-ifunc): New variable.
661         (tests): Add $(tests-ifunc).
662         * wcsmbs/test-wcschr-ifunc.c: New file.
663         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
664         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
665         * wcsmbs/test-wcslen-ifunc.c: Likewise.
666         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
667         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
668
669         * string/Makefile (tests-ifunc): New variable.
670         (tests): Add $(tests-ifunc).
671         * string/test-memccpy.c (TEST_NAME): New macro.
672         * string/test-memchr.c (TEST_NAME): Likewise.
673         * string/test-memcmp.c (TEST_NAME): Likewise.
674         * string/test-memcpy.c (TEST_NAME): Likewise.
675         * string/test-memmem.c (TEST_NAME): Likewise.
676         * string/test-memmove.c (TEST_NAME): Likewise.
677         * string/test-memset.c (TEST_NAME): Likewise.
678         * string/test-rawmemchr.c (TEST_NAME): Likewise.
679         * string/test-stpcpy.c (TEST_NAME): Likewise.
680         * string/test-stpncpy.c (TEST_NAME): Likewise.
681         * string/test-strcasecmp.c (TEST_NAME): Likewise.
682         * string/test-strcasestr.c (TEST_NAME): Likewise.
683         * string/test-strcat.c (TEST_NAME): Likewise.
684         * string/test-strchr.c (TEST_NAME): Likewise.
685         * string/test-strcmp.c(TEST_NAME): Likewise.
686         * string/test-strcpy.c (TEST_NAME): Likewise.
687         * string/test-strcspn.c (TEST_NAME): Likewise.
688         * string/test-strlen.c (TEST_NAME): Likewise.
689         * string/test-strncasecmp.c (TEST_NAME): Likewise.
690         * string/test-strncmp.c (TEST_NAME): Likewise.
691         * string/test-strncpy.c (TEST_NAME): Likewise.
692         * string/test-strnlen.c (TEST_NAME): Likewise.
693         * string/test-strpbrk.c (TEST_NAME): Likewise.
694         * string/test-strrchr.c (TEST_NAME): Likewise.
695         * string/test-strspn.c (TEST_NAME): Likewise.
696         * string/test-strstr.c (TEST_NAME): Likewise.
697         * string/test-bcopy-ifunc.c: New file.
698         * string/test-bzero-ifunc.c: Likewise.
699         * string/test-memccpy-ifunc.c: Likewise.
700         * string/test-memchr-ifunc.c: Likewise.
701         * string/test-memcmp-ifunc.c: Likewise.
702         * string/test-memcpy-ifunc.c: Likewise.
703         * string/test-memmem-ifunc.c: Likewise.
704         * string/test-memmove-ifunc.c: Likewise.
705         * string/test-mempcpy-ifunc.c: Likewise.
706         * string/test-memset-ifunc.c: Likewise.
707         * string/test-rawmemchr-ifunc.c: Likewise.
708         * string/test-stpcpy-ifunc.c: Likewise.
709         * string/test-stpncpy-ifunc.c: Likewise.
710         * string/test-strcasecmp-ifunc.c: Likewise.
711         * string/test-strcasestr-ifunc.c: Likewise.
712         * string/test-strcat-ifunc.c: Likewise.
713         * string/test-strchr-ifunc.c: Likewise.
714         * string/test-strchrnul-ifunc.c: Likewise.
715         * string/test-strcmp-ifunc.c: Likewise.
716         * string/test-strcpy-ifunc.c: Likewise.
717         * string/test-strcspn-ifunc.c: Likewise.
718         * string/test-strlen-ifunc.c: Likewise.
719         * string/test-strncasecmp-ifunc.c: Likewise.
720         * string/test-strncat-ifunc.c: Likewise.
721         * string/test-strncmp-ifunc.c: Likewise.
722         * string/test-strncpy-ifunc.c: Likewise.
723         * string/test-strnlen-ifunc.c: Likewise.
724         * string/test-strpbrk-ifunc.c: Likewise.
725         * string/test-strrchr-ifunc.c: Likewise.
726         * string/test-strspn-ifunc.c: Likewise.
727         * string/test-strstr-ifunc.c: Likewise.
728
729         * debug/Makefile (tests-ifunc): New variable.
730         (tests): Add $(tests-ifunc).
731         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
732         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
733         * debug/test-stpcpy_chk-ifunc.c: New file.
734         * debug/test-strcpy_chk-ifunc.c: Likewise.
735
736 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
737
738         [BZ #13601]
739         * elf/dl-load.c (open_verify): Retry read if the entire ELF
740         header is not read in.
741
742 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
743
744         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
745         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
746         directly.  Pass built executable to script as
747         $(built-program-cmd).
748         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
749         $testprogram without using LD_LIBRARY_PATH and $ldso.
750
751         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
752         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
753         $(rtld-installed-name).
754         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
755         (rtld_installed_name): Likewise.
756         (library_path): Likewise.
757         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
758         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
759         $(run-program-prefix) to tst-tables.sh.
760         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
761         it to run tst-table-from and tst-table-to.
762         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
763         Pass it to tst-table.sh.
764         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
765         $(run-program-prefix) to tst-gettext.sh.
766         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
767         tst-translit.sh.
768         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
769         tst-gettext2.sh.
770         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
771         to run tst-gettext.
772         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
773         to run tst-gettext2.
774         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
775         to run tst-translit.
776         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
777         $(run-program-prefix) to tst-mtrace.sh.
778         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
779         to run tst-mtrace.
780         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
781         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
782         $(rtld-installed-name).
783         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
784         (rtld_installed_name): Likewise.
785         (run_program_prefix): New variable.  Use it to run wordexp-test.
786
787         * Makeconfig (ARCH): Remove all definitions.
788         (machine): Likewise.
789         [ARCH]: Remove conditional code.
790         [!objdir]: Give error.
791         [!objdir] (objpfx): Remove.
792         [!objdir] (common-objpfx): Likewise.
793         [!objdir] (common-objdir): Likewise.
794         * configure.in (config_makefile): Remove.  Hardcode Makefile in
795         AC_CONFIG_FILES call.
796         * configure: Regenerated.
797
798         [BZ #13888]
799         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
800         or TMPDIR.
801         (testout): Likewise.
802
803         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
804         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
805         $(rtld-installed-name).
806         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
807         (rtld_installed_name): Likwise.
808         (runit): Remove function.
809         (run_getconf): New variable,  Use it for running getconf binary.
810
811 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
812
813         [BZ #14716]
814         * string/test-memmem.c (check_result): New function.
815         (do_one_test): Use it.
816         (check1): New function.
817         (test_main): Use it.
818
819 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
820
821         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
822
823 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
824
825         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
826         (_G_LSEEK64): Likewise.
827         (_G_MMAP64): Likewise.
828         (_G_FSTAT64): Likewise.
829         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
830         (_G_LSEEK64): Likewise.
831         (_G_MMAP64): Likewise.
832         (_G_FSTAT64): Likewise.
833         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
834         unconditional.  Call __mmap64 directly.
835         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
836         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
837         __lseek64 directly.
838         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
839         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
840         __mmap64 directly.
841         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
842         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
843         __lseek64 directly.
844         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
845         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
846         __lseek64 directly.
847         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
848         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
849         __lseek64 directly.
850         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
851         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
852         __fxstat64 directly.
853         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
854         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
855         unconditional.
856         (freopen64) [!_G_OPEN64]: Remove conditional code.
857         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
858         unconditional.
859         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
860         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
861         unconditional.
862         (ftello64) [!_G_LSEEK64]: Remove conditional code.
863         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
864         unconditional.
865         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
866         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
867         unconditional.
868         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
869         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
870         unconditional.
871         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
872         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
873         unconditional.
874         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
875         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
876         unconditional.
877         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
878
879 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
880
881         [BZ #12140]
882         * manual/memory.texi (Malloc Tunable Parameters): Add note
883         about free list pointers overwriting some perturb bytes.
884         Wording suggested by Roland McGrath.
885
886 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
887
888         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
889         (lgamma_test): Likewise.
890         (tgamma_test): Likewise.
891
892 2012-10-16  Florian Weimer  <fweimer@redhat.com>
893
894         [BZ #14700]
895         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
896         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
897
898 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
899
900         * NEWS: Mention BZ #14716.
901         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
902         when removing AVAILABLE1_USES_J macro.
903
904 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
905
906         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
907         (__bswap_64): __uint64_t for unsigned 64-bit int.
908
909 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
910
911         * include/string.h (memmem): Declare libc hidden alias.
912         * string/memmem.c (memmem): Define libc hidden alias.
913         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
914         __read, __close instead of open, read, close.
915
916 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
917
918         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
919         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
920         global and hidden.
921         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
922         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
923         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
924         Likewise.
925         (__rawmemchr_sse2): Likewise.
926         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
927         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
928         (__strchr_sse2): Likewise.
929         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
930         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
931         (__strcasecmp_sse2): Likewise.
932         (__strncasecmp_sse2): Likewise.
933         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
934         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
935         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
936         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
937         (__strrchr_sse2): Likewise.
938         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
939         ifunc-impl-list.c.
940         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
941         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
942         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
943         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
944         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
945         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
946         * sysdeps/x86_64/multiarch/memset.S: Likewise.
947         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
948         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
949         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
950         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
951         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
952         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
953         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
954         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
955         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
956         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
957         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
958         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
959         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
960         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
961         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
962         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
963         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
964         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
965         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
966         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
967         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
968         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
969         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
970
971         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
972         global and hidden.
973         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
974         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
975         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
976         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
977         Likewise.
978         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
979         Likewise.
980         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
981         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
982         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
983         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
984         ifunc-impl-list.c.
985         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
986         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
987         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
988         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
989         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
990         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
991         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
992         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
993         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
994         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
995         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
996         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
997         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
998         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
999         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
1000         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1001         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
1002         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
1003         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
1004         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
1005         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
1006         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
1007         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
1008         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1009         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1010         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
1011         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
1012         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
1013         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
1014         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
1015         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
1016         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
1017         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1018         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
1019         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
1020         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
1021         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
1022         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
1023         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
1024         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
1025         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
1026
1027         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
1028         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
1029         * include/ifunc-impl-list.h: New file.
1030         * misc/ifunc-impl-list.c: Likewise.
1031         * misc/Makefile (routines): Add ifunc-impl-list.
1032         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
1033         * string/test-string.h: Include <ifunc-impl-list.h>.
1034         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
1035         impl_array): New variables.
1036         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
1037         are defined.
1038         (test_init): Call __libc_ifunc_impl_list to initialize
1039         func_list if TEST_IFUNC and TEST_NAME are defined.
1040
1041         * string/Makefile (strop-tests): Add bcopy and bzero.
1042         * string/test-bcopy.c: New file.
1043         * string/test-bzero.c: Likewise.
1044         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
1045         defined.
1046         * string/test-memset.c: Support bzero test if TEST_BZERO is
1047         defined.
1048         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
1049         __libc_memmove.
1050         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
1051         __libc_memset.
1052         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
1053         of memset.
1054
1055 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
1056
1057         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
1058         * configure: Regenerated.
1059
1060         * Makeconfig (+link-static-before-libc): Don't include
1061         $(link-static-libc).
1062
1063         * libio/libio.h (_IO_pos_t): Remove.
1064
1065 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1066
1067         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
1068         McGrath.
1069
1070 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1071
1072         * crypt/crypt-entry.c: Include fips-private.h.
1073         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
1074         * crypt/md5c-test.c (main): Tolerate disabled MD5.
1075         * sysdeps/unix/sysv/linux/fips-private.h: New file.
1076         * sysdeps/generic/fips-private.h: New file, dummy fallback.
1077
1078 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1079
1080         * crypt/crypt-private.h: Include stdbool.h.
1081         (_ufc_setup_salt_r): Return bool.
1082         * crypt/crypt-entry.c: Include errno.h.
1083         (__crypt_r): Return NULL with EINVAL for bad salt.
1084         * crypt/crypt_util.c (bad_for_salt): New.
1085         (_ufc_setup_salt_r): Check that salt is long enough and within
1086         the specified alphabet.
1087         * crypt/badsalttest.c: New file.
1088         * crypt/Makefile (tests): Add it.
1089         ($(objpfx)badsalttest): New.
1090
1091 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1092
1093         * NEWS: Add entry for BZ #14602.
1094
1095 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1096
1097         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
1098         type-generic.
1099         * math/libm-test.inc: Update comment listing what functions and
1100         macros are tested.
1101         (isgreater_test): New function.
1102         (isgreaterequal_test): Likewise.
1103         (isless_test): Likewise.
1104         (islessequal_test): Likewise.
1105         (islessgreater_test): Likewise.
1106         (isunordered_test): Likewise.
1107         (main): Call the new functions.
1108
1109 2012-10-09  Roland McGrath  <roland@hack.frob.com>
1110
1111         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
1112         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
1113         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
1114         * sysdeps/i386/configure: Regenerated.
1115         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
1116         * sysdeps/mach/configure: Regenerated.
1117         * sysdeps/mach/hurd/configure: Regenerated.
1118         * sysdeps/powerpc/configure: Regenerated.
1119         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1120         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1121         * sysdeps/s390/s390-32/configure: Regenerated.
1122         * sysdeps/s390/s390-64/configure: Regenerated.
1123         * sysdeps/sh/configure: Regenerated.
1124         * sysdeps/sparc/configure: Regenerated.
1125         * sysdeps/unix/sysv/linux/configure: Regenerated.
1126         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
1127         * sysdeps/x86_64/configure: Regenerated.
1128
1129         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
1130         defined.  Don't check if MAP is NULL.
1131
1132 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1133
1134         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
1135         (_G_stat64): Likewise.
1136         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
1137         (_G_stat64): Likewise.
1138         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
1139         instead of struct _G_stat64.
1140         * libio/fileops.c (mmap_remap_check): Likewise.
1141         (decide_maybe_mmap): Likewise.
1142         (_IO_new_file_seekoff): Likewise.
1143         (_IO_file_stat): Likewise.
1144         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
1145         _G_off64_t.
1146         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
1147         instead of struct _G_stat64.
1148         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1149
1150 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
1151
1152         [BZ #14602]
1153         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1154         Replace with ...
1155         (CHECK_EOL): New macro.
1156         (two_way_short_needle): Check beginning of haystack for EOL.  Use
1157         CHECK_EOL.
1158         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1159         Replace with CHECK_EOL.
1160         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1161         Replace with CHECK_EOL.
1162
1163 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1164
1165         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1166         type-generic.
1167         * math/libm-test.inc: Update comment listing what functions and
1168         macros are tested.
1169         (finite_test): New function.
1170         (isinf_test): Likewise.
1171         (isnan_test): Likewise.
1172         (fpclassify_test): Test subnormal input.
1173         (isfinite_test): Likewise.
1174         (isnormal_test): Likewise.
1175         (main): Call the new functions.
1176
1177 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1178
1179         [BZ #14660]
1180         * Makerules (%.dynsym): Force C locale when running
1181         $(OBJDUMP) --dynamic-syms.
1182
1183 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1184
1185         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1186         <stdint.h>.
1187
1188 2012-10-06  David S. Miller  <davem@davemloft.net>
1189
1190         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1191         upper 32-bits of the length value in %o2 since we use branch-on-register
1192         tests which consider the entire 64-bit register.
1193
1194 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1195
1196         * string/test-strstr.c (check2): Add a test for page boundary.
1197
1198 2012-10-05  David S. Miller  <davem@davemloft.net>
1199
1200         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1201         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1202         file.
1203         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1204         sysdep_routines.
1205         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1206         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1207         and bzero when HWCAP_SPARC_CRYPTO is present.
1208
1209 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1210
1211         [BZ #14602]
1212         * string/test-strstr.c (check2): New function.
1213         (test_main): Call check2.
1214
1215         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1216         and bug-strchr1.
1217         * string/bug-strcasestr1.c (do_test): Moved to ...
1218         * string/test-strcasestr.c (check1): Here.  New function.
1219         (do_one_test): Break out result checking code into ...
1220         (check_result): This.  New function.
1221         (do_one_test): Call check_result.
1222         (test_main): Call check1.
1223         * string/bug-strchr1.c (do_test): Moved to ...
1224         * string/test-strchr.c (check1): Here.  New function.
1225         (do_one_test): Break out result checking code into ...
1226         (check_result): This.  New function.
1227         (do_one_test): Call check_result.
1228         (test_main): Call check1.
1229         * string/bug-strstr1.c (main): Moved to ...
1230         * string/test-strchr.c (check1): Here.  New function.
1231         (do_one_test): Break out result checking code into ...
1232         (check_result): This.  New function.
1233         (do_one_test): Call check_result.
1234         (test_main): Call check1.
1235         * string/bug-strcasestr1.c: Removed.
1236         * string/bug-strchr1.c: Likewise.
1237         * string/bug-strstr1.c: Likewise.
1238
1239         * elf/Makefile (dl-routines): Add hwcaps.
1240         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1241         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1242         (_dl_important_hwcaps): Moved to ...
1243         * elf/dl-hwcaps.c: Here.  New file.
1244         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1245
1246         [BZ #14557]
1247         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1248         if IS_IN_rtld isn't defined.
1249
1250         * elf/dl-support.c (_dl_sysinfo_map): New.
1251         Include "get-dynamic-info.h" and "setup-vdso.h".
1252         (_dl_non_dynamic_init): Call setup_vdso.
1253         * elf/dynamic-link.h: Don't include <assert.h>.
1254         (elf_get_dynamic_info): Moved to ...
1255         * elf/get-dynamic-info.h: Here.  New file.
1256         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1257         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1258         * elf/setup-vdso.h: Here.  New file.
1259         * elf/rtld.c: Include "setup-vdso.h".
1260         (dl_main): Call setup_vdso.
1261
1262 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1263
1264         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1265         creal in comment listing functions tested.  List finite, isinf,
1266         isnan, isless, islessequal, isgreater, isgreaterequal,
1267         islessgreater, isunordered, lgamma_r and pow10 as functions and
1268         macros not tested.  Mention which functions not tested are aliases
1269         for other functions.  Fix typo.  Note that signs of NaNs are not
1270         tested.
1271
1272         * scripts/config.guess: Update from config.git.
1273         * scripts/config.sub: Likewise.
1274
1275 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1276
1277         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1278         * misc/madvise.c (madvise): Renamed to __madvise.
1279         Make madvise a weak alias.
1280         * include/sys/mman.h: Declare __madvise.
1281         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1282         * sysdeps/unix/syscalls.list
1283         (madvise): Make __madvise the strong name, and madvise a weak alias.
1284         * sysdeps/unix/sysv/linux/syscalls.list
1285         (madvise, mmap): Remove redundant entries.
1286         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1287         * malloc/malloc.c (mtrim): Likewise.
1288         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1289
1290 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1291
1292         * sysdeps/mach/hurd/dl-cache.c: File removed.
1293         * config.h.in (USE_LDCONFIG): New #undef.
1294         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1295         * configure: Regenerated.
1296         * elf/Makefile (dl-routines): Add dl-cache only under
1297         [$(use-ldconfig) = yes].
1298         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1299         cache on [USE_LDCONFIG].
1300         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1301         [USE_LDCONFIG].
1302         * elf/rtld.c (dl_main): Likewise.
1303
1304 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1305
1306         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1307         _SC_LEVEL4_CACHE_LINESIZE.
1308
1309 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1310
1311         * sysdeps/unix/bsd/confstr.h: File removed.
1312
1313 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1314
1315         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1316         sys/sdt-config.h.
1317
1318 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1319
1320         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1321         Make 'mapoff' field ElfW(Off) rather than off_t.
1322
1323 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1324
1325         * nscd/Makefile: Remove nscd-cflags and all its users.
1326         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1327         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1328
1329         [BZ #10631]
1330         * malloc.c (malloc_printerr): Clarify error message.
1331
1332 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1333
1334         [BZ #14648]
1335         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1336         Set bit_FMA_Usable if FMA is supported.
1337         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1338         macro.
1339         (bit_FMA4_Usable): Updated.
1340         (index_FMA_Usable): New macro.
1341         (CPUID_FMA): Likewise
1342         (HAS_FMA): Defined with bit_FMA_Usable.
1343
1344 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1345
1346         * bits/types.h (__swblk_t): Type removed.
1347         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1348         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1349         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1350         (__SWBLK_T_TYPE): Likewise.
1351         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1352         (__SWBLK_T_TYPE): Likewise.
1353         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1354         (__SWBLK_T_TYPE): Likewise.
1355         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1356         (__SWBLK_T_TYPE): Likewise.
1357
1358 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1359             Honza Horak <hhorak@redhat.com>
1360
1361         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1362         (xdr_mapname): Use YPMAXMAP as maxsize.
1363         (xdr_peername): Use YPMAXPEER as maxsize.
1364         (xdr_keydat): Use YPAXRECORD as maxsize.
1365         (xdr_valdat): Use YPMAXRECORD as maxsize.
1366
1367 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1368
1369         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1370
1371         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1372         * csu/init-first.c: ... here.
1373         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1374         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1375         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1376         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1377         * sysdeps/i386/init-first.c: File removed.
1378         * sysdeps/sh/init-first.c: File removed.
1379
1380 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1381
1382         [BZ #14645]
1383         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1384         if x * y might underflow to zero and z is zero.
1385         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1386         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1387         * math/libm-test.inc (min_subnorm_value): New variable.
1388         (fma_test): Add more tests.
1389         (fma_test_towardzero): Likewise.
1390         (fma_test_downward): Likewise
1391         (fma_test_upward): Likewise.
1392         (initialize): Set min_subnorm_value.
1393
1394 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1395
1396         [BZ #14638]
1397         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1398         0 + 0.
1399         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1400         mode for addition resulting in exact zero.
1401         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1402         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1403         exact 0 + 0.
1404         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1405         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1406         * math/libm-test.inc (fma_test): Add more tests.
1407         (fma_test_towardzero): New function.
1408         (fma_test_downward): Likewise.
1409         (fma_test_upward): Likewise.
1410         (main): Call the new functions.
1411
1412 2012-09-28  David S. Miller  <davem@davemloft.net>
1413
1414         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1415
1416 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1417
1418         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1419         instead of SIGALRM.
1420
1421         * sysdeps/gnu/_G_config.h: Moved to ...
1422         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1423         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1424         * sysdeps/generic/_G_config.h: ... here.
1425
1426         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1427
1428         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1429
1430         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1431         Conditionalize target on [libnss_test1.so-version].
1432
1433         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1434
1435         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1436         (elfobjdir): Move out of conditionals.
1437
1438         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1439         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1440         (__nss_lookup_function): Conditionalize label remove_from_tree on
1441         [!DO_STATIC_NSS || SHARED], matching its only use.
1442
1443 2012-09-28  David S. Miller  <davem@davemloft.net>
1444
1445         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1446         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1447         file.
1448         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1449         sysdep_routines.
1450         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1451         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1452         when HWCAP_SPARC_CRYPTO is present.
1453
1454 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1455
1456         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1457
1458 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1459
1460         [BZ #6530]
1461         * stdio-common/vfprintf.c (process_string_arg): Revert
1462         2000-07-22 change.
1463
1464 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1465
1466         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1467         for testcase.
1468         * stdio-common/tst-sprintf.c: Include <locale.h>
1469         (main): Test sprintf's handling of incomplete multibyte
1470         characters.
1471
1472 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1473
1474         * elf/dl-runtime.c (VERSYMIDX): Removed.
1475         * elf/dl-version.c (VERSYMIDX): Likewise.
1476         * elf/do-rel.h (VERSYMIDX): Likewise.
1477         (VALIDX): Likewise.
1478         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1479         * elf/rtld.c (VALIDX): Likewise.
1480         (ADDRIDX): Likewise.
1481         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1482         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1483         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1484         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1485         (VALIDX): Likewise.
1486         (ADDRIDX): Likewise.
1487
1488 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1489
1490         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1491
1492 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1493
1494         [BZ #11438]
1495         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1496         to global scope.
1497         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1498         addresses are in the same scope as 192.0.2/24.
1499         * posix/gai.conf: Document new scope table defaults.
1500
1501 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1502
1503         [BZ #5298]
1504         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1505         for ftell.  Compute offsets from write pointers instead.
1506         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1507
1508 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1509
1510         [BZ #14543]
1511         * libio/Makefile (tests): New test case tst-fseek.
1512         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1513         combination works in wide mode.
1514         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1515         state when the external buffer state changes.
1516
1517 2012-09-27  David S. Miller  <davem@davemloft.net>
1518
1519         [BZ #14376]
1520         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1521         pass reloc->r_addend in as the 'high' argument to
1522         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1523
1524         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1525
1526 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1527
1528         * rt/tst-aio2.c: Include <pthread.h>.
1529         * rt/tst-aio3.c: Likewise.
1530
1531 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1532
1533         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1534
1535 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1536
1537         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1538         contents on [SHARED].
1539
1540 2012-09-26  Marek Polacek  <polacek@redhat.com>
1541
1542         [BZ #14530]
1543         [BZ #13741]
1544         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1545         for C++ and GCC <4.3 as well as for non GCC compilers.
1546
1547 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1548
1549         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1550
1551 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1552
1553         * Makefile.in (all, install): Declare with .PHONY.
1554         Reported by Michael Hope <michael.hope@linaro.org>.
1555
1556 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1557
1558         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1559         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1560         system header.
1561         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1562         Likewise.
1563         (sydep_routines): Add the new and the internal functions.
1564         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1565         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1567         (GLIBC_2.17): Add the new function.
1568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1569         (GLIBC_2.17): Likewise.
1570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1571         (GLIBC_2.17): Likewise.
1572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1573         (GLIBC_2.17): Likewise.
1574         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1575
1576 2012-09-25  Alan Modra  <amodra@gmail.com>
1577
1578         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1579         Add release barrier before setting once_control to say
1580         initialisation is done.  Add hints on lwarx.  Use macro in
1581         place of isync.
1582         (clear_once_control): Add release barrier.
1583
1584 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1585
1586         [BZ #13629]
1587         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1588         specially.
1589         * math/s_clog10.c (__clog10): Likewise.
1590         * math/s_clog10f.c (__clog10f): Likewise.
1591         * math/s_clog10l.c (__clog10l): Likewise.
1592         * math/s_clogf.c (__clogf): Likewise.
1593         * math/s_clogl.c (__clogl): Likewise.
1594         * math/Makefile (libm-calls): Add x2y2m1.
1595         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1596         (__x2y2m1): Likewise.
1597         (__x2y2m1l): Likewise.
1598         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1599         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1600         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1601         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1602         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1603         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1604         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1605         * sysdeps/i386/fpu/libm-test-ulps: Update.
1606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1607
1608         [BZ #14621]
1609         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1610         int as type of variable DEPTH.
1611         (glob): Use size_t instead of int as type of variables NEWCOUNT
1612         and OLD_PATHC.
1613
1614 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1615
1616         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1617         Add s_sincosf-sse2.
1618         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1619         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1620         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1621         macros for using routine as __sincosf_ia32.
1622         Use macro for function declaration and weak_alias.
1623         * sysdeps/i386/fpu/libm-test-ulps: Update.
1624
1625         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1626         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1627
1628         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1629         subnormal argument.
1630         * math/s_cexpf.c (__cexpf): Likewise.
1631         * math/s_csinf.c (__csinf): Likewise.
1632         * math/s_csinhf.c (__csinhf): Likewise.
1633         * math/s_ctanf.c (__ctanf): Likewise.
1634         * math/s_ctanhf.c (__ctanhf): Likewise.
1635         * math/s_ccosh.c (__ccoshf): Likewise.
1636         * math/s_cexp.c (__cexpl): Likewise.
1637         * math/s_csin.c (__csin): Likewise.
1638         * math/s_csinh.c (__csinh): Likewise.
1639         * math/s_ctan.c (__ctan): Likewise.
1640         * math/s_ctanh.c (ctanh): Likewise.
1641         * math/s_ccoshl.c (__ccoshl): Likewise.
1642         * math/s_cexpl.c (__cexpl): Likewise.
1643         * math/s_csinl.c (__csinl): Likewise.
1644         * math/s_csinhl.c (__csinhl): Likewise.
1645         * math/s_ctanl.c (__ctanl): Likewise.
1646         * math/s_ctanhl.c (__ctanhl): Likewise.
1647
1648 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1649
1650         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1651         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1652         (_IO_off_t): Define to __off_t, not _G_off_t.
1653         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1654         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1655         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1656         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1657         type of __dummy and __dummy2 fields.
1658         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1659         (_G_ssize_t): Likewise.
1660         (_G_off_t): Likewise.
1661         (_G_pid_t): Likewise.
1662         (_G_uid_t): Likewise.
1663         (_G_wchar_t): Likewise.
1664         (_G_wint_t): Likewise.
1665         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1666         (_G_ssize_t): Likewise.
1667         (_G_off_t): Likewise.
1668         (_G_pid_t): Likewise.
1669         (_G_uid_t): Likewise.
1670         (_G_wchar_t): Likewise.
1671         (_G_wint_t): Likewise.
1672         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1673         (_G_ssize_t): Likewise.
1674         (_G_off_t): Likewise.
1675         (_G_pid_t): Likewise.
1676         (_G_uid_t): Likewise.
1677         (_G_wchar_t): Likewise.
1678         (_G_wint_t): Likewise.
1679
1680 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1681
1682         * malloc/arena.c: Include malloc-sysdep.h.
1683         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1684         is sufficient to shrink the heap or an unmap is needed.
1685         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1686         new function check_may_shrink_heap.
1687         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1688         new function check_may_shrink_heap.
1689
1690 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1691
1692         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1693         comments.
1694
1695 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1696
1697         * catgets/test-gencat.sh: Add "set -e".
1698         * elf/tst-pathopt.sh: Likewise.
1699         * grp/tst_fgetgrent.sh: Likewise.
1700         * iconvdata/run-iconv-test.sh: Likewise.
1701         * intl/tst-gettext.sh: Likewise.
1702         * intl/tst-gettext2.sh: Likewise.
1703         * intl/tst-gettext4.sh: Likewise.
1704         * intl/tst-gettext6.sh: Likewise.
1705         * intl/tst-translit.sh: Likewise.
1706         * io/ftwtest-sh: Likewise.
1707         * libio/test-freopen.sh: Likewise.
1708         * malloc/tst-mtrace.sh: Likewise.
1709         * posix/globtest.sh: Likewise.
1710         * posix/tst-getconf.sh: Likewise.
1711         * posix/wordexp-tst.sh: Likewise.
1712         * stdio-common/tst-printf.sh: Likewise.
1713         * stdio-common/tst-unbputc.sh: Likewise.
1714         * stdlib/tst-fmtmsg.sh: Likewise.
1715         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1716         * catgets/Makefile: Do not specify -e option when running
1717         testsuite shell scripts.
1718         * elf/Makefile: Likewise.
1719         * grp/Makefile: Likewise.
1720         * iconvdata/Makefile: Likewise.
1721         * intl/Makefile: Likewise.
1722         * io/Makefile: Likewise.
1723         * libio/Makefile: Likewise.
1724         * malloc/Makefile: Likewise.
1725         * posix/Makefile: Likewise.
1726         * stdio-common/Makefile: Likewise.
1727         * stdlib/Makefile: Likewise.
1728         * sysdeps/x86_64/Makefile: Likewise.
1729
1730         * io/ftwtest-sh: Add copyright header.
1731         * posix/globtest.sh: Likewise.
1732         * posix/tst-getconf.sh: Likewise.
1733         * posix/wordexp-tst.sh: Likewise.
1734         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1735
1736 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1737
1738         [BZ #13679]
1739         * Makeconfig (+link): Defined as $(+link-static) if
1740         $(build-shared) isn't yes.
1741         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1742         isn't yes.
1743         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1744
1745         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1746
1747         [BZ #14562]
1748         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1749         new chunk size with MALLOC_ALIGN_MASK.
1750
1751 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1752
1753         [BZ #5044]
1754         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1755         <rounding-mode.h>.
1756         (__printf_fphex): Determine rounding using get_rounding_mode and
1757         round_away.
1758         * stdio-common/tst-printf-round.c (struct hex_test): New
1759         structure.
1760         (hex_tests): New variable.
1761         (test_hex_in_one_mode): New function.
1762         (do_test): Also run tests for hex float output.
1763
1764 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1765
1766         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1767         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1768         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1769         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1770         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1771         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1772         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1773         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1774
1775 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1776
1777         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1778         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1779         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1780         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1781
1782 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1783
1784         [BZ #14579]
1785         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1786         mode only.
1787         * elf/tst-rtld-load-self.sh: New test.
1788         * elf/Makefile: Run it.
1789
1790 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1791
1792         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1793         (tst-writev-ENV): Remove.
1794         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1795
1796 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1797
1798         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1799
1800 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1801
1802         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1803         unconditional.
1804         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1805         Likewise.
1806         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1807         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1808         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1809         Likewise.
1810
1811 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1812
1813         [BZ #14587]
1814         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1815         * config.make.in (have-cpp-asm-debuginfo): Removed.
1816         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1817         * configure: Regenerated.
1818
1819 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1820
1821         [BZ #5044]
1822         * stdio-common/printf_fp.c: Include <stdbool.h> and
1823         <rounding-mode.h>.
1824         (___printf_fp): Determine rounding using get_rounding_mode and
1825         round_away.
1826         * stdio-common/tst-printf-round.c: New file.
1827         * stdio-common/Makefile (tests): Add tst-printf-round.
1828         (link-libm): New variable.
1829         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1830
1831 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1832
1833         [BZ #14576]
1834         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1835         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1836         Likewise.
1837         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1838         Likewise.
1839
1840 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1841
1842         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1843         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1844         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1845         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1846
1847 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1848
1849         [BZ #14518]
1850         * include/rounding-mode.h: New file.
1851         * sysdeps/generic/get-rounding-mode.h: Likewise.
1852         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1853         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1854         (MAX_VALUE): New macro.
1855         (MIN_VALUE): Likewise.
1856         (overflow_value): New function.
1857         (underflow_value): Likewise.
1858         (round_and_return): Use overflow_value and underflow_value to
1859         determine return values in overflow and underflow cases.  Use
1860         round_away to determine rounding depending on rounding mode.
1861         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1862         determine return values in overflow and underflow cases.
1863         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1864         (struct test_results): New structure.
1865         (struct test): Use struct test_results to store expected results
1866         for all rounding modes.
1867         (TEST): Include expected results for all rounding modes.
1868         (test_in_one_mode): New function.
1869         (do_test): Use test_in_one_mode to compute and check results.
1870         Check results for all rounding modes.
1871         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1872         $(link-libm).
1873
1874 2012-12-09  Allan McRae  <allan@archlinux.org>
1875
1876         * sysdeps/i386/fpu/libm-test-ulps: Update
1877
1878 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1879
1880         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1881         (_G_int32_t): Likewise.
1882         (_G_uint16_t): Likewise.
1883         (_G_uint32_t): Likewise.
1884         (_G_HAVE_BOOL): Likewise.
1885         (_G_HAVE_ATEXIT): Likewise.
1886         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1887         (_G_HAVE_IO_FILE_OPEN): Likewise.
1888         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1889         (_G_int32_t): Likewise.
1890         (_G_uint16_t): Likewise.
1891         (_G_uint32_t): Likewise.
1892         (_G_HAVE_BOOL): Likewise.
1893         (_G_HAVE_ATEXIT): Likewise.
1894         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1895         (_G_HAVE_IO_FILE_OPEN): Likewise.
1896         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1897         (_G_int32_t): Likewise.
1898         (_G_uint16_t): Likewise.
1899         (_G_uint32_t): Likewise.
1900         (_G_HAVE_BOOL): Likewise.
1901         (_G_HAVE_ATEXIT): Likewise.
1902         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1903         (_G_HAVE_IO_FILE_OPEN): Likewise.
1904
1905 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1906
1907         * csu/libc-tls.c: Update copyright years.
1908
1909 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1910
1911         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1912         [!_G_USING_THUNKS]: Remove conditional code.
1913         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1914         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1915
1916         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1917         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1918         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1919         (_G_VTABLE_LABEL_PREFIX): Likewise.
1920         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1921         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1922         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1923         (_G_VTABLE_LABEL_PREFIX): Likewise.
1924         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1925         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1926         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1927         (_G_VTABLE_LABEL_PREFIX): Likewise.
1928         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1929
1930 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1931
1932         * libio/Makefile: Include ../Makeconfig before tests.
1933         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1934         only if $(build-shared) is yes.
1935
1936         * iconv/gconv_db.c: Update copyright years.
1937
1938 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1939
1940         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1941         unwind info if defined PIC. Fix special cases description.
1942         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1943
1944         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1945         DP_HI_MASK entry.
1946         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1947
1948 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1949
1950         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1951
1952         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1953         is NULL.
1954
1955         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1956         (LDLIBS-tst-chk4): This.
1957         (LDFLAGS-tst-chk5): Renamed to ...
1958         (LDLIBS-tst-chk5): This.
1959         (LDFLAGS-tst-chk6): Renamed to ...
1960         (LDLIBS-tst-chk6): This.
1961         (LDFLAGS-tst-lfschk4): Renamed to ...
1962         (LDLIBS-tst-lfschk4): This.
1963         (LDFLAGS-tst-lfschk5): Renamed to ...
1964         (LDLIBS-tst-lfschk5): This.
1965         (LDFLAGS-tst-lfschk6): Renamed to ...
1966         (LDLIBS-tst-lfschk6): This.
1967
1968         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1969         on $(common-objpfx)soversions.mk.
1970
1971 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1972
1973         [BZ #10014]
1974         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1975         example host name.
1976
1977 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1978
1979         * malloc/arena.c (arena_get_retry): New function that gets
1980         another arena for the caller to try its request on.
1981         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1982         current arena cannot fulfill the request.
1983         (__libc_memalign): Likewise.
1984         (__libc_memalign): Likewise.
1985         (__libc_pvalloc): Likewise.
1986         (__libc_calloc): Likewise.
1987
1988 2012-09-05  John Tobey  <john.tobey@gmail.com>
1989
1990         [BZ #13542]
1991         * manual/arith.texi (Operations on Complex): Fix description
1992         of carg branch cut.
1993
1994 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1995
1996         [BZ #10014]
1997         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1998         host name.
1999
2000         [BZ #10038]
2001         * manual/memory.texi (Memory): Make order of menu items match
2002         order of sections.
2003
2004 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2005
2006         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
2007         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
2008         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
2009
2010 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2011
2012         * csu/libc-tls.c (static_dtv): Renamed to ...
2013         (_dl_static_dtv): This.  Make it global.
2014         (_dl_initial_dtv): Removed.
2015         (__libc_setup_tls): Updated.
2016         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
2017         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
2018         DL_INITIAL_DTV.
2019
2020 2012-09-06  Petr Machata  <pmachata@redhat.com>
2021
2022         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
2023         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
2024         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
2025         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
2026
2027 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2028
2029         [BZ #14545]
2030         * csu/libc-tls.c (_dl_initial_dtv): New variable.
2031         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
2032         freeing dtv[-1].
2033
2034 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2035
2036         [BZ #14544]
2037         * Makeconfig (link-static-before-libc): Replace $(+prector)
2038         with $(+prectorT).
2039         (link-static-after-libc): Replace $(+postctor) with
2040         $(+postctorT).
2041         (link-bounded): Replace $(+prector)/$(+postctor) with
2042         $(+prectorT)/$(+postctorT).
2043         (+prectorT): New macro.
2044         (+postctorT): Likewise.
2045
2046 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2047
2048         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
2049         (round_str): Handle values above the maximum for IBM long double
2050         as inexact.
2051         * stdlib/tst-strtod-round.c (tests): Regenerated.
2052
2053 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2054
2055         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
2056         assembler flag.
2057         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
2058         zarch_nohighgprs around the zarch optimized routines.
2059         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
2060         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
2061         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
2062         for zarch.
2063
2064 2012-09-05  David S. Miller  <davem@davemloft.net>
2065
2066         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2067
2068         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
2069         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
2070         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
2071         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
2072         entries.
2073
2074 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2075
2076         * malloc/arena.c: Fold copyright years.
2077         * malloc/mcheck.c, malloc/memusage.c: Likewise.
2078
2079 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2080
2081         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
2082
2083 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2084
2085         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
2086
2087 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2088
2089         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
2090         change internal state upon failure.
2091
2092 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2093
2094         * malloc/mcheck.c (mcheck_check_all): Fix typo.
2095         * malloc/memusage.c (mmap): Likewise.
2096         (mmap64, mremap): Likewise.  Adjust name in comment.
2097
2098 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2099
2100         * libio/fileops.c: Fix typos in comments.
2101         * libio/oldfileops.c: Likewise.
2102         * libio/wfileops.c: Likewise.
2103
2104 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2105
2106         [BZ #1349]
2107         * malloc/Makefile (tests): Add tst-malloc-usable test case.
2108         (tst-malloc-usable-ENV): Set environment for test case.
2109         * malloc/hooks.c (malloc_check_get_size): New function to get
2110         requested size.
2111         * malloc/malloc.c (musable): Use malloc_check_get_size.
2112         * malloc/tst-malloc-usable.c: New test case.
2113
2114 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2115
2116         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
2117
2118 2012-09-05  Allan McRae  <allan@archlinux.org>
2119
2120         [BZ #13966]
2121         * configure.in (CXX_SYSINCLUDES): Use compiler output to
2122         determine header location.
2123         * configure: Regenerated.
2124
2125 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2126
2127         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
2128         float format.
2129         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
2130         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
2131         format.
2132         (test): Regenerate.
2133
2134 2012-09-04  David S. Miller  <davem@davemloft.net>
2135
2136         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
2137         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
2138         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
2139
2140 2012-09-04  Florian Weimer  <fweimer@redhat.com>
2141
2142         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
2143         failures.
2144
2145         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
2146
2147 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
2148
2149         [BZ #9914]
2150         * libio/iogetdelim.c: Include <limits.h>.
2151         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
2152         + len + 1 would overflow.
2153
2154 2012-09-03  Andreas Jaeger  <aj@suse.de>
2155
2156         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2157         * sysdeps/i386/fpu/libm-test-ulps: Update.
2158
2159 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2160
2161         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2162         Add s_sinf-sse2, s_conf-sse2.
2163
2164         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2165         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2166         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2167         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2168
2169         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2170         for using routine as __sinf_ia32.
2171         Use macro for function declaration and weak_alias.
2172         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2173         for using routine as __cosf_ia32.
2174         Use macro for function declaration and weak_alias.
2175
2176         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2177         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2178
2179         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2180         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2181         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2182
2183         * math/libm-test.inc (cos_test): Add more test cases.
2184         (sin_test): Likewise.
2185         (sincos_test): Likewise.
2186
2187 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2188
2189         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2190         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2191         hidden.
2192         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2193
2194 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2195
2196         [BZ #14538]
2197         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2198         first element of the GOT.
2199         (elf_machine_load_address): Return the difference between
2200         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2201
2202 2012-09-01  Allan McRae  <allan@archlinux.org>
2203
2204         [BZ #13412]
2205         * configure.in (AWK): Require gawk version 3.0 or later.
2206         * configure: Regenerated.
2207
2208 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2209
2210         * sysdeps/unix/sysv/linux/kernel-features.h
2211         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2212         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2213         [__NR_clock_getres]: Make code unconditional.
2214         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2215         (clock_getcpuclockid): Remove code left unreachable by removal of
2216         conditionals.
2217         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2218         code unconditional.
2219         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2220         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2221         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2222         Make code unconditional.
2223         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2224         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2225         * sysdeps/unix/sysv/linux/clock_settime.c
2226         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2227         conditional code.
2228         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2229         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2230
2231 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2232
2233         [BZ #14476]
2234         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2235         scripts/test-installation.pl.
2236
2237         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2238         and $ld_so_version if it is set.
2239
2240 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2241
2242         [BZ #14516]
2243         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2244         failure if reading from procfs failed.
2245         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2246
2247 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2248
2249         * sysdeps/unix/sysv/linux/kernel-features.h
2250         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2251         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2252         Remove conditional code.
2253         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2254         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2255         Remove conditional code.
2256         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2257         * sysdeps/unix/sysv/linux/i386/fxstat.c
2258         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2259         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2260         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2261         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2262         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2263         * sysdeps/unix/sysv/linux/i386/lxstat.c
2264         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2265         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2266         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2267         Remove conditional code.
2268         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2269         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2270         Remove conditional code.
2271         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2272         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2273         <kernel-features.h>.
2274         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2275         Remove.
2276         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2277         Remove conditional code.
2278         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2279         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2280         Remove conditional.
2281
2282 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2283
2284         [BZ #5400]
2285         * NEWS: Add fixed bug number.
2286
2287 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2288
2289         [BZ #14519]
2290         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2291         underflowing exponent in case of negative sign.
2292         * stdlib/tst-strtod-round-data: Add more tests.
2293         * stdlib/tst-strtod-round.c (tests): Regenerated.
2294
2295         [BZ #3479]
2296         * stdlib/strtod_l.c (NDIG): Remove.
2297         (HEXNDIG): Likewise.
2298         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2299         smallest representable value.
2300         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2301         lie within an exact representation of 1/2 ulp of the result.
2302         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2303         unconditionally.
2304         (TENS_P9_IDX): Define unconditionally.
2305         (TENS_P9_SIZE): Likewise.
2306         (TENS_P10_IDX): Likewise.
2307         (TENS_P10_SIZE): Likewise.
2308         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2309         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2310         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2311         entries for 10^2^13 and 10^2^14.
2312         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2313         (TENS_P13_IDX): Define.
2314         (TENS_P13_SIZE): Likewise.
2315         (TENS_P14_IDX): Likewise.
2316         (TENS_P14_SIZE): Likewise.
2317         (_fpioconst_pow10): Change array size to
2318         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2319         unconditional.
2320         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2321         1024]: Add entries for 10^2^13 and 10^2^14.
2322         [LAST_POW10 > _LAST_POW10]: Remove #error.
2323         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2324         (_fpioconst_pow10): Change array size to
2325         FPIOCONST_POW10_ARRAY_SIZE.
2326         * stdlib/gen-fpioconst.c: New file.
2327         * stdlib/gen-tst-strtod-round.c: Likewise.
2328         * stdlib/tst-strtod-round-data: Likewise.
2329         * stdlib/tst-strtod-round.c: Likewise.
2330         * stdlib/Makefile (tests): Add tst-strtod-round.
2331
2332         [BZ #14459]
2333         * stdlib/strtod_l.c: Include <stdint.h>.
2334         (NDEBUG): Do not define.
2335         (round_and_return): Change EXPONENT parameter to type intmax_t.
2336         Rearrange calculations to avoid internal overflow possibilities.
2337         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2338         Rearrange calculations to avoid internal overflow possibilities.
2339         Assert that number fits inside MPNSIZE limbs.
2340         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2341         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2342         calculations and add assertions to avoid internal overflow
2343         possibilities.  Add casts to avoid signed/unsigned operations.
2344         * stdlib/tst-strtod-overflow.c: New file.
2345         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2346
2347 2012-08-25  Marek Polacek  <polacek@redhat.com>
2348
2349         * time/time.h: Fix some typos in comments.
2350
2351 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2352
2353         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2354         * posix/tst-rfc3484-2.c: Likewise.
2355         * posix/tst-rfc3484-3.c: Likewise.
2356
2357 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2358
2359         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2360         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2361
2362 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2363
2364         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2365         #include of fxstatat64.c.
2366
2367 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2368
2369         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2370         * shadow/getspent_r.c: Likewise.
2371         * shadow/getspnam.c: Likewise.
2372         * shadow/getspnam_r.c: Likewise.
2373         * gshadow/getsgent.c: Likewise.
2374         * gshadow/getsgent_r.c: Likewise.
2375         * gshadow/getsgnam.c: Likewise.
2376         * gshadow/getsgnam_r.c: Likewise.
2377         * inet/getnetbyad.c: Likewise.
2378         * inet/getnetbyad_r.c: Likewise.
2379         * inet/getnetbynm.c: Likewise.
2380         * inet/getnetbynm_r.c: Likewise.
2381         * inet/getnetent.c: Likewise.
2382         * inet/getnetent_r.c: Likewise.
2383         * inet/getproto.c: Likewise.
2384         * inet/getproto_r.c: Likewise.
2385         * inet/getprtent.c: Likewise.
2386         * inet/getprtent_r.c: Likewise.
2387         * inet/getprtname.c: Likewise.
2388         * inet/getprtname_r.c: Likewise.
2389         * inet/getrpcbyname.c: Likewise.
2390         * inet/getrpcbyname_r.c: Likewise.
2391         * inet/getrpcbynumber.c: Likewise.
2392         * inet/getrpcbynumber_r.c: Likewise.
2393         * inet/getrpcent.c: Likewise.
2394         * inet/getrpcent_r.c: Likewise.
2395         * inet/getaliasent.c: Likewise.
2396         * inet/getaliasent_r.c: Likewise.
2397         * inet/getaliasname.c: Likewise.
2398         * inet/getaliasname_r.c: Likewise.
2399         * nscd/getgrgid_r.c: Likewise.
2400         * nscd/getgrnam_r.c: Likewise.
2401         * nscd/gethstbyad_r.c: Likewise.
2402         * nscd/gethstbynm3_r.c: Likewise.
2403         * nscd/getpwnam_r.c: Likewise.
2404         * nscd/getpwuid_r.c: Likewise.
2405         * nscd/getsrvbynm_r.c: Likewise.
2406         * nscd/getsrvbypt_r.c: Likewise.
2407         * nscd/gai.c: Likewise.
2408
2409         * configure.in (build_nscd): New substituted variable, set
2410         by --disable-build-nscd and defaults to $use_nscd.
2411         * configure: Regenerated.
2412         * config.make.in (build-nscd): New substituted variable.
2413         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2414         Change conditional to require [$(build-nscd) = yes] as well.
2415         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2416
2417         [BZ# 13696]
2418         * configure.in (use_nscd): New substituted variable, set by
2419         --disable-nscd.  If enabled, define USE_NSCD.
2420         * configure: Regenerated.
2421         * config.h.in: Add USE_NSCD.
2422         * config.make.in (use-nscd): New substituted variable.
2423         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2424         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2425         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2426         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2427         (CFLAGS-getgrnam_r.c): Likewise.
2428         (CFLAGS-initgroups.c): Likewise.
2429         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2430         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2431         Variables removed.
2432         * inet/getnetgrent_r.c
2433         (nscd_setnetgrent): New function, broken out of ...
2434         (setnetgrent): ... here.  Call it.
2435         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2436         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2437         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2438         * nscd/Makefile (routines, aux): Move definitions after include of
2439         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2440         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2441         Conditionalize on [USE_NSCD].
2442         (is_nscd, nscd_init_cb): Likewise.
2443         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2444         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2445         * nss/nss_db/db-init.c: Likewise.
2446         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2447         [USE_NSCD].
2448         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2449         (make_request): Use it.
2450         (cache_valid_p): New function.
2451         (__check_pf): Use it.
2452         * NEWS: Add item for --disable-nscd.
2453
2454 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2455
2456         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2457         to support sed >= 4.2.1-20-ga9bf076.
2458         * configure: Regenerated.
2459
2460 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2461
2462         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2463         Conditionalize whole body on [IREL].
2464
2465 2012-08-22  Jeff Law <law@redhat.com>
2466
2467         [BZ #14505]
2468         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2469         if the family is PF_UNSPEC.
2470
2471 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2472
2473         * Makerules (lib-version): Rename from V.
2474         (install-lib-nosubdir): Change V to lib-version.
2475
2476 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2477
2478         [BZ #14252]
2479         * powerpc32/power6/wcschr.c: New file.
2480         * powerpc32/power6/wcscpy.c: New file.
2481         * powerpc32/power6/wcsrchr.c: New file.
2482         * powerpc64/power6/wcschr.c: New file.
2483         * powerpc64/power6/wcscpy.c: New file.
2484         * powerpc64/power6/wcsrchr.c: New file.
2485
2486 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2487
2488         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2489         (two_way_short_needle): Use it.
2490         * string/strstr.c (AVAILABLE1_USES_J): Define.
2491         * string/strcasestr.c: Likewise.
2492
2493         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2494         array references.
2495         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2496
2497         [BZ #11607]
2498         * NEWS: Add an entry.
2499         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2500         define their defaults.
2501         (two_way_short_needle): Detect end-of-string on-the-fly.
2502         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2503         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2504         * string/bug-strcasestr1.c: New test.
2505         * string/Makefile: Run it.
2506
2507 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2508
2509         [BZ #11607]
2510         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2511         the first character.
2512
2513 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2514
2515         * csu/elf-init.c (__libc_csu_irel): Function removed.
2516         * csu/libc-start.c (apply_irel): New function.
2517         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2518
2519 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2520
2521         * sysdeps/unix/sysv/linux/kernel-features.h
2522         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2523         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2524         <kernel-features.h>.
2525         [__NR_fadvise64_64]: Make code unconditional.
2526         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2527         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2528         !__NR_fadvise64_64)]: Likewise.
2529         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2530         !__NR_fadvise64_64))]: Likewise.
2531         [__NR_fadvise64]: Make code unconditional.
2532         [!__NR_fadvise64]: Remove conditional code.
2533         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2534         <kernel-features.h>.
2535         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2536         unconditional.
2537         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2538         conditional code.
2539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2540         not include <kernel-features.h>.
2541         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2542         unconditional.
2543         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2544         conditional code.
2545         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2546         include <kernel-features.h>.
2547         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2548         unconditional.
2549         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2550         conditional code.
2551
2552 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2553
2554         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2555         slight instruction rearrangements per scrollpipe analysis.
2556         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2557
2558 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2559
2560         * manual/syslog.texi (syslog; vsyslog, closelog):
2561         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2562         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2563
2564         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2565         DSOCAPS to match condition on defining it.
2566
2567 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2568
2569         * sysdeps/unix/sysv/linux/kernel-features.h
2570         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2572         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2573         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2575         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2576         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2578         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2579         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2580
2581         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2582         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2583
2584         * sysdeps/unix/sysv/linux/kernel-features.h
2585         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2586         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2587         unconditional.
2588         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2589         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2590         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2591         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2592         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2593         Make code unconditional.
2594         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2595         (__mmap64) [!__NR_mmap2]: Likewise.
2596         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2597         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2598         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2599         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2600         [__NR_mmap2]: Make code unconditional.
2601         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2602         (__mmap64) [!__NR_mmap2]: Likewise.
2603
2604 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2605
2606         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2607
2608 2012-08-18  Andreas Jaeger  <aj@suse.de>
2609
2610         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2611
2612 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2613
2614         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2615         * include/unistd.h (__have_sock_cloexec): Likewise.
2616         (__have_pipe2): Likewise.
2617         (__have_dup3): Likewise.
2618
2619 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2620
2621         [BZ #9685]
2622         * include/unistd.h (__have_pipe2): Change define into an extern int.
2623         (__have_dup3): Likewise.
2624         * socket/have_sock_cloexec.c: Include fcntl.h.
2625         (__have_pipe2): New variable.
2626         (__have_dup3): Likewise.
2627
2628 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2629
2630         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2631
2632 2012-08-17  Marek Polacek  <polacek@redhat.com>
2633
2634         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2635         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2636
2637 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2638
2639         * configure.in: Add AC_SUBST for sysheaders.
2640         * configure: Regenerated.
2641         * config.make.in (sysheaders): New substituted variable.
2642
2643         * sysdeps/unix/mkfifo.c: Moved ...
2644         * sysdeps/posix/mkfifo.c: ... here.
2645         * sysdeps/unix/mkfifoat.c: Moved ...
2646         * sysdeps/posix/mkfifoat.c: ... here.
2647
2648         * sysdeps/unix/utime.c: Moved ...
2649         * sysdeps/posix/utime.c: ... here.
2650
2651         * sysdeps/unix/time.c: Moved ...
2652         * sysdeps/posix/time.c: ... here.
2653         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2654         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2655
2656         * sysdeps/unix/nice.c: Moved ...
2657         * sysdeps/posix/nice.c: ... here.
2658
2659         * sysdeps/unix/alarm.c: Moved ...
2660         * sysdeps/posix/alarm.c: ... here.
2661
2662         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2663
2664 2012-08-17  Jeff Law <law@redhat.com>
2665
2666         * intl/Makefile (codeset_mo): New variable.
2667         ($(codeset_mo)): New target.
2668         (tst-codeset.out): Depend on that.  Remove explicit rule.
2669         (tst-gettext3.out, tst-gettext5.out): Likewise.
2670         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2671         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2672         * intl/tst-codeset.sh: Remove.
2673         * intl/tst-gettext3.sh: Likewise.
2674         * intl/tst-gettext5.sh: Likewise.
2675
2676 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2677
2678         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2679         * sysdeps/unix/syscalls.list: ... here.
2680
2681         * sysdeps/posix/getaddrinfo.c
2682         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2683         (gaiconf_init, gaiconf_reload): Use them.
2684         [!_STATBUF_ST_NSEC]
2685         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2686         Define using time_t rather than struct timespec.
2687
2688         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2689         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2690         Macros removed.
2691         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2692         [!NO_THREADS].
2693         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2694         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2695         Likewise.
2696
2697         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2698         __libc_cleanup_push argument.
2699
2700         * bits/param.h: New file.
2701         * misc/sys/param.h: New file.
2702         * include/sys/param.h: New file.
2703         * misc/Makefile (headers): Add bits/param.h.
2704         * sysdeps/generic/sys/param.h: File removed.
2705         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2706         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2707         * sysdeps/mach/hurd/bits/param.h: New file.
2708         * sysdeps/mach/hurd/sys/param.h: File removed.
2709
2710         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2711         last change.
2712
2713         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2714         [_IO_MTSAFE_IO].
2715         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2716         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2717         New macros.
2718
2719         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2720         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2721         rather than -D_IO_MTSAFE_IO conditionally.
2722         * stdio-common/Makefile (CPPFLAGS): Likewise.
2723         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2724         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2725         Use $(libio-mtsafe).
2726         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2727         of -D_IO_MTSAFE_IO.
2728         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2729         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2730         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2731         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2732         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2733         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2734         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2735         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2736         (CFLAGS-fread_u_chk.c): Likewise.
2737         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2738         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2739         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2740         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2741         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2742         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2743         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2744         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2745         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2746
2747         * libio/Makefile: Test [$(libc-reentrant) = yes]
2748         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2749
2750         * Makeconfig
2751         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2752         * sysdeps/pthread/configure: File removed.
2753         * sysdeps/pthread/Makeconfig: New file.
2754         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2755         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2756
2757 2012-08-16  Gary Benson  <gbenson@redhat.com>
2758
2759         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2760         unmapping the first object in a namespace.
2761
2762 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2763
2764         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2765         (__internal_setnetgrent): ... this.  Add internal_function to
2766         definition.  Add libc_hidden_def.
2767         (setnetgrent): Update caller.
2768         (internal_endnetgrent): Renamed to ...
2769         (__internal_endnetgrent): ... this.  Add internal_function to
2770         definition.  Add libc_hidden_def.
2771         (endnetgrent): Update caller.
2772         (internal_getnetgrent_r): Renamed to ...
2773         (__internal_getnetgrent_r): ... this.  Add internal_function to
2774         definition.  Add libc_hidden_def.
2775         (__getnetgrent_r): Update caller.
2776         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2777
2778 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2779
2780         * stdlib/longlong.h: Update from GCC.
2781
2782 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2783
2784         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2785         on _QL, which is set by umul_ppmm but never used.
2786         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2787         variables, which are set by GMP macros but never used.
2788         * stdio-common/_itowa.c (_itowa): Likewise.
2789         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2790         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2791
2792 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2793
2794         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2795         struct La_sh_regs is not constant.
2796         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2797         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2798         and struct La_sparc64_regs are not constant.
2799
2800 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2801
2802         * sysdeps/unix/sysv/linux/kernel-features.h
2803         (__ASSUME_POSIX_TIMERS): Remove.
2804         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2805         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2806         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2807         Make code unconditional.
2808         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2809         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2810         Make code unconditional.
2811         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2812         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2813         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2814         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2815         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2816         Make code unconditional.
2817         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2818         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2819         (__libc_missing_posix_timers): Remove.
2820
2821 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2822
2823         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2824         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2825
2826         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2827
2828         * elf/dl-sym.c: Include <stdlib.h>.
2829
2830         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2831         constants, which avoids warnings in 32-bit builds.
2832
2833         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2834         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2835
2836         * misc/lseek.c: File moved to ...
2837         * io/lseek.c: ... here.
2838
2839         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2840
2841         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2842         shifting LEN more than 31 bits at once.
2843
2844 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2845
2846         [BZ #14195]
2847         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2848         segmentation fault for a case of two empty input strings.
2849         * string/test-strncasecmp.c (check1): Renamed to...
2850         (bz12205): ...this.
2851         (bz14195): Add new testcase for two empty input strings and N > 0.
2852         (test_main): Call new testcase, adapt for renamed function.
2853
2854 2012-08-15  Andreas Jaeger  <aj@suse.de>
2855
2856         [BZ #14090]
2857         * crypt/md5test2.c: New test, based on test supplied by Serge
2858         Belyshev <belyshev@depni.sinp.msu.ru>.
2859         * crypt/Makefile (xtests): Add md5test-giant..
2860         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2861
2862 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2863
2864         [BZ #14090]
2865         * crypt/md5.c (md5_process_block): Don't assume the buffer
2866         length is less than 2**32.
2867         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2868         length is less than 2**64.
2869
2870 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2871
2872         * string/str-two-way.h: Include <sys/param.h>.
2873         (MAX): Macro removed.
2874
2875         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2876         Move #define and #undef of memmove to just before and after
2877         including <string.h>.
2878
2879         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2880         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2881         and after including <string.h>.  Move declarations of
2882         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2883         to before #include "string/memmove.c".
2884
2885         * include/dirent.h: Declare __getdirentries.
2886
2887         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2888         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2889
2890 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2891
2892         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2893         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2894         * sysdeps/i386/configure: Regenerated.
2895         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2896         STABS_CURRENT_FILE, and STABS_FUN.
2897         (END): Remove call to STABS_FUN_END.
2898         (STABS_CURRENT_FILE1): Delete.
2899         (STABS_CURRENT_FILE): Likewise.
2900         (STABS_FUN): Likewise.
2901         (STABS_FUN_END): Likewise.
2902         (STABS_FUN2): Likewise.
2903         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2904         * sysdeps/x86_64/configure: Regenerated.
2905
2906 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2907
2908         * elf/dl-open.c: Include <atomic.h>.
2909         * elf/dl-lookup.c: Likewise.
2910
2911 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2912
2913         * sysdeps/unix/sysv/linux/kernel-features.h
2914         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2915         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2916         unconditionally.
2917         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2918         unconditionally.
2919         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2920         condition on __ASSUME_CLONE_THREAD_FLAGS.
2921
2922 2012-08-14  Andreas Jaeger  <aj@suse.de>
2923
2924         * sysdeps/i386/fpu/libm-test-ulps: Update.
2925
2926 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2927
2928         * include/atomic.h (atomic_exchange_and_add): Split into ...
2929         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2930         New atomic macros.
2931
2932 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2933
2934         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2935
2936 2012-08-13  Jeff Law <law@redhat.com>
2937
2938         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2939         null byte in the output string.
2940
2941 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2942
2943         * sysdeps/unix/sysv/linux/kernel-features.h
2944         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2945         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2946         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2947         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2948         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2949         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2950         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2951
2952 2012-08-09  Jeff Law <law@redhat.com>
2953
2954         [BZ #13939]
2955         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2956         When avoid_arena is set, don't retry in the that arena.  Pick the
2957         next one, whatever it might be.
2958         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2959         (arena_lock): Pass in new parameter to arena_get2.
2960         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2961         arena_get2.
2962         (__libc_malloc): Unify retrying after main arena failure with
2963         __libc_memalign version.
2964         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2965
2966 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2967
2968         [BZ #14166]
2969         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2970         to __redirect_strstr.
2971         (__strstr_sse42): Use typeof __redirect_strstr.
2972         (__strstr_ia32): Likewise.
2973         (__libc_strstr): New prototype.
2974         (strstr): Renamed to ...
2975         (__libc_strstr): This.
2976         (strstr): New strong alias of __libc_strstr.
2977         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2978         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2979         __redirect_time.
2980         Include <time.h>.
2981         (__libc_time): New prototype.
2982         (time_ifunc): Replace time with __libc_time.
2983         (time): New strong alias and hidden definition of __libc_time.
2984         (__GI_time): Remove strong alias.
2985         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2986         Include <stddef.h>.
2987         (memmove): Redefined to __redirect_memmove.
2988         (__memmove_sse2): Use typeof __redirect_memmove.
2989         (__memmove_ssse3): Likewise.
2990         (__memmove_ssse3_back): Likewise.
2991         (__libc_memmove): New prototype.
2992         (memmove): Renamed to ...
2993         (__libc_memmove): This.
2994         (memmove): New strong alias of __libc_memmove.
2995
2996 2012-08-08  Mark Salter  <msalter@redhat.com>
2997
2998         * elf/elf.h
2999         (R_MN10300_TLS_GD): Define.
3000         (R_MN10300_TLS_LD): Likewise.
3001         (R_MN10300_TLS_LDO): Likewise.
3002         (R_MN10300_TLS_GOTIE): Likewise.
3003         (R_MN10300_TLS_IE): Likewise.
3004         (R_MN10300_TLS_LE): Likewise.
3005         (R_MN10300_TLS_DTPMOD): Likewise.
3006         (R_MN10300_TLS_DTPOFF): Likewise.
3007         (R_MN10300_TLS_TPOFF): Likewise.
3008         (R_MN10300_SYM_DIFF): Likewise.
3009         (R_MN10300_ALIGN): Likewise.
3010         (R_MN10300_NUM): Update.
3011
3012 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
3013
3014         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
3015         Remove.
3016
3017 2012-08-08  Roland McGrath  <roland@hack.frob.com>
3018
3019         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
3020
3021         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
3022         sysdeps/unix -> sysdeps/posix move.
3023         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3024
3025 2012-08-07      Allan McRae     <allan@archlinux.org>
3026
3027         [BZ #14303]
3028         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
3029         (SUNOS_CPP): Likewise.
3030         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
3031         not found.
3032         (open_input): Call CPP using execvp.
3033
3034 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3035
3036         * sysdeps/unix/sysv/linux/kernel-features.h
3037         (__ASSUME_PROT_GROWSUPDOWN): Remove.
3038         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3039         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3040         (__ASSUME_WAITID_SYSCALL): Likewise.
3041         * sysdeps/unix/sysv/linux/dl-execstack.c
3042         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
3043         code unconditional.
3044         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
3045         conditional code.
3046         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
3047         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
3048         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
3049         code.
3050         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
3051         unconditional.
3052         [__ASSUME_WAITID_SYSCALL]: Likewise.
3053         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
3054
3055 2012-08-07  Roland McGrath  <roland@hack.frob.com>
3056
3057         * sysdeps/unix/closedir.c: Renamed to ...
3058         * sysdeps/posix/closedir.c: ... here.
3059         * sysdeps/unix/dirfd.c: Renamed to ...
3060         * sysdeps/posix/dirfd.c: ... here.
3061         * sysdeps/unix/dirstream.h: Renamed to ...
3062         * sysdeps/posix/dirstream.h: ... here.
3063         * sysdeps/unix/fdopendir.c: Renamed to ...
3064         * sysdeps/posix/fdopendir.c: ... here.
3065         * sysdeps/unix/opendir.c: Renamed to ...
3066         * sysdeps/posix/opendir.c: ... here.
3067         * sysdeps/unix/readdir.c: Renamed to ...
3068         * sysdeps/posix/readdir.c: ... here.
3069         * sysdeps/unix/readdir_r.c: Renamed to ...
3070         * sysdeps/posix/readdir_r.c: ... here.
3071         * sysdeps/unix/rewinddir.c: Renamed to ...
3072         * sysdeps/posix/rewinddir.c: ... here.
3073         * sysdeps/unix/seekdir.c: Renamed to ...
3074         * sysdeps/posix/seekdir.c: ... here.
3075         * sysdeps/unix/telldir.c: Renamed to ...
3076         * sysdeps/posix/telldir.c: ... here.
3077         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
3078         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
3079         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3080         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
3081
3082         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
3083         * bits/fcntl.h: ... here.
3084
3085         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
3086         not 0.
3087         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
3088         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
3089         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
3090         (struct flock): Move l_start, l_len to the beginning.
3091         Use __pid_t for l_pid.
3092         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
3093         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
3094         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
3095         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
3096         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
3097         [__USE_LARGEFILE64] (struct flock64): New type.
3098         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
3099
3100         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
3101         * bits/dirent.h: ... here.
3102
3103         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
3104         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
3105
3106 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3107
3108         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3109         Change from 2.6.0 to 2.6.16.
3110         * sysdeps/unix/sysv/linux/configure: Regenerated.
3111         * sysdeps/unix/sysv/linux/kernel-features.h
3112         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
3113         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
3114         version.
3115         (__ASSUME_UTIMES): Likewise.
3116         (__ASSUME_CLONE_STOPPED): Remove.
3117         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
3118         architectures, not kernel version.
3119         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
3120         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3121         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3122         (__ASSUME_WAITID_SYSCALL): Likewise.
3123         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
3124         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
3125         * README: State 2.6.16 as minimum Linux kernel version.  Do not
3126         refer to older versions.
3127
3128 2012-08-06  Roland McGrath  <roland@hack.frob.com>
3129
3130         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
3131         Define alphasort64 as an alias.
3132         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
3133         Define versionsort64 as an alias.
3134         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
3135         Define scandir64 as an alias.
3136         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
3137         Define scandirat64 as an alias.
3138         * dirent/alphasort64.c (alphasort64):
3139         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
3140         * dirent/versionsort64.c: Likewise.
3141         * dirent/scandir64.c: Likewise.
3142         * dirent/scandirat64.c: Likewise.
3143         * sysdeps/wordsize-64/alphasort.c: File removed.
3144         * sysdeps/wordsize-64/alphasort64.c: File removed.
3145         * sysdeps/wordsize-64/scandir.c: File removed.
3146         * sysdeps/wordsize-64/scandir64.c: File removed.
3147         * sysdeps/wordsize-64/scandirat.c: File removed.
3148         * sysdeps/wordsize-64/scandirat64.c: File removed.
3149         * sysdeps/wordsize-64/versionsort.c: File removed.
3150         * sysdeps/wordsize-64/versionsort64.c: File removed.
3151         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
3152         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
3153         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
3154         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
3155         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
3156         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
3157         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
3158         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
3159
3160         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3161         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3162         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3163         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3164         [defined __arch64__ || defined __sparcv9]
3165         (__INO_T_MATCHES_INO64_T): New macro.
3166         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3167         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3168         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3169         * sysdeps/unix/sysv/linux/bits/dirent.h
3170         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3171         (_DIRENT_MATCHES_DIRENT64): New macro.
3172
3173         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3174         Define lockf64 as an alias.
3175         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3176         Define fseeko64 as an alias.
3177         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3178         Define ftello64 as an alias.
3179         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3180         Define _IO_fgetpos64 and fgetpos64 as aliases.
3181         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3182         Define _IO_fsetpos64 and fsetpos64 as aliases.
3183         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3184         Conditionalize body on this.
3185         * libio/fseeko64.c: Likewise.
3186         * libio/ftello64.c: Likewise.
3187         * libio/iofgetpos64.c: Likewise.
3188         * libio/iofsetpos64.c: Likewise.
3189         * sysdeps/wordsize-64/lockf.c: File removed.
3190         * sysdeps/wordsize-64/lockf64.c: File removed.
3191         * sysdeps/wordsize-64/fseeko.c: File removed.
3192         * sysdeps/wordsize-64/fseeko64.c: File removed.
3193         * sysdeps/wordsize-64/ftello.c: File removed.
3194         * sysdeps/wordsize-64/ftello64.c: File removed.
3195         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3196         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3197         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3198         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3199         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3200         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3201         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3202         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3203         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3204         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3205         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3206         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3207         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3208         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3209
3210         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3211         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3212         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3213         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3214         [defined __arch64__ || defined __sparcv9]
3215         (__OFF_T_MATCHES_OFF64_T): New macro.
3216         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3217         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3218         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3219         (__OFF_T_MATCHES_OFF64_T): New macro.
3220
3221 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3222
3223         * stdlib/secure-getenv.c (__secure_getenv): Replace
3224         GLIBC_2_16 with GLIBC_2_17.
3225
3226 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3227
3228         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3229         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3230
3231 2012-08-03  David S. Miller  <davem@davemloft.net>
3232
3233         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3234
3235 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3236
3237         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3238         Remove.
3239         (__ASSUME_CORRECT_SI_PID): Likewise.
3240         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3241         (__ASSUME_TMPFS_NAME): Likewise.
3242         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3243         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3244         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3245         (HAVE_AUX_SECURE): Make definition unconditional.
3246         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3247         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3248
3249 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3250
3251         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3252         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3253         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3254         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3255         __eloop_threshold instead of SYMLOOP_MAX.
3256
3257         * sysdeps/generic/eloop-threshold.h: New file.
3258         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3259         of MAXSYMLINKS.
3260         * elf/chroot_canon.c (chroot_canon): Likewise.
3261
3262 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3263
3264         [BZ #13717]
3265         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3266         Change to 2.6.0 everywhere.
3267         * sysdeps/unix/sysv/linux/configure: Regenerated.
3268         * sysdeps/unix/sysv/linux/kernel-features.h
3269         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3270         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3271         kernel versions.
3272         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3273         (__ASSUME_FUTEX_REQUEUE): Remove.
3274         (__ASSUME_STATFS64): Define unconditionally.
3275         (__ASSUME_AT_SECURE): Likewise.
3276         (__ASSUME_CORRECT_SI_PID): Likewise.
3277         (__ASSUME_TGKILL): Define without depending on kernel version for
3278         i386.
3279         (__ASSUME_UTIMES): Likewise.
3280         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3281         kernel version.
3282         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3283         (__ASSUME_TMPFS_NAME): Likewise.
3284         * README: Update reference to Linux kernel versions.
3285
3286 2012-08-02  Marek Polacek  <polacek@redhat.com>
3287
3288         [BZ# 14150]
3289         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3290         libc_cv_asm_type_prefix with %.
3291         * configure: Regenerated.
3292         * include/libc-symbols.h: Remove comment about
3293         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3294         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3295         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3296         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3297         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3298         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3299         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3300         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3301         * elf/tst-unique2mod1.c: Likewise.
3302         * elf/tst-unique1mod2.c: Likewise.
3303         * elf/tst-unique1mod1.c: Likewise.
3304         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3305         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3306         Replace ASM_TYPE_DIRECTIVE with .type.
3307         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3308         * sysdeps/i386/sysdep.h: Likewise.
3309         * sysdeps/x86_64/sysdep.h: Likewise.
3310         * sysdeps/sh/sysdep.h: Likewise.
3311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3312         Do not define ASM_TYPE_DIRECTIVE.
3313         * sysdeps/powerpc/sysdep.h: Likewise.
3314         * sysdeps/powerpc/powerpc32/sysdep.h:
3315         Replace ASM_TYPE_DIRECTIVE with .type.
3316         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3317         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3318         * sysdeps/i386/fpu/e_powf.S: Likewise.
3319         * sysdeps/i386/fpu/e_expl.S: Likewise.
3320         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3321         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3322         * sysdeps/i386/fpu/e_pow.S: Likewise.
3323         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3324         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3325         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3326         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3327         * sysdeps/i386/fpu/e_log2.S: Likewise.
3328         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3329         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3330         * sysdeps/i386/fpu/e_powl.S: Likewise.
3331         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3332         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3333         * sysdeps/i386/fpu/e_logl.S: Likewise.
3334         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3335         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3336         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3337         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3338         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3339         * sysdeps/i386/fpu/e_log.S: Likewise.
3340         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3341         * sysdeps/i386/fpu/e_logf.S: Likewise.
3342         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3343         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3344         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3345         * sysdeps/i386/fpu/e_log10.S: Likewise.
3346         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3347         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3348         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3349         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3350         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3351         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3352         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3353         * sysdeps/i386/i686/strtok.S: Likewise.
3354         * sysdeps/i386/i386-mcount.S: Likewise.
3355         * sysdeps/i386/strtok.S: Likewise.
3356         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3357         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3358         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3359         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3360         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3361         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3362         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3363         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3364         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3365         * sysdeps/x86_64/_mcount.S: Likewise.
3366         * sysdeps/x86_64/strtok.S: Likewise.
3367         * sysdeps/sh/_mcount.S: Likewise.
3368
3369 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3370
3371         * libio/iofopen.c: Include <fcntl.h>.
3372         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3373         (_IO_fopen64, fopen64): Define as aliases.
3374         * libio/iofopen64.c: Include <fcntl.h>.
3375         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3376         Conditionalize body on this.
3377         * sysdeps/wordsize-64/iofopen.c: File removed.
3378         * sysdeps/wordsize-64/iofopen64.c: File removed.
3379
3380 2012-08-01  Marek Polacek  <polacek@redhat.com>
3381
3382         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3383         Use dlfcn directly instead of a variable.
3384         (binfmt-subdir): Do not define.
3385         (dlfcn): Likewise.
3386
3387 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3388
3389         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3390         Remove all definitions.
3391         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3392         <kernel-features.h>.
3393         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3394         (miss_F_GETOWN_EX): Remove all definitions.
3395         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3396         macro definition.
3397         [!__ASSUME_FCNTL64]: Remove conditional code.
3398         [__ASSUME_FCNTL64]: Make code unconditional.
3399         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3400         <kernel-features.h>.
3401         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3402         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3403         (lockf64) [__NR_fcntl64]: Make code unconditional.
3404         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3405
3406         * sysdeps/unix/sysv/linux/kernel-features.h
3407         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3408         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3409         Make code unconditional.
3410         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3411         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3413         [__NR_vfork]: Make code unconditional.
3414         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3415         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3417         [__NR_vfork]: Make code unconditional.
3418         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3419         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3420
3421 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3422
3423         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3424         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3425
3426         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3427         Define mkstemp64 as an alias.
3428         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3429         Define mkstemps64 as an alias.
3430         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3431         Define mkostemp64 as an alias.
3432         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3433         Define mkostemps64 as an alias.
3434         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3435         Conditionalize body on this.
3436         * misc/mkostemp64.c: Likewise.
3437         * misc/mkostemps64.c: Likewise.
3438         * misc/mkstemps64.c: Likewise.
3439         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3440         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3441         * sysdeps/wordsize-64/mkostemp.c: File removed.
3442         * sysdeps/wordsize-64/mkstemp.c: File removed.
3443         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3444         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3445         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3446         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3447
3448         [BZ #14138]
3449         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3450         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3451         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3452         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3453
3454         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3455         compat_symbol macros from <shlib-compat.h> rather than the underlying
3456         default_symbol_version and symbol_version macros, so that DEFAULT
3457         lines in shlib-versions are respected.
3458         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3459
3460 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3461
3462         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3463         Declare with warn_unused_result.
3464         (setgid, setregid, setegid, setresgid): Likewise.
3465         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3466         Likewise.
3467         * WUR-REPORT: Remove set*id functions.
3468
3469 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3470
3471         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3472
3473 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3474
3475         * include/sys/socket.h (__libc_accept, __libc_accept4):
3476         Add attribute_hidden.
3477         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3478
3479         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3480         use of PTR_MANGLE.
3481         * inet/getnetgrent_r.c (setup): Likewise.
3482
3483         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3484
3485 2012-07-31  David S. Miller  <davem@davemloft.net>
3486
3487         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3488
3489 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3490
3491         [BZ #13629]
3492         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3493         value between 1.0 and 2.0 and smaller part has absolute value less
3494         than 1.0.
3495         * math/s_clog10.c (__clog10): Likewise.
3496         * math/s_clog10f.c (__clog10f): Likewise.
3497         * math/s_clog10l.c (__clog10l): Likewise.
3498         * math/s_clogf.c (__clogf): Likewise.
3499         * math/s_clogl.c (__clogl): Likewise.
3500         * math/libm-test.inc (clog_test): Add more tests.
3501         (clog10_test): Likewise.
3502         * sysdeps/i386/fpu/libm-test-ulps: Update.
3503         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3504
3505 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3506
3507         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3508         Exit with zero in case no suitable GID is found, and write a
3509         message to standard error.
3510
3511 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3512
3513         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3514         rather than to 1.
3515         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3516         (MAXPATHLEN): Removed.
3517         (NOGROUP, NODEV): New macros.
3518         (setbit, clrbit, isset, isclr): New macros.
3519         (howmany, roundup, powerof2): New macros.
3520         (DEV_BSIZE): New macro.
3521
3522         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3523         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3524
3525         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3526         definition on [!__NO_LONG_DOUBLE_MATH].
3527
3528         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3529         PTR_MANGLE and PTR_DEMANGLE.
3530
3531         * socket/accept4.c (accept4): Rename to __libc_accept4.
3532         Define accept4 as a weak alias.
3533
3534         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3535         on [_DIRENT_HAVE_D_TYPE].
3536         * io/ftw.c (ftw_dir): Likewise.
3537
3538         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3539
3540         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3541
3542         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3543         Use the BSD numbers rather than the arbitrary ones we had.
3544         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3545         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3546         (SIGXCPU, SIGXFSZ): New macros.
3547         (_NSIG): Now 32.
3548
3549         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3550         initializer on [_LIBC_REENTRANT].
3551
3552         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3553         definitions inside [_POSIX_MAPPED_FILES].
3554
3555         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3556
3557         * dirent/opendir.c: Include <fcntl.h>.
3558
3559         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3560         (__libc_getspecific): Likewise.
3561         (__libc_key_create): Likewise.
3562
3563         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3564         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3565         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3566         (tmpfile64): Define as alias.
3567         * sysdeps/wordsize-64/tmpfile.c: File removed.
3568         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3569         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3570         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3571
3572         * stdio-common/vfscanf.c: Include <stdbool.h>.
3573         * nss/makedb.c: Likewise.
3574         * stdio-common/_i18n_number.h: Likewise.
3575         * argp/argp-help.c: Likewise.
3576         * posix/wordexp.c: Likewise.
3577         * sysdeps/posix/spawni.c: Likewise.
3578         * nss/nss_files/files-initgroups.c: Likewise.
3579         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3580         * nss/nss_files/files-initgroups.c: Likewise.
3581         * nss/nss_db/db-netgrp.c: Likewise.
3582         * nss/nss_db/db-initgroups.c: Likewise.
3583         * io/fchmodat.c: Include <sys/stat.h>.
3584
3585         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3586         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3587
3588         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3589         [HAVE_MMAP].
3590
3591         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3592         Add multiple inclusion protection.
3593
3594 2012-07-27  David S. Miller  <davem@davemloft.net>
3595
3596         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3597
3598 2012-07-27  Gary Benson  <gbenson@redhat.com>
3599
3600         [BZ #14298]
3601         * elf/rtld.c: Include <stap-probe.h>.
3602         (dl_main): Added static probes "init_start" and "init_complete".
3603         * elf/dl-load.c: Include <stap-probe.h>.
3604         (lose): Take new parameter "nsid".
3605         Added static probe "map_failed".
3606         (_dl_map_object_from_fd): Pass namespace id to lose.
3607         Added static probe "map_start".
3608         (open_verify): Pass namespace id to lose.
3609         * elf/dl-open.c: Include <stap-probe.h>.
3610         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3611         and "reloc_complete".
3612         * elf/dl-close.c: Include <stap-probe.h>.
3613         (_dl_close_worker): Added static probes "unmap_start" and
3614         "unmap_complete".
3615         * elf/rtld-debugger-interface.txt: New file documenting the above.
3616
3617 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3618
3619         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3620         rather than a string variable.
3621         * sunrpc/rpc_main.c (h_output): Likewise.
3622         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3623
3624 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3625
3626         * inet/check_native.c: New file.
3627
3628 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3629
3630         [BZ #13629]
3631         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3632         if larger part has absolute value 1.0.
3633         * math/s_clog10.c (__clog10): Likewise.
3634         * math/s_clog10f.c (__clog10f): Likewise.
3635         * math/s_clog10l.c (__clog10l): Likewise.
3636         * math/s_clogf.c (__clogf): Likewise.
3637         * math/s_clogl.c (__clogl): Likewise.
3638         * math/libm-test.inc (clog_test): Add more tests.
3639         (clog10_test): Likewise.
3640         * sysdeps/i386/fpu/libm-test-ulps: Update.
3641         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3642
3643         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3644         (pltexit): Likewise.
3645         (La_regs): Likewise.
3646         (La_retval): Likewise.
3647         (int_retval): Likewise.
3648         Update #error for removed macros to refer only to definitions in
3649         tst-audit.h.
3650         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3651         macro.
3652         (pltexit): Likewise.
3653         (La_regs): Likewise.
3654         (La_retval): Likewise.
3655         (int_retval): Likewise.
3656         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3657         macro.
3658         (pltexit): Likewise.
3659         (La_regs): Likewise.
3660         (La_retval): Likewise.
3661         (int_retval): Likewise.
3662         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3663         macro.
3664         (pltexit): Likewise.
3665         (La_regs): Likewise.
3666         (La_retval): Likewise.
3667         (int_retval): Likewise.
3668         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3669         macro.
3670         (pltexit): Likewise.
3671         (La_regs): Likewise.
3672         (La_retval): Likewise.
3673         (int_retval): Likewise.
3674         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3675         macro.
3676         (pltexit): Likewise.
3677         (La_regs): Likewise.
3678         (La_retval): Likewise.
3679         (int_retval): Likewise.
3680         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3681         macro.
3682         (pltexit): Likewise.
3683         (La_regs): Likewise.
3684         (La_retval): Likewise.
3685         (int_retval): Likewise.
3686         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3687         macro definitions in tst-audit.h.
3688         * sysdeps/i386/tst-audit.h: New file.
3689         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3690         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3691         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3692         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3693         * sysdeps/sh/tst-audit.h: Likewise.
3694         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3695         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3696         * sysdeps/x86_64/tst-audit.h: Likewise.
3697
3698 2012-07-26  Andreas Jaeger  <aj@suse.de>
3699
3700         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3701         ptrace.
3702
3703         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3704         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3705         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3706         PTRACE_O_MASK.
3707         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3708         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3709         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3710
3711         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3712         value.
3713
3714         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3715         _sigsys.
3716         (si_call_addr, si_syscall, si_arch): Define new macro.
3717         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3718         _sigsys.
3719         (si_call_addr, si_syscall, si_arch): Define new marcro.
3720         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3721         _sigsys.
3722         (si_call_addr, si_syscall, si_arch): Define new macro.
3723         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3724         _sigsys.
3725         (si_call_addr, si_syscall, si_arch): Define new macro.
3726
3727 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3728
3729         [BZ #13717]
3730         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3731         Change to 2.4.21 where previously 2.4.1.
3732         * sysdeps/unix/sysv/linux/configure: Regenerated.
3733         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3734         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3735         Linux kernel version.
3736         (__ASSUME_STD_AUXV): Remove.
3737         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3738         kernel version.
3739         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3740         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3741         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3742         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3743         (__ASSUME_NETLINK_SUPPORT): Likewise.
3744         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3745         (__no_netlink_support): Remove conditional definition.
3746         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3747         Remove.
3748         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3749         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3750         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3751         (if_nameindex_ioctl): Remove.
3752         (if_nameindex_netlink): Do not handle __no_netlink_support.
3753         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3754         code.
3755         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3756         Remove conditional code.
3757         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3758         code.
3759         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3760         unconditional.
3761         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3762         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3763         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3764         Remove.
3765         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3766         [!__ASSUME_STD_AUXV]: Remove conditional code.
3767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3768         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3769         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3771         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3772         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3773         code.
3774         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3776         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3777         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3778         conditional code.
3779         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3781         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3782         code.
3783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3784         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3785         conditional code.
3786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3787         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3788         code unconditional.
3789         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3790         conditional code.
3791         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3792         unconditional.
3793         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3794         conditional code.
3795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3796         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3797         unconditional.
3798         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3799         conditional code.
3800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3801         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3802         code unconditional.
3803         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3804         conditional code.
3805         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3806         unconditional.
3807         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3808         conditional code.
3809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3810         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3811         code unconditional.
3812         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3813         conditional code.
3814         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3815         unconditional.
3816         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3817         conditional code.
3818
3819 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3820
3821         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3822         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3823         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3824         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3825         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3826         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3827         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3828         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3829         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3830         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3831         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3832         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3833         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3834         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3835         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3836         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3837         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3838         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3839         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3840         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3841         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3842         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3843         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3844
3845 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3846
3847         * Versions.def: Add GLIBC_2.17.
3848         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3849         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3850         Introduce __libc_secure_getenv.
3851         * stdlib/Versions (2.17): Add secure_getenv
3852         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3853         * stdlib/secure-getenv.c: Rename __secure_getenv to
3854         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3855         symbol __secure_getenv for GLIBC_2.0.
3856         * stdlib/tst-secure-getenv.c: New.
3857         * stdlib/Makefile (tests): Add testcase.
3858         * manual/startup.texi (Environment Access): Document
3859         secure_getenv.
3860         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3861         __libc_secure_getenv.
3862         * inet/ruserpass.c (ruserpass): Likewise.
3863         * malloc/mtrace.c (mtrace): Likewise.
3864         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3865         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3866         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3867         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3868         HAVE_SECURE_GETENV.
3869         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3870         __secure_getenv to __libc_secure_getenv.
3871         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3873         Likewise.
3874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3875         Likewise.
3876         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3877         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3878         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3879         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3880         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3881         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3882         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3883
3884 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3885
3886         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3887         (struct La_i86_retval): Likewise.
3888         (struct La_x86_64_regs): Likewise.
3889         (struct La_x86_64_retval): Likewise.
3890         (struct La_x32_regs): Likewise.
3891         (struct La_x32_retval): Likewise.
3892         (struct La_ppc32_regs): Likewise.
3893         (struct La_ppc32_retval): Likewise.
3894         (struct La_ppc64_regs): Likewise.
3895         (struct La_ppc64_retval): Likewise.
3896         (struct La_sh_regs): Likewise.
3897         (struct La_sh_retval): Likewise.
3898         (struct La_s390_32_regs): Likewise.
3899         (struct La_s390_32_retval): Likewise.
3900         (struct La_s390_64_regs): Likewise.
3901         (struct La_s390_64_retval): Likewise.
3902         (struct La_sparc32_regs): Likewise.
3903         (struct La_sparc32_retval): Likewise.
3904         (struct La_sparc64_regs): Likewise.
3905         (struct La_sparc64_retval): Likewise.
3906         (struct audit_ifaces): Remove architecture-specific pltenter and
3907         pltexit members.
3908         * sysdeps/i386/ldsodefs.h: New file.
3909         * sysdeps/powerpc/ldsodefs.h: Likewise.
3910         * sysdeps/s390/ldsodefs.h: Likewise.
3911         * sysdeps/sh/ldsodefs.h: Likewise.
3912         * sysdeps/sparc/ldsodefs.h: Likewise.
3913         * sysdeps/x86_64/ldsodefs.h: Likewise.
3914
3915 2012-07-25  Marek Polacek  <polacek@redhat.com>
3916
3917         [BZ #6808]
3918         * math/libm-test.inc (yn_test): Add another test.
3919         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3920         to ERANGE when the result is +-Inf.
3921         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3922         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3923         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3924         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3925
3926 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3927
3928         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3929         equal to 0.
3930         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3931         clock_t.
3932         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3933
3934 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3935
3936         * configure.in <sysdeps resolving>: Correct printing
3937         Implies_before.
3938         * configure: Regenerate.
3939
3940 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3941
3942         * math/w_ilogb.c: Include <limits.h>.
3943         * math/w_ilogbl.c: Likewise.
3944
3945 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3946
3947         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3948         va_copy.  Document allowing for unavailable va_copy only as
3949         pre-C99 compatibility.
3950         * manual/string.texi (Copying and Concatenation): Use va_copy
3951         instead of __va_copy in concat example.
3952
3953 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3954
3955         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3956         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3957         it if not null.
3958
3959         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3960         with O_NOLINK passed to __file_name_lookup.
3961
3962         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3963         with O_NOLINK passed to __file_name_lookup.
3964
3965         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3966         negative N or less than NGIDS.
3967
3968         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3969         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3970         enough.  Use memcpy instead of strncpy.
3971
3972 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3973
3974         * elf/Makefile (check-data): Remove.
3975         (localplt.data): New vpath directive.
3976         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3977         instead of $(check-data).
3978         * scripts/data/localplt-generic.data: Move to ...
3979         * sysdeps/generic/localplt.data: ... here.
3980         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3981         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3982         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3984         ... here.
3985         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3987         ... here.
3988         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3989         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3990         ... here.
3991         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3992         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3993         ... here.
3994         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3995         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3996         ... here.
3997         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3998         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3999         ... here.
4000
4001 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4002
4003         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
4004         PPC32 and PPC64 files.
4005         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
4006         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
4007
4008 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4009
4010         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
4011         __makecontext_ret to ...
4012         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
4013         ... here and call exit if uc_link is NULL.  New file.
4014         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
4015         __makecontext_ret.S.
4016         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
4017         __makecontext_ret to ...
4018         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
4019         ... here and call exit if uc_link is NULL.  New file.
4020         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
4021         __makecontext_ret.S.
4022
4023 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4024
4025         * elf/elf.h (R_390_IRELATIVE): New definition.
4026         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
4027         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
4028         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
4029         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4030         (elf_machine_lazy_rel): Likewise.
4031         * sysdeps/s390/dl-irel.h: New file.
4032         * sysdeps/s390/s390-64/memcpy.S: New asm code.
4033         * sysdeps/s390/s390-64/memset.S: New asm code.
4034         * sysdeps/s390/s390-64/memcmp.S: New asm code.
4035         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
4036         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
4037         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
4038         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
4039         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
4040         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
4041         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
4042         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
4043         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
4044         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
4045         * sysdeps/s390/s390-32/memcpy.S: New asm code.
4046         * sysdeps/s390/s390-32/memset.S: New asm code.
4047         * sysdeps/s390/s390-32/memcmp.S: New asm code.
4048
4049 2012-07-17  Marek Polacek  <polacek@redhat.com>
4050
4051         [BZ #14349]
4052         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
4053         * sysdeps/s390/s390-64/configure.in: Likewise.
4054         * sysdeps/sparc/configure.in: Likewise.
4055         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
4056         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
4057         * sysdeps/i386/configure.in: Likewise.
4058         * sysdeps/x86_64/configure.in: Likewise.
4059         * sysdeps/sh/configure.in: Likewise.
4060         * sysdeps/s390/s390-32/configure: Regenerated.
4061         * sysdeps/s390/s390-64/configure: Likewise.
4062         * sysdeps/x86_64/configure: Likewise.
4063         * sysdeps/sh/configure: Likewise.
4064         * sysdeps/powerpc/powerpc64/configure: Likewise.
4065         * sysdeps/powerpc/powerpc32/configure: Likewise.
4066         * sysdeps/sparc/configure: Likwise.
4067         * sysdeps/i386/configure: Likewise.
4068
4069         * elf/dl-open.c: Comment fixes.
4070
4071 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
4072
4073         * Makefile [CXX] (check-data): Remove.
4074         [CXX] (c++-types.data): New vpath directive.
4075         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
4076         vpath.  Do not allow for C++ type data being missing.
4077         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
4078         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
4079         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
4080         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
4081         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
4082         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
4083         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
4084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
4085         ... here.
4086         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
4087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
4088         ... here.
4089         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
4090         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
4091         ... here.
4092         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
4093         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
4094         ... here.
4095         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
4096         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
4097         ... here.
4098         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
4099         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
4100         ... here.
4101         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
4102         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
4103         ... here.
4104         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
4105         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
4106
4107         * elf/tls-macros.h (TLS_LE): Move architecture-specific
4108         definitions to architecture-specific files.
4109         (TLS_IE): Likewise.
4110         (TLS_LD): Likewise.
4111         (TLS_GD): Likewise.
4112         * sysdeps/i386/tls-macros.h: New file.
4113         * sysdeps/powerpc/tls-macros.h: Likewise.
4114         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
4115         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
4116         * sysdeps/sh/tls-macros.h: Likewise.
4117         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
4118         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
4119         * sysdeps/x86_64/tls-macros.h: Likewise.
4120
4121 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4122
4123         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
4124         zero value for regular exit case.
4125
4126         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4127         (__start_context): Preserve zero value for regular exit case.
4128
4129 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4130             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4131
4132         * manual/setjmp.texi (setcontext): Clarify normal process
4133         termination when uc_link is the null pointer.
4134         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
4135         exit call.
4136
4137 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
4138
4139         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
4140         preprocessor.  Test for each exception mask separately.
4141
4142 2012-07-16  Andreas Jaeger  <aj@suse.de>
4143
4144         * po/ru.po: Update from translation team.
4145
4146 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
4147
4148         * conform/data/string.h-data (NULL): Use macro-constant.  Require
4149         equal to 0.
4150         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4151         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4152         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
4153         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
4154         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4155
4156 2012-07-13  Andreas Jaeger  <aj@suse.de>
4157
4158         * po/fr.po: Update from translation team.
4159
4160 2012-07-12  Marek Polacek  <polacek@redhat.com>
4161
4162         [BZ #14173]
4163         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4164         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4165         loop condition.
4166
4167 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4168
4169         [BZ #13717]
4170         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4171         Change to 2.4.1 where previously 2.4.0.
4172         * sysdeps/unix/sysv/linux/configure: Regenerated.
4173         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4174         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4175         version.
4176         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4177         (__ASSUME_AT_CLKTCK): Remove.
4178         (__ASSUME_AT_PAGESIZE): Likewise.
4179         (__ASSUME_AT_XID): Likewise.
4180         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4181         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4182         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4183         unconditionally.
4184         (HAVE_AUX_PAGESIZE): Likewise.
4185         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4186         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4187         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4188
4189 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4190
4191         [BZ #14307]
4192         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4193         the temporary buffer used to invoke __gethostbyname2_r,
4194         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4195         host_data / struct gaih_addrtuple.
4196         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4197         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4198         header file nss/nsswitch.h.
4199         * nss/nsswitch.h (global scope): Add definition of implementation
4200         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4201         resolv/nss_dns/dns-host.c).
4202
4203 2012-07-11  Andreas Jaeger  <aj@suse.de>
4204
4205         * po/fr.po: Update from translation team.
4206
4207         * po/sv.po: Update from translation team
4208         * po/fr.po: Another update from translation team.
4209
4210 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4211
4212         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4213         for subnormals or multiply small sinh result by itself.
4214         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4215         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4216
4217 2012-07-11  David S. Miller  <davem@davemloft.net>
4218
4219         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4220
4221 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4222
4223         [BZ #14347]
4224         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4225         (INTERNAL_MARK): Shift it here.
4226
4227 2012-07-10  Marek Polacek  <polacek@redhat.com>
4228
4229         [BZ #14151]
4230         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4231         libc_cv_asm_global_directive with .globl.
4232         * configure: Regenerated.
4233         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4234         with .globl.
4235         * sysdeps/i386/configure: Regenerated.
4236         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4237         with .globl.
4238         * sysdeps/x86_64/configure: Regenerated.
4239         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4240         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4241         * elf/tst-unique2mod2.c: Likewise.
4242         * elf/tst-unique2mod1.c: Likewise.
4243         * elf/tst-unique1mod2.c: Likewise.
4244         * elf/tst-unique1mod1.c: Likewise.
4245         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4246         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4247         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4248         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4249         * sysdeps/mach/sysdep.h: Likewise.
4250         * sysdeps/i386/sysdep.h: Likewise.
4251         * sysdeps/i386/i386-mcount.S: Likewise.
4252         * sysdeps/x86_64/_mcount.S: Likewise.
4253         * sysdeps/x86_64/sysdep.h: Likewise.
4254         * sysdeps/sh/_mcount.S: Likewise.
4255         * sysdeps/sh/sysdep.h: Likewise.
4256         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4257         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4258         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4259         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4260         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4261         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4262         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4263         * locale/localeinfo.h: Likewise.
4264         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4265         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4266
4267 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4268
4269         [BZ #14336]
4270         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4271         system".
4272         * manual/message.texi (The Uniforum approach): Likewise.
4273         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4274         (glibc iconv Implementation): Likewise.
4275
4276 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4277
4278         [BZ #14337]
4279         * math/s_clog.c (__clog): Avoid scaling a value down where that
4280         could result in underflow.
4281         * math/s_clog10.c (__clog10): Likewise.
4282         * math/s_clog10f.c (__clog10f): Likewise.
4283         * math/s_clog10l.c (__clog10l): Likewise.
4284         * math/s_clogf.c (__clogf): Likewise.
4285         * math/s_clogl.c (__clogl): Likewise.
4286         * math/libm-test.inc (clog_test): Add more tests.
4287         (clog10_test): Likewise.
4288         * sysdeps/i386/fpu/libm-test-ulps: Update.
4289         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4290
4291 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4292
4293         [BZ #14283]
4294         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4295         by 7 not 8 to examine high bit of fractional part.
4296
4297         [BZ #14042]
4298         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4299         for call to __mcount_internal.
4300         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4301         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4302         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4303
4304 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4305
4306         [BZ #14154]
4307         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4308         approximation for values within 0x1p-13f of an odd multiple of
4309         pi/4.
4310         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4311         exception.  Add more tests.
4312         * sysdeps/i386/fpu/libm-test-ulps: Update.
4313
4314         [BZ #6778]
4315         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4316         inputs and return -1 for them.  Do not check for +Inf in case not
4317         reachable for +Inf.
4318         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4319         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4320         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4321         and return -1 for them.  Do not check for +Inf in case not
4322         reachable for +Inf.
4323         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4324         define.
4325         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4326         and return -1 for them.  Do not check for +Inf in case not
4327         reachable for +Inf.
4328         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4329         spurious underflow.
4330         * sysdeps/i386/fpu/libm-test-ulps: Update.
4331         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4332
4333 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4334
4335         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4336
4337 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4338
4339         [BZ #14157]
4340         [BZ #14331]
4341         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4342         could result in spurious underflow.  Scale down values above
4343         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4344         * math/s_csqrtf.c (__csqrtf): Likewise.
4345         * math/s_csqrtl.c (__csqrtl): Likewise.
4346         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4347         spurious underflow.
4348         * sysdeps/i386/fpu/libm-test-ulps: Update.
4349         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4350
4351 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4352
4353         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4354         xopen-msg.sed.
4355         * catgets/xopen-msg.awk: New file.
4356         * catgets/xopen-msg.sed: Removed.
4357
4358         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4359         po2text.sed.
4360         * intl/po2test.awk: New file.
4361         * intl/po2test.sed: Removed.
4362
4363 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4364
4365         [BZ #14328]
4366         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4367         or multiply small sinh result by itself.
4368         * math/s_ctanf.c (__ctanf): Likewise.
4369         * math/s_ctanh.c (__ctanh): Likewise.
4370         * math/s_ctanhf.c (__ctanhf): Likewise.
4371         * math/s_ctanhl.c (__ctanhl): Likewise.
4372         * math/s_ctanl.c (__ctanl): Likewise.
4373         * math/libm-test.inc (ctan_test_tonearest): New function.
4374         (ctan_test_towardzero): Likewise.
4375         (ctan_test_downward): Likewise.
4376         (ctan_test_upward): Likewise.
4377         (ctanh_test_tonearest): Likewise.
4378         (ctanh_test_towardzero): Likewise.
4379         (ctanh_test_downward): Likewise.
4380         (ctanh_test_upward): Likewise.
4381         (main): Call these new functions.
4382         * sysdeps/i386/fpu/libm-test-ulps: Update.
4383         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4384
4385 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4386
4387         * .gitignore: Delete /ports entry.
4388
4389 2012-07-03  Andreas Jaeger  <aj@suse.de>
4390
4391         * po/bg.po: Update from translation team.
4392         * po/cs.po: Likewise.
4393         * po/de.po: Likewise.
4394         * po/hr.po: Likewise.
4395         * po/nl.pl: Likewise.
4396         * po/pl.po: Likewise.
4397         * po/vi.po: Likewise.
4398
4399 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4400
4401         * Makeconfig [!+link] (+link-before-libc): New variable.
4402         [!+link] (+link-after-libc): Likewise.
4403         [!+link] (+link-tests): Likewise.
4404         [!+link] (+link): Define in terms of $(+link-before-libc) and
4405         $(+link-after-libc).
4406         [!+link-static] (+link-static-before-libc): New variable.
4407         [!+link-static] (+link-static-after-libc): Likewise.
4408         [!+link-static] (+link-static-tests): Likewise.
4409         [!+link-static] (+link-static): Define in terms of
4410         $(+link-static-before-libc) and $(+link-static-after-libc).
4411         [build-shared] (link-libc-before-gnulib): New variable.
4412         [build-shared] (link-libc-tests): Likewise.
4413         [build-shared] (link-libc): Define in terms of
4414         $(link-libc-before-gnulib).
4415         [!build-shared] (link-libc-tests): New variable.
4416         (link-libc-static-tests): New variable.
4417         [!gnulib] (gnulib-arch): New variable.
4418         [!gnulib] (gnulib-tests): Likewise.
4419         [!gnulib] (static-gnulib-arch): Likewise.
4420         [!gnulib] (static-gnulib-tests): Likewise.
4421         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4422         Define with "=" instead of ":=".
4423         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4424         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4425         * Rules (binaries-all-notests): New variable.
4426         (binaries-all-tests): Likewise.
4427         (binaries-static-notests): Likewise.
4428         (binaries-static-tests): Likewise.
4429         (binaries-all): Define using $(binaries-all-notests) and
4430         $(binaries-all-tests).
4431         (binaries-static): Define using $(binaries-static-notests) and
4432         $(binaries-static-tests).
4433         (binaries-shared-tests): New variable.
4434         (binaries-shared-notests): Likewise.
4435         (binaries-shared): Remove variable.
4436         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4437         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4438         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4439         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4440         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4441         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4442         * elf/Makefile (sln-modules): New variable.
4443         (extra-objs): Add $(sln-modules:=.o).
4444         (ldconfig-modules): Add static-stubs.
4445         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4446         * elf/static-stubs.c: New file.
4447
4448         [BZ #14283]
4449         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4450         by 7 not 8 to examine high bit of fractional part.  Use volatile
4451         variables when splitting into final array of floats if
4452         __FLT_EVAL_METHOD__ != 0.
4453         * math/libm-test.inc (cos_test): Add another test.
4454         (sin_test): Likewise.
4455         * sysdeps/i386/fpu/libm-test-ulps: Update.
4456
4457         [BZ #14273]
4458         * math/libm-test.inc (cosh_test): Add more tests.
4459
4460         * version.h (RELEASE): Set to "development".
4461         (VERSION): Set to "2.16.90".
4462
4463 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4464
4465         * NEWS: Update copyright. Remove last-updated date.
4466         Mention math library bug fixes and timezone data changes.
4467         * README: Mention GNU/Hurd, x32, and HPPA support status.
4468
4469 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4470
4471         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4472
4473 2012-06-27  Andreas Jaeger  <aj@suse.de>
4474
4475         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4476
4477 2012-06-25  Andreas Jaeger  <aj@suse.de>
4478
4479         * sysdeps/s390/fpu/libm-test-ulps: Update.
4480
4481 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4482             Thomas Schwinge  <thomas@codesourcery.com>
4483
4484         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4485         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4486         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4487         fanotify_mark.
4488
4489 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4490
4491         * sysdeps/mach/start.c: Remove file.
4492         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4493         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4494         * sysdeps/sh/init-first.c: Likewise.
4495
4496         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4497         registers for frame unwinding purposes, add CFI directives.
4498         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4499         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4500         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4501         Likewise.
4502
4503         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4504         __fortify_fail returning.
4505         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4506
4507         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4508         sysdeps/sh/____longjmp_chk.S.
4509         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4510         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4511         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4512         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4513
4514         * sysdeps/sh/abort-instr.h: New file.
4515         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4516         process in case exit returns.
4517
4518         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4519         initialize the GOT register before use.
4520
4521         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4522         calculation of ARGC > 4.
4523
4524         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4525         meaningful names to some local labels.
4526
4527 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4528             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4529
4530         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4531         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4532         (__arch_compare_and_exchange_val_16_acq): Likewise.
4533         (__arch_compare_and_exchange_val_32_acq): Likewise.
4534         (atomic_exchange_and_add): Fix gUSA sequence.
4535         (atomic_add): Likewise.
4536         (atomic_add_negative): Likewise.
4537         (atomic_add_zero): Likewise.
4538         (atomic_bit_test_set): Likewise.
4539
4540 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4541
4542         [BZ #13579]
4543         * include/link.h (struct link_map): Add l_free_initfini.
4544         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4545         l_initfini.
4546         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4547         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4548         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4549         set.
4550
4551 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4552
4553         * configure.in: Use AC_LANG_SOURCE.
4554         * configure: Regenerate.
4555
4556 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4557
4558         * configure.in (libc_cv_localstatedir): New substituted variable.
4559         * configure: Regenerated.
4560         * config.make.in (localstatedir): New variable, substituted from
4561         libc_cv_localstatedir.
4562         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4563         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4564         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4565         * sysdeps/gnu/configure: Regenerated.
4566
4567 2012-06-21  Jeff Law  <law@redhat.com>
4568
4569         [BZ #14277]
4570         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4571         free.  Simplify list management for _LIBC case.
4572
4573 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4574
4575         [BZ #14273]
4576         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4577         Clear sign bit of 64-bit integer value before comparing against
4578         overflow value.
4579
4580         * sysdeps/mach/configure: Regenerated.
4581
4582 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4583
4584         [BZ #14278]
4585         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4586
4587 2012-06-21  Jeff Law  <law@redhat.com>
4588
4589         [BZ #13882]
4590         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4591         uint16_t for elements in the "seen" array to avoid char overflows.
4592         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4593         * elf/dl-open.c (dl_open_worker): Likewise.
4594
4595 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4596
4597         * scripts/list-sources.sh: Scan PORTS for translations.
4598         * po/libc.pot: Regenerated.
4599
4600 2012-06-21  Andreas Jaeger  <aj@suse.de>
4601
4602         [BZ #12194]
4603         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4604         warning.
4605         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4606         * bits/byteswap-16.h (__bswap_16): Likewise.
4607         * bits/byteswap.h (__bswap_constant_16): Likewise.
4608
4609 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4610
4611         [BZ #14117]
4612         * sysdeps/i386/fpu_control.h: Removed.
4613         * sysdeps/x86_64/fpu_control.h: Moved to ...
4614         * sysdeps/x86/fpu_control.h: Here.
4615
4616         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4617         (_FPU_SETCW): Likewise.
4618
4619 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4620
4621         [BZ #14117]
4622         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4623         * sysdeps/x86/fpu/bits/mathinline.h: This.
4624         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4625
4626         [BZ #14050]
4627         [BZ #14117]
4628         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4629         functions if __x86_64__ is defined.
4630
4631 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4632
4633         * string/endian.h: Add !__ASSEMBLER__ condition for including
4634         conversion interfaces.
4635
4636 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4637
4638         [BZ #14241]
4639         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4640         of ABS(x) in calculating zero to negative powers other than odd
4641         integers.
4642         * math/libm-test.inc (pow_test): Add more tests.
4643
4644 2012-06-15  Andreas Jaeger  <aj@suse.de>
4645
4646         * manual/contrib.texi (Contributors): Update entry of Liubov
4647         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4648         Machado Filho.
4649
4650 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4651
4652         * string/string.h: Add __wur to GNU version of strerror_r.
4653
4654 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4655
4656         [BZ #14229]
4657         * string/Makefile (tests): Add tst-strtok_r.
4658         * string/tst-strtok_r.c: New file.
4659         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4660         RAX_LP/RDX_LP on SAVE_PTR.
4661
4662 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4663
4664         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4665
4666 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4667
4668         * libm_test.inc (csqrt_test): Allow more spurious underflow
4669         exceptions.
4670         (j0_test): Likewise.
4671         (j1_test): Likewise.
4672         (y0_test): Likewise.
4673         (y1_test): Likewise.
4674
4675 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4676
4677         * po/Makefile (libc.pot): Use UTF-8 charset.
4678
4679 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4680
4681         [BZ #14210]
4682         Suppress sign-conversion warning from FD_SET.
4683         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4684         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4685         not unsigned long int.
4686         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4687
4688 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4689
4690         [BZ #14050]
4691         [BZ #14117]
4692         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4693         __extern_always_inline instead of __extern_inline.
4694         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4695         (__signbit): Likewise.
4696         (__signbitl): Support C++ namespace.
4697         (lrintf): New inline function.
4698         (lrint): Likewise.
4699         (llrintf): Likewise.
4700         (llrint): Likewise.
4701         (fmaxf): Likewise.
4702         (fmax): Likewise.
4703         (fminf): Likewise.
4704         (fmin): Likewise.
4705         (rint): Likewise.
4706         (rintf): Likewise.
4707         (ceil): Likewise.
4708         (ceilf): Likewise.
4709         (floor): Likewise.
4710         (floorf): Likewise.
4711         (nearbyint): Likewise.
4712         (nearbyintf): Likewise.
4713
4714 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4715
4716         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4717         non-default versions.
4718
4719 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4720
4721         [BZ #14218]
4722         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4723
4724 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4725
4726         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4727         (FE_UPWARD, FE_DOWNWARD): Don't define.
4728         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4729         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4730
4731         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4732         reading it.
4733         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4734         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4735
4736 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4737
4738         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4739         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4740         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4741         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4742
4743 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4744
4745         [BZ #14117]
4746         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4747         * sysdeps/i386/fpu/Implies: New file.
4748         * sysdeps/x86_64/fpu/Implies: Likewise.
4749         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4750         * sysdeps/x86/fpu/bits/fenv.h: This.
4751
4752         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4753         __SSE_MATH__.
4754
4755 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4756
4757         [BZ #14134]
4758         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4759         character 0xffff that matches the last element of the
4760         conversion table.
4761
4762 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4763
4764         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4765         fmodl commit.
4766
4767 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4768
4769         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4770         values higher than 25.6283.
4771
4772 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4773
4774         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4775         subnormal exponent extraction and add some __builtin_expect.
4776         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4777         Fix for subnormal mantissa calculation.
4778
4779 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4780
4781         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4782         cpu2 is -1 and errno is not ENOSYS.
4783
4784 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4785
4786         [BZ #14117]
4787         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4788         * sysdeps/x86/bits/string.h: This.
4789         * sysdeps/x86_64/bits/string.h: Removed.
4790
4791         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4792         if not compiling for x86-64, but compiling for >= i486.
4793
4794         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4795         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4796
4797         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4798         New macro from Linux kernel 3.4.0.
4799         (FP_XSTATE_MAGIC2): Likewise.
4800         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4801         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4802         (struct _fpx_sw_bytes): New struct.
4803         (struct _xsave_hdr): Likewise.
4804         (struct _ymmh_state): Likewise.
4805         (struct _xstate): Likewise.
4806
4807         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4808         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4809         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4810         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4811         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4812         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4813
4814         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4815         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4816         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4817         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4818         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4819         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4820
4821 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4822
4823         [BZ #13743]
4824         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4825         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4826         (sysdep_headers): Include sys/platform/ppc.h.
4827         * sysdeps/powerpc/test-gettimebase.c: Test for
4828         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4829         * manual/Makefile (appendices): Include platform.texi.
4830         * manual/contrib.texi (Contributors): Update @node pointers.
4831         * manual/maint.texi (Maintenance): Likewise.
4832         (Platform): New node.
4833         * manual/platform.texi: New file.  Document the new features.
4834
4835 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4836             Jakub Jelinek  <jakub@redhat.com>
4837
4838         [BZ #14188]
4839         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4840         where __builtin_expect is unavailable.
4841
4842 2012-06-03  David S. Miller  <davem@davemloft.net>
4843
4844         * stdlib/longlong.h: Updated from GCC.
4845
4846 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4847
4848         [BZ #14042]
4849         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4850         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4851         __mcount_internal.
4852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4853         (GLIBC_2.16): Likewise.
4854
4855 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4856
4857         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4858
4859 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4860
4861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4862         (default-abi): New variable.
4863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4864         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4865         variable.
4866         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4867         Likewise.
4868         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4869         Likewise.
4870         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4871         Likewise.
4872
4873         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4874         definition.  Document in comment.
4875
4876 2012-06-01  David S. Miller  <davem@davemloft.net>
4877
4878         * stdlib/longlong.h: Updated from GCC.
4879
4880 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4881
4882         [BZ #14117]
4883         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4884         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4885         sys/debugreg.h sys/io.h here.
4886         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4887         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4888         sys/io.h.
4889         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4890         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4891         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4892         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4893         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4894         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4895
4896         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4897         Define only if __x86_64__ is defined.
4898
4899 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4900
4901         [BZ #14048]
4902         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4903         Use int64_t for variable i.
4904         * math/libm-test.inc (fmod_test): Add more tests.
4905
4906         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4907         z computation is not scheduled after fetestexcept.
4908         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4909         Use math_force_eval instead of asm to ensure calculation scheduled
4910         before exception test.
4911         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4912         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4913
4914 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4915
4916         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4917         computation is not scheduled after fetestexcept.
4918
4919 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4920
4921         [BZ #14117]
4922         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4923         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4924
4925 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4926
4927         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4928         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4929
4930 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4931
4932         [BZ #14117]
4933         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4934         <bits/wordsize.h>.
4935         (__WCHAR_MIN): Support __WORDSIZE == 64.
4936         (__WCHAR_MAX): Likewise.
4937
4938         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4939         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4940
4941         [BZ #14183]
4942         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4943         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4944
4945         [BZ #14117]
4946         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4947         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4948
4949         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4950         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4951
4952         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4953         Defined to 1 if __x86_64__ isn't defined.
4954         (_STAT_VER_LINUX_OLD): New.
4955         (st_atime): Remove duplicate.
4956         (st_mtime): Likewise.
4957         (st_ctime): Likewise.
4958
4959 2012-05-31  David S. Miller  <davem@davemloft.net>
4960
4961         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4962         entries.
4963
4964 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4965
4966         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4967         gen-libm-test.pl.
4968
4969         [BZ #14132]
4970         * elf/dl-reloc.c: Include <_itoa.h>.
4971         (_dl_reloc_bad_type): Remove use of INTUSE.
4972         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4973         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4974         * stdio-common/psiginfo.c (psiginfo): Likewise.
4975         * stdio-common/psignal.c (psignal): Likewise.
4976         * string/strsignal.c (strsignal): Likewise.
4977         * include/signal.h (_sys_siglist): Declare hidden proto.
4978         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4979         INTVARDEF with libc_hidden_data_def.
4980         * stdio-common/itoa-udigits.c: Likewise.
4981         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4982         (_itoa_lower_digits_internal): Remove declaration.
4983         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4984         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4985         (_sys_sigabbrev_internal): Remove aliases.
4986         (_sys_siglist): Define hidden alias.
4987
4988 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4989
4990         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4991         bits/sysctl.h.
4992
4993 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4994
4995         [BZ #14117]
4996         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4997         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4998
4999         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
5000         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
5001         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
5002         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
5003         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
5004         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
5005
5006         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
5007         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
5008         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
5009
5010         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
5011         with __addr.
5012         (insw): Likewise.
5013         (insl): Likewise.
5014         (outsb): Likewise.
5015         (outsw): Likewise.
5016         (outsl): Likewise.
5017
5018         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
5019         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
5020         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
5021
5022         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
5023         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
5024         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
5025         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
5026         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
5027         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
5028
5029         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
5030         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
5031
5032         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
5033         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
5034
5035         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
5036         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
5037         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
5038
5039         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
5040         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
5041         to ...
5042         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
5043
5044         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
5045         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
5046         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
5047
5048         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
5049         for x86-64.
5050         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
5051
5052 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
5053
5054         * math/math.h (M_El): Use two more decimal places.
5055         (M_LOG2El): Likewise.
5056         (M_LOG10El): Likewise.
5057         (M_LN2l): Likewise.
5058         (M_LN10l): Likewise.
5059         (M_PIl): Likewise.
5060         (M_PI_2l): Likewise.
5061         (M_PI_4l): Likewise.
5062         (M_1_PIl): Likewise.
5063         (M_2_PIl): Likewise.
5064         (M_2_SQRTPIl): Likewise.
5065         (M_SQRT2l): Likewise.
5066         (M_SQRT1_2l): Likewise.
5067
5068 2012-05-31  David S. Miller  <davem@davemloft.net>
5069
5070         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
5071         values between float registers.
5072         * sysdeps/sparc/sparc64/memset.S: Likewise.
5073         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5074
5075 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
5076
5077         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
5078         -D_FORTIFY_SOURCE=1.
5079         (CPPFLAGS-tst-longjmp_chk.c): Define.
5080         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
5081         (CPPFLAGS-tst-longjmp_chk2.c): Define.
5082         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
5083         CFLAGS-tst-wchar-h.c.
5084
5085 2012-05-31  Marek Polacek  <polacek@redhat.com>
5086
5087         [BZ #14132]
5088         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
5089         __endmntent_internal): Remove declaration.
5090         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
5091         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
5092         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
5093
5094 2012-05-30  David S. Miller  <davem@davemloft.net>
5095
5096         * sysdeps/sparc/sparc32/soft-fp/q_util.c
5097         (___Q_simulate_exceptions): Use real FP ops rather than writing
5098         into the %fsr.
5099         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
5100         Likewise.
5101
5102 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5103
5104         [BZ #14117]
5105         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
5106         * sysdeps/x86/bits/xtitypes.h: This.
5107
5108         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
5109         * sysdeps/x86/bits/wordsize.h: This.
5110
5111         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
5112         * sysdeps/x86/bits/huge_vall.h: This.
5113
5114         * sysdeps/i386/bits/select.h: Removed.
5115         * sysdeps/x86_64/bits/select.h: Renamed to ...
5116         * sysdeps/x86/bits/select.h: This.
5117
5118         * sysdeps/i386/bits/setjmp.h: Removed.
5119         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
5120         * sysdeps/x86/bits/setjmp.h: This.
5121
5122         * sysdeps/i386/bits/mathdef.h: Removed.
5123         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
5124         * sysdeps/x86/bits/mathdef.h: This.
5125
5126 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5127
5128         [BZ #14132]
5129         * include/sys/socket.h (__connect_internal)
5130         (__libc_sa_len_internal): Remove declaration.
5131         (__connect, __libc_sa_len): Declare hidden_proto.
5132         (SA_LEN): Remove use of INTUSE.
5133         * socket/connect.c: Add libc_hidden_def.
5134         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
5135         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
5136         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
5137         alias.
5138         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5139         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5140         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
5141         of adding _internal alias.
5142
5143 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5144
5145         [BZ #14117]
5146         * sysdeps/i386/bits/link.h: Removed.
5147         * sysdeps/i386/bits/linkmap.h: Likewise.
5148         * sysdeps/x86_64/bits/link.h: Renamed to ...
5149         * sysdeps/x86/bits/link.h: This.
5150         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
5151         * sysdeps/x86/bits/linkmap.h: This.
5152
5153         * sysdeps/i386/bits/endian.h: Removed.
5154         * sysdeps/x86_64/bits/endian.h: Renamed to ...
5155         * sysdeps/x86/bits/endian.h: This.
5156
5157         * sysdeps/i386/bits/byteswap.h: Removed.
5158         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5159         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
5160         * sysdeps/x86/bits/byteswap.h: This.
5161         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5162         * sysdeps/x86/bits/byteswap-16.h: This.
5163         * sysdeps/i386/Implies: Add x86.
5164         * sysdeps/x86_64/Implies: Likewise.
5165
5166 2012-05-30  David S. Miller  <davem@davemloft.net>
5167
5168         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5169         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5170         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5171         (FP_TRAPPING_EXCEPTIONS): Define.
5172         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5173         (FP_TRAPPING_EXCEPTIONS): Define.
5174         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5175         subnormals only when inexact has been signalled or underflow
5176         exceptions are enabled.
5177         (_FP_PACK_CANONICAL): Likewise.
5178
5179 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5180
5181         [BZ #14183]
5182         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5183         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5184
5185 2012-05-30  Richard Henderson  <rth@twiddle.net>
5186
5187         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5188         with #ifndef NOT_IN_libc.
5189
5190         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5191         marked to avoid plt entry.
5192
5193 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5194
5195         [BZ #14112]
5196         * Makeconfig (default-abi): New macro.
5197         (abi-includes): Likewise.
5198         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5199         $(abi-$(default-abi)-lib-soname) for soname if defined.
5200         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5201         abi-variants.
5202         * Makefile (installed-stubs): Likewise.
5203         * include/stubs-biarch.h: Removed.
5204         * scripts/lib-names.awk: Only handle one library at a time.
5205         * scripts/soversions.awk: Remove WORDSIZE support.
5206         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5207         entries.
5208         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5209         Removed.
5210         (syscall-list-default-condition): Likewise.
5211         (syscall-list-default-condition): Likewise.
5212         (syscall-list-includes): Likewise.
5213         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5214         syscall-list-* with abi-*.  Handle undefined abi-variants.
5215         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5216         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5217         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5218         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5219         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5220         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5221         Removed.
5222         (syscall-list-32-options): Likewise.
5223         (syscall-list-32-condition): Likewise.
5224         (syscall-list-64-options): Likewise.
5225         (syscall-list-64-condition): Likewise.
5226         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5227         macro.
5228         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5229         Renamed to ...
5230         (abi-*): This.
5231         (abi-64-ld-soname): New macro.
5232         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5233         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5234         Renamed to ...
5235         (abi-*): This.
5236         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5237         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5238
5239 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5240
5241         * sysdeps/unix/sysv/linux/kernel-features.h
5242         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5243         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5244         include <kernel-features.h>.
5245         [!__NR_ftruncate64]: Remove conditional code.
5246         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5247         [__NR_ftruncate64]: Make code unconditional.
5248         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5249         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5250         include <kernel-features.h>.
5251         [!__NR_ftruncate64]: Remove conditional code.
5252         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5253         [__NR_ftruncate64]: Make code unconditional.
5254         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5256         include <kernel-features.h>.
5257         [!__NR_ftruncate64]: Remove conditional code.
5258         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5259         [__NR_ftruncate64]: Make code unconditional.
5260         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5262         include <kernel-features.h>.
5263         [!__NR_ftruncate64]: Remove conditional code.
5264         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5265         [__NR_ftruncate64]: Make code unconditional.
5266         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5267
5268         * configure.in (libc_cv_fpie): Weaken to a compile test using
5269         LIBC_TRY_CC_OPTION.
5270         * configure: Regenerated.
5271
5272 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5273
5274         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5275         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5276         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5277         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5278         Refreshed.
5279         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5280         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5281         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5282         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5283         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5284         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5285         Refreshed.
5286
5287 2012-05-27  David S. Miller  <davem@davemloft.net>
5288
5289         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5290         (___Q_zero): New.
5291         (__Q_simulate_exceptions): Return void.  Change to simulate
5292         exceptions by writing into the %fsr.
5293         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5294         (__Qp_handle_exceptions): Likewise.
5295         (numbers): Delete.
5296         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5297         __Qp_handle_exceptions.
5298         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5299         __Qp_handle_exceptions.
5300         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5301         as unused and give dummy FP_RND_NEAREST initializer.
5302         (FP_INHIBIT_RESULTS): Define.
5303         (___Q_simulate_exceptions): Update declaration.
5304         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5305         formatting.
5306         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5307         as unused and give dummy FP_RND_NEAREST initializer.
5308         (__Qp_handle_exceptions): Update declaration.
5309         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5310         formatting.
5311
5312 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5313
5314         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5315         the temporary FPU control word.
5316         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5317         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5318         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5319         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5320         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5321         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5322         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5323         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5324         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5325         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5326         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5327
5328 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5329
5330         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5331         fields.
5332
5333 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5334
5335         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5336         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5337         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5338         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5339         Likewise.
5340         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5341         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5342         Likewise.
5343
5344 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5345
5346         * po/h.po: Update from translation team.
5347
5348 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5349
5350         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5351
5352         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5353         handling of denormals.
5354         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5355         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5356         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5357         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5358         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5359         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5360         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5361         Likewise.
5362
5363 2012-05-26  Marek Polacek  <polacek@redhat.com>
5364
5365         [BZ #14152]
5366         * math/libm-test.inc (fma_test): Don't always expect underflow
5367         exception.
5368
5369 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5370
5371         [BZ #12416]
5372         * elf/tst-execstack.c: Include stackinfo.h.
5373         (do_test): Adjust test case to ensure that pthread_getattr_np
5374         behaviour remains the same after marking stack executable.
5375
5376 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5377
5378         * sysdeps/unix/sysv/linux/kernel-features.h
5379         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5380         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5381         kernel-features.h.
5382         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5383         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5384         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5385         kernel-features.h.
5386         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5387         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5388
5389 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5390
5391         * configure.in: Define the default includes to being none.
5392         * configure: Regenerated.
5393
5394 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5395
5396         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5397         * sysdeps/x86_64/setjmp.S: Likewise.
5398         * sysdeps/i386/bsd-setjmp.S: Likewise.
5399         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5400         * sysdeps/i386/setjmp.S: Likewise.
5401         * sysdeps/i386/__longjmp.S: Likewise.
5402         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5403         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5404
5405         * include/stap-probe.h: New file.
5406         * configure.in: Handle --enable-systemtap.
5407         * configure: Regenerated.
5408         * config.h.in (USE_STAP_PROBE): New #undef.
5409         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5410         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5411         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5412
5413 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5414
5415         [BZ #13717]
5416         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5417         to 2.4.0 where earlier.
5418         * sysdeps/unix/sysv/linux/configure: Regenerated.
5419         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5420         <kernel-features.h>.
5421         [__ASSUME_32BITUIDS]: Make code unconditional.
5422         [!__ASSUME_32BITUIDS]: Remove conditional code.
5423         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5424         <kernel-features.h>.
5425         [__ASSUME_32BITUIDS]: Make code unconditional.
5426         [!__ASSUME_32BITUIDS]: Remove conditional code.
5427         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5428         [__ASSUME_32BITUIDS]: Make code unconditional.
5429         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5430         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5431         <kernel-features.h>.
5432         [__ASSUME_32BITUIDS]: Make code unconditional.
5433         [!__ASSUME_32BITUIDS]: Remove conditional code.
5434         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5435         <kernel-features.h>.
5436         [__ASSUME_32BITUIDS]: Make code unconditional.
5437         [!__ASSUME_32BITUIDS]: Remove conditional code.
5438         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5439         <kernel-features.h>.
5440         [__ASSUME_32BITUIDS]: Make code unconditional.
5441         [!__ASSUME_32BITUIDS]: Remove conditional code.
5442         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5443         <kernel-features.h>.
5444         [__ASSUME_32BITUIDS]: Make code unconditional.
5445         [!__ASSUME_32BITUIDS]: Remove conditional code.
5446         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5447         <kernel-features.h>.
5448         [__ASSUME_32BITUIDS]: Make code unconditional.
5449         [!__ASSUME_32BITUIDS]: Remove conditional code.
5450         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5451         <kernel-features.h>.
5452         [__ASSUME_32BITUIDS]: Make code unconditional.
5453         [!__ASSUME_32BITUIDS]: Remove conditional code.
5454         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5455         <kernel-features.h>.
5456         [__ASSUME_32BITUIDS]: Make code unconditional.
5457         [!__ASSUME_32BITUIDS]: Remove conditional code.
5458         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5459         <kernel-features.h>.
5460         [__ASSUME_32BITUIDS]: Make code unconditional.
5461         [!__ASSUME_32BITUIDS]: Remove conditional code.
5462         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5463         <kernel-features.h>.
5464         [__ASSUME_32BITUIDS]: Make code unconditional.
5465         [!__ASSUME_32BITUIDS]: Remove conditional code.
5466         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5467         <kernel-features.h>.
5468         [__ASSUME_32BITUIDS]: Make code unconditional.
5469         [!__ASSUME_32BITUIDS]: Remove conditional code.
5470         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5471         <kernel-features.h>.
5472         [__NR_setresgid] (__setresgid): Do not declare.
5473         [__ASSUME_32BITUIDS]: Make code unconditional.
5474         [!__ASSUME_32BITUIDS]: Remove conditional code.
5475         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5476         <kernel-features.h>.
5477         [__NR_setresuid] (__setresuid): Do not declare.
5478         [__ASSUME_32BITUIDS]: Make code unconditional.
5479         [!__ASSUME_32BITUIDS]: Remove conditional code.
5480         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5481         <kernel-features.h>.
5482         [__ASSUME_32BITUIDS]: Make code unconditional.
5483         [!__ASSUME_32BITUIDS]: Remove conditional code.
5484         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
5485         <kernel-features.h>.
5486         [__ASSUME_32BITUIDS]: Make code unconditional.
5487         [!__ASSUME_32BITUIDS]: Remove conditional code.
5488         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5489         <kernel-features.h>.
5490         [__ASSUME_32BITUIDS]: Make code unconditional.
5491         [!__ASSUME_32BITUIDS]: Remove conditional code.
5492         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5493         <kernel-features.h>.
5494         [__ASSUME_32BITUIDS]: Make code unconditional.
5495         [!__ASSUME_32BITUIDS]: Remove conditional code.
5496         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5497         <kernel-features.h>.
5498         [__ASSUME_32BITUIDS]: Make code unconditional.
5499         [!__ASSUME_32BITUIDS]: Remove conditional code.
5500         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5501         <kernel-features.h>.
5502         [__ASSUME_32BITUIDS]: Make code unconditional.
5503         [!__ASSUME_32BITUIDS]: Remove conditional code.
5504         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5505         <kernel-features.h>.
5506         [__ASSUME_32BITUIDS]: Make code unconditional.
5507         [!__ASSUME_32BITUIDS]: Remove conditional code.
5508         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5509         <kernel-features.h>.
5510         [__ASSUME_32BITUIDS]: Make code unconditional.
5511         [!__ASSUME_32BITUIDS]: Remove conditional code.
5512         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5513         <kernel-features.h>.
5514         [__ASSUME_32BITUIDS]: Make code unconditional.
5515         [!__ASSUME_32BITUIDS]: Remove conditional code.
5516         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5517         <kernel-features.h>.
5518         [__ASSUME_32BITUIDS]: Make code unconditional.
5519         [!__ASSUME_32BITUIDS]: Remove conditional code.
5520         * sysdeps/unix/sysv/linux/kernel-features.h
5521         (__ASSUME_SETRESUID_SYSCALL): Remove.
5522         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5523         (__ASSUME_32BITUIDS): Likewise.
5524         (__ASSUME_LDT_WORKS): Likewise.
5525         (__ASSUME_O_DIRECTORY): Likewise.
5526         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5527         architecture but not kernel version.
5528         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5529         (__ASSUME_MMAP2_SYSCALL): Likewise.
5530         (__ASSUME_STAT64_SYSCALL): Likewise.
5531         (__ASSUME_IPC64): Likewise.
5532         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5533         <kernel-features.h>.
5534         [__ASSUME_32BITUIDS]: Make code unconditional.
5535         [!__ASSUME_32BITUIDS]: Remove conditional code.
5536         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5537         <kernel-features.h>.
5538         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5539         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5540         132096]: Remove conditional code.
5541         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5542         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5543         <kernel-features.h>.
5544         [__ASSUME_32BITUIDS]: Make code unconditional.
5545         [!__ASSUME_32BITUIDS]: Remove conditional code.
5546         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5547         <kernel-features.h>.
5548         [__ASSUME_32BITUIDS]: Make code unconditional.
5549         [!__ASSUME_32BITUIDS]: Remove conditional code.
5550         * sysdeps/unix/sysv/linux/setegid.c: Do not include
5551         <kernel-features.h>.
5552         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5553         unconditional.
5554         (__setresgid): Do not declare.
5555         [__ASSUME_32BITUIDS]: Make code unconditional.
5556         [!__ASSUME_32BITUIDS]: Remove conditional code.
5557         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5558         <kernel-features.h>.
5559         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5560         unconditional.
5561         (__setresuid): Do not declare.
5562         [__ASSUME_32BITUIDS]: Make code unconditional.
5563         [!__ASSUME_32BITUIDS]: Remove conditional code.
5564         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5565         <kernel-features.h>.
5566         [__ASSUME_32BITUIDS]: Make code unconditional.
5567         [!__ASSUME_32BITUIDS]: Remove conditional code.
5568         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5569         <kernel-features.h>.
5570         [__ASSUME_32BITUIDS]: Make code unconditional.
5571         [!__ASSUME_32BITUIDS]: Remove conditional code.
5572
5573 2012-05-25  Richard Henderson  <rth@twiddle.net>
5574
5575         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5576         dl_hwcap to ifunc resolver.
5577         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5578         elf_ifunc_invoke.
5579         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5580         dl_hwcap to ifunc resolver.
5581         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5582
5583 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5584
5585         [BZ #14153]
5586         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5587         for |x| <= 2**-26, not 2**-57.
5588         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5589         exception.
5590
5591 2012-05-24  Jeff Law  <law@redhat.com>
5592
5593         * stdio-common/Makefile (tests): Add bug25.
5594         * stdio-common/bug25.c: New test.
5595
5596 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5597
5598         [BZ #13576]
5599         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5600         multiple of MALLOC_ALIGNMENT in size.
5601         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5602
5603 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5604
5605         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5606         Require >= 256.
5607         (FILENAME_MAX): Use macro-int-constant.
5608         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5609         (_IOFBF): Use macro-int-constant.
5610         (_IOLBF): Likewise.
5611         (_IONBF): Likewise.
5612         (SEEK_CUR): Likewise.
5613         (SEEK_END): Likewise.
5614         (SEEK_SET): Likewise.
5615         (TMP_MAX): Likewise.
5616         (EOF): Use macro-int-constant.  Require < 0.
5617         (NULL): Use macro-constant.  Require == 0.
5618         (stdin): Require type to be FILE *.
5619         (stdout): Likewise.
5620         (stderr): Likewise.
5621         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5622         macro-int-constant.
5623         (EXIT_SUCCESS): Likewise.
5624         (NULL): Use macro-constant.  Require == 0.
5625         (RAND_MAX): Use macro-int-constant.
5626         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5627         [C99-based standards] (strtof): Require function.
5628         [C99-based standards] (strtold): Likewise.
5629         [C99-based standards] (strtoll): Likewise.
5630         [C99-based standards] (strtoull): Likewise.
5631         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5632         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5633         [ISO || ISO99 || ISO11] (math.h): Likewise.
5634         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5635         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5636         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5637
5638 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5639
5640         [BZ #14132]
5641         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5642         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5643         * intl/dgettext.c (DCGETTEXT): Likewise.
5644         * intl/gettext.c (DCGETTEXT): Likewise.
5645         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5646         * posix/regex_internal.h (gettext): Likewise.
5647         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5648         Remove declaration.
5649         * include/argz.h (__argz_count_internal)
5650         (__argz_stringify_internal): Remove declaration.
5651         (__argz_count, __argz_stringify): Declare hidden proto.
5652         * intl/dcgettext.c: Remove use of INTDEF.
5653         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5654         * string/argz-stringify.c: Likewise.
5655         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5656         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5657         Declare hidden proto.
5658         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5659         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5660         Declare hidden proto.
5661         * include/stdio.h (__asprintf_internal): Don't declare.
5662         (__asprintf): Don't define as macro.  Declare hidden proto.
5663         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5664         (__fsetlocking): Declare hidden proto.
5665         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5666         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5667         hidden proto.
5668         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5669         (_IO_setlinebuf): Remove use of INTUSE.
5670         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5671         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5672         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5673         Remove declaration.
5674         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5675         (_IO_do_flush): Remove use of INTUSE.
5676         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5677         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5678         (_IO_adjust_column, _IO_least_wmarker)
5679         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5680         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5681         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5682         (_IO_default_doallocate, _IO_wdefault_doallocate)
5683         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5684         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5685         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5686         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5687         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5688         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5689         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5690         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5691         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5692         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5693         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5694         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5695         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5696         proto.
5697         (_IO_flush_all_internal, _IO_adjust_column_internal)
5698         (_IO_default_uflow_internal, _IO_default_finish_internal)
5699         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5700         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5701         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5702         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5703         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5704         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5705         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5706         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5707         (_IO_file_close_internal, _IO_file_close_it_internal)
5708         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5709         (_IO_file_init_internal, _IO_file_attach_internal)
5710         (_IO_file_fopen_internal, _IO_file_read_internal)
5711         (_IO_file_sync_internal, _IO_file_seek_internal)
5712         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5713         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5714         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5715         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5716         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5717         (_IO_list_all_internal, _IO_link_in_internal)
5718         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5719         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5720         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5721         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5722         (_IO_do_write_internal, _IO_padn_internal)
5723         (_IO_getline_info_internal, _IO_getline_internal)
5724         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5725         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5726         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5727         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5728         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5729         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5730         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5731         with libc_hidden_ver, remove use of INTUSE.
5732         * libio/genops.c: Likewise.
5733         * libio/freopen.c: Likewise.
5734         * libio/freopen64.c: Likewise.
5735         * libio/iofclose.c: Likewise.
5736         * libio/iofdopen.c: Likewise.
5737         * libio/iofflush.c: Likewise.
5738         * libio/iofflush_u.c: Likewise.
5739         * libio/iofgets.c: Likewise.
5740         * libio/iofgets_u.c: Likewise.
5741         * libio/iofopen.c: Likewise.
5742         * libio/iofopncook.c: Likewise.
5743         * libio/iofread.c: Likewise.
5744         * libio/iofread_u.c: Likewise.
5745         * libio/ioftell.c: Likewise.
5746         * libio/iofwrite.c: Likewise.
5747         * libio/iogetline.c: Likewise.
5748         * libio/iogets.c: Likewise.
5749         * libio/iogetwline.c: Likewise.
5750         * libio/iopadn.c: Likewise.
5751         * libio/iopopen.c: Likewise.
5752         * libio/ioseekoff.c: Likewise.
5753         * libio/ioseekpos.c: Likewise.
5754         * libio/iosetbuffer.c: Likewise.
5755         * libio/iosetvbuf.c: Likewise.
5756         * libio/ioungetc.c: Likewise.
5757         * libio/ioungetwc.c: Likewise.
5758         * libio/iovdprintf.c: Likewise.
5759         * libio/iovsprintf.c: Likewise.
5760         * libio/iovsscanf.c: Likewise.
5761         * libio/memstream.c: Likewise.
5762         * libio/obprintf.c: Likewise.
5763         * libio/oldfileops.c: Likewise.
5764         * libio/oldiofclose.c: Likewise.
5765         * libio/oldiofdopen.c: Likewise.
5766         * libio/oldiofopen.c: Likewise.
5767         * libio/oldiopopen.c: Likewise.
5768         * libio/oldstdfiles.c: Likewise.
5769         * libio/putc.c: Likewise.
5770         * libio/setbuf.c: Likewise.
5771         * libio/setlinebuf.c: Likewise.
5772         * libio/stdfiles.c: Likewise.
5773         * libio/strops.c: Likewise.
5774         * libio/vasprintf.c: Likewise.
5775         * libio/vscanf.c: Likewise.
5776         * libio/vsnprintf.c: Likewise.
5777         * libio/vswprintf.c: Likewise.
5778         * libio/wfiledoalloc.c: Likewise.
5779         * libio/wfileops.c: Likewise.
5780         * libio/wgenops.c: Likewise.
5781         * libio/wmemstream.c: Likewise.
5782         * libio/wstrops.c: Likewise.
5783         * libio/__fpurge.c: Likewise.
5784         * libio/__fsetlocking.c: Likewise.
5785         * assert/assert.c: Likewise.
5786         * debug/fgets_chk.c: Likewise.
5787         * debug/fgets_u_chk.c: Likewise.
5788         * debug/fread_chk.c: Likewise.
5789         * debug/fread_u_chk.c: Likewise.
5790         * debug/gets_chk.c: Likewise.
5791         * debug/obprintf_chk.c: Likewise.
5792         * debug/vasprintf_chk.c: Likewise.
5793         * debug/vdprintf_chk.c: Likewise.
5794         * debug/vsnprintf_chk.c: Likewise.
5795         * debug/vsprintf_chk.c: Likewise.
5796         * malloc/mtrace.c: Likewise.
5797         * misc/error.c: Likewise.
5798         * misc/syslog.c: Likewise.
5799         * stdio-common/asprintf.c: Likewise.
5800         * stdio-common/fxprintf.c: Likewise.
5801         * stdio-common/getw.c: Likewise.
5802         * stdio-common/isoc99_fscanf.c: Likewise.
5803         * stdio-common/isoc99_scanf.c: Likewise.
5804         * stdio-common/isoc99_vfscanf.c: Likewise.
5805         * stdio-common/isoc99_vscanf.c: Likewise.
5806         * stdio-common/isoc99_vsscanf.c: Likewise.
5807         * stdio-common/printf-prs.c: Likewise.
5808         * stdio-common/printf_fp.c: Likewise.
5809         * stdio-common/printf_fphex.c: Likewise.
5810         * stdio-common/printf_size.c: Likewise.
5811         * stdio-common/putw.c: Likewise.
5812         * stdio-common/scanf.c: Likewise.
5813         * stdio-common/sprintf.c: Likewise.
5814         * stdio-common/tmpfile.c: Likewise.
5815         * stdio-common/vfprintf.c: Likewise.
5816         * stdio-common/vfscanf.c: Likewise.
5817         * stdlib/strfmon_l.c: Likewise.
5818         * sunrpc/openchild.c: Likewise.
5819         * sunrpc/xdr_stdio.c: Likewise.
5820         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5821         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5822
5823 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5824
5825         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5826
5827         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5828         in the third column, to generate for the shared library an IFUNC
5829         that uses _dl_vdso_vsym.
5830         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5831         * Makeconfig (object-suffixes-noshared): New variable.
5832
5833         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5834         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5835         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5836         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5837
5838         [BZ #14132]
5839         * include/sys/time.h (__gettimeofday): Remove macro.
5840         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5841         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5842         Remove INTDEF.
5843         (__gettimeofday): Add libc_hidden_def.
5844         (gettimeofday): Add libc_hidden_weak.
5845         * sysdeps/mach/gettimeofday.c: Likewise.
5846         * sysdeps/posix/gettimeofday.c: Likewise.
5847         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5848         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5849         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5850         (__gettimeofday_internal): Remove strong_alias.
5851         (__gettimeofday): Add libc_hidden_def.
5852         (gettimeofday): Add libc_hidden_weak.
5853         * sysdeps/unix/syscalls.list (gettimeofday):
5854         Remove __gettimeofday_internal alias.
5855
5856 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5857             H.J. Lu  <hongjiu.lu@intel.com>
5858
5859         [BZ #12495]
5860         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5861         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5862         (largebin_index_32_big): New.
5863         (largebin_index): Use it for 16-byte alignment.
5864         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5865         correction with front_misalign.
5866
5867 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5868
5869         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5870         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5871         Likewise.
5872         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5873         Likewise.
5874         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5875         Likewise.
5876         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5877         Likewise.
5878         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5879         Likewise.
5880         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5881         Likewise.
5882         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5883         Likewise.
5884         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5885         Likewise.
5886         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5887         Likewise.
5888         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5889         Likewise.
5890         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5891         Likewise.
5892         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5893         Likewise.
5894
5895         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5896         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5897
5898 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5899
5900         [BZ #10846]
5901         [BZ #14036]
5902         * math/libm-test.inc (exp_test): Add test from bug 14036.
5903         (pow_test): Add test from bug 10846.
5904
5905         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5906         and other flags.
5907         (special_function): Do not include flags in test name.
5908         (parse_args): Likewise.
5909         * sysdeps/i386/fpu/libm-test-ulps: Update.
5910         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5911         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5912         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5913         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5914
5915         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5916         exceptions.
5917         * math/libm-test.inc ("Philosophy"): Update comment about
5918         exception testing.
5919         (UNDERFLOW_EXCEPTION): New macro.
5920         (UNDERFLOW_EXCEPTION_OK): Likewise.
5921         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5922         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5923         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5924         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5925         (INVALID_EXCEPTION_OK): Update value.
5926         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5927         (OVERFLOW_EXCEPTION_OK): Likewise.
5928         (IGNORE_ZERO_INF_SIGN): Likewise.
5929         (test_exceptions): Handle underflow exceptions.
5930         (acos_test): Update for underflow exception expectations.
5931         (cexp_test): Likewise.
5932         (clog_test): Likewise.
5933         (clog10_test): Likewise.
5934         (csqrt_test): Likewise.
5935         (ctan_test): Likewise.
5936         (ctanh_test): Likewise.
5937         (exp_test): Likewise.
5938         (exp10_test): Likewise.
5939         (exp2_test): Likewise.
5940         (expm1_test): Likewise.
5941         (fma_test): Likewise.
5942         (j0_test): Likewise.
5943         (jn_test): Likewise.
5944         (nexttoward_test): Likewise.
5945         (pow_test): Likewise.
5946         (scalbn_test): Likewise.
5947         (scalbln_test): Likewise.
5948         (tan_test): Likewise.
5949         (y1_test): Likewise.
5950         * sysdeps/i386/fpu/libm-test-ulps: Update.
5951         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5952
5953 2012-05-23  David S. Miller  <davem@davemloft.net>
5954
5955         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5956         (__libc_sigaction): Remove unused local variables.
5957
5958 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5959
5960         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5961
5962 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5963
5964         mktime: avoid signed integer overflow
5965         * time/mktime.c (__mktime_internal): Do not mishandle the case
5966         where diff == INT_MIN.
5967
5968         mktime: simplify computation of average
5969         * time/mktime.c (ranged_convert): Use new time_t_avg function
5970         instead of rolling our own (probably-slower) code.
5971
5972         mktime: do not assume signed right shift propagates sign bit
5973         * time/mktime.c (isdst_differ): New static function.
5974         (__mktime_internal): No need to normalize tm_isdst now.
5975         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5976         tm_isdst values.
5977
5978         mktime: merge another wrapv change from gnulib
5979         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5980         from some compilers.
5981
5982         mktime: remove incorrect attempt at unusual arithmetics
5983         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5984         The code didn't really work on such machines anyway.
5985         (TYPE_MINIMUM): Assume two's complement.
5986         (twos_complement_arithmetic): Verify that long_int and time_t
5987         are two's complement (or unsigned, in the latter case).
5988
5989         mktime: check signed shifts on long_int and time_t, too
5990         * time/mktime.c (SHR): Check that shifts work as desired
5991         on the types long_int and time_t too, as SHR is used on
5992         such types.
5993
5994         mktime: do not assume 'long' is wide enough
5995         * time/mktime.c (verify): Move decl up.
5996         (long_int): New type.
5997         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5998         to remove assumption in the code that 'long' is wide enough to
5999         store year values.  This assumption is not true on x32 and on
6000         some non-glibc platforms.
6001
6002         mktime: merge wrapv change from gnulib
6003         * time/mktime.c (WRAPV): New macro.
6004         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
6005         (guess_time_tm, __mktime_internal): Do not assume that signed
6006         integer overflow wraps around; modern compilers generate code
6007         where this assumption is no longer valid.
6008
6009 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6010
6011         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6012         Replace "jmp L(pseudo_end)" with "ret".
6013         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6014         Likewise.
6015
6016 2012-05-23  Andreas Jaeger  <aj@suse.de>
6017
6018         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
6019         * sysdeps/unix/sysv/linux/poll.c: Remove file.
6020
6021 2012-05-23  Andreas Jaeger  <aj@suse.de>
6022             Maximilian Attems  <max@stro.at>
6023
6024         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
6025         New macros.
6026
6027 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6028
6029         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
6030         code so that pseudo_end is just ret and the stack pointer is
6031         correct also for static library in error case.
6032
6033 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
6034
6035         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
6036         move to syscalls.list.
6037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
6038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
6039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
6040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
6041
6042         * manual/install.texi (Running make install): Do not mention Linux
6043         kernel version for which pt_chown is not needed.
6044         (Linux): Do not mention problems with nscd with 2.0 kernels.
6045         * INSTALL: Regenerated.
6046
6047 2012-05-23  Andreas Jaeger  <aj@suse.de>
6048
6049         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
6050         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
6051         macro.
6052         * sysdeps/unix/sysv/linux/s390/bits/mman.h
6053         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6054         * sysdeps/unix/sysv/linux/sh/bits/mman.h
6055         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6056         * sysdeps/unix/sysv/linux/i386/bits/mman.h
6057         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6058         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
6059         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6060         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
6061         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6062         * sysdeps/unix/sysv/linux/bits/in.h
6063         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
6064
6065 2012-05-22  Roland McGrath  <roland@hack.frob.com>
6066
6067         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
6068         (PREPARE_VERSION): Just use assert instead, it will be elided
6069         under [NDEBUG] anyway.
6070
6071 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6072
6073         * sysdeps/unix/sysv/linux/Makefile: Include
6074         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
6075         (sysdep_routines): Remove sysctl.
6076         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
6077         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
6078         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
6079         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
6080         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
6081
6082 2012-05-22  Andreas Jaeger  <aj@suse.de>
6083
6084         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
6085         that pseudo_end is just ret and the stack pointer is correct also
6086         for static library in error case.
6087
6088 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
6089
6090         [BZ #14122]
6091         * nss/nsswitch.c (defconfig_entries): New variable.
6092         (__nss_database_lookup): Don't leak defconfig entries.
6093         (nss_parse_service_list): Don't leak on error paths.
6094         (free_database_entries): New function.
6095         (free_defconfig): New function.
6096         (free_mem): Move common code to free_database_entries.
6097
6098 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6099
6100         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
6101         Add arch_prctl.
6102         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6103
6104         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6105         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
6106         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
6107         New macro.
6108         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6109         (INTERNAL_SYSCALL_TYPES): Likewise.
6110         (LOAD_ARGS_TYPES_[1-6]): Likewise.
6111         (LOAD_REGS_TYPES_[1-6]): Likewise.
6112         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
6113         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
6114
6115 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6116
6117         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
6118         copysignl for GLIBC_2_0.
6119         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
6120         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
6121         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
6122         logbl for GLIBC_2_0.
6123         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
6124         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
6125
6126 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6127
6128         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
6129         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6130
6131         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6132         Use "neg %eax".
6133
6134         * time/mktime.c: Update copyright years.
6135
6136 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6137
6138         mktime: merge comment-quoting-style change from gnulib
6139         * time/mktime.c: Quote 'like this' in comments.
6140         The GNU coding standards suggest that we no longer quote `like this',
6141         as "`" and "'" are typically rendered asymmetrically nowadays.
6142         The typical gnulib style is to quote 'like this' when quoting
6143         code, and "like this" when quoting English.
6144
6145         * time/mktime.c (compile-command): Add "-I.".
6146
6147         mktime: merge mktime-internal.h change from gnulib
6148         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
6149
6150         mktime: merge time_r change from gnulib
6151         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
6152
6153         mktime: merge DEBUG change from gnulib
6154         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
6155         case system <time.h> has a #define.
6156
6157         mktime: merge <sys/types.h> change from gnulib
6158         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
6159         since <time.t> is now guaranteed to define time_t.
6160
6161         mktime: merge HAVE_CONFIG_H change from gnulib
6162         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6163
6164 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6165
6166         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6167         Use "neg %eax".
6168
6169         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6170         __rlim_t cast.
6171         (struct rusage): Use anonymous union to pad each field to
6172         __syscall_slong_t.
6173
6174 2012-05-21  David S. Miller  <davem@davemloft.net>
6175
6176         * Makefules (o-iterator): Remove .s cases.
6177         (compile-command.s): Delete.
6178         (COMPILE.s): Delete.
6179         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6180
6181 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6182
6183         * configure.in (libc_cv_predef_stack_protector): Only consider
6184         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6185         * configure: Regenerated.
6186
6187 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6188
6189         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6190         New macro.  Use R*LP on int and pointer.
6191         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6192         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6193         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6194         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6195
6196         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6197         [__WORDSIZE_TIME64_COMPAT32] instead of
6198         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6199         (struct utmp): Likewise.
6200         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6201         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6202         Renamed to ...
6203         (__WORDSIZE_TIME64_COMPAT32): This.
6204         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6205         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6206         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6207         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6208         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6209         (__WORDSIZE_TIME64_COMPAT32): New macro.
6210
6211 2012-05-21  Andreas Jaeger  <aj@suse.de>
6212
6213         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6214         only if [SHARED]. Add prototype for __wcschr_ia32.
6215
6216 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6217
6218         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6219         of %rbp unmolested in the jmp_buf while mangling the low bits.
6220         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6221         unmolested high bits of %rbp while demangling the low bits.
6222         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6223
6224 2012-05-21  Andreas Jaeger  <aj@suse.de>
6225
6226         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6227         * sunrpc/svc_simple.c: Use it for registerrpc.
6228         * sunrpc/xcrypt.c: Use it for passwd2des.
6229
6230         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6231
6232 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6233
6234         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6235         Don't define if [__SYSCALL_WORDSIZE != 32].
6236         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6237         New macro.
6238
6239 2012-05-21  Bruno Haible  <bruno@clisp.org>
6240             Andreas Jaeger  <aj@suse.de>
6241
6242         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6243         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6244         inptr and inend for must_buffer_ch.
6245         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6246         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6247         * stdio-common/Makefile (tests): Remove bug15.
6248         (bug15-ENV): Remove macro.
6249         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6250         anymore.
6251
6252 2012-05-19  Andreas Jaeger  <aj@suse.de>
6253             Roland McGrath  <roland@hack.frob.com>
6254
6255         * manual/contrib.texi: Completely rewritten. It contains now an
6256         alphabetical list of contributors and their contributions.
6257
6258 2012-05-21  Richard Henderson  <rth@twiddle.net>
6259
6260         * misc/getauxval.c (__getauxval): Use unsigned long int.
6261         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6262         (getauxval): Use unsigned long int.
6263
6264 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6265
6266         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6267
6268 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6269
6270         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6271         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6272         __alignof__ (long double).
6273
6274 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6275
6276         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6277
6278 2012-05-20  Richard Henderson  <rth@twiddle.net>
6279
6280         * misc/getauxval.c: New file.
6281         * misc/sys/auxv.h: New file.
6282         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6283         (routines): Add getauxval.
6284         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6285         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6286         * elf/dl-sysdep.c (_dl_auxv): Remove.
6287         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6288         * elf/dl-support.c (_dl_auxv): New variable.
6289         (_dl_aux_init): Initialize it.
6290         * manual/startup.texi (Auxiliary Vector): New node.
6291         * sysdeps/generic/bits/hwcap.h: New file.
6292         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6293         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6294         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6295         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6296         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6297         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6299         Update.
6300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6301         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6302         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6303         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6304         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6305         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6306         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6307         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6308
6309 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6310
6311         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6312
6313 2012-05-19  David S. Miller  <davem@davemloft.net>
6314
6315         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6316
6317 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6318
6319         [BZ #14123]
6320         * math/s_ccosh.c: Include <float.h>
6321         (__ccosh): Avoid internal overflow calculating sinh and cosh
6322         values before multiplying by sin and cos values.
6323         * math/s_ccoshf.c: Likewise.
6324         * math/s_ccoshl.c: Likewise.
6325         * math/s_csin.c: Likewise.
6326         * math/s_csinf.c: Likewise.
6327         * math/s_csinl.c: Likewise.
6328         * math/s_csinh.c: Likewise.
6329         * math/s_csinhf.c: Likewise.
6330         * math/s_csinhl.c: Likewise.
6331         * math/libm-test.inc (ccos_test): Add more tests.
6332         (ccosh_test): Likewise.
6333         (csin_test): Likewise.
6334         (csinh_test): Likewise.
6335         * sysdeps/i386/fpu/libm-test-ulps: Update.
6336         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6337
6338 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6339
6340         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6341         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6342
6343         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6344
6345 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6346
6347         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6348         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6349         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6350         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6351         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6352         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6353         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6354         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6355         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6356         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6357         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6358         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6359         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6360         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6361         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6362         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6363         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6364         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6365         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6366         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6367         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6368         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6369         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6370         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6371         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6372         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6373         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6374         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6375         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6376         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6377         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6378
6379 2012-05-18  Andreas Jaeger  <aj@suse.de>
6380
6381         * csu/.gitignore: Delete.
6382
6383 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6384
6385         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6386         (timex): Use __syscall_slong_t.
6387
6388 2012-05-18  Andreas Jaeger  <aj@suse.de>
6389             Carlos O'Donell  <carlos_odonell@mentor.com>
6390
6391         * manual/install.texi (Configuring and compiling): Update
6392         description about files modified in the source directory.
6393         * INSTALL: Regenerated.
6394
6395 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6396
6397         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6398         value.  Use "or" to set return value to -1.
6399         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6400         negate return value.
6401
6402 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6403
6404         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6405         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6406         failure if the compiler has Graphite support disabled.
6407         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6408         Likewise.
6409         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6410         CFLAGS-memmove.c): Likewise.
6411         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6412         Likewise.
6413
6414 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6415
6416         * sysdeps/x86_64/x32/_itoa.h: New file.
6417
6418         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6419         getdents system call only if kernel and user dirents have the
6420         same d_ino and d_off.
6421
6422         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6423         LLONG_MAX != LONG_MAX.
6424         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6425         (_fitoa_word): Likewise.
6426
6427         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6428         years.
6429         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6430         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6431         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6432
6433         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6434         include <bits/wordsize.h>.  Check __x86_64__ instead of
6435         __WORDSIZE.
6436         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6437         if __x86_64__ is defined.  Use anonymous union on fpstate.
6438
6439         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6440         anonymous union.
6441
6442 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6443
6444         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6445         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6446         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6447         Refer to _rtld_local_ro instead of _rtld_global_ro.
6448         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6449         Likewise.
6450         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6451         Likewise.
6452         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6453         Likewise.
6454         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6455         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6456         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6457
6458         * sysdeps/powerpc/powerpc32/dl-machine.c
6459         (__elf_machine_runtime_setup) [PROF]: Don't reference
6460         _dl_prof_resolve.
6461
6462 2012-05-18  Andreas Jaeger  <aj@suse.de>
6463
6464         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6465         function only available for GCCs before 3.4 since GCC 3.4
6466         introduced a builtin.
6467         (lrint): Likewise.
6468         (llrintf): Likewise.
6469         (llrint): Likewise.
6470         (fmaxf): Likewise.
6471         (fmax): Likewise.
6472         (fminf): Likewise.
6473         (fmin): Likewise.
6474         (rint): Likewise.
6475         (rintf): Likewise.
6476         (nearbyint): Likewise.
6477         (nearbyintf): Likewise.
6478         (ceil): Likewise.
6479         (ceilf): Likewise.
6480         (floor): Likewise.
6481         (floorf): Likewise.
6482
6483 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6484
6485         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6486         on both fields and cast pointer to __syscall_ulong_t.
6487
6488         * bits/types.h (__fsword_t): New type.
6489         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6490         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6491         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6492         (__FSWORD_T_TYPE): Likewise.
6493         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6494         (__FSWORD_T_TYPE): Likewise.
6495         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6496         (__FSWORD_T_TYPE): Likewise.
6497         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6498         (__FSWORD_T_TYPE): Likewise.
6499         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6500         __SWORD_TYPE with __fsword_t.
6501         (statfs64): Likewise.
6502
6503 2012-05-17  David S. Miller  <davem@davemloft.net>
6504
6505         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6506
6507 2012-05-17  Andreas Jaeger  <aj@suse.de>
6508
6509         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6510         warning.
6511
6512 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6513
6514         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6515
6516 2012-05-17  Andreas Jaeger  <aj@suse.de>
6517
6518         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6519         when it is used.
6520
6521 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6522
6523         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6524
6525 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6526
6527         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6528         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6529
6530 2012-05-17  Andreas Jaeger  <aj@suse.de>
6531             Carlos O'Donell  <carlos_odonell@mentor.com>
6532
6533         [BZ #14059]
6534         * sysdeps/x86_64/multiarch/init-arch.h
6535         (bit_YMM_Usable): Rename to...
6536         (bit_AVX_Usable): ... this.
6537         (bit_FMA4_Usable): New macro.
6538         (bit_XMM_state): New macro.
6539         (bit_YMM_state): New macro.
6540         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6541         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6542         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6543         (CPUID_OSXSAVE): New macro.
6544         (CPUID_AVX): New macro.
6545         (CPUID_FMA4): New macro.
6546         (index_YMM_Usable): Rename to...
6547         (index_AVX_Usable): ... this.
6548         (HAS_AVX): Use HAS_ARCH_FEATURE.
6549         (HAS_FMA4): Likewise.
6550         (HAS_YMM_USABLE): Remove.
6551         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6552         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6553         are present.
6554         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6555         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6556         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6557         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6558         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6559
6560 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6561
6562         * math/libm-test.c: Support platforms without multiple rounding modes.
6563         * math/bug-nextafter.c: Support platforms without FP exceptions.
6564         * math/bug-nexttoward.c: Likewise.
6565         * math/test-fenv.c: Likewise.
6566         * math/test-misc.c: Likewise.
6567         * stdlib/bug-getcontext.c: Likewise.
6568
6569 2012-05-17  Andreas Jaeger  <aj@suse.de>
6570
6571         * manual/examples/search.c (critter_cmp): Change signature to
6572         avoid warnings.
6573         * manual/string.texi (Collation Functions): Likewise.
6574
6575 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6576
6577         * bits/types.h: Fold copyright years.
6578         * bits/typesizes.h: Likewise.
6579         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6580         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6581         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6582         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6583         * time/time.h: Likewise.
6584
6585 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6586
6587         [BZ #208]
6588         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6589         in instead of returning them.  Return void.
6590         (__libc_mallinfo): Accumulate over all arenas.
6591         (__malloc_stats): Adjust for change in int_mallinfo interface.
6592
6593 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6594
6595         [BZ #10375]
6596         * configure.in (NM): Add AC_CHECK_TOOL for it.
6597         (libc_extra_cflags): New substituted variable.
6598         Check for -fstack-protector being used implicitly.
6599         * configure: Regenerated.
6600         * config.make.in (config-extra-cflags): New variable,
6601         gets @libc_extra_cflags@.
6602         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6603
6604         [BZ #10375]
6605         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6606         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6607         * configure: Regenerated.
6608         * config.make.in (CPPUNDEFS): New substituted variable.
6609         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6610         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6611         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6612
6613 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6614
6615         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6616         (mq_attr): Use __syscall_slong_t.
6617
6618 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6619
6620         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6621         Check __x86_64__ instead of __WORDSIZE.
6622         (_STAT_VER_LINUX): Likewise.
6623         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6624         __syscall_ulong_t and __syscall_slong_t.
6625         (stat64): Likewise.
6626
6627 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6628
6629         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6630
6631 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6632
6633         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6634
6635 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6636
6637         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6638         __syscall_ulong_t.
6639
6640         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6641         include <bits/wordsize.h>.  Check __x86_64__ instead of
6642         __WORDSIZE.
6643         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6644         defined.
6645         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6646
6647         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6648         include <bits/wordsize.h>.  Check __x86_64__ instead of
6649         __WORDSIZE.
6650         (user_regs_struct): Use "__extension__ unsigned long long"
6651         instead of "unsigned long" if __x86_64__ is defined.
6652         (user): Likewise.  Pad after pointer field if __ILP32__ is
6653         defined.
6654
6655 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6656
6657         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6658         versions 5 to 9.
6659         * configure: Regenerated.
6660         * manual/install.texi (texinfo): Increase version requirement to
6661         4.5 or later.
6662         * INSTALL: Regenerated.
6663
6664         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6665
6666 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6667
6668         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6669
6670         * sysdeps/x86_64/x32/ffs.c: New file.
6671
6672         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6673         __syscall_ulong_t.
6674         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6675         defined.  Use __syscall_ulong_t.
6676         (shminfo): Use __syscall_ulong_t.
6677         (shm_info): Likewise.
6678
6679         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6680         __syscall_ulong_t.
6681
6682         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6683         <bits/wordsize.h>.
6684         (msgqnum_t): Use __syscall_ulong_t.
6685         (msglen_t): Likewise.
6686         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6687         __syscall_ulong_t.
6688
6689         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6690         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6691
6692         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6693
6694         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6695         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6696
6697         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6698         __syscall_slong_t.
6699
6700         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6701         include <bits/wordsize.h>.  Check __x86_64__ instead of
6702         __WORDSIZE.
6703
6704         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6705         "unsigned long long int" if __x86_64__ is defined.
6706         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6707
6708         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6709         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6710         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6711
6712         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6713         <stdint.h>.
6714         (GET_PC): Cast to uintptr_t first.
6715         (GET_FRAME): Likewise.
6716         (GET_STACK): Likewise.
6717
6718         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6719         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6720         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6721         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6722         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6723         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6724         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6725         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6726         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6727         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6728         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6729         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6730         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6731         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6732         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6733         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6734         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6735         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6736         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6737         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6738         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6739         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6740         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6741         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6742         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6743         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6744         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6745         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6746         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6747
6748 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6749
6750         * Makerules (+depfiles): Also collect depfiles from .oS in
6751         $(extra-objs).
6752         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6753         .oS, $(libnldbl-routines)).
6754
6755         * Makerules (native-compile-mkdep-flags): Define.
6756         * sunrpc/Makefile (extra-objs): Add $(addprefix
6757         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6758         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6759         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6760         calling $(make-target-directory).
6761
6762 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6763
6764         * bits/types.h (__snseconds_t): Removed.
6765         * time/time.h (struct timespec): Replace __snseconds_t with
6766         __syscall_slong_t.
6767         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6768         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6769         Likewise.
6770         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6771         (__SNSECONDS_T_TYPE): Likewise.
6772         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6773         (__SNSECONDS_T_TYPE): Likewise.
6774         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6775         (__SNSECONDS_T_TYPE): Likewise.
6776
6777 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6778
6779         * sysdeps/mach/hurd/bits/typesizes.h
6780         (__SYSCALL_SLONG_TYPE): New macro.
6781         (__SYSCALL_ULONG_TYPE): Likewise.
6782
6783 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6784
6785         * bits/types.h (__syscall_slong_t): New type.
6786         (__syscall_ulong_t): Likewise.
6787
6788         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6789         (__SYSCALL_ULONG_TYPE): Likewise.
6790         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6791         (__SYSCALL_SLONG_TYPE): Likewise.
6792         (__SYSCALL_ULONG_TYPE): Likewise.
6793         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6794         (__SYSCALL_SLONG_TYPE): Likewise.
6795         (__SYSCALL_ULONG_TYPE): Likewise.
6796         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6797         (__SYSCALL_SLONG_TYPE): Likewise.
6798         (__SYSCALL_ULONG_TYPE): Likewise.
6799
6800 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6801
6802         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6803         Add sigaltstack-offsets.sym.
6804         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6805         <sigaltstack-offsets.h>.
6806         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6807         longjmp_msg pointer.
6808         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6809         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6810         signal stack.
6811         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6812
6813 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6814
6815         * elf/stackguard-macros.h: Remove file.
6816         * sysdeps/generic/stackguard-macros.h: New file.
6817         * sysdeps/i386/stackguard-macros.h: Likewise.
6818         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6819         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6820         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6821         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6822         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6823         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6824         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6825         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6826         <elf/stackguard-macros.h>.
6827
6828         [BZ #14109]
6829         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6830         __aligned__ in attribute.
6831         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6832         (gregset_t): Likewise.
6833
6834 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6835
6836         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6837         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6838         * sysdeps/x86_64/x32/Implies-after: New file.
6839
6840 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6841
6842         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6843         and access return value for _dl_profile_fixup.  Use R10_LP to
6844         load frame size.
6845
6846 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6847
6848         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6849
6850 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6851
6852         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6853         * sysdeps/x86_64/x32/sysdep.h: New file.
6854
6855 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6856
6857         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6858         * sysdeps/x86_64/setjmp.S: Likewise.
6859
6860 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6861
6862         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6863         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6864         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6865         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6866         remove unused global constant.
6867
6868 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6869
6870         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6871         include of <not-cancel.h>.
6872
6873 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6874
6875         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6876
6877 2012-05-15  Jeff Law  <law@redhat.com>
6878             Andreas Jaeger  <aj@suse.de>
6879
6880         [BZ #13594]
6881         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6882         out from...
6883         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6884         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6885         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6886         code changing __hst_map_handle.map.
6887
6888 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6889
6890         * configure.in (sysnames): Look for Implies-before and Implies-after
6891         files.
6892         * configure: Regenerated.
6893
6894 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6895
6896         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6897         8-byte data alignment with LP_SIZE alignment.
6898
6899 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6900
6901         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6902         into R10_LP.
6903
6904 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6905
6906         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6907
6908 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6909
6910         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6911         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6912         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6913         Likewise.
6914         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6915
6916 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6917
6918         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6919         (stackinfo_sub_sp): Likewise.
6920
6921 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6922
6923         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6924         RAX_LP.
6925
6926 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6927
6928         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6929         into R*_LP.
6930
6931 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6932
6933         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6934         sizes into R*_LP.
6935
6936 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6937
6938         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6939
6940 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6941
6942         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6943         into R11_LP and load __x86_64_shared_cache_size_half into
6944         R8_LP.
6945
6946 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6947
6948         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6949         R8_LP.
6950
6951 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6952
6953         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6954         logb for POWER7.
6955         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6956         logbf for POWER7.
6957         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6958         logbl for POWER7.
6959         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6960         powerpc32/power7/fpu/s_logb.c via #include.
6961         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6962         powerpc32/power7/fpu/s_logbf.c via #include.
6963         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6964         powerpc32/power7/fpu/s_logbl.c via #include.
6965
6966 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6967
6968         * README.libm: Remove file.
6969
6970 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6971
6972         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6973         count for x32.  Use R*_LP and omit operand-size suffix.
6974
6975 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6976
6977         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6978         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6979         * sysdeps/x86_64/x32/shlib-versions: New file.
6980
6981 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6982
6983         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6984         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6985         Use _dl_fatal_printf instead.
6986
6987 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6988
6989         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6990         set if not set by the user.  Do not allow for being unset.
6991         * sysdeps/unix/sysv/linux/configure: Regenerated.
6992
6993 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6994
6995         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6996         the `q' suffix from lea and replace .quad with ASM_ADDR.
6997
6998 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6999
7000         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
7001         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
7002         instead of $17.
7003         (PTR_DEMANGLE): Likewise.
7004
7005 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7006
7007         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
7008         (LP_OP): Likewise.
7009         (ASM_ADDR): Likewise.
7010         (RAX_LP): Likewise.
7011         (RBP_LP): Likewise.
7012         (RBX_LP): Likewise.
7013         (RCX_LP): Likewise.
7014         (RDI_LP): Likewise.
7015         (RSI_LP): Likewise.
7016         (RSP_LP): Likewise.
7017         (R8_LP): Likewise.
7018         (R9_LP): Likewise.
7019         (R10_LP): Likewise.
7020         (R10_LP): Likewise.
7021         (R11_LP): Likewise.
7022         (R12_LP): Likewise.
7023         (R13_LP): Likewise.
7024         (R14_LP): Likewise.
7025         (R15_LP): Likewise.
7026
7027 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7028
7029         * sysdeps/x86_64/x32/dl-machine.h: New file.
7030
7031 2012-05-14  Andreas Jaeger  <aj@suse.de>
7032
7033         * manual/Makefile (subdir): Remove export of subdir.
7034         (all): Remove target.
7035         (.PHONY): Remove all from list.
7036         (mkinstalldirs): Remove.
7037         (.PHONY): Remove installdirs from list.
7038         ($(inst_infodir)/libc.info): Use make-target-directory.
7039         (installdirs): Remove.
7040         (subdir_%): Remove.
7041         (glibc-targets): Remove.
7042         (lib): Remove.
7043         (stubs): Remove.
7044         ($(objpfx)stubs ../po/manual.pot): Remove.
7045         ($(objpfx)stamp%): Remove.
7046         (make-target-directory): Remove.
7047         (subdir_install): Remove.
7048         (routines): Remove.
7049         (aux): Remove.
7050         (sources): Remove.
7051         (objects): Remove.
7052         (headers): Remove.
7053
7054         [BZ #13750]
7055         * manual/.gitignore: Remove, it's not needed anymore.
7056         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
7057         all files in it.
7058         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
7059         directory.
7060         (texis): Renamed to $(objpfx)texis.
7061         (texis-path): New, contains path to generated files.
7062         (chapters.%): Use texis-path for complete path, add extra argument
7063         libc-texinfo.sh.
7064         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
7065         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
7066         (summary,texi, stamp-summary): Use complete path of
7067         files. Generate files in build dir.
7068         (dir-add.texi): Build in build dir.
7069         (libm-err.texi,stamp-libm-err): Likewise.
7070         (version.texi, stamp-version): Likewise.
7071         (.%c.texi): Likewise.
7072         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
7073         (mostlyclean): Remove target.
7074         (realclean): Remove target.
7075         (generated): Add new variable with contents from mostlyclean and
7076         realclean, remove entries duplicated in common-mostlyclean, add
7077         stamp-libm-err and stamp-version.
7078         (generated-dirs): Add libc directory.
7079         ($(inst_infodir)/libc.info): Install files from build dir.
7080
7081         * manual/install.texi (Configuring and compiling): Adjust since
7082         the info files are not part of the tar ball anymore.
7083
7084 2012-05-14  Andreas Jaeger  <aj@suse.de>
7085
7086         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
7087         variable.
7088
7089 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7090
7091         [BZ #13717]
7092         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7093         to 2.2.0 where earlier.
7094         * sysdeps/unix/sysv/linux/configure: Regenerated.
7095         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
7096         Remove conditional code.
7097         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
7098         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
7099         Remove conditional code.
7100         [!__NR_lchown]: Likewise.
7101         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7102         [__NR_lchown]: Likewise.
7103         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
7104         comment referencing __ASSUME_LCHOWN_SYSCALL.
7105         * sysdeps/unix/sysv/linux/i386/sigaction.c
7106         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7107         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7108         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
7109         Remove conditional code.
7110         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
7111         (__protocol_available): Remove #if 0 code.
7112         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
7113         conditional code.
7114         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
7115         * sysdeps/unix/sysv/linux/kernel-features.h
7116         (__ASSUME_GETCWD_SYSCALL): Don't define.
7117         (__ASSUME_REALTIME_SIGNALS): Likewise.
7118         (__ASSUME_PREAD_SYSCALL): Likewise.
7119         (__ASSUME_PWRITE_SYSCALL): Likewise.
7120         (__ASSUME_POLL_SYSCALL): Likewise.
7121         (__ASSUME_LCHOWN_SYSCALL): Likewise.
7122         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
7123         non-SPARC.
7124         (__ASSUME_SIOCGIFNAME): Don't define.
7125         (__ASSUME_MSG_NOSIGNAL): Likewise.
7126         (__ASSUME_SENDFILE): Define unconditionally.
7127         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
7128         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
7129         conditional code.
7130         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
7131         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
7132         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7133         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7134         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
7135         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7136         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
7138         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7139         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
7141         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7142         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
7144         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7145         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
7147         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7148         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7149         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
7150         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7151         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
7153         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7154         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
7156         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7157         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7158         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
7159         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7160         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7161         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7162         Remove conditional code.
7163         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7164         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7165         Remove conditional code.
7166         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7167         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7168         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7169         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7170         Remove conditional code.
7171         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7172         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7173         Remove conditional code.
7174         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7175         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7176         Remove conditional code.
7177         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7178         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7179         Remove conditional code.
7180         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7181         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7182         Remove conditional code.
7183         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7184         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7185         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7186         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7187         * sysdeps/unix/sysv/linux/sigaction.c
7188         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7189         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7190         * sysdeps/unix/sysv/linux/sigpending.c
7191         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7192         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7193         * sysdeps/unix/sysv/linux/sigprocmask.c
7194         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7195         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7196         * sysdeps/unix/sysv/linux/sigsuspend.c
7197         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7198         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7199         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7200         (__libc_missing_rt_sigs): Remove.
7201         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7202         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7203         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7204         Remove conditional code.
7205         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7206         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7207         return 1.
7208         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7209         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7210         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7211         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7212
7213 2012-05-14  Andreas Jaeger  <aj@suse.de>
7214
7215         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7216         it's not used in glibc.
7217         (__coshm1): Likewise.
7218         (__acosh1p): Likewise.
7219         (__sgn): Likewise.
7220
7221         * manual/string.texi (Copying and Concatenation): Add missing
7222         variable in concat example.
7223         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7224
7225 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7226
7227         [BZ #14103]
7228         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7229         __builtin_clzl with __builtin_clzll.
7230
7231 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7232
7233         [BZ #14104]
7234         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7235         libc_freeres_ptr.
7236
7237 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7238
7239         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7240         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7241         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7242         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7243
7244 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7245
7246         * NEWS: Update ia64 info.
7247
7248 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7249
7250         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7251         used as bcopy.
7252
7253 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7254
7255         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7256         * sysdeps/unix/syscalls.list (dup3): Likewise.
7257         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7258         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7259
7260 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7261
7262         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7263         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7264
7265 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7266
7267         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7268         thread pointer.
7269         (TLS_IE): Use mov/add instead of movq/addq to load thread
7270         pointer.
7271         (TLS_GD_PREFIX): New.
7272         (TLS_GD): Use it.
7273
7274 2012-05-11  David S. Miller  <davem@davemloft.net>
7275
7276         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7277         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7278         (_FPU_SETCW): Likewise.
7279
7280 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7281
7282         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7283         is 32-byte aligned.
7284
7285 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7286
7287         [BZ #11837]
7288         * iconvdata/gb18030.c: Update tables.
7289         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7290         characters specially.
7291         (BODY for TO_LOOP): Add encoding of missing ranges.
7292
7293 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7294
7295         [BZ #13673]
7296         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7297         * sysdeps/mach/hurd/dup3.c: Likewise.
7298         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7299         * sysdeps/powerpc/memmove.c:: Likewise.
7300
7301 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7302
7303         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7304         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7305
7306 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7307
7308         * elf/elf.h (R_X86_64_RELATIVE64): New.
7309         (R_X86_64_NUM): Updated.
7310         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7311         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7312         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7313         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7314         tst-quad1pie tst-quad2pie
7315         (modules-names): Add tst-quadmod1 tst-quadmod2.
7316         ($(objpfx)tst-quad1): New dependency.
7317         ($(objpfx)tst-quad2): Likewise.
7318         ($(objpfx)tst-quad1pie): Likewise.
7319         ($(objpfx)tst-quad2pie): Likewise.
7320         * sysdeps/x86_64/tst-quad1.c: New file.
7321         * sysdeps/x86_64/tst-quad1pie.c: New file.
7322         * sysdeps/x86_64/tst-quad2.c: Likewise.
7323         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7324         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7325         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7326         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7327         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7328
7329 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7330
7331         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7332         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7333         * streams/stropts.h (t_scalar_t): Define type.
7334
7335         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7336         (_PATH_PRESERVE): Set to "/var/lib".
7337         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7338
7339         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7340         instead of int.
7341
7342         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7343         if __dir_mkfile succeeded.
7344
7345         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7346         checking for _hurd_dtablesize.  Unlock it right after having
7347         finished _hurd_dtable allocation.
7348
7349 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7350
7351         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7352         * sysdeps/mach/hurd/configure: Regenerated.
7353         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7354         special-casing to...
7355         * sysdeps/gnu/configure.in: ... this new file.
7356         * sysdeps/unix/sysv/linux/configure: Regenerated.
7357         * sysdeps/gnu/configure: New generated file.
7358
7359         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7360         for Linux: use nsec instead of usec, as well as:
7361         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7362         members of type struct timespec.
7363         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7364         New macros.
7365         (struct stat64): Likewise.
7366         (_STATBUF_ST_NSEC): New macro.
7367         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7368
7369         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7370         __strtoul_internal rather than strtoul.
7371
7372 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7373
7374         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7375         and reject them.
7376
7377 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7378
7379         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7380         which preserves existing values.
7381         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7382
7383 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7384
7385         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7386         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7387         greater than FD_SETSIZE.
7388
7389 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7390
7391         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7392         allocated, call __vm_protect to finish enabling the existing space, and
7393         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7394         allocate the remainder.
7395
7396 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7397
7398         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7399         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7400
7401 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7402
7403         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7404         sysdeps/mach/hurd/readlink.c.
7405
7406         * posix/tst-sysconf.c (posix_options): Only use
7407         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7408         _POSIX_SYNCHRONIZED_IO when they are defined
7409         * sysdeps/mach/hurd/bits/posix_opt.h:
7410         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7411         (_XOPEN_REALTIME): Undefine macro.
7412         (_XOPEN_REALTIME_THREADS): Undefine macro.
7413         (_XOPEN_SHM): Undefine macro.
7414         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7415         macro to -1.
7416         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7417         macro to -1.
7418         (_POSIX_ASYNC_IO): Undefine macro.
7419         (_POSIX_PRIORITIZED_IO): Undefine macro.
7420         (_POSIX_SPIN_LOCKS): Define macro to -1.
7421
7422         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7423         SA_NODEFER, SA_RESETHAND.
7424         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7425         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7426         F_DUPFD_CLOEXEC.
7427
7428 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7429
7430         * elf/Makefile (pldd-modules): Define unconditionally.
7431
7432 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7433
7434         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7435
7436 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7437
7438         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7439         Return ENOENT when name is empty.
7440         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7441
7442 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7443
7444         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7445
7446         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7447
7448 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7449
7450         Fix mlock in all cases except non-readable pages.
7451         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7452         instead of VM_PROT_ALL as parameter to __vm_wire function.
7453
7454         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7455         (__mkdir): When path is `/', just fail with EEXIST.
7456         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7457
7458 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7459
7460         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7461         <sys/uio.h> (for writev).
7462         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7463         and <sys/param.h> (for MIN).
7464
7465 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7466
7467         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7468         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7469         if interrupted.
7470
7471 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7472
7473         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7474         Depend on against $(link-rpcuserlibs).
7475
7476 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7477
7478         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7479         (__libc_stack_end): Do not use attribute_relro.
7480         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7481         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7482         to libthread-provided value.
7483         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7484         attribute_relro.
7485
7486 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7487
7488         [BZ #3748]
7489         * bits/libc-lock.h (__libc_once_get): New macro.
7490         * sysdeps/mach/bits/libc-lock.h: Likewise.
7491         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7492         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7493         instead of using implementation details.
7494
7495         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7496         * libio/freopen.c: Likewise.
7497         * libio/freopen64.c: Likewise.
7498         * misc/syslog.c: Likewise.
7499         * nscd/connections.c: Likewise.
7500         * nscd/netgroupcache.c: Likewise.
7501         * sysdeps/posix/getcwd.c: Likewise.
7502
7503 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7504
7505         * math/w_ilogbf.c: Add #include <limits.h>.
7506
7507 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7508
7509         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7510         path instead of returning without unlocking.
7511
7512         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7513         immediate-write ioctls.
7514         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7515
7516 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7517
7518         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7519         __builtin_frame_address instead of making assumptions about the
7520         location of the return address relative to DATA.  Force early load of
7521         the return address.
7522         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7523         __builtin_frame_address.
7524
7525         dup3 for GNU Hurd.
7526         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7527         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7528         implement dup3 and do some further code clean-ups.
7529         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7530         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7531
7532 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7533
7534         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7535
7536         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7537         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7538         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7539         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7540         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7541         d->port.lock.
7542
7543         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7544         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7545         when handler == SIG_ERR, not when handler != SIG_ERR.
7546
7547 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7548
7549         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7550         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7551         definitions.
7552
7553         accept4 for GNU Hurd.
7554         * include/sys/socket.h (__libc_accept4): New prototype.
7555         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7556         to implement __libc_accept4.
7557         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7558         __libc_accept4.
7559         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7560
7561         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7562         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7563         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7564         signal-defines.sym.
7565
7566 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7567
7568         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7569
7570 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7571
7572         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7573         assertion on O_CLOEXEC flag.
7574         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7575         * hurd/intern-fd.c: Likewise.
7576         * hurd/port2fd.c: Likewise.
7577
7578 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7579
7580         [BZ #3906]
7581         * bits/in.h (IPV6_PKTINFO): Define new macro.
7582         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7583
7584 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7585
7586         [BZ #13954]
7587         [BZ #13955]
7588         [BZ #13956]
7589         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7590         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7591         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7592         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7593         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7594         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7595         * math/libm-test.inc (logb_test) : Additional logb tests.
7596
7597 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7598             Andreas Jaeger  <aj@suse.de>
7599
7600         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7601         * configure: Regenerated.
7602         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7603         * config.make.in (link-obsolete-rpc): New substituted variable.
7604         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7605         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7606         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7607         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7608         so that libc.a contains the symbols.
7609         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7610         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7611         * sunrpc/auth_none.c: Likewise.
7612         * sunrpc/auth_unix.c: Likewise.
7613         * sunrpc/authdes_prot.c: Likewise.
7614         * sunrpc/authuxprot.c: Likewise.
7615         * sunrpc/clnt_gen.c: Likewise.
7616         * sunrpc/clnt_perr.c: Likewise.
7617         * sunrpc/clnt_raw.c: Likewise.
7618         * sunrpc/clnt_simp.c: Likewise.
7619         * sunrpc/clnt_tcp.c: Likewise.
7620         * sunrpc/clnt_udp.c: Likewise.
7621         * sunrpc/clnt_unix.c: Likewise.
7622         * sunrpc/des_crypt.c: Likewise.
7623         * sunrpc/des_soft.c: Likewise.
7624         * sunrpc/get_myaddr.c: Likewise.
7625         * sunrpc/key_call.c: Likewise.
7626         * sunrpc/key_prot.c: Likewise.
7627         * sunrpc/netname.c: Likewise.
7628         * sunrpc/pm_getmaps.c: Likewise.
7629         * sunrpc/pm_getport.c: Likewise.
7630         * sunrpc/pmap_clnt.c: Likewise.
7631         * sunrpc/pmap_prot.c: Likewise.
7632         * sunrpc/pmap_prot2.c: Likewise.
7633         * sunrpc/pmap_rmt.c: Likewise.
7634         * sunrpc/publickey.c: Likewise.
7635         * sunrpc/rpc_cmsg.c: Likewise.
7636         * sunrpc/rpc_common.c: Likewise.
7637         * sunrpc/rpc_dtable.c: Likewise.
7638         * sunrpc/rpc_prot.c: Likewise.
7639         * sunrpc/rpc_thread.c: Likewise.
7640         * sunrpc/rtime.c: Likewise.
7641         * sunrpc/svc.c: Likewise.
7642         * sunrpc/svc_auth.c: Likewise.
7643         * sunrpc/svc_raw.c: Likewise.
7644         * sunrpc/svc_run.c: Likewise.
7645         * sunrpc/svc_tcp.c: Likewise.
7646         * sunrpc/svc_udp.c: Likewise.
7647         * sunrpc/svc_unix.c: Likewise.
7648         * sunrpc/svcauth_des.c: Likewise.
7649         * sunrpc/xcrypt.c: Likewise.
7650         * sunrpc/xdr.c: Likewise.
7651         * sunrpc/xdr_array.c: Likewise.
7652         * sunrpc/xdr_float.c: Likewise.
7653         * sunrpc/xdr_intXX_t.c: Likewise.
7654         * sunrpc/xdr_mem.c: Likewise.
7655         * sunrpc/xdr_rec.c: Likewise.
7656         * sunrpc/xdr_ref.c: Likewise.
7657         * sunrpc/xdr_sizeof.c: Likewise.
7658         * sunrpc/xdr_stdio.c: Likewise.
7659
7660 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7661
7662         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7663         change.  Update copyright years.
7664
7665 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7666
7667         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7668
7669 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7670             Joseph Myers  <joseph@codesourcery.com>
7671             Paul Pluzhnikov  <ppluzhnikov@google.com>
7672
7673         [BZ #14012]
7674         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7675         requiring rpcgen.
7676         [cross-compiling] (extra-libs): Likewise.
7677         [cross-compiling] (extra-libs-others): Likewise.
7678         [cross-compiling] (librpcsvc-routines): Likewise.
7679         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7680         [cross-compiling] (omit-deps): Likewise.
7681         (sunrpc-CPPFLAGS): New variable.
7682         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7683         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7684         (cross-rpcgen-objs): New variable.
7685         (extra-objs): Append $(cross-rpcgen-objs).
7686         ($(cross-rpcgen-objs)): New rule.
7687         ($(objpfx)cross-rpcgen): Likewise.
7688         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7689         comment.
7690         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7691         ($(objpfx)x%.stmp): Likewise.
7692         * sunrpc/proto.h [IS_IN_build] (_): Define.
7693         [IS_IN_build] (_libc_intl_domainname): Likewise.
7694
7695 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7696
7697         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7698         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7699         and R_X86_64_TPOFF64.
7700
7701 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7702
7703         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7704         sysdeps/unix/sysv/syscalls.list.
7705         (stime): Likewise.
7706         (utime): Likewise.
7707         * sysdeps/unix/sysv/syscalls.list: Remove file.
7708
7709 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7710
7711         [BZ #3440]
7712         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7713         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7714         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7715         (__LC_IDENTIFICATION): Make these macros useful in #if
7716         expressions, as required by C99.
7717
7718 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7719
7720         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7721         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7722         after this.
7723
7724 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7725
7726         * stdlib/longlong.h: Updated from GCC.
7727
7728 2012-05-09  Andreas Jaeger  <aj@suse.de>
7729
7730         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7731         default is first entry.
7732         (run_mode): Set type.
7733         (main): Remove informal message about syslog.
7734         (options): Fix typo.
7735
7736         [BZ #14053]
7737         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7738         to asm.
7739         (lrint): Likewise.
7740         (llrintf): Likewise.
7741         (llrint): Likewise.
7742         (rint): Likewise.
7743         (rintf): Likewise.
7744         (nearbyint): Likewise.
7745         (nearbyintf): Likewise.
7746
7747 2012-05-09  Andreas Jaeger  <aj@suse.de>
7748             Pedro Alves  <palves@redhat.com>
7749
7750         * nscd/nscd.c (run_mode): Use enum.
7751         (main): Cleanup coding style issue.
7752
7753 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7754             Andreas Jaeger  <aj@suse.de>
7755
7756         * nscd/nscd.c (go_background): Replaced with...
7757         (run_mode): ... this.
7758         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7759         (options): Add -F --foreground.
7760         (main): Implement it.
7761         (parse_opt): Parse it.
7762
7763 2012-05-09  Andreas Jaeger  <aj@suse.de>
7764
7765         [BZ #14083]
7766         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7767         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7768         -Wconversion warning.
7769         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7770         Likewise.
7771
7772 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7773
7774         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7775         == 0.
7776         (LC_ALL): Use macro-int-constant.
7777         (LC_COLLATE): Likewise.
7778         (LC_CTYPE): Likewise.
7779         (LC_MESSAGES): Likewise.
7780         (LC_MONETARY): Likewise.
7781         (LC_NUMERIC): Likewise.
7782         (LC_TIME): Likewise.
7783         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7784         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7785         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7786         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7787         Specify type.
7788         [C99-based standards] (float_t): Expect type.
7789         [C99-based standards] (double_t): Expect type.
7790         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7791         type.
7792         [C99-based standards] (HUGE_VALL): Likewise.
7793         [C99-based standards] (INFINITY): Likewise.
7794         [C99-based standards] (NAN): Likewise.
7795         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7796         [C99-based standards] (FP_NAN): Likewise.
7797         [C99-based standards] (FP_NORMAL): Likewise.
7798         [C99-based standards] (FP_SUBNORMAL): Likewise.
7799         [C99-based standards] (FP_ZERO): Likewise.
7800         [C99-based standards] (FP_FAST_FMA): Use
7801         optional-macro-int-constant.  Specify type.  Require == 1.
7802         [C99-based standards] (FP_FAST_FMAF): Likewise.
7803         [C99-based standards] (FP_FAST_FMAL): Likewise.
7804         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7805         [C99-based standards] (FP_ILOGBNAN): Likewise.
7806         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7807         Specify type.
7808         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7809         [C99-based standards] (math_errhandling): Specify type.
7810         [ISO99 || ISO11] (signgam): Do not allow.
7811         [non-C99-based standards] (copysignf): Do not allow.
7812         [non-C99-based standards] (exp2f): Likewise.
7813         [non-C99-based standards] (log2f): Likewise.
7814         [non-C99-based standards] (modff): Allow.
7815         [non-C99-based standards] (erff): Do not allow.
7816         [non-C99-based standards] (erfcf): Likewise.
7817         [non-C99-based standards] (gammaf): Likewise.
7818         [non-C99-based standards] (hypotf): Likewise.
7819         [non-C99-based standards] (j0f): Likewise.
7820         [non-C99-based standards] (j1f): Likewise.
7821         [non-C99-based standards] (jnf): Likewise.
7822         [non-C99-based standards] (lgammaf): Likewise.
7823         [non-C99-based standards] (tgammaf): Likewise.
7824         [non-C99-based standards] (y0f): Likewise.
7825         [non-C99-based standards] (y1f): Likewise.
7826         [non-C99-based standards] (ynf): Likewise.
7827         [non-C99-based standards] (isnanf): Likewise.
7828         [non-C99-based standards] (acoshf): Likewise.
7829         [non-C99-based standards] (asinhf): Likewise.
7830         [non-C99-based standards] (atanhf): Likewise.
7831         [non-C99-based standards] (cbrtf): Likewise.
7832         [non-C99-based standards] (expm1f): Likewise.
7833         [non-C99-based standards] (ilogbf): Likewise.
7834         [non-C99-based standards] (log1pf): Likewise.
7835         [non-C99-based standards] (logbf): Likewise.
7836         [non-C99-based standards] (nextafterf): Likewise.
7837         [non-C99-based standards] (remainderf): Likewise.
7838         [non-C99-based standards] (rintf): Likewise.
7839         [non-C99-based standards] (scalbf): Likewise.
7840         [non-C99-based standards] (copysignl): Likewise.
7841         [non-C99-based standards] (exp2l): Likewise.
7842         [non-C99-based standards] (log2l): Likewise.
7843         [non-C99-based standards] (modfl): Allow.
7844         [non-C99-based standards] (erfl): Do not allow.
7845         [non-C99-based standards] (erfcl): Likewise.
7846         [non-C99-based standards] (gammal): Likewise.
7847         [non-C99-based standards] (hypotl): Likewise.
7848         [non-C99-based standards] (j0l): Likewise.
7849         [non-C99-based standards] (j1l): Likewise.
7850         [non-C99-based standards] (jnl): Likewise.
7851         [non-C99-based standards] (lgammal): Likewise.
7852         [non-C99-based standards] (tgammal): Likewise.
7853         [non-C99-based standards] (y0l): Likewise.
7854         [non-C99-based standards] (y1l): Likewise.
7855         [non-C99-based standards] (ynl): Likewise.
7856         [non-C99-based standards] (isnanl): Likewise.
7857         [non-C99-based standards] (acoshl): Likewise.
7858         [non-C99-based standards] (asinhl): Likewise.
7859         [non-C99-based standards] (atanhl): Likewise.
7860         [non-C99-based standards] (cbrtl): Likewise.
7861         [non-C99-based standards] (expm1l): Likewise.
7862         [non-C99-based standards] (ilogbl): Likewise.
7863         [non-C99-based standards] (log1pl): Likewise.
7864         [non-C99-based standards] (logbl): Likewise.
7865         [non-C99-based standards] (nextafterl): Likewise.
7866         [non-C99-based standards] (remainderl): Likewise.
7867         [non-C99-based standards] (rintl): Likewise.
7868         [non-C99-based standards] (scalbl): Likewise.
7869         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7870         [non-C99-based standards] (FP_*): Do not allow.
7871         [C99-based standards] (FP_*): Change to
7872         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7873         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7874         allow.
7875         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7876         (SIG_ERR): Likewise.
7877         [X/Open-based standards] (SIG_HOLD): Likewise.
7878         (SIG_IGN): Likewise.
7879         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7880         positive value.
7881         (SIGFPE): Likewise.
7882         (SIGILL): Likewise.
7883         (SIGINT): Likewise.
7884         (SIGSEGV): Likewise.
7885         (SIGTER): Likewise.
7886         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7887         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7888         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7889         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7890         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7891         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7892         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7893         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7894         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7895         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7896         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7897         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7898         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7899         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7900         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7901         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7902         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7903         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7904         [X/Open-based standards] (SIGTRAP): Likewise.
7905         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7906         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7907         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7908         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7909         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7910         allow.
7911
7912 2012-05-08  Ian Wienand  <ianw@vmware.com>
7913
7914         [BZ #14080]
7915         * time/tzset.c (__tzset_parse_tz): Update default rules for
7916         daylight time changes in the Energy Policy Act of 2005.
7917
7918 2012-05-09  Andreas Jaeger  <aj@suse.de>
7919
7920         [BZ #13983]
7921         * elf/ldconfig.c (parse_conf): Change string to make clear that
7922         ldconfig only issued a warning if ld.so.conf does not exist.
7923
7924 2012-05-08  David S. Miller  <davem@davemloft.net>
7925
7926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7927         movxtod instead of popping the value on the stack.
7928
7929         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7930
7931 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7932
7933         * config.h.in: Add HAVE_ARM_PCS_VFP.
7934
7935 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7936
7937         [BZ #13979]
7938         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7939         checking but the checks are disabled for any reason.
7940
7941 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7942
7943         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7944         and ELF64_R_TYPE with ELFW(R_TYPE).
7945
7946 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7947
7948         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7949         (ulimit): Likewise.
7950
7951         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7952         (settimeofday): Likewise.
7953
7954 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7955
7956         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7957         a struct th_u2 inside the union, and move tu_block/tu_code into
7958         a new th_u3 union of tu_block/tu_code inside of that.  Move
7959         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7960         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7961         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7962         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7963         (th_stuff): Change to th_u1.tu_stuff.
7964         (th_data): Define.
7965         (th_msg): Change to th_u1.th_u2.tu_data.
7966
7967 2012-05-07  David S. Miller  <davem@davemloft.net>
7968
7969         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7970
7971         [BZ #14074]
7972         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7973         (SETUP_PIC_REG): Use it.
7974         (SETUP_PIC_REG_LEAF): Use it.
7975
7976 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7977
7978         [BZ #13885]
7979         [BZ #13923]
7980         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7981         USE_AS_EXPM1L.
7982         (EXPL_FINITE): Likewise.
7983         (FLDLOG): Likewise.
7984         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7985         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7986         e_expl.S.
7987         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7988         USE_AS_EXPM1L.
7989         (EXPL_FINITE): Likewise.
7990         (FLDLOG): Likewise.
7991         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7992         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7993         e_expl.S.
7994         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7995         test of -max_value argument for long double.
7996         * sysdeps/i386/fpu/libm-test-ulps: Update.
7997         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7998
7999 2012-05-06  David S. Miller  <davem@davemloft.net>
8000
8001         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
8002         quad soft-float symbols whose references which are compiler
8003         generated.
8004         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8005
8006 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
8007
8008         [BZ #13884]
8009         [BZ #13914]
8010         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8011         USE_AS_EXP10L.
8012         (EXPL_FINITE): Likewise.
8013         (FLDLOG): Likewise.
8014         (c0): Likewise.
8015         (c1): Likewise.
8016         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8017         Adjust comments for base varying.
8018         (__expl_finite): Change alias to EXPL_FINITE.
8019         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
8020         e_expl.S.
8021         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
8022         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
8023         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
8024         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
8025         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8026         USE_AS_EXP10L.
8027         (EXPL_FINITE): Likewise.
8028         (FLDLOG): Likewise.
8029         (c0): Likewise.
8030         (c1): Likewise.
8031         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8032         Adjust comments for base varying.
8033         (__expl_finite): Change alias to EXPL_FINITE.
8034         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
8035         tests for bugs.
8036         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8037
8038         [BZ #14064]
8039         * math/libm-test.inc (check_float_internal): Correct ulp
8040         calculation for subnormal expected results.
8041
8042 2012-05-06  Andreas Jaeger  <aj@suse.de>
8043
8044         * Makeconfig (+math-flags): New, set to -frounding-math.
8045         (+cflags): Add +math-flags so that all of glibc gets compiled with
8046         it.
8047
8048         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
8049
8050 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
8051
8052         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
8053         Disable one test.
8054
8055         [BZ #13787]
8056         [BZ #13922]
8057         [BZ #14036]
8058         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
8059         (__ieee754_expl): Allow for and saturate large arguments.
8060         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
8061         (u_threshold): Likewise.
8062         (__exp): Call __ieee754_exp before checking for overflow and
8063         underflow.
8064         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
8065         (u_threshold): Likewise.
8066         (__expf): Call __ieee754_expf before checking for overflow and
8067         underflow.
8068         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
8069         (u_threshold): Likewise.
8070         (__expl): Call __ieee754_expl before checking for overflow and
8071         underflow.
8072         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
8073         (__ieee754_expl): Allow for and saturate large arguments.
8074         * math/libm-test.inc (exp_test): Add another test.  Do not allow
8075         missing overflow exception on overflow.
8076         (expm1_test): Do not allow missing overflow exception on overflow.
8077
8078         * sysdeps/i386/fpu/e_expl.c: Move to ...
8079         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
8080         rather than using inline asm.
8081         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
8082         * sysdeps/x86_64/fpu/e_expl.S: Copy from
8083         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
8084
8085         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
8086         (nice): Likewise.
8087         (poll): Likewise.
8088         (signal): Likewise.
8089         (time): Likewise.
8090         (times): Likewise.
8091
8092 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8093
8094         * sysdeps/unix/syscalls.list (adjtime): Add entry from
8095         sysdeps/unix/common/syscalls.list.
8096         (fchmod): Likewise.
8097         (fchown): Likewise.
8098         (ftruncate): Likewise.
8099         (getrusage): Likewise.
8100         (gettimeofday): Likewise.
8101         (setpgid): Likewise.
8102         (setregid): Likewise.
8103         (setreuid): Likewise.
8104         (sigaction): Likewise.
8105         (truncate): Likewise.
8106         (vhangup): Likewise.
8107         * sysdeps/unix/common/syscalls.list: Remove file.
8108         * sysdeps/unix/bsd/Implies: Don't include unix/common.
8109         * sysdeps/unix/sysv/linux/Implies: Likewise.
8110
8111 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8112
8113         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
8114         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
8115         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
8116         Moved to ...
8117         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
8118         Here.
8119         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
8120         to ...
8121         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
8122         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
8123         to ...
8124         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
8125         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
8126         to ...
8127         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
8128         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
8129         to ...
8130         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
8131         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
8132         to ...
8133         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
8134         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
8135         to ...
8136         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
8137         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
8138         to ...
8139         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
8140         Here.
8141         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
8142         to ...
8143         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
8144         Here.
8145         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
8146         to ...
8147         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
8148         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
8149         Moved to ...
8150         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
8151         Here.
8152         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
8153         to ...
8154         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
8155
8156 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8157
8158         * sysdeps/unix/common/bits/dirent.h: Remove file.
8159         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8160
8161         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8162         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8163         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8164         * sysdeps/unix/bsd/isatty.c: Likewise.
8165         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8166         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8167         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8168
8169 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8170
8171         [BZ #13563]
8172         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8173         long double comparison inaccuracies.
8174         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8175         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8176
8177 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8178
8179         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8180         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8181
8182 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8183
8184         [BZ #14049]
8185         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8186         nonzero digits before rounding a hex value.
8187         * stdlib/tst-strtod.c (tests): Add another test.
8188
8189 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8190
8191         * sysdeps/s390/fpu/libm-test-ulps: Update.
8192
8193 2012-05-03  Andreas Jaeger  <aj@suse.de>
8194
8195         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8196         does not get optimized out.
8197         (malloc_opt_barrier): New.
8198
8199 2012-05-03  Andreas Jaeger  <aj@suse.de>
8200             Roland McGrath  <roland@hack.frob.com>
8201
8202         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8203         intermediate file deletion.
8204         (generated): Add .symlist files.
8205
8206 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8207
8208         [BZ #13775]
8209         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8210         Redirect under this condition.
8211         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8212         [__USE_GNU] (__dprintf_chk): Not under this condition.
8213         [__USE_GNU] (__vdprintf_chk): Likewise.
8214         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8215         under this condition.
8216         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8217         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8218         [__USE_XOPEN2K8] (vdprintf): Likewise.
8219         [__USE_GNU] (__dprintf_chk): Not under this condition.
8220         [__USE_GNU] (__vdprintf_chk): Likewise.
8221         [__USE_GNU] (dprintf): Likewise.
8222         [__USE_GNU] (vdprintf): Likewise.
8223
8224 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8225
8226         * elf/Makefile (common-generated): Set this instead of generated for
8227         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8228         $(all-built-dso)-derived lists.
8229
8230 2012-05-03  Andreas Jaeger  <aj@suse.de>
8231
8232         * sysdeps/i386/fpu/libm-test-ulps: Update.
8233
8234         * FAQ: Removed.
8235         * FAQ.in: Likewise.
8236         * scripts/gen-FAQ.pl: Likewise.
8237         * manual/install.texi (Installation): Point to online location of
8238         FAQ.
8239         * Makefile (files-for-dist): Remove FAQ.
8240         (FAQ): Remove.
8241
8242 2012-05-02  Allan McRae  <allan@archlinux.org>
8243
8244         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8245         (LDFLAGS-reldepmod5.so): Likewise.
8246         (LDFLAGS-reldep6mod1.so): Likewise.
8247         (LDFLAGS-reldep6mod4.so): Likewise.
8248         (LDFLAGS-reldep8mod3.so): Likewise.
8249         (LDFLAGS-unload4mod1.so): Likewise.
8250         (LDFLAGS-unload4mod2.so): Likewise.
8251         (LDFLAGS-tst-initorder): Likewise.
8252         (LDFLAGS-tst-initordera2.so): Likewise.
8253         (LDFLAGS-tst-initordera3.so): Likewise.
8254         (LDFLAGS-tst-initordera4.so): Likewise.
8255         (LDFLAGS-tst-initorderb2.so): Likewise.
8256         (LDFLAGS-noload): Likewise.
8257         (LDFLAGS-next): Likewise.
8258         (LDFLAGS-order2mod1.so): Likewise.
8259         (LDFLAGS-order2mod2.so): Likewise.
8260         (LDFLAGS-tst-initorder2): Likewise.
8261         (LDFLAGS-tst-initorder2a.so): Likewise.
8262         (LDFLAGS-tst-initorder2b.so): Likewise.
8263         (LDFLAGS-tst-initorder2c.so): Likewise.
8264         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8265
8266 2012-05-02  David S. Miller  <davem@davemloft.net>
8267
8268         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8269
8270 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8271
8272         [BZ #14055]
8273         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8274
8275 2012-05-02  Andreas Jaeger  <aj@suse.de>
8276
8277         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8278         since we manipulate rounding mode.
8279         (CPPFLAGS-test-idouble.c): Likewise.
8280         (CPPFLAGS-test-ifloat.c): Likewise.
8281         (CFLAGS-test-ldouble.c): Likewise.
8282         (CFLAGS-test-double.c): Likewise.
8283         (CFLAGS-test-float.c): Likewise.
8284         (CFLAGS-test-misc.c): Likewise.
8285         (CFLAGS-test-test-fenv.c): Likewise.
8286
8287 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8288
8289         [BZ #2550]
8290         [BZ #2570]
8291         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8292         comparisons to determine direction to adjust input.
8293
8294 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8295
8296         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8297         output to the target.
8298
8299         * scripts/localplt.awk: New file.
8300         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8301         (check-localplt-CFLAGS): Variable removed.
8302         ($(all-built-dso:=.jmprel)): New static pattern rule.
8303         (generated): Add those targets.
8304         (localplt-built-dso): New variable.
8305         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8306
8307         * elf/check-localplt.c: File removed.
8308
8309         * scripts/check-execstack.awk: New file.
8310         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8311         (check-execstack-CFLAGS): Variable removed.
8312         ($(objpfx)check-execstack.h): Target removed.
8313         ($(objpfx)execstack-default): New target.
8314         (generated): Add that instead of check-execstack.h.
8315         ($(all-built-dso:=.phdr)): New static pattern rule.
8316         (generated): Add those targets.
8317         * elf/check-execstack.c: File removed.
8318
8319         * scripts/check-textrel.awk: New file.
8320         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8321         (check-textrel-CFLAGS): Variable removed.
8322         (all-built-dso): Use := to define.o
8323         ($(all-built-dso:=.dyn)): New static pattern rule.
8324         (generated): Add those targets.
8325         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8326         * config.make.in (READELF): New substituted variable.
8327         * elf/check-textrel.c: File removed.
8328
8329 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8330
8331         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8332         allow.
8333         * conform/data/ctype.h-data [C99-based standards] (isblank):
8334         Expect function.
8335         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8336         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8337         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8338         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8339         Specify type.  Require positive value.
8340         (EILSEQ): Likewise.
8341         (ERANGE): Likewise.
8342         [ISO || POSIX] (EILSEQ): Do not expect.
8343         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8344         Specify type.  Require positive value.
8345         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8346         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8347         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8348         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8349         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8350         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8351         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8352         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8353         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8354         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8355         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8356         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8357         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8358         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8359         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8360         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8361         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8362         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8363         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8364         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8365         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8366         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8367         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8368         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8369         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8370         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8371         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8372         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8373         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8374         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8375         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8376         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8377         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8378         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8379         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8380         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8381         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8382         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8383         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8384         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8385         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8386         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8387         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8388         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8389         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8390         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8391         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8392         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8393         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8394         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8395         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8396         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8397         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8398         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8399         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8400         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8401         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8402         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8403         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8404         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8405         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8406         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8407         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8408         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8409         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8410         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8411         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8412         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8413         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8414         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8415         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8416         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8417         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8418         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8419         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8420         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8421         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8422         Require >= 2.
8423         (FLT_ROUNDS): Expect as macro, not constant.
8424         (FLT_MANT_DIG): Use macro-int-constant.
8425         (DBL_MANT_DIG): Likewise.
8426         (LDBL_MANT_DIG): Likewise.
8427         (FLT_DIG): Likewise.
8428         (DBL_DIG): Likewise.
8429         (LDBL_DIG): Likewise.
8430         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8431         (DBL_MIN_EXP): Likewise.
8432         (LDBL_MIN_EXP): Likewise.
8433         (FLT_MAX_EXP): Use macro-int-constant.
8434         (DBL_MAX_EXP): Likewise.
8435         (LDBL_MAX_EXP): Likewise.
8436         (FLT_MAX_10_EXP): Likewise.
8437         (DBL_MAX_10_EXP): Likewise.
8438         (LDBL_MAX_10_EXP): Likewise.
8439         (FLT_MAX): Use macro-constant.
8440         (DBL_MAX): Likewise.
8441         (LDBL_MAX): Likewise.
8442         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8443         (DBL_EPSILON): Likewise.
8444         (LDBL_EPSILON): Likewise.
8445         (FLT_MIN): Likewise.
8446         (DBL_MIN): Likewise.
8447         (LDBL_MIN): Likewise.
8448         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8449         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8450         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8451         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8452         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8453         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8454         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8455         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8456         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8457         [ISO11] (FLT_TRUE_MIN): Likewise.
8458         [ISO11] (LDBL_TRUE_MIN): Likewise.
8459         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8460         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8461         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8462         (SCHAR_MAX): Likewise.
8463         (UCHAR_MAX): Likewise.
8464         (CHAR_MIN): Likewise.
8465         (CHAR_MAX): Likewise.
8466         (MB_LEN_MAX): Use macro-int-constant.
8467         (SHRT_MIN): Use macro-int-constant.  Specify type.
8468         (SHRT_MAX): Likewise.
8469         (USHRT_MAX): Likewise.
8470         (INT_MAX): Likewise.
8471         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8472         bound negative.
8473         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8474         bound with "U".
8475         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8476         bound with "L".
8477         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8478         bound negative.  Suffix upper bound with "L".
8479         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8480         bound with "UL".
8481         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8482         Specify type.
8483         [C99-based standards] (LLONG_MAX): Likewise.
8484         [C99-based standards] (ULLONG_MAX): Likewise.
8485         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8486         == 0.
8487         [ISO11] (max_align_t): Require type.
8488         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8489
8490         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8491         from $CFLAGS, without defining away __attribute__ calls.
8492         (checknamespace): Use $CFLAGS_namespace.
8493
8494         * conform/conformtest.pl (@keywords): Only include C99 keywords
8495         for standards based on C99 or C11.
8496
8497         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8498         Disable tests.
8499         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8500         UNIX98]: Likewise.
8501
8502         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8503         usability of symbols in #if.
8504
8505         * conform/conformtest.pl: If macro or constant types start
8506         "promoted:", expect the symbol to be of the following type
8507         promoted by the integer promotions.
8508
8509         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8510         in one place.  Also handle "macro-constant".
8511
8512         * conform/conformtest.pl: Only accept expected macro values with
8513         "==".  Parse all "macro" lines in one place.
8514         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8515
8516         * conform/conformtest.pl: Handle braced types on "constant" lines
8517         instead of handling "typed-constant".
8518         * conform/data/signal.h-data: Use "constant" instead of
8519         "typed-constant".
8520
8521         * conform/conformtest.pl: Handle "optional-" at start of lines in
8522         one place rather than duplicating several cases.  Handle each
8523         format of "macro" line with initial "optional-".
8524
8525         * conform/conformtest.pl: Only accept expected constant or
8526         optional-constant values with "==".  Parse all "constant" lines in
8527         one place.  Parse all "optional-constant" lines in one place.
8528         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8529         * conform/data/fmtmsg.h-data: Likewise.
8530         * conform/data/netinet/in.h-data: Likewise.
8531         * conform/data/tar.h-data: Likewise.
8532         * conform/data/limits.h-data: Use "==" form on "constant" and
8533         "optional-constant" lines.
8534
8535         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8536         Use -std=c99 for XOPEN2K.
8537         (@knownproblems): Remove.
8538         (newtoken): Don't check %isknown.
8539
8540         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8541         Do not expect macro.
8542         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8543         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8544         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8545         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8546         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8547         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8548         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8549         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8550         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8551         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8552         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8553         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8554         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8555         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8556         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8557         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8558         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8559         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8560         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8561         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8562         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8563         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8564         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8565         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8566         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8567         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8568         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8569         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8570         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8571         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8572         [XPG3] (acosh): Likewise.
8573         [XPG3] (asinh): Likewise.
8574         [XPG3] (atanh): Likewise.
8575         [XPG3] (cbrt): Likewise.
8576         [XPG3] (expm1): Likewise.
8577         [XPG3] (ilogb): Likewise.
8578         [XPG3] (log1p): Likewise.
8579         [XPG3] (logb): Likewise.
8580         [XPG3] (nextafter): Likewise.
8581         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8582         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8583         [XPG3] (remainder): Likewise.
8584         [XPG3] (rint): Likewise.
8585         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8586         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8587         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8588         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8589         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8590         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8591         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8592         [UNIX98 || XOPEN2K] (scalb): Expect.
8593         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8594         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8595         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8596         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8597         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8598         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8599         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8600         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8601         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8602         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8603         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8604         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8605         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8606         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8607         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8608         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8609         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8610         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8611         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8612         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8613         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8614         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8615         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8616         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8617         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8618         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8619         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8620         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8621         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8622         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8623         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8624         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8625         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8626         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8627         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8628         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8629         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8630         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8631         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8632         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8633         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8634         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8635         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8636         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8637         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8638         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8639         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8640         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8641         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8642         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8643         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8644         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8645         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8646         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8647         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8648         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8649         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8650         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8651         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8652         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8653         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8654         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8655         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8656         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8657         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8658         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8659         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8660         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8661         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8662         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8663         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8664         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8665         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8666         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8667         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8668         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8669         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8670         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8671         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8672         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8673         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8674         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8675         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8676         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8677         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8678         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8679         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8680         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8681         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8682         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8683         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8684         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8685         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8686         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8687         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8688         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8689         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8690         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8691         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8692         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8693         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8694         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8695         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8696         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8697         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8698         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8699         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8700         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8701         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8702         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8703         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8704         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8705         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8706         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8707         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8708         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8709         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8710         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8711         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8712         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8713         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8714         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8715         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8716         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8717         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8718         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8719         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8720         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8721         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8722         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8723         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8724         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8725         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8726         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8727         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8728         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8729         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8730
8731         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8732         _XOPEN_SOURCE_EXTENDED for XPG4.
8733
8734         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8735
8736         * Makeconfig (localtime): Remove variable.
8737         (inst_localtime-file): Likewise.
8738
8739 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8740
8741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8742         Update.
8743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8744         Update.
8745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8746         Update.
8747         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8748         Update.
8749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8750         Update.
8751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8752         Update.
8753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8754         Update.
8755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8756         Update.
8757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8758         Update.
8759
8760 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8761
8762         [BZ #2550]
8763         [BZ #2570]
8764         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8765         comparisons to determine direction to adjust input.
8766         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8767         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8768         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8769         Likewise.
8770         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8771         Likewise.
8772         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8773         Likewise.
8774         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8775         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8776         Likewise.
8777         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8778         Likewise.
8779         * math/libm-test.inc (nexttoward_test): Add more tests.
8780
8781 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8782
8783         [BZ #14040]
8784         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8785         in version GLIBC_2.1, not GLIBC_2.0.
8786         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8787         Likewise.
8788
8789 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8790
8791         [BZ #13942]
8792         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8793         (1 - x) * (1 + x).
8794         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8795         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8796         * math/libm-test.inc (acos_test): Add more tests.
8797         (asin_test): Likewise.
8798         * sysdeps/i386/fpu/libm-test-ulps: Update.
8799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8800
8801         [BZ #14034]
8802         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8803         of square root.
8804         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8805         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8806         * math/libm-test.inc (acos_test_tonearest): New function.
8807         (acos_test_towardzero): Likewise.
8808         (acos_test_downward): Likewise.
8809         (acos_test_upward): Likewise.
8810         (asin_test_tonearest): Likewise.
8811         (asin_test_towardzero): Likewise.
8812         (asin_test_downward): Likewise.
8813         (asin_test_upward): Likewise.
8814         (main): Call the new functions.
8815         * sysdeps/i386/fpu/libm-test-ulps: Update.
8816         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8817
8818         [BZ #13884]
8819         [BZ #13924]
8820         * math/e_exp10.c: Include <float.h>.
8821         (__ieee754_exp10): Handle underflow here rather than multiplying
8822         large negative argument by M_LN10.
8823         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8824         of __ieee754_expf.
8825         * math/e_exp10l.c: Include <float.h>.
8826         (__ieee754_exp10l): Handle underflow here rather than multiplying
8827         large negative argument by M_LN10l.
8828         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8829         spurious overflow exception on underflow.
8830
8831 2012-04-29  Marek Polacek  <polacek@redhat.com>
8832
8833         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8834         (__fortify_function): New macro.
8835         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8836         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8837         __extern_always_inline.
8838         * libio/bits/stdio2.h: Likewise.
8839         * libio/bits/stdio.h: Likewise.
8840         * string/string.h: Likewise.
8841         * string/bits/string3.h: Likewise.
8842         * include/stdio.h: Likewise.
8843         * stdlib/bits/stdlib.h: Likewise.
8844         * stdlib/stdlib.h: Likewise.
8845         * rt/bits/mqueue2.h: Likewise.
8846         * rt/mqueue.h: Likewise.
8847         * posix/bits/unistd.h: Likewise.
8848         * posix/unistd.h: Likewise.
8849         * io/bits/poll2.h: Likewise.
8850         * io/bits/fcntl2.h: Likewise.
8851         * io/fcntl.h: Likewise.
8852         * io/sys/poll.h: Likewise.
8853         * misc/bits/syslog.h: Likewise.
8854         * misc/bits/syslog-ldbl.h: Likewise.
8855         * misc/sys/syslog.h: Likewise.
8856         * socket/bits/socket2.h: Likewise.
8857         * socket/sys/socket.h: Likewise.
8858         * debug/tst-chk1.c: Likewise.
8859         * wcsmbs/bits/wchar2.h: Likewise.
8860         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8861         * wcsmbs/wchar.h: Likewise.
8862
8863 2012-04-29  Andreas Jaeger  <aj@suse.de>
8864
8865         * Makerules (tests): Remove enable-check-abi protection.
8866         (check-abi-warn): Remove.
8867         (check-abi-%): Remove check-abi-warn usage.
8868
8869         * configure.in: Remove check-abi configure option.
8870         * configure: Regenerated.
8871         * config.make.in (enable-check-abi): Remove.
8872
8873 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8874
8875         [BZ #14033]
8876         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8877         double functions to double *_finite functions.
8878
8879         [BZ #13941]
8880         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8881         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8882         LDBL_MIN_EXP.
8883         * stdio-common/Makefile (tests): Add tst-sprintf3.
8884         * stdio-common/tst-sprintf3.c: New file.
8885
8886         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8887         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8888
8889 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8890
8891         * conform/conformtest.pl: Remove duplicate typed-constant
8892         handling.
8893
8894 2012-04-28  David S. Miller  <davem@davemloft.net>
8895
8896         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8897         (check-abi-%): Remove AWK script prerequisite and explicit
8898         abilist directory.
8899         (check-abi): Rewrite to just diff the symlist with the abilist.
8900         (config-tls, config-abi-config): Delete, no longer used.
8901         (update-abi-%): Remove AWK script and explicit abilist directory.
8902         (update-abi): Rewrite to simply compare and conditionally copy the
8903         symlist and the sysdep abilist file.  Remove update-abi-config
8904         checks.
8905         * abilist/ld.abilist: Remove.
8906         * abilist/libBrokenLocale.abilist: Remove.
8907         * abilist/libanl.abilist: Remove.
8908         * abilist/libcrypt.abilist: Remove.
8909         * abilist/libdl.abilist: Remove.
8910         * abilist/librt.abilist: Remove.
8911         * abilist/libthread_db.abilist: Remove.
8912         * abilist/libutil.abilist: Remove.
8913         * scripts/extract-abilist.awk: Remove.
8914         * scripts/merge-abilist.awk: Remove.
8915         * sysdeps/generic/libcidn.abilist: New file.
8916         * sysdeps/generic/libnss_compat.abilist: New file.
8917         * sysdeps/generic/libnss_db.abilist: New file.
8918         * sysdeps/generic/libnss_dns.abilist: New file.
8919         * sysdeps/generic/libnss_files.abilist: New file.
8920         * sysdeps/generic/libnss_hesiod.abilist: New file.
8921         * sysdeps/generic/libnss_nis.abilist: New file.
8922         * sysdeps/generic/libnss_nisplus.abilist: New file.
8923         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8924         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8925         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8926         file.
8927         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8928         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8929         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8930         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8931         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8932         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8933         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8934         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8935         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8936         file.
8937         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8938         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8939         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8940         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8941         file.
8942         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8943         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8944         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8945         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8946         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8947         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8948         file.
8949         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8950         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8951         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8952         file.
8953         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8954         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8955         New file.
8956         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8957         New file.
8958         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8959         New file.
8960         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8961         New file.
8962         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8963         New file.
8964         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8965         New file.
8966         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8967         New file.
8968         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8969         New file.
8970         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8971         New file.
8972         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8973         New file.
8974         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8975         New file.
8976         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8977         New file.
8978         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8979         New file.
8980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8981         file.
8982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8983         New file.
8984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8985         New file.
8986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8987         file.
8988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8989         New file.
8990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8991         New file.
8992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8993         file.
8994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8995         New file.
8996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8997         New file.
8998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8999         New file.
9000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
9001         New file.
9002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
9003         New file.
9004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
9005         New file.
9006         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
9007         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
9008         file.
9009         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
9010         New file.
9011         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
9012         file.
9013         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
9014         file.
9015         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
9016         file.
9017         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
9018         file.
9019         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
9020         file.
9021         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9022         New file.
9023         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
9024         file.
9025         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
9026         file.
9027         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
9028         New file.
9029         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
9030         file.
9031         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
9032         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
9033         file.
9034         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
9035         New file.
9036         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
9037         file.
9038         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
9039         file.
9040         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
9041         file.
9042         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
9043         file.
9044         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
9045         file.
9046         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9047         New file.
9048         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
9049         file.
9050         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
9051         file.
9052         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
9053         New file.
9054         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
9055         file.
9056         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
9057         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
9058         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
9059         file.
9060         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
9061         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
9062         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
9063         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
9064         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
9065         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
9066         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
9067         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
9068         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
9069         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
9070         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
9071         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
9072         file.
9073         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
9074         New file.
9075         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
9076         file.
9077         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
9078         file.
9079         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
9080         file.
9081         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
9082         file.
9083         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
9084         file.
9085         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
9086         New file.
9087         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
9088         New file.
9089         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
9090         file.
9091         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
9092         New file.
9093         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
9094         file.
9095         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
9096         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
9097         file.
9098         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
9099         New file.
9100         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
9101         file.
9102         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
9103         file.
9104         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
9105         file.
9106         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
9107         file.
9108         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
9109         file.
9110         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
9111         New file.
9112         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
9113         New file.
9114         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
9115         file.
9116         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
9117         New file.
9118         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
9119         file.
9120
9121 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9122
9123         * conform/conformtest.pl: Fix typo in handling typed-constant from
9124         allow-header.
9125
9126 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9127
9128         * README: Cut down references to pre-2.6 Linux kernels and
9129         Linuxthreads.  Update lists of configurations in libc and ports
9130         and sort alphabetically.  Say "or newer" with Linux kernel version
9131         requirements.
9132
9133         * config.h.in [IS_IN_build]: Allow compiling without optimization.
9134
9135 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9136
9137         [BZ #887]
9138         * math/libm-test.inc (logb_test_downward): New test to expose
9139         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
9140         rounding mode.
9141
9142 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9143
9144         [BZ #14027]
9145         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
9146         to be done.
9147         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
9148         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
9149
9150 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
9151
9152         * sysdeps/unix/i386/brk.S: Remove file.
9153         * sysdeps/unix/i386/dl-brk.S: Likewise.
9154         * sysdeps/unix/i386/pipe.S: Likewise.
9155         * sysdeps/unix/i386/sigreturn.S: Likewise.
9156         * sysdeps/unix/i386/syscall.S: Likewise.
9157         * sysdeps/unix/i386/vfork.S: Likewise.
9158         * sysdeps/unix/i386/wait.S: Likewise.
9159
9160         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9161         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9162
9163         * configure.in (arm*-none*): Do not allow without
9164         --enable-hacker-mode.
9165         (netbsd*): Remove case setting base_os.
9166         (386bsd*): Likewise.
9167         (freebsd*): Likewise.
9168         (bsdi*): Likewise.
9169         (osf*): Likewise.
9170         (sunos*): Likewise.
9171         (ultrix*): Likewise.
9172         (newsos*): Likewise.
9173         (dynix*): Likewise.
9174         (*bsd*): Likewise.
9175         (sysv*): Likewise.
9176         (isc*): Likewise.
9177         (esix*): Likewise.
9178         (sco*): Likewise.
9179         (minix*): Likewise.
9180         (irix4*): Likewise.
9181         (irix6*): Likewise.
9182         (solaris[2-9]*): Likewise.
9183         (none): Likewise.
9184         * configure: Regenerated.
9185
9186 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9187
9188         [BZ #11521]
9189         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9190         overflow or cancellation in calculating denominator.
9191         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9192         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9193         down expression to avoid unexpected rounding in newer GCCs.
9194         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9195
9196 2012-04-26  David S. Miller  <davem@davemloft.net>
9197
9198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9199         long-double compat symbols.
9200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9201         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9202         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9203         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9204         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9205         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9206         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9207         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9208         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9209         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9210         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9211         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9212         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9213
9214 2012-04-25  David S. Miller  <davem@davemloft.net>
9215
9216         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9217         HWCAP_* values only after the memory barriers have been defined.
9218         (atomic_full_barrier): Define.
9219         (atomic_read_barrier): Define.
9220         (atomic_write_barrier): Define.
9221
9222 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9223
9224         * shlib-versions: Add libgcc_s version information.
9225         * sysdeps/generic/libgcc_s.h: Remove.
9226         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9227         libgcc_s.h.
9228         * sysdeps/gnu/unwind-resume.c: Likewise.
9229         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9230
9231 2012-04-25  David S. Miller  <davem@davemloft.net>
9232
9233         * sysdeps/unix/sparc/brk.S: Delete.
9234         * sysdeps/unix/sparc/dl-brk.S: Delete.
9235         * sysdeps/unix/sparc/pipe.S: Delete.
9236         * sysdeps/unix/sparc/sysdep.S: Delete.
9237         * sysdeps/unix/sparc/sysdep.h: Delete.
9238         * sysdeps/unix/sparc/vfork.S: Delete.
9239         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9240         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9241         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9242         ret_ERRVAL, r0, r1, MOVE): Define.
9243         (JUMPTARGET): Remove.
9244         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9245         sysdeps/unix/sparc/sysdep.h
9246         (ENTRY, END): Remove.
9247         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9248
9249 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9250
9251         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9252         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9253         -DIS_IN_build.
9254
9255         * timezone/README: Update upstream location and email address for
9256         tzcode and tzdata.
9257         * timezone/zdump.c: Update from tzcode 2012b.
9258         * timezone/zic.c: Likewise.
9259
9260         * configure.in (libc_cv_as_needed): Remove test.
9261         * configure: Regenerated.
9262         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9263         conditional definition.
9264         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9265         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9266         * config.make.in (have-as-needed): Remove variable.
9267
9268 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9269             Paul Pluzhnikov  <ppluzhnikov@google.com>
9270
9271         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9272         strings correctly.
9273
9274 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9275
9276         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9277         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9278         * sysdeps/sh/strlen.S: Likewise.
9279
9280 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9281
9282         * sysdeps/unix/fork.S: Remove file.
9283         * sysdeps/unix/i386/fork.S: Likewise.
9284         * sysdeps/unix/sparc/fork.S: Likewise.
9285
9286         * sysdeps/unix/system.c: Remove file.
9287         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9288
9289         * sysdeps/unix/getegid.S: Remove file.
9290         * sysdeps/unix/geteuid.S: Likewise.
9291
9292 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9293
9294         * scripts/check-localplt.awk: New file.
9295         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9296         of diff.
9297         * scripts/data/localplt-generic.data: Add a comment.
9298
9299         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9300         NODE when __dir_mkfile failed.
9301         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9302         Reported by Ludovic Courtès <ludo@gnu.org>.
9303
9304 2012-04-24  Andreas Jaeger  <aj@suse.de>
9305
9306         * Makerules (common-clean): Also remove gen-as-const-headers
9307         files.
9308
9309 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9310
9311         * Makerules (native-compile): Do not change working directory for
9312         build.  Use $(OUTPUT_OPTION) in command.
9313         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9314
9315 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9316
9317         [BZ #13886]
9318         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9319         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9320         * math/libm-test.inc (floor_test): Add more tests.
9321         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9322
9323 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9324
9325         * sysdeps/unix/getdents.c: Remove file.
9326         * sysdeps/unix/sysv/getdents.c: Likewise.
9327         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9328
9329         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9330         sysdeps/unix/mman/syscalls.list.
9331         (mmap): Likewise.
9332         (mprotect): Likewise.
9333         (msync): Likewise.
9334         (munmap): Likewise.
9335         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9336         * sysdeps/unix/mman/syscalls.list: Remove.
9337         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9338
9339         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9340         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9341         * configure: Regenerated.
9342         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9343         $(libgcc_s_suffix).
9344         * config.make.in (libgcc_s_suffix): Remove variable.
9345
9346 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9347
9348         * sysdeps/unix/sysv/gethostname.c: Move to ...
9349         * sysdeps/posix/gethostname.c: ... here.
9350
9351         * sysdeps/unix/execve.S: Remove file.
9352
9353         * sysdeps/unix/_exit.S: Remove file.
9354
9355 2012-04-23  Andreas Jaeger  <aj@suse.de>
9356
9357         [BZ #13739]
9358         * manual/Makefile: Remove make dist support, there's no
9359         need for a stand-alone documentation tar ball.
9360         (TEXI2DVI): Define always, it's not in Makeconfig.
9361         (dist): Removed.
9362         (tar-it): Removed.
9363         (edition): Removed.
9364         (glibc-doc-$(edition).tar): Removed
9365         (%.Z): Removed.
9366         (%.gz): Removed.
9367         (%.uu): Removed.
9368         (ETAGS): Remove, it's in Makeconfig.
9369         (move-if-change): Remove, it's in Makeconfig.
9370
9371 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9372
9373         [BZ #13970]
9374         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9375         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9376         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9377         (strtod_l, strtof_l, strtold_l): Remove __wur.
9378         It is not necessarily an error to ignore strtol's return value.
9379         One can reliably look at the stored endptr to decide whether
9380         the number had valid syntax.
9381
9382 2012-04-21  Andreas Jaeger  <aj@suse.de>
9383
9384         [BZ #13739]
9385         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9386
9387 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9388
9389         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9390         * sysdeps/unix/sysv/Versions: Remove file.
9391
9392 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9393
9394         [BZ #13927]
9395         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9396
9397 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9398
9399         [BZ #7064]
9400         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9401         version from __vm86.
9402
9403 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9404
9405         * sysdeps/unix/common/lxstat.c: Remove file.
9406         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9407
9408         * sysdeps/unix/sysv/Makefile: Remove file.
9409
9410         * sysdeps/unix/sysv/direct.h: Remove file.
9411
9412         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9413         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9414         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9415         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9416         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9417         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9418         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9419
9420         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9421
9422         * sysdeps/unix/xmknod.c: Remove file.
9423         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9424
9425         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9426
9427         * sysdeps/unix/sysv/i386/time.S: Remove file.
9428
9429         * sysdeps/unix/fxstat.c: Remove file.
9430         * sysdeps/unix/xstat.c: Likewise.
9431         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9432
9433         * sysdeps/unix/sysv/sigaction.c: Remove file.
9434
9435         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9436         (sysdep_headers): Remove variable.
9437         [termio.h not in sysdep_headers] (generated): Likewise.
9438         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9439         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9440         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9441         * sysdeps/unix/sysv/tcflow.c: Likewise.
9442         * sysdeps/unix/sysv/tcflush.c: Likewise.
9443         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9444         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9445         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9446         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9447         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9448
9449         * sysdeps/unix/siglist.c: Remove file.
9450
9451         * sysdeps/unix/getppid.S: Remove file.
9452
9453         * sysdeps/unix/mkdir.c: Remove file.
9454         * sysdeps/unix/rmdir.c: Likewise.
9455
9456 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9457
9458         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9459         ERR_MAX value.
9460         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9461         errlist-compat value.
9462
9463 2012-04-18  David S. Miller  <davem@davemloft.net>
9464
9465         * sysdeps/generic/memcopy.h (reg_char): Delete.
9466         * debug/strcat_chk.c: Use char, not reg_char.
9467         * debug/strcpy_chk.c: Likewise.
9468         * debug/strncat_chk.c: Likewise.
9469         * debug/strncpy_chk.c: Likewise.
9470         * string/memchr.c: Likewise.
9471         * string/memrchr.c: Likewise.
9472         * string/rawmemchr.c: Likewise.
9473         * string/strcat.c: Likewise.
9474         * string/strchr.c: Likewise.
9475         * string/strchrnul.c: Likewise.
9476         * string/strcmp.c: Likewise.
9477         * string/strcpy.c: Likewise.
9478         * string/strncat.c: Likewise.
9479         * string/strncmp.c: Likewise.
9480         * string/strncpy.c: Likewise.
9481
9482 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9483
9484         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9485         __builtin_memcopy is called when src and dest ranges are known to not
9486         overlap.
9487
9488 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9489
9490         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9491         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9492         fwd_align_merge macro call.
9493         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9494         bwd_align_merge macro call.
9495         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9496
9497 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9498
9499         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9500         bwd_align_merge macros.
9501         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9502         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9503         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9504
9505 2012-04-18  David S. Miller  <davem@davemloft.net>
9506
9507         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9508
9509 2012-04-18  Andreas Jaeger  <aj@suse.de>
9510
9511         [BZ# 6794]
9512         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9513         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9514         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9515
9516         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9517         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9518         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9519
9520         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9521         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9522         Adjust for changed ldbl-128 files.
9523
9524         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9525         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9526         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9527
9528 2012-04-17  David S. Miller  <davem@davemloft.net>
9529
9530         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9531
9532 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9533
9534         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9535         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9536         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9537         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9538         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9539         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9540
9541 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9542
9543         [BZ #6794]
9544         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9545         * math/libm-test.inc: Add ilogb errno and exception tests.
9546         * math/w_ilogb.c: New file: ilogb wrapper.
9547         * math/w_ilogbf.c: New file: ilogbf wrapper.
9548         * math/w_ilogbl.c: New file: ilogbl wrapper.
9549         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9550         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9551         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9552         exception being thrown with 0.0 as argument.
9553         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9554         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9555         exception being thrown with 0.0 as argument.
9556         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9557         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9558         exception being thrown with 0.0 as argument.
9559         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9560         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9561         exception being thrown with 0.0 as argument.
9562         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9563         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9564         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9565         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9566         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9567         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9568         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9569         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9570         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9571
9572 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9573
9574         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9575         with altivec.
9576
9577 2012-04-16  Marek Polacek  <polacek@redhat.com>
9578
9579         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9580
9581 2012-04-16  Marek Polacek  <polacek@redhat.com>
9582
9583         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9584         operands of fdivp instruction.
9585
9586 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9587
9588         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9589         * elf/tst-auditmod3b.c: Likewise.
9590         * elf/tst-auditmod4b.c: Likewise.
9591         * elf/tst-auditmod5b.c: Likewise.
9592         * elf/tst-auditmod6b.c: Likewise.
9593         * elf/tst-auditmod6c.c: Likewise.
9594         * elf/tst-auditmod7b.c: Likewise.
9595         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9596         * sysdeps/x86_64/preconfigure.in: Likewise.
9597         * sysdeps/x86_64/preconfigure: Regenerated.
9598
9599 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9600
9601         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9602         __ILP32__.
9603
9604 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9605
9606         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9607         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9608
9609 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9610
9611         [BZ #13973]
9612         * locale/iso-639.def: Fix gl language name. Spotted by
9613         Yaron Shahrabani.
9614
9615 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9616
9617         [BZ #2074]
9618         * libio/libio.h (__io_write_fn): Update comment.
9619
9620 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9621
9622         [BZ #2074]
9623         * stdio.texi (Hook Functions): The user provided writer function
9624         is not allowed to return -1.
9625
9626 2012-04-11  David S. Miller  <davem@davemloft.net>
9627
9628         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9629
9630 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9631
9632         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9633         Add a leading slash to rtkaio.
9634
9635 2012-04-11  Jim Meyering  <meyering@redhat.com>
9636
9637         [BZ #11959]
9638         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9639         It is not necessarily an error to ignore fwrite's return
9640         value.  One can reliably use ferror to test for errors after
9641         the fact.
9642
9643 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9644
9645         * bits/types.h (__snseconds_t): New type.
9646         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9647
9648         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9649         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9650         (__SNSECONDS_T_TYPE): Likewise.
9651         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9652         (__SNSECONDS_T_TYPE): Likewise.
9653         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9654         (__SNSECONDS_T_TYPE): Likewise.
9655
9656 2012-04-10  Andreas Jaeger  <aj@suse.de>
9657
9658         [BZ #2636]
9659         * manual/time.texi (Processor Time): Return type of times is
9660         elapsed real time since an arbitrary point in the past.
9661         (CPU Time): Move CLK_TCK from here...
9662         (Processor Time): ...to here.  Correct description.
9663         * manual/conf.texi (Constants for Sysconf): Correct description of
9664         _SC_CLK_TCK.
9665
9666 2012-04-10  David S. Miller  <davem@davemloft.net>
9667
9668         [BZ #13967]
9669         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9670         where the is a gap between DT_REL(A) and DT_JMPREL.
9671
9672 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9673
9674         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9675         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9676         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9677
9678 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9679
9680         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9681         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9682         (dl_main): Handle --inhibit-cache.
9683         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9684         _dl_inhibit_cache.
9685         * elf/dl-load.c (_dl_map_object): Use it.
9686         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9687
9688 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9689
9690         [BZ #13872]
9691         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9692         (__ieee754_powl): Saturate large exponents rather than testing for
9693         overflow of y*log2(x).
9694         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9695         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9696         exceptions.
9697
9698         [BZ #11521]
9699         * math/s_ctan.c: Include <float.h>.
9700         (__ctan): Avoid internal overflow or cancellation in calculating
9701         denominator.
9702         * math/s_ctanf.c: Likewise.
9703         * math/s_ctanl.c: Likewise.
9704         * math/s_ctanh.c: Likewise.
9705         * math/s_ctanhf.c: Likewise.
9706         * math/s_ctanhl.c: Likewise.
9707         * math/libm-test.inc (ctan_test): Add more tests.
9708         (ctanh_test): Likewise.
9709         * sysdeps/i386/fpu/libm-test-ulps: Update.
9710         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9711
9712 2012-04-09  Andreas Jaeger  <aj@suse.de>
9713
9714         [BZ #6894]
9715         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9716         is an optional BSD extension.
9717
9718         [BZ #10254]
9719         * manual/stdio.texi (Opening Streams): Document additional fopen
9720         parameters.
9721
9722 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9723
9724         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9725         %eax without telling the compiler.
9726
9727 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9728
9729         [BZ # 13963]
9730         * manual/install.texi: Use sourceware.org.
9731
9732 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9733
9734         [BZ #13873]
9735         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9736         (__ieee754_pow): Generate overflow and underflow using huge*huge
9737         and tiny*tiny rather than just returning constant infinity or zero
9738         for large exponents.
9739         * math/libm-test.inc (pow_test): Require overflow exceptions for
9740         applicable cases of large exponents.
9741
9742         [BZ #706]
9743         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9744         (__ieee754_pow): Use iterative multiplication algorithm only for
9745         integer exponents with absolute value below 1024.  Check for odd
9746         integer exponents when using algorithm for real exponents.
9747         * math/libm-test.inc (pow_test): Add more tests.
9748         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9749
9750 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9751
9752         [BZ #13705]
9753         * math/libm-test.inc (exp_test): Do not allow overflow exception
9754         on underflow test.
9755
9756 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9757
9758         [BZ #13705]
9759         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9760         instead of __kernel_standard_f.
9761
9762 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9763
9764         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9765         * sysdeps/x86_64/memset_chk.S: Likewise.
9766
9767 2012-04-08  Andreas Jaeger  <aj@suse.de>
9768
9769         [BZ #10153]
9770         * manual/startup.texi (Environment Access): Describe return value
9771         for putenv and setenv.
9772
9773         [BZ #6895]
9774         * manual/filesys.texi (Directory Entries): Add description for
9775         DT_LNK.
9776
9777         [BZ #6890]
9778         * manual/filesys.texi (Directory Entries): Clarify that it's file
9779         system not operating system in the description of DT_UNKNOWN.
9780
9781         [BZ #6578]
9782         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9783
9784 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9785
9786         [BZ #6649]
9787         * manual/llio.texi (Opening and Closing Files): Add cross
9788         reference to explain mode argument.
9789
9790 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9791
9792         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9793         * sysdeps/x86_64/memset_chk.S: Likewise.
9794
9795 2012-04-07  David S. Miller  <davem@davemloft.net>
9796
9797         * elf/elf.h (R_SPARC_WDISP10): Define.
9798         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9799         R_SPARC_SIZE32.
9800         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9801         R_SPARC_SIZE64 and R_SPARC_H34.
9802
9803 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9804
9805         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9806         conditions and remove no longer applicable assertion.
9807
9808 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9809
9810         * bits/byteswap.h: Include <features.h>.
9811         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9812         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9813
9814 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9815
9816         * bits/byteswap.h (__bswap_16): Removed.
9817         Include <bits/byteswap-16.h> to get __bswap_16.
9818         * sysdeps/i386/bits/byteswap.h: Likewise.
9819         * sysdeps/s390/bits/byteswap.h: Likewise.
9820         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9821         * bits/byteswap-16.h: New file.
9822         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9823         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9824         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9825         * string/Makefile (headers): Add bits/byteswap-16.h.
9826
9827 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9828
9829         [BZ #13895]
9830         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9831         extra indirection.
9832         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9833         * nss/tst-nss-static.c: New.
9834
9835 2012-04-06  Robert Millan  <rmh@gnu.org>
9836
9837         [BZ #6486]
9838         * manual/llio.texi (File Position Primitive): lseek
9839         refers to WHENCE when it really means OFFSET.
9840
9841 2012-04-06  Andreas Jaeger  <aj@suse.de>
9842
9843         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9844         strncmp declarations.
9845
9846         * abilist/libc.abilist: Add __poll and __ppoll.
9847
9848 2012-04-05  David S. Miller  <davem@davemloft.net>
9849
9850         * scripts/check-local-headers.sh: Accept a host triplet in the
9851         path matched by the exclude regexp.
9852
9853         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9854         definition.
9855         * sysdeps/powerpc/powerpc32/dl-machine.h
9856         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9857         * sysdeps/s390/s390-32/dl-machine.h
9858         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9859         * sysdeps/sparc/sparc32/dl-machine.h
9860         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9861         * sysdeps/sparc/sparc64/dl-machine.h
9862         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9863
9864         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9865         lazy binding.
9866         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9867         undefined symbol errors.
9868
9869         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9870         DT_NEEDED entries.
9871
9872 2012-04-05  Michael Matz  <matz@suse.de>
9873
9874         [BZ #13592]
9875         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9876
9877 2012-04-05  Andreas Jaeger  <aj@suse.de>
9878
9879         [BZ #13908]
9880         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9881         comment.
9882
9883 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9884
9885         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9886         which ROUND is no valid rounding mode.
9887
9888 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9889
9890         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9891         read again.
9892         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9893
9894 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9895
9896         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9897         an exception using FPU order intentionally.
9898
9899 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9900
9901         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9902         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9903         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9904         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9905
9906 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9907
9908         [BZ #12340]
9909         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9910         EINVAL when BUFLEN is too smal.
9911
9912 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9913
9914         [BZ #13553]
9915         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9916         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9917
9918 2012-04-03  Andreas Jaeger  <aj@suse.de>
9919
9920         [BZ #13938]
9921         * manual/setjmp.texi (System V contexts): Fix sentence.
9922
9923         [BZ #13926]
9924         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9925         New macro for this case.
9926         [!__GNUC__] (__bswap_64): New inline function for this case.
9927         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9928         * bits/byteswap.h: Likewise.
9929         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9930         ull, guard with __GLIBC_HAVE_LONG_LONG.
9931
9932         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9933         __GLIBC_HAVE_LONG_LONG.
9934
9935         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9936         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9937
9938 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9939
9940         [BZ #13691]
9941         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9942         inptr and inend, rather than using last_ch.
9943
9944 2012-04-02  David S. Miller  <davem@davemloft.net>
9945
9946         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9947         * stdio-common/printf-parse.h (read_int): Change return type to
9948         'int', return -1 on INT_MAX overflow.
9949         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9950         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9951         overflows INT_MAX.  Check for overflow of in-format-string precision
9952         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9953         SIZE_MAX not INT_MAX for integer overflow test.
9954         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9955         skip the construct in the format string but do not record anything.
9956         * stdio-common/bug22.c: Adjust to test both width/prevision
9957         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9958         explicitly for proper errno values.
9959
9960 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9961
9962         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9963         CHAR_MAX.
9964         * string/test-strcmp.c [! WIDE]: Likewise.
9965         * time/tst-mktime2.c: Likewise for INT_MAX.
9966         * string/test-string.h: #include <sys/param.h> for MIN.
9967
9968         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9969         * sysdeps/i386/init-first.c (init): Likewise.
9970         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9971         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9972         * sysdeps/sh/init-first.c (init): Likewise.
9973
9974 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9975
9976         * po/ru.po: Update from translation team.
9977         * po/vi.po: Likewise.
9978
9979 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9980
9981         * resolv/nss_dns/dns-host.c: Merge copyright years.
9982
9983 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9984
9985         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9986         Optimize memcpy with prefetch if
9987         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9988         src, dst pointers have unequal 16 byte alignments.
9989
9990 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9991
9992         [BZ #13928]
9993         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9994         from a CNAME entry and return the minimum ttl for the query.
9995         (gaih_getanswer_slice): Likewise.
9996
9997 2012-03-30  Jeff Law  <law@redhat.com>
9998
9999         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
10000         due to long keys.
10001         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
10002         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
10003
10004         * resolv/nss_dns/dns-host.c: Update copyright year.
10005
10006 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
10007
10008         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
10009         requests to save a system call.  Fix check that all bytes are sent.
10010
10011         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
10012         comments for sendmmsg.
10013
10014 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10015
10016         [BZ #13691]
10017         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
10018         with only 1 character between 0x0041 and 0x01b0.
10019         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
10020         * wcsmbs/tst-mbsnrtowcs.c: New file.
10021
10022 2012-03-29  David S. Miller  <davem@davemloft.net>
10023
10024         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
10025         small copies by hand.
10026
10027 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10028
10029         [BZ #13761]
10030         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
10031         _nss_compat_initgroups_dyn): Fall back to malloc/free
10032         for large group memberships.
10033
10034 2012-03-28  David S. Miller  <davem@davemloft.net>
10035
10036         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
10037         that branches into memcpy.
10038         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
10039         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
10040         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
10041         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
10042         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
10043         bits.
10044         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
10045         implementation too.
10046         * sysdeps/sparc/mempcpy.S: New file.
10047
10048         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
10049         the IFUNC routine in the libc case.
10050         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10051
10052         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
10053         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
10054         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
10055         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
10056         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
10057         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
10058         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
10059         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
10060
10061         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
10062         loop to 256 bytes instead of 64 bytes and fix test signedness.
10063
10064         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
10065         * sysdeps/sparc/sparc32/Makefile: rather than here...
10066         * sysdeps/sparc/sparc64/Makefile: and here.
10067
10068 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
10069
10070         * malloc/mallocbug.c: Avoid warnings about unused variables.
10071
10072 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10073
10074         [BZ #13760]
10075         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
10076         in the right place. Discard and retry query if response is
10077         larger than input buffer size.
10078
10079 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
10080
10081         [BZ #369]
10082         [BZ #2678]
10083         [BZ #3866]
10084         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
10085         x for large integer exponent.
10086         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
10087         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
10088         sign of result as needed afterwards.
10089         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10090         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
10091         result for underflowing pow the same as for overflow.
10092         (__kernel_standard_l): Handle powl overflow and underflow here
10093         rather than calling __kernel_standard.
10094         * math/libm-test.inc (pow_test): Add more tests.
10095
10096         [BZ #3868]
10097         [BZ #13879]
10098         [BZ #13910]
10099         [BZ #13911]
10100         [BZ #13912]
10101         [BZ #13913]
10102         [BZ #13915]
10103         [BZ #13916]
10104         [BZ #13917]
10105         [BZ #13918]
10106         [BZ #13919]
10107         [BZ #13920]
10108         [BZ #13921]
10109         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
10110         * sysdeps/ieee754/k_standard.c: Include <float.h>.
10111         (__kernel_standard_l): New function.
10112         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
10113         __kernel_standard.
10114         * math/w_acosl.c (__acosl): Likewise.
10115         * math/w_asinl.c (__asinl): Likewise.
10116         * math/w_atan2l.c (__atan2l): Likewise.
10117         * math/w_atanhl.c (__atanhl): Likewise.
10118         * math/w_coshl.c (__coshl): Likewise.
10119         * math/w_exp10l.c (__exp10l): Likewise.
10120         * math/w_exp2l.c (__exp2l): Likewise.
10121         * math/w_fmodl.c (__fmodl): Likewise.
10122         * math/w_hypotl.c (__hypotl): Likewise.
10123         * math/w_j0l.c (__j0l, __y0l): Likewise.
10124         * math/w_j1l.c (__j1l, __y1l): Likewise.
10125         * math/w_jnl.c (__jnl, __ynl): Likewise.
10126         * math/w_lgammal.c (__lgammal): Likewise.
10127         * math/w_log10l.c (__log10l): Likewise.
10128         * math/w_log2l.c (__log2l): Likewise.
10129         * math/w_logl.c (__logl): Likewise.
10130         * math/w_powl.c (__powl): Likewise.
10131         * math/w_remainderl.c (__remainderl): Likewise.
10132         * math/w_scalbl.c (sysv_scalbl): Likewise.
10133         * math/w_sinhl.c (__sinhl): Likewise.
10134         * math/w_sqrtl.c (__sqrtl): Likewise.
10135         * math/w_tgammal.c (__tgammal): Likewise.
10136         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
10137         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
10138         * math/libm-test.inc (acos_test): Add more tests.
10139         (acosh_test): Likewise.
10140         (asin_test): Likewise.
10141         (atanh_test): Likewise.
10142         (exp_test): Likewise.
10143         (exp10_test): Likewise.
10144         (exp2_test): Likewise.
10145         (expm1_test): Likewise.
10146         (lgamma_test): Likewise.
10147         (log_test): Likewise.
10148         (log10_test): Likewise.
10149         (log1p_test): Likewise.
10150         (log2_test): Likewise.
10151         (pow_test): Do not allow some spurious overflow exceptions.
10152         (sqrt_test): Add more tests.
10153         (tgamma_test): Likewise.
10154         (y0_test): Likewise.
10155         (y1_test): Likewise.
10156         (yn_test): Likewise.
10157
10158 2012-03-27  Anton Blanchard  <anton@samba.org>
10159
10160         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10161         MAP_HUGETLB.
10162         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10163         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10164         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10165
10166 2012-03-27  David S. Miller  <davem@davemloft.net>
10167
10168         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10169
10170         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10171         have-as-vis3 check.
10172
10173 2012-03-27  Andreas Jaeger  <aj@suse.de>
10174
10175         * sysdeps/x86_64/elf/configure.in: Moved to ...
10176         * sysdeps/x86_64/configure.in: ... here.
10177         * sysdeps/x86_64/elf/start.S: Moved to ...
10178         * sysdeps/x86_64/start.S: ... here.
10179         * sysdeps/x86_64/elf/configure: Delete.
10180
10181         * sysdeps/x86_64/configure.in: Merge contents from
10182         sysdeps/i386/configure.in (without i686 check).
10183
10184         * sysdeps/i386/elf/Versions: Merge into ...
10185         * sysdeps/i386/Versions: ... this.
10186         * sysdeps/i386/elf/Versions: Delete file.
10187         * sysdeps/i386/elf/start.S: Moved to ...
10188         * sysdeps/i386/start.S: ...here.
10189         * sysdeps/i386/elf/configure.in: Merge into...
10190         * sysdeps/i386/configure.in: ...here.
10191         * sysdeps/i386/elf/configure.in: Delete file.
10192         * sysdeps/i386/elf/configure: Delete file.
10193
10194         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10195         * debug/backtracesyms.c: ... here.
10196         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10197         * debug/backtracesymsfd.c: ... here.
10198         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10199         * sysdeps/generic/ifunc-sel.h: ... here.
10200
10201         * sysdeps/unix/i386/start.c: Delete file.
10202         * sysdeps/unix/sparc/start.c: Delete file.
10203         * sysdeps/unix/start.c: Delete file.
10204
10205         * sysdeps/sh/elf/configure.in: Moved to ...
10206         * sysdeps/sh/configure.in: ... here.
10207         * sysdeps/sh/elf/start.S: Moved to ...
10208         * sysdeps/sh/start.S: ... here.
10209         * sysdeps/sh/elf/configure: Delete file.
10210
10211         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10212         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10213         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10214         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10215         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10216         * sysdeps/powerpc/powerpc64/start.S: here.
10217         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10218         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10219         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10220         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10221         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10222
10223         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10224         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10225         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10226         * sysdeps/powerpc/powerpc32/start.S: ... here.
10227         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10228         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10229         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10230
10231         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10232         * sysdeps/powerpc/ifunc-sel.h: ... here.
10233         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10234         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10235
10236         * sysdeps/sparc/elf/configure.in: Moved to ...
10237         * sysdeps/sparc/configure.in: ... here.
10238         * sysdeps/sparc/elf/configure: Delete file.
10239         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10240         * sysdeps/sparc/sparc32/start.S: ... here.
10241         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10242         * sysdeps/sparc/sparc64/start.S: ... here.
10243         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10244         * sysdeps/sparc/sparc32/Makefile: ... this.
10245         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10246         * sysdeps/sparc/sparc64/Makefile: ... this.
10247
10248         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10249         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10250         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10251         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10252         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10253         * sysdeps/s390/s390-32/setjmp.S: ... here.
10254         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10255         * sysdeps/s390/s390-32/configure.in: ... here.
10256         * sysdeps/s390/s390-32/elf/configure: Delete file.
10257         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10258         * sysdeps/s390/s390-32/start.S: ... here.
10259
10260         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10261         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10262         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10263         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10264         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10265         * sysdeps/s390/s390-64/setjmp.S: ... here.
10266         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10267         * sysdeps/s390/s390-64/configure.in: ... here
10268         * sysdeps/s390/s390-64/elf/configure: Delete file.
10269         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10270         * sysdeps/s390/s390-64/start.S: ... here.
10271         * sysdeps/s390/s390-64/elf/configure: Delete.
10272
10273         * configure.in: Remove support for elf directories in sysdeps.
10274
10275         * configure: Regenerated.
10276         * sysdeps/i386/configure: Regenerated.
10277         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10278         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10279         * sysdeps/s390/s390-32/configure: Regenerated.
10280         * sysdeps/s390/s390-64/configure: Regenerated.
10281         * sysdeps/sh/configure: Regenerated.
10282         * sysdeps/sparc/configure: Regenerated.
10283         * sysdeps/x86_64/configure: Regenerated.
10284
10285 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10286
10287         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10288
10289         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10290         denormal result into account.
10291
10292 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10293
10294         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10295         Reported by Allan McRae <allan@archlinux.org>.
10296
10297 2012-03-23  Jeff Law  <law@redhat.com>
10298
10299         * nss/getnssent.c (__nss_getent): Fix typo.
10300
10301 2012-03-23  David S. Miller  <davem@davemloft.net>
10302
10303         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10304
10305 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10306
10307         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10308         to pad to uint64_t for each field.
10309         (dl_tls_index): Replace unsigned long with uint64_t.
10310
10311 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10312         Paul Pluzhnikov  <ppluzhnikov@google.com>
10313
10314         [BZ #6528]
10315         * grp/Makefile (otherlibs): Don't set it.
10316         * inet/Makefile (otherlibs): Likewise.
10317         * login/Makefile (otherlibs): Likewise.
10318         * nscd/Makefile (otherlibs): Likewise.
10319         * posix/Makefile (otherlibs): Likewise.
10320         * pwd/Makefile (otherlibs): Likewise.
10321         * rt/Makefile (otherlibs): Likewise.
10322         * sunrpc/Makefile (otherlibs): Likewise.
10323         * nss/Makefile (otherlibs): Likewise.
10324         Add libnss_files to routines and static-only-routines.
10325         ($(objpfx)getent): Remove rule.
10326         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10327         static-only-routines.
10328
10329 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10330
10331         [BZ #13892]
10332         * math/s_cexp.c: Include <float.h>.
10333         (__cexp): Handle exp result overflowing not necessarily
10334         overflowing both real and imaginary parts of result.
10335         * math/s_cexpf.c: Likewise.
10336         * math/s_cexpl.c: Likewise.
10337         * math/libm-test.inc (cexp_test): Add more tests.
10338         * sysdeps/i386/fpu/libm-test-ulps: Update.
10339         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10340
10341 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10342
10343         * include/link.h (ELFW): New macro.
10344         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10345         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10346
10347 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10348
10349         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10350         with uint64_t.
10351
10352 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10353
10354         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10355         declaration.
10356         (struct La_x32_retval): Likewise.
10357
10358 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10359
10360         * sysdeps/x86_64/preconfigure.in: New file.
10361         * sysdeps/x86_64/preconfigure: New generated file.
10362
10363 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10364
10365         [BZ #13824]
10366         * math/e_exp2l.c: Include <float.h>.
10367         (__ieee754_exp2l): Handle overflow and underflow cases
10368         separately.  Only pass fractional part of argument to
10369         __ieee754_expl.
10370         * math/libm-test.inc (exp2_test): Add more tests.
10371
10372         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10373         negating x to take absolute value.
10374         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10375         Likewise.
10376         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10377         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10378         Likewise.
10379         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10380         computing low part if x was negated.
10381         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10382
10383 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10384
10385         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10386         la_x32_gnu_pltexit.
10387         (pltexit): Cast int_retval to ptrdiff_t.
10388         * elf/tst-auditmod3b.c: Likewise.
10389         * elf/tst-auditmod4b.c: Likewise.
10390         * elf/tst-auditmod5b.c: Likewise.
10391         * elf/tst-auditmod6b.c: Likewise.
10392         * elf/tst-auditmod6c.c: Likewise.
10393         * elf/tst-auditmod7b.c: Likewise.
10394
10395         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10396         and x32_gnu_pltexit.
10397
10398         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10399         __ELF_NATIVE_CLASS.
10400         (La_x32_regs): New macro.
10401         (La_x32_retval): Likewise.
10402         (la_x32_gnu_pltenter): New function prototype.
10403         (la_x32_gnu_pltexit): Likewise.
10404
10405 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10406
10407         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10408         exponent.
10409
10410         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10411
10412         * configure.in (libc_cv_cc_nofma): Check for option to disable
10413         generation of FMA instructions.
10414         * configure: Regenerate.
10415         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10416         * sysdeps/ieee754/dbl-64/Makefile: New file.
10417         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10418         Remove brandred-fma4.
10419         (CFLAGS-brandred-fma4.c): Remove.
10420         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10421         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10422         define.
10423         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10424         define.
10425
10426 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10427
10428         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10429         LLONG_MAX != LONG_MAX.
10430         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10431         (_fitoa_word): Likewise.
10432         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10433         LLONG_MAX != LONG_MAX.
10434         * stdio-common/_itowa.h: Include <_itoa.h>.
10435         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10436         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10437         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10438         only if not defined.
10439         (_ITOA_WORD_TYPE): Likewise.
10440         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10441         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10442
10443 2012-03-21  David S. Miller  <davem@davemloft.net>
10444
10445         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10446
10447 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10448
10449         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10450         of x86_64 when setting libc_cv_slibdir, libdir and
10451         libc_cv_localedir.
10452         * sysdeps/unix/sysv/linux/configure: Regenerated.
10453
10454 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10455
10456         * manual/lang.texi (Old Varargs): Remove section.
10457         (How Variadic): Update menu.
10458         (va_start): Do not mention varargs.h.
10459
10460 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10461             Joseph Myers  <joseph@codesourcery.com>
10462
10463         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10464         link test.
10465         * configure: Regenerated.
10466
10467 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10468
10469         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10470         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10471         conformtest.pl
10472
10473 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10474
10475         * NOTES: Remove.
10476         * Makefile (files-for-dist): Remove NOTES.
10477         (NOTES): Remove rule.
10478         * README: Don't refer to NOTES.
10479         * manual/creature.texi: Don't include macros.texi.
10480         * manual/intro.texi (creature.texi): Remove comment referring to
10481         NOTES.
10482
10483         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10484         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10485         * configure: Regenerated.
10486         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10487         LIBC_TRY_CC_OPTION.
10488         (libc_cv_as_i686): Likewise.
10489         (libc_cv_cc_avx): Likewise.
10490         (libc_cv_cc_sse2avx): Likewise.
10491         (libc_cv_cc_fma4): Likewise.
10492         (libc_cv_cc_novzeroupper): Likewise.
10493         * sysdeps/i386/configure: Regenerated.
10494
10495         [BZ #13883]
10496         * sysdeps/i386/fpu/s_cexp.S: Remove.
10497         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10498         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10499         * math/libm-test.inc (cexp_test): Add more tests.
10500         * sysdeps/i386/fpu/libm-test-ulps: Update.
10501         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10502
10503 2012-03-21  Allan McRae  <allan@archlinux.org>
10504
10505         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10506
10507 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10508
10509         [BZ #13871]
10510         * math/w_exp2.c: Do not include <float.h>.
10511         (o_threshold, u_threshold): Remove.
10512         (__exp2): Calculate result before checking finiteness and calling
10513         __kernel_standard.
10514         * math/w_exp2f.c: Likewise.
10515         * math/w_exp2l.c: Likewise.
10516         * math/libm-test.inc (exp2_test): Require overflow exception for
10517         1e6 input.
10518
10519         [BZ #3866]
10520         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10521         range of signed 64-bit integers before using fistpll.  Remove
10522         checks for whether integers fit in mantissa bits.
10523         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10524         the range of signed 32-bit integers before using fistpl.  Remove
10525         checks for whether integers fit in mantissa bits.
10526         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10527         (__ieee754_powl): Test for y outside the range of signed 64-bit
10528         integers before using fistpll.  Reduce 64-bit values to 63-bit
10529         ones as needed.
10530         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10531         divide-by-zero is raised for zero to large negative powers.
10532         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10533         (__ieee754_powl): Test for y outside the range of signed 64-bit
10534         integers before using fistpll.  Reduce 64-bit values to 63-bit
10535         ones as needed.
10536         * math/libm-test.inc (pow_test): Add more tests.
10537
10538 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10539
10540         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10541         <stdio-common/_itoa.h>.
10542         * debug/segfault.c: Likewise.
10543         * elf/dl-cache.c: Likewise.
10544         * elf/dl-minimal.c: Likewise.
10545         * elf/dl-misc.c: Likewise.
10546         * elf/dl-sysdep.c: Likewise.
10547         * elf/dl-version.c: Likewise.
10548         * elf/rtld.c: Likewise.
10549         * hurd/hurdsock.c: Likewise.
10550         * hurd/lookup-retry.c: Likewise.
10551         * malloc/malloc.c: Likewise.
10552         * malloc/mtrace.c: Likewise.
10553         * nscd/nscd_getgr_r.c: Likewise.
10554         * nscd/nscd_getpw_r.c: Likewise.
10555         * nscd/nscd_getserv_r.c: Likewise.
10556         * posix/getopt_init.c: Likewise.
10557         * posix/wordexp.c: Likewise.
10558         * stdio-common/_itoa.c: Likewise.
10559         * stdio-common/printf_fphex.c: Likewise.
10560         * stdio-common/vfprintf.c: Likewise.
10561         * string/_strerror.c: Likewise.
10562         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10563         * sysdeps/i386/i686/hp-timing.h: Likewise.
10564         * sysdeps/mach/_strerror.c: Likewise.
10565         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10566         * sysdeps/mach/hurd/sethostid.c: Likewise.
10567         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10568         * sysdeps/mach/xpg-strerror.c: Likewise.
10569         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10570         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10571         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10572         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10573         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10574         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10575         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10576         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10577         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10578         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10579         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10580         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10581         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10582         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10583         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10584         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10585         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10586         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10587         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10588         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10589         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10590
10591         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10592
10593         * stdio-common/_itoa.h: Moved to ...
10594         * sysdeps/generic/_itoa.h: Here.
10595
10596         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10597
10598         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10599         instead of "_itoa.h" and "_itowa.h".
10600         * stdio-common/vfprintf.: Likewise.
10601
10602 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10603
10604         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10605         <bits/wordsize.h>.
10606         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10607         (__signbit): Likwise.
10608         (llrintf): Likwise.
10609         (llrint): Likwise.
10610
10611 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10612
10613         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10614         __WORDSIZE != 64.
10615
10616 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10617
10618         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10619         OVERFLOW_EXCEPTION_OK.
10620         * math/libm-test.inc ("Philosophy"): Update comment about
10621         exception testing.
10622         (OVERFLOW_EXCEPTION): Define.
10623         (OVERFLOW_EXCEPTION_OK): Likewise.
10624         (INVALID_EXCEPTION_OK): Renumber.
10625         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10626         (IGNORE_ZERO_INF_SIGN): Likewise.
10627         (test_exceptions): Handle FE_OVERFLOW.
10628         (exp10_test): Expect overflow exceptions.
10629         (exp2_test): Likewise.
10630         (expm1_test): Likewise.
10631         (nextafter_test): Likewise.
10632         (pow_test): Likewise.
10633         (scalbn_test): Likewise.
10634         (scalbln_test): Likewise.
10635
10636 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10637
10638         * sysdeps/x86_64/bits/atomic.h
10639         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10640         64bit integer.
10641         (atomic_exchange_acq): Likewise.
10642         (__arch_exchange_and_add_body): Likewise.
10643         (__arch_add_body): Likewise.
10644         (atomic_add_negative): Likewise.
10645         (atomic_add_zero): Likewise.
10646
10647 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10648
10649         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10650         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10651
10652 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10653
10654         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10655         Check __x86_64__ instead of __WORDSIZE.
10656
10657 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10658
10659         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10660
10661 2012-03-19  David S. Miller  <davem@davemloft.net>
10662
10663         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10664
10665         * sysdeps/sparc/fpu/fenv_private.h: New file.
10666         * sysdeps/sparc/fpu/math_private.h: Use it.
10667         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10668         Remove.
10669         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10670         (libc_feholdexcept_setroundl): Remove.
10671         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10672         Remove.
10673         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10674         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10675
10676 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10677
10678         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10679         int64_t instead of long int.
10680         (INSERT_WORDS64): Likwise.
10681
10682 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10683
10684         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10685         _Unwind_GetCFA return to _Unwind_Ptr first.
10686
10687 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10688
10689         [BZ #13629]
10690         * math/s_clog.c: Include <float.h>.
10691         (__clog): Scale large or subnormal inputs.
10692         * math/s_clogf.c: Likewise.
10693         * math/s_clogl.c: Likewise.
10694         * math/s_clog10.c: Include <float.h>.
10695         (M_LOG10_2): Define.
10696         (__clog10): Scale large or subnormal inputs.
10697         * math/s_clog10f.c: Likewise.
10698         * math/s_clog10l.c: Likewise.
10699         * math/libm-test.inc (clog_test): Add more tests.
10700         (clog10_test): Likewise.
10701         * sysdeps/i386/fpu/libm-test-ulps: Update.
10702         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10703
10704         [BZ #11451]
10705         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10706         x and y.
10707         * math/libm-test.inc (atan2_test): Add another test.
10708
10709         * Makerules (common-objdir-compile): Remove.
10710         * sysdeps/unix/Makefile (config-generated): Do not add
10711         $(unix-generated) to variable.
10712         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10713         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10714         Remove rule.
10715         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10716         Likewise.
10717         [generic bits/local_lim.h] (before-compile): Do not append to
10718         variable.
10719         [generic bits/local_lim.h] (common-generated): Likewise.
10720         [generic sys/param.h] (before-compile): Do not append to variable.
10721         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10722         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10723         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10724         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10725         include.
10726         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10727         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10728         [generic sys/param.h] ($(addprefix
10729         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10730         [generic sys/param.h] (common-generated): Do not append to
10731         variable.
10732         [generic sys/param.h] (sysdep_headers): Likewise.
10733         [generic bits/errno.h] (before-compile): Do not append to
10734         variable.
10735         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10736         rule.
10737         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10738         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10739         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10740         [generic bits/errno.h] (common-generated): Do not append to
10741         variable.
10742         [generic bits/ioctls.h] (before-compile): Do not append to
10743         variable.
10744         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10745         rule.
10746         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10747         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10748         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10749         rule.
10750         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10751         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10752         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10753         [generic bits/ioctls.h] (common-generated): Do not append to
10754         variable.
10755         [generic sys/syscall.h] (syscall.h): Remove variable.
10756         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10757         rule.
10758         [generic sys/syscall.h] (before-compile): Do not append to
10759         variable.
10760         [generic sys/syscall.h] (common-generated): Likewise.
10761         * sysdeps/unix/errnos-tmpl.c: Remove file.
10762         * sysdeps/unix/errnos.awk: Likewise.
10763         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10764         * sysdeps/unix/ioctls.awk: Likewise.
10765         * sysdeps/unix/mk-local_lim.c: Likewise.
10766         * sysdeps/unix/snarf-ioctls: Likewise.
10767
10768 2012-03-19  Richard Henderson  <rth@twiddle.net>
10769
10770         * sysdeps/i386/fpu/fenv_private.h: New file.
10771         * sysdeps/i386/fpu/math_private.h: Use it.
10772         (math_opt_barrier, math_force_eval): Remove.
10773         (libc_feholdexcept_setround_53bit): Remove.
10774         (libc_feupdateenv_53bit): Remove.
10775         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10776         (math_opt_barrier, math_force_eval): Remove.
10777         (libc_feholdexcept): Remove.
10778         (libc_feholdexcept_setround): Remove.
10779         (libc_fetestexcept, libc_fesetenv): Remove.
10780         (libc_feupdateenv_test): Remove.
10781         (libc_feupdateenv, libc_feholdsetround): Remove.
10782         (libc_feresetround): Remove.
10783
10784         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10785         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10786
10787         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10788         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10789         (libc_feupdateenv_testl): New.
10790         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10791         (libc_feupdateenv_testf): New.
10792         (libc_feupdateenv): Use libc_feupdateenv_test.
10793         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10794         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10795
10796         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10797         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10798         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10799         (libc_feresetround_noex): New.
10800         (libc_feresetround_noexf): New.
10801         (libc_feresetround_noexl): New.
10802         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10803         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10804         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10805         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10806         SET_RESTORE_ROUND.
10807         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10808         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10809         (__cos): Likewise.
10810         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10811         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10812         SET_RESTORE_ROUND_NOEX.
10813         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10814         SET_RESTORE_ROUND_NOEXF.
10815         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10816         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10817         (libc_feholdsetroundf): New.
10818         (libc_feresetround, libc_feresetroundf): New.
10819
10820         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10821         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10822         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10823
10824         * sysdeps/generic/math_private.h: Include <fenv.h>.
10825         (default_libc_feholdexcept): New.
10826         (default_libc_feholdexcept_setround): New.
10827         (default_libc_fesetenv, default_libc_feupdateenv): New.
10828         (libc_feholdexcept): Only define if undefined.
10829         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10830         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10831         (libc_feholdexcept_setroundl): Likewise.
10832         (libc_feholdexcept_setround_53bit): Likewise.
10833         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10834         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10835         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10836         (libc_feupdateenv_53bit): Likewise.
10837         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10838         (libc_feholdexcept): Convert from macro to inline function.
10839         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10840         (libc_fesetenv, libc_feupdateenv): Likewise.
10841
10842         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10843         not previously defined.
10844         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10845         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10846         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10847         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10848         * sysdeps/ieee754/flt-32/math_private.h: New file.
10849         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10850         math_private.h below SET_FLOAT_WORD.
10851         (__isnan, __isinf_ns, __finite): Remove.
10852         (__isnanf, __isinf_nsf, __finitef): Remove.
10853
10854 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10855
10856         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10857
10858 2012-03-17  David S. Miller  <davem@davemloft.net>
10859
10860         [BZ #6471]
10861         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10862         for 2.16.
10863
10864 2012-03-16  David S. Miller  <davem@davemloft.net>
10865
10866         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10867         warnings.
10868
10869         [BZ #6471]
10870         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10871         properly.
10872         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10873         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10874         sysdep_routines when subdir is sysvipc.
10875         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10876         __getshmlba helper.
10877
10878         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10879
10880 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10881
10882         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10883         [__LP64__].
10884
10885 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10886
10887         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10888         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10889         (__lround): Renamed to ...
10890         (__llround): This.  Replace long int with long long int.
10891         Define lround functions as aliases of llround functions.
10892         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10893
10894 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10895
10896         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10897         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10898         adresses to uintptr_t.  Replace "long int" and "unsigned long
10899         int" with "greg_t" on va_arg.
10900
10901 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10902
10903         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10904         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10905
10906         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10907         Move e_machine check before EI_CLASS check.  Handle x32
10908         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10909         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10910         SKIP_EM_IA_64 and include
10911         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10912
10913         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10914         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10915         (add_system_dir): New macro.
10916
10917         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10918         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10919
10920 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10921
10922         [BZ #2551]
10923         [BZ #2552]
10924         [BZ #2553]
10925         [BZ #2554]
10926         [BZ #2562]
10927         [BZ #2563]
10928         [BZ #2565]
10929         [BZ #2566]
10930         [BZ #2576]
10931         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10932         (y0): Likewise.
10933         * math/w_j0f.c (j0f): Likewise.
10934         (y0f): Likewise.
10935         * math/w_j0l.c (__j0l): Likewise.
10936         (__y0l): Likewise.
10937         * math/w_j1.c (j1): Likewise.
10938         (y1): Likewise.
10939         * math/w_j1f.c (j1f): Likewise.
10940         (y1f): Likewise.
10941         * math/w_j1l.c (__j1l): Likewise.
10942         (__y1l): Likewise.
10943         * math/w_jn.c (jn): Likewise.
10944         (yn): Likewise.
10945         * math/w_jnf.c (jnf): Likewise.
10946         (ynf): Likewise.
10947         * math/w_jnl.c (__jnl): Likewise.
10948         (__ynl): Likewise.
10949         * math/libm-test.inc (j0_test): Add more tests.
10950         (j1_test): Likewise.
10951         (jn_test): Likewise.  Add trailing semicolon to existing test.
10952         (y0_test): Likewise.
10953         (y1_test): Likewise.
10954         * sysdeps/i386/fpu/libm-test-ulps: Update.
10955         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10956
10957         [BZ #13851]
10958         [BZ #13854]
10959         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10960         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10961         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10962         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10963         (__tanl): Set errno for infinite argument.
10964         * sysdeps/i386/fpu/mptan.c: Remove.
10965         * sysdeps/i386/fpu/s_tan.S: Likewise.
10966         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10967         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10968         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10969         * math/libm-test.inc (tan_test): Add more tests and enable more
10970         tests for double and long double.
10971         * sysdeps/i386/fpu/libm-test-ulps: Update.
10972         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10973
10974 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10975
10976         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10977         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10978
10979 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10980
10981         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10982         * configure.in: Use it for both main tree and add-ons.
10983         * configure: Regenerated.
10984
10985 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10986
10987         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10988
10989 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10990
10991         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10992         in comment.
10993
10994         [BZ #13851]
10995         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10996         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10997         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10998         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10999         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
11000         infinite argument.
11001         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
11002         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
11003         != 0 for prec == 2.
11004         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
11005         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
11006         * sysdeps/i386/fpu/s_cosl.S: Likewise.
11007         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
11008         * sysdeps/i386/fpu/s_sinl.S: Likewise.
11009         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
11010         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
11011         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
11012         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
11013         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
11014         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
11015         * math/libm-test.inc (cos_test): Add more tests and enable more
11016         tests for long double.
11017         (sin_test): Likewise.
11018         (sincos_test): Likewise.
11019         * sysdeps/i386/fpu/libm-test-ulps: Update.
11020         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11021
11022 2012-03-16  David S. Miller  <davem@davemloft.net>
11023
11024         * sysdeps/sparc/fpu/math_private.h: New file.
11025
11026 2012-03-15  David S. Miller  <davem@davemloft.net>
11027
11028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
11029         file.
11030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
11031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
11032         file.
11033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
11034         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
11035         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
11036         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
11037         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
11038         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
11039         sysdep routines.
11040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11041
11042         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
11043         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
11044
11045         * sysdeps/sparc/sparc-ifunc.h: New file.
11046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
11047         sparc-ifunc.h
11048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
11049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
11050         Likewise.
11051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
11052         Likewise.
11053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
11054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
11055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
11056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
11057         Likewise.
11058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
11059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
11060         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
11061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
11062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
11063         Likewise.
11064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
11065         Likewise.
11066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
11067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
11068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
11069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
11070         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
11071         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
11072         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
11073         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
11074         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
11075         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
11076         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
11077         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
11078         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
11079         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
11080         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
11081         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
11082         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
11083         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
11084         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
11085         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
11086         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
11087         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
11088         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
11089         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
11090
11091 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11092
11093         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
11094         scaling.
11095         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11096
11097 2012-03-15  Andreas Jaeger  <aj@suse.de>
11098
11099         [BZ #13852]
11100         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
11101         ieee754/flt-32 implementation for sin, cos and sincos.
11102         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
11103         * sysdeps/i386/fpu/s_cosf.S: Likewise.
11104         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
11105         * sysdeps/i386/fpu/s_sinf.S: Likewise.
11106         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
11107         ieee754/flt-32 implementation for tan.
11108
11109         * math/libm-test.inc (cos_test): Enable some large input tests for
11110         float as well
11111         (sin_test): Likewise.
11112         (sincos_test): Likewise.
11113         (tan_test): Add tests for large input.
11114
11115         * sysdeps/i386/fpu/libm-test-ulps: Update.
11116
11117 2012-03-15  Andreas Jaeger  <aj@suse.de>
11118
11119         [BZ #13658]
11120         * math/libm-test.inc (cos_test): Add more test cases.
11121         (sin_test): Likewise.
11122         (sincos_test): Likewise.
11123
11124 2012-03-15  Andreas Jaeger  <aj@suse.de>
11125
11126         [BZ #13837]
11127         * math/libm-test.inc (cos_test): Add a test case for large input
11128         value.
11129         (sin_test): Likewise.
11130         (sincos_test): Likewise.
11131
11132 2012-03-15  Andreas Jaeger  <aj@suse.de>,
11133         Joseph Myers  <joseph@codesourcery.com>
11134
11135         [BZ #13658]
11136         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
11137         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
11138         * sysdeps/i386/fpu/branred.c: Likewise.
11139         * sysdeps/i386/fpu/dosincos.c: Likewise.
11140         * sysdeps/i386/fpu/mpa.c: Likewise.
11141         * sysdeps/i386/fpu/s_cos.S: Likewise.
11142         * sysdeps/i386/fpu/s_sin.S: Likewise.
11143         * sysdeps/i386/fpu/s_sincos.S: Likewise.
11144         * sysdeps/i386/fpu/sincos32.c: Likewise.
11145
11146         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
11147         Define.
11148         (libc_feupdateenv_53bit): Define.
11149         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
11150         Define.
11151         (libc_feupdateenv_53bit): Define.
11152
11153         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
11154         53 bit (without extend i386 double precision).
11155
11156         * math/libm-test.inc (sincos_test): Add tests for large input.
11157         (sin): Likewise.
11158         (cos): Likewise.
11159
11160         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11161
11162 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11163
11164         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11165
11166 2012-03-15  David S. Miller  <davem@davemloft.net>
11167
11168         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11169         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11170         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11171         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11172         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11173         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11174         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11175         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11176         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11177         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11178         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11179         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11180         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11181         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11182         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11183         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11184         file.
11185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11186         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11187         file.
11188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11190         file.
11191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11192         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11193         file.
11194         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11195         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11196         fmin/fmax sysdep routines.
11197         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11198
11199 2012-03-14  David S. Miller  <davem@davemloft.net>
11200
11201         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11202         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11203         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11204         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11205         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11206         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11207         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11208         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11209         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11210         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11211         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11212         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11213         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11214         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11215         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11216         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11217         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11218         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11219         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11220         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11221         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11222         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11223         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11224         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11225         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11226         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11227         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11228         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11229         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11230         routines.
11231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11232         file.
11233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11234         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11235         file.
11236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11238         file.
11239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11241         file.
11242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11244         file.
11245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11246         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11247         file.
11248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11249         file.
11250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11251         file.
11252         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11253         file.
11254         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11255         New file.
11256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11257         file.
11258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11259         file.
11260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11262         file.
11263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11265         file.
11266         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11268         file.
11269         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11271         VIS3 routines.
11272
11273         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11274         New file.
11275
11276         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11277
11278         * sysdeps/sparc/configure.in: New file.
11279         * sysdeps/sparc/configure: Generate.
11280         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11281         * configure: Regenerate.
11282         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11283         * config.make.in (have-as-vis3): New.
11284         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11285         available use -Av9d instead of -Av9a.
11286         * sysdeps/sparc/sparc64/Makefile: Likewise.
11287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11289         New file.
11290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11291         file.
11292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11293         New file.
11294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11295         file.
11296         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11297         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11298         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11299         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11300         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11301
11302         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11303         fzeros/fnegs to load 0x80000000 into a float register instead of
11304         using the stack.
11305         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11306
11307 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11308
11309         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11310         bits/syscall.h.
11311         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11312         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11313         ($(inst_includedir)/bits/syscall.h): Remove rule.
11314         ($(objpfx)bits/syscall.d): Include instead of
11315         $(objpfx)syscall-list.d.
11316         (generated): Change syscall-list.h and syscall-list.d to
11317         bits/syscall.h and bits/syscall.d.
11318
11319 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11320
11321         [BZ #13846]
11322         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11323
11324 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11325
11326         [BZ #13841]
11327         * math/s_csqrt.c: Include <float.h>.
11328         (__csqrt): Scale large or subnormal inputs.
11329         * math/s_csqrtf.c: Likewise.
11330         * math/s_csqrtl.c: Likewise.
11331         * math/libm-test.inc (csqrt_test): Add more tests.
11332         * sysdeps/i386/fpu/libm-test-ulps: Update.
11333         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11334
11335         [BZ #13840]
11336         * math/libm-test.inc (hypot_test): Add more tests.
11337
11338 2012-03-13  David S. Miller  <davem@davemloft.net>
11339
11340         [BZ #13840]
11341         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11342         double-precision for the calculation instead of scaling.
11343
11344 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11345
11346         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11347         manipulate bits before adding and subtracting TWO52[sx].
11348         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11349         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11350         Likewise.
11351         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11352
11353 2012-03-13  David S. Miller  <davem@davemloft.net>
11354
11355         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11356         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11357         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11358         rtld-global-offsets.h
11359         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11360
11361         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11362         large parameters.
11363
11364         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11365
11366         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11367         'err' in the ifdef scope in which it is actually used.
11368
11369         * nss/nss_db/db-init.c: Include string.h
11370
11371 2012-03-12  David S. Miller  <davem@davemloft.net>
11372
11373         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11374         masking out of the most significant byte of random value used.
11375         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11376         Fix coding style in previous change.
11377
11378         * sysdeps/unix/sysv/linux/kernel-features.h
11379         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11380         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11381         expression.
11382         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11383         later.
11384
11385 2012-03-11  David S. Miller  <davem@davemloft.net>
11386
11387         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11388         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11389         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11390         for 'resultvar' otherwise things get truncated on 64-bit.
11391
11392         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11393         Fix masking out of the most significant byte of random value used.
11394
11395         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11396
11397 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11398
11399         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11400
11401 2012-03-09  David S. Miller  <davem@davemloft.net>
11402
11403         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11404         variables with appropriate CPP guards.
11405         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11406         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11407         on resulting framesize and the management of the outregs buffer for pltexit.
11408         Preserve floating point return values across _dl_call_pltexit call.
11409         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11410         framesize and the management of the outregs buffer for pltexit.
11411         Preserve floating point return values across _dl_call_pltexit
11412         call.
11413         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11414         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11415         (print_exit): Fix format string for return register value.
11416
11417 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11418
11419         * sunrpc/Makefile (others): Add rpcgen.
11420         ($(objpfx)rpcgen): Remove special build rule and dependency on
11421         libc.
11422         * sunrpc/rpcgen.c: New file.
11423
11424 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11425
11426         [BZ #13673]
11427         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11428         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11429         * sysdeps/i386/crti.S: Likewise.
11430         * sysdeps/i386/crtn.S: Likewise.
11431         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11432         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11433         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11434         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11435         * sysdeps/sh/crti.S: Likewise.
11436         * sysdeps/sh/crtn.S: Likewise.
11437         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11438
11439         [BZ #13673]
11440         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11441         with URL.
11442         * locale/programs/locfile-kw.gperf: Likewise.
11443         * locale/programs/charmap-kw.h: Regenerated.
11444         * locale/programs/locfile-kw.h: Likewise.
11445
11446         [BZ #13673]
11447         * intl/plural.y: Replace FSF snail mail address with URL.
11448         * intl/plural.c: Regenerated.
11449
11450 2012-03-09  Richard Henderson  <rth@twiddle.net>
11451
11452         * include/math_private.h: Remove file.
11453         * math/math_private.h: Move file ...
11454         * sysdeps/generic/math_private.h: ... here.
11455
11456         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11457         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11458         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11459
11460         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11461         and <math_private.h>.
11462         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11463         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11464         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11465         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11466         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11467         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11468         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11469         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11470         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11471         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11472         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11473         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11474         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11475         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11476         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11477         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11478         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11479         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11480         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11481         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11482         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11483         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11484         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11485         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11486         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11487         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11488         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11489         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11490         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11491         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11492         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11493         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11494         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11495         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11496         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11497         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11498         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11499         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11500         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11501         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11502         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11503         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11504         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11505         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11506         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11507         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11508         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11509         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11510         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11511         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11512         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11513         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11514         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11515         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11516         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11517         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11518         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11519         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11520         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11521         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11522         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11523         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11524         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11525         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11526         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11527         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11528         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11529         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11530         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11531         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11532         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11533         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11534         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11535         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11536         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11537         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11538         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11539         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11540         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11541         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11542         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11543         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11544         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11545         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11546         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11547         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11548         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11549         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11550         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11551         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11552         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11553         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11554         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11555         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11556         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11557         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11558         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11559         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11560         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11561         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11562         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11563         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11564         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11565         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11566         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11567         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11568         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11569         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11570         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11571         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11572         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11573         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11574         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11575         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11576         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11577         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11578         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11579         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11580         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11581         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11582         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11583         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11584         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11585         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11586         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11587         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11588         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11589         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11590         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11591         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11592         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11593         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11594         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11595         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11596         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11597         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11598         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11599         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11600         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11601         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11602         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11603         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11604         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11605         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11606         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11607         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11608         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11609         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11610         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11611         * sysdeps/ieee754/k_standard.c: Likewise.
11612         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11613         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11614         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11615         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11616         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11617         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11618         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11619         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11620         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11621         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11622         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11623         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11624         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11625         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11626         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11627         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11628         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11629         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11630         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11631         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11632         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11633         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11634         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11635         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11636         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11637         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11638         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11639         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11640         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11641         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11642         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11643         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11644         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11645         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11646         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11647         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11648         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11649         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11650         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11651         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11652         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11653         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11654         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11655         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11656         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11657         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11658         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11659         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11660         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11661         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11662         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11663         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11664         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11665         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11666         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11667         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11668         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11669         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11670         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11671         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11672         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11673         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11674         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11675         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11676         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11677         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11678         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11679         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11680         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11681         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11682         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11683         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11684         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11685         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11686         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11687         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11688         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11689         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11690         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11691         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11692         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11693         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11694         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11695         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11696         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11697         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11698         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11699         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11700         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11701         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11702         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11703         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11704         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11705         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11706         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11707         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11708         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11709         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11710         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11711         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11712         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11713         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11714         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11715         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11716         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11717         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11718         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11719         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11720         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11721         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11722         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11723         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11724         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11725         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11726         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11727         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11728         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11729         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11730         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11731         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11732         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11733         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11734         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11735         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11736         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11737         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11738         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11739         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11740         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11741         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11742         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11743         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11744         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11745         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11746         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11747         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11748         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11749         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11750         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11751         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11752         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11753         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11754         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11755         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11756         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11757         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11758         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11759         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11760         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11761         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11762         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11763         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11764         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11765         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11766         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11767         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11768         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11769         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11770         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11771         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11772         * sysdeps/ieee754/s_lib_version.c: Likewise.
11773         * sysdeps/ieee754/s_matherr.c: Likewise.
11774         * sysdeps/ieee754/s_signgam.c: Likewise.
11775         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11776         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11777         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11778         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11779         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11780         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11781         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11782         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11783         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11784         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11785         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11786         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11787         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11788         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11789         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11790         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11791         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11792         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11793         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11794         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11795         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11796
11797 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11798
11799         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11800         * sunrpc/rpc_main.c: Likewise.
11801         * sunrpc/rpc_svcout.c: Likewise.
11802
11803 2012-03-09  David S. Miller  <davem@davemloft.net>
11804
11805         * include/math_private.h: New file.
11806
11807 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11808
11809         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11810         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11811         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11812         from <bits/socket_type.h>.
11813         (enum __socket_type): Don't define here.
11814         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11815         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11816         bits/socket_type.h.
11817
11818         [BZ #13566]
11819         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11820         checking __USE_GNU.
11821
11822         * Makerules ($(inst_includedir)/%.h): New rule.
11823         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11824         (install-others): Remove variable setting.
11825         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11826
11827 2012-03-08  Richard Henderson  <rth@twiddle.net>
11828
11829         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11830         from macro to inline function; merge with the
11831         !__LIBC_INTERNAL_MATH_INLINES version.
11832         (__ieee754_sqrtf): Likewise.
11833
11834         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11835         to inline function.
11836         (__rintf, __floor, __floorf): Likewise.
11837
11838         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11839         macro to inline function.
11840         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11841
11842         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11843         not <math/math_private.h>.
11844
11845 2012-03-08  David S. Miller  <davem@davemloft.net>
11846
11847         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11848         copyright year.
11849         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11850
11851 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11852
11853         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11854         normalization.
11855         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11856         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11857
11858 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11859
11860         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11861         be defined individually, they must be defined as a block.  Define
11862         S for printing a string instead of hidint the different by using a
11863         macro for adding the 'l'.
11864         * stdio-common/tst-fphex-wide.c: Adjust.
11865
11866 2012-03-07  Marek Polacek  <polacek@redhat.com>
11867
11868         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11869
11870 2012-03-08  Marek Polacek  <polacek@redhat.com>
11871
11872         [BZ #13806]
11873         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11874         * stdio-common/tst-fphex.c: Define a few macros to make the
11875         test reusable.  Use them.
11876         * stdio-common/tst-fphex-wide.c: New file.
11877
11878 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11879
11880         [BZ #6911]
11881         * manual/macros.texi (gnusystems): New macro.
11882         (nongnusystems): Likewise.
11883         (gnulinuxhurdsystems): Likewise.
11884         (gnuhurdsystems): Likewise..
11885         (gnulinuxsystems): Likewise.
11886         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11887         variants of the GNU system, not "GNU system".
11888         * manual/conf.texi: Likewise.
11889         * manual/errno.texi: Likewise.  Update example of errno macro
11890         expansion.
11891         * manual/filesys.texi: Likewise.
11892         (getumask): Document as specific to GNU/Hurd.
11893         * manual/install.texi: Likewise.  Reword some references to
11894         GNU/Linux.
11895         * manual/intro.texi: Likewise.
11896         * manual/io.texi: Likewise.
11897         (File Name Portability): Detail which constraints are inapplicable
11898         to all GNU systems and which are only inapplicable to GNU/Hurd.
11899         * manual/job.texi: Likewise.
11900         * manual/llio.texi: Likewise.
11901         (O_NOCTTY): Document as present on GNU/Linux.
11902         * manual/maint.texi: Likewise.
11903         * manual/memory.texi: Likewise.
11904         * manual/pattern.texi: Likewise.
11905         * manual/pipe.texi: Likewise.
11906         * manual/process.texi: Likewise.
11907         * manual/resource.texi: Likewise.
11908         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11909         child on GNU/Hurd.
11910         * manual/setjmp.texi: Likewise.
11911         * manual/signal.texi: Likewise.
11912         * manual/startup.texi: Likewise.
11913         * manual/stdio.texi: Likewise.
11914         * manual/terminal.texi: Likewise.
11915         (ONLCR): Document as POSIX.
11916         (OXTABS): Document availability on GNU/Linux as XTABS.
11917         (ONOEOT): Document availability separately from other bits.
11918         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11919         * manual/time.texi: Likewise.
11920         * manual/users.texi: Likewise.
11921         * INSTALL: Regenerated.
11922         * sysdeps/gnu/errlist.c: Regenerated.
11923
11924         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11925         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11926         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11927         puts.
11928         * configure: Regenerated.
11929
11930 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11931
11932         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11933         default includes instead of AC_HEADER_CHECK.
11934         * sysdeps/i386/configure: Regenerated.
11935
11936         [BZ #10716]
11937         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11938         * math/s_cacoshf.c (__cacoshf): Likewise.
11939         * math/s_cacoshl.c (__cacoshl): Likewise.
11940         * math/s_casinh.c (__casinh): Set signs of result from argument.
11941         * math/s_casinhf.c (__casinhf): Likewise.
11942         * math/s_casinhl.c (__casinhl): Likewise.
11943         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11944         (casinh_test): Add more tests.
11945         * sysdeps/i386/fpu/libm-test-ulps: Update.
11946         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11947
11948 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11949
11950         * po/zh_TW.po: Update from translation team.
11951
11952         * login/Makefile (distribute): Remove variable.
11953         * catgets/Makefile: Likewise.
11954         * mach/Makefile: Likewise.
11955         * malloc/Makefile: Likewise.
11956         * misc/Makefile: Likewise.
11957         * iconv/Makefile: Likewise.
11958         * nscd/Makefile: Likewise.
11959         * hurd/Makefile: Likewise.
11960         * manual/Makefile: Likewise.
11961         * locale/Makefile: Likewise.
11962         * intl/Makefile: Likewise.
11963         * conform/Makefile: Likewise.
11964         * nss/Makefile: Likewise.
11965         * time/Makefile: Likewise.
11966         * soft-fp/Makefile: Likewise.
11967         * dirent/Makefile: Likewise.
11968         * gmon/Makefile: Likewise.
11969         * po/Makefile: Likewise.
11970         * rt/Makefile: Likewise.
11971         * socket/Makefile: Likewise.
11972         * math/Makefile: Likewise.
11973         * signal/Makefile: Likewise.
11974         * debug/Makefile: Likewise.
11975         * elf/Makefile: Likewise.
11976         * timezone/Makefile: Likewise.
11977         * stdlib/Makefile: Likewise.
11978         * iconvdata/Makefile: Likewise.
11979         * sunrpc/Makefile: Likewise.
11980         * io/Makefile: Likewise.
11981         * argp/Makefile: Likewise.
11982         * inet/Makefile: Likewise.
11983         * hesiod/Makefile: Likewise.
11984         * grp/Makefile: Likewise.
11985         * csu/Makefile: Likewise.
11986         * wctype/Makefile: Likewise.
11987         * crypt/Makefile: Likewise.
11988         * libio/Makefile: Likewise.
11989         * string/Makefile: Likewise.
11990         * nis/Makefile: Likewise.
11991         * resolv/Makefile: Likewise.
11992         * stdio-common/Makefile: Likewise.
11993         * wcsmbs/Makefile: Likewise.
11994         * dlfcn/Makefile: Likewise.
11995         * posix/Makefile: Likewise.
11996
11997         [BZ #6959]
11998         * timezone/Makefile: Don't install timezone files, just the programs
11999         and scripts.
12000
12001 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
12002
12003         * nss/databases.def: Add missing gshadow entry.
12004
12005         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
12006
12007 2012-03-06  Marek Polacek  <polacek@redhat.com>
12008
12009         [BZ #13726]
12010         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
12011         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
12012         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
12013         * stdio-common/tst-long-dbl-fphex.c: New file.
12014
12015 2012-03-06  David S. Miller  <davem@davemloft.net>
12016
12017         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12018         (set_obp_int): New function.
12019         (get_obp_int): New function.
12020         (__get_clockfreq_via_dev_openprom): Likewise.
12021         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
12022         Avoid unused variable warnings on 'val' and use builtin_expect.
12023         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
12024         __builtin_expect.
12025         (INLINE_CLONE_SYSCALL): Likewise.
12026
12027 2012-03-05  David S. Miller  <davem@davemloft.net>
12028
12029         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12030
12031 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
12032
12033         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12034
12035         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
12036         only for |x| >= 40.
12037         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12038
12039 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12040
12041         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
12042         Replace gettimeofday with __vdso_gettimeofday.
12043
12044         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12045         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
12046         __vdso_clock_gettime and __vdso_getcpu.
12047
12048         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
12049         time with __vdso_time.
12050
12051 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12052
12053         * manual/lang.texi (size_t): Note types to which size_t may be
12054         equivalent with the GNU C Library, but do not describe when
12055         differences between them are significant.
12056
12057 2012-03-05  Andreas Jaeger  <aj@suse.de>
12058
12059         * sysdeps/i386/fpu/libm-test-ulps: Update.
12060
12061 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12062
12063         [BZ #3976]
12064         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
12065         (__ieee754_pow): Save and restore rounding mode and use
12066         round-to-nearest for main computations.
12067         * math/libm-test.inc (pow_test_tonearest): New function.
12068         (pow_test_towardzero): Likewise.
12069         (pow_test_downward): Likewise.
12070         (pow_test_upward): Likewise.
12071         (main): Call the new functions.
12072         * sysdeps/i386/fpu/libm-test-ulps: Update.
12073         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12074
12075         [BZ #3976]
12076         * math/libm-test.inc (cosh_test_tonearest): New function.
12077         (cosh_test_towardzero): Likewise.
12078         (cosh_test_downward): Likewise.
12079         (cosh_test_upward): Likewise.
12080         (sinh_test_tonearest): Likewise.
12081         (sinh_test_towardzero): Likewise.
12082         (sinh_test_downward): Likewise.
12083         (sinh_test_upward): Likewise.
12084         (main): Call the new functions.
12085         * sysdeps/i386/fpu/libm-test-ulps: Update.
12086         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12087
12088 2012-03-05  Tom de Vries  <tom@codesourcery.com>
12089
12090         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
12091         default stack guard is set in last bytes.
12092         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
12093
12094 2012-03-05  Kees Cook  <keescook@chromium.org>
12095
12096         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
12097
12098         [BZ #13656]
12099         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
12100         possibly allocate from heap instead of stack.
12101         * stdio-common/bug-vfprintf-nargs.c: New file.
12102         * stdio-common/Makefile (tests): Add nargs overflow test.
12103
12104 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
12105
12106         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12107
12108 2012-03-03  Marek Polacek  <polacek@redhat.com>
12109
12110         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
12111         * math/math_private.h: Likewise.
12112         * stdlib/tst-strtod.c: Likewise.
12113         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12114         * sysdeps/x86_64/bits/atomic.h: Likewise.
12115
12116 2012-03-02  David S. Miller  <davem@davemloft.net>
12117
12118         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
12119         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
12120         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
12121         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
12122         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
12123         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
12124         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
12125         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
12126
12127 2012-03-02  Roland McGrath  <roland@hack.frob.com>
12128
12129         [BZ #13792]
12130         * manual/examples/README: New file, says the example source files
12131         can be used under GPL>=2.
12132         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
12133         line containing just "*/".
12134         * manual/examples/add.c: Add copyright header (GPL>=2).
12135         * manual/examples/argp-ex1.c: Likewise.
12136         * manual/examples/argp-ex2.c: Likewise.
12137         * manual/examples/argp-ex3.c: Likewise.
12138         * manual/examples/argp-ex4.c: Likewise.
12139         * manual/examples/atexit.c: Likewise.
12140         * manual/examples/db.c: Likewise.
12141         * manual/examples/dir.c: Likewise.
12142         * manual/examples/dir2.c: Likewise.
12143         * manual/examples/execinfo.c: Likewise.
12144         * manual/examples/filecli.c: Likewise.
12145         * manual/examples/filesrv.c: Likewise.
12146         * manual/examples/fmtmsgexpl.c: Likewise.
12147         * manual/examples/genpass.c: Likewise.
12148         * manual/examples/inetcli.c: Likewise.
12149         * manual/examples/inetsrv.c: Likewise.
12150         * manual/examples/isockad.c: Likewise.
12151         * manual/examples/longopt.c: Likewise.
12152         * manual/examples/memopen.c: Likewise.
12153         * manual/examples/memstrm.c: Likewise.
12154         * manual/examples/mkfsock.c: Likewise.
12155         * manual/examples/mkisock.c: Likewise.
12156         * manual/examples/mygetpass.c: Likewise.
12157         * manual/examples/pipe.c: Likewise.
12158         * manual/examples/popen.c: Likewise.
12159         * manual/examples/rprintf.c: Likewise.
12160         * manual/examples/search.c: Likewise.
12161         * manual/examples/select.c: Likewise.
12162         * manual/examples/setjmp.c: Likewise.
12163         * manual/examples/sigh1.c: Likewise.
12164         * manual/examples/sigusr.c: Likewise.
12165         * manual/examples/stpcpy.c: Likewise.
12166         * manual/examples/strdupa.c: Likewise.
12167         * manual/examples/strftim.c: Likewise.
12168         * manual/examples/strncat.c: Likewise.
12169         * manual/examples/subopt.c: Likewise.
12170         * manual/examples/swapcontext.c: Likewise.
12171         * manual/examples/termios.c: Likewise.
12172         * manual/examples/testopt.c: Likewise.
12173         * manual/examples/testpass.c: Likewise.
12174         * manual/examples/timeval_subtract.c: Likewise.
12175
12176         [BZ #13792]
12177         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12178         function to ...
12179         * manual/timeval_subtract.c.texi: ... here, new file.
12180
12181 2012-03-02  David S. Miller  <davem@davemloft.net>
12182
12183         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12184
12185 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12186
12187         [BZ #3976]
12188         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12189         (__sin): Save and restore rounding mode and use round-to-nearest
12190         for all computations.
12191         (__cos): Save and restore rounding mode and use round-to-nearest
12192         for all computations.
12193         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12194         <fenv.h>.
12195         (tan): Save and restore rounding mode and use round-to-nearest for
12196         all computations.
12197         * math/libm-test.inc (cos_test_tonearest): New function.
12198         (cos_test_towardzero): Likewise.
12199         (cos_test_downward): Likewise.
12200         (cos_test_upward): Likewise.
12201         (sin_test_tonearest): Likewise.
12202         (sin_test_towardzero): Likewise.
12203         (sin_test_downward): Likewise.
12204         (sin_test_upward): Likewise.
12205         (tan_test_tonearest): Likewise.
12206         (tan_test_towardzero): Likewise.
12207         (tan_test_downward): Likewise.
12208         (tan_test_upward): Likewise.
12209         (main): Call the new functions.
12210         * sysdeps/i386/fpu/libm-test-ulps: Update.
12211         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12212
12213         [BZ #10135]
12214         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12215         small n, then large n, before computing and testing k+n.
12216         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12217         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12218         Likewise.
12219         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12220         Likewise.
12221         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12222         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12223         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12224         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12225         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12226         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12227         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12228         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12229         * math/libm-test.inc (scalbn_test): Add more tests.
12230         (scalbln_test): Likewise.
12231
12232         * manual/filesys.texi (mode_t): Describe constraints on size and
12233         signedness, not exact equivalence to a particular type.
12234         (ino_t): Likewise.
12235         (ino64_t): Likewise.
12236         (dev_t): Likewise.
12237         (nlink_t): Likewise.
12238         (blkcnt_t): Likewise.
12239         (blkcnt64_t): Likewise.
12240         * manual/llio.texi (off_t): Likewise.
12241
12242         [BZ #3976]
12243         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12244         (__ieee754_exp): Save and restore rounding mode and use
12245         round-to-nearest for all computations.
12246         * math/libm-test.inc (exp_test_tonearest): New function.
12247         (exp_test_towardzero): Likewise.
12248         (exp_test_downward): Likewise.
12249         (exp_test_upward): Likewise.
12250         (main): Call the new functions.
12251         * sysdeps/i386/fpu/libm-test-ulps: Update.
12252         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12253
12254 2012-03-01  Chris Demetriou  <cgd@google.com>
12255
12256         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12257         have predictable order.
12258
12259 2012-03-01  David S. Miller  <davem@davemloft.net>
12260
12261         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12262
12263         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12264         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12265         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12266         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12267
12268         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12269         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12270         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12271         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12272         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12273         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12274         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12275         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12276         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12277
12278         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12279
12280         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12281         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12282         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12283
12284         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12285         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12286         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12287         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12288         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12289         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12290         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12291         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12292         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12293         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12294         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12295         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12296         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12297         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12298         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12299         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12300         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12301         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12302         * sysdeps/sparc/elf/configure: Regenerated.
12303
12304 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12305
12306         * configure.in (AS, LD): Require binutils 2.20 or later.
12307         * configure: Regenerated.
12308         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12309         as required minimum version.
12310         * INSTALL: Regenerated.
12311
12312         [BZ #2541]
12313         [BZ #4108]
12314         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12315         before squaring exponent.
12316         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12317         bottom long double and 27 bits of top long double before squaring
12318         exponent.
12319         * math/libm-test.inc (erfc_test): Add more tests.
12320         * sysdeps/i386/fpu/libm-test-ulps: Update.
12321         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12322         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12323
12324 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12325
12326         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12327         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12328         containing bit-fields.
12329         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12330         * soft-fp/single.h (_FP_UNION_S): Likewise.
12331         * soft-fp/double.h (_FP_UNION_D): Likewise.
12332
12333 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12334
12335         [BZ #13786]
12336         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12337         not include ../strcmp.S.
12338         [USE_AS_STRNCASECMP_L]: Likewise.
12339         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12340         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12341         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12342         (__strncasecmp_l_ia32): Define as alias to
12343         __strncasecmp_l_nonascii.
12344
12345         [BZ #5794]
12346         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12347         * sysdeps/i386/fpu/libm-test-ulps: Update.
12348         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12349
12350         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12351         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12352
12353 2012-02-29  Jeff Law  <law@redhat.com>
12354
12355         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12356         out of bounds read.
12357
12358 2012-02-29  Marek Polacek  <polacek@redhat.com>
12359
12360         [BZ #13706]
12361         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12362         * elf/Makefile: Add rules to run tst-unused-dep.out.
12363
12364 2012-02-28  David S. Miller  <davem@davemloft.net>
12365
12366         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12367         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12368         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12369         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12370         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12371         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12372
12373 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12374
12375         * math/libm-test.inc (llround_test): Move one test from
12376         lround_test.  Use TEST_f_L in moved test.
12377         (lround_test): Move misplaced test to llround_test.  Add testcase
12378         from bug 2561.
12379
12380 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12381
12382         * sysdeps/x86_64/fpu/e_expf.S: New file.
12383         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12384
12385 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12386
12387         [BZ #13637]
12388         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12389         of remain_len that may cause incomplete multi-byte character and
12390         false match.
12391         * posix/bug-regex33.c: New file.
12392         * posix/Makefile (tests): Add bug-regex33.
12393
12394 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12395
12396         * manual/macros.texi: New file.
12397         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12398         * manual/libc.texinfo: Include macros.texi.
12399         * manual/creatute.texi: Likewise.
12400         * manual/install.texi: Likewise.
12401         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12402         @glibcadj{} in references to the GNU C Library.
12403         * manual/charset.texi: Likewise.
12404         * manual/conf.texi: Likewise.
12405         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12406         when not using those macros.
12407         * manual/creature.texi: Likewise.
12408         * manual/crypt.texi: Likewise.
12409         * manual/errno.texi: Likewise.
12410         * manual/filesys.texi: Likewise.
12411         * manual/header.texi: Likewise.
12412         * manual/install.texi: Likewise.
12413         * manual/intro.texi: Likewise.
12414         * manual/io.texi: Likewise.
12415         * manual/job.texi: Likewise.
12416         * manual/lang.texi: Likewise.
12417         * manual/libc.texiinfo: Likewise.
12418         * manual/llio.texi: Likewise.
12419         * manual/locale.texi: Likewise.
12420         * manual/maint.texi: Likewise.
12421         * manual/math.texi: Likewise.
12422         * manual/memory.texi: Likewise.
12423         * manual/message.texi: Likewise.
12424         * manual/nss.texi: Likewise.
12425         * manual/pattern.texi: Likewise.
12426         * manual/process.texi: Likewise.
12427         * manual/resource.texi: Likewise.
12428         * manual/search.texi: Likewise.
12429         * manual/setjmp.texi: Likewise.
12430         * manual/signal.texi: Likewise.
12431         * manual/socket.texi: Likewise.
12432         * manual/startup.texi: Likewise.
12433         * manual/stdio.texi: Likewise.
12434         * manual/string.texi: Likewise.
12435         * manual/sysinfo.texi: Likewise.
12436         * manual/syslog.texi: Likewise.
12437         * manual/terminal.texi: Likewise.
12438         * manual/time.texi: Likewise.
12439         * manual/users.texi: Likewise.
12440         * INSTALL: Regenerated.
12441         * NOTES: Regenerated.
12442         * sysdeps/gnu/errlist.c: Regenerated.
12443
12444 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12445
12446         * include/dirent.h: Include <dirstream.h> before
12447         <dirent/dirent.h>.
12448
12449 2012-02-28  David S. Miller  <davem@davemloft.net>
12450
12451         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12452         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12453         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12454         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12455
12456 2012-02-27  David S. Miller  <davem@davemloft.net>
12457
12458         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12459         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12460         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12461         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12462
12463         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12464         frame pointer instead of stack pointer relative arg slot.
12465         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12466         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12467         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12468
12469 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12470
12471         [BZ #3992]
12472         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12473
12474 2012-02-27  David S. Miller  <davem@davemloft.net>
12475
12476         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12477         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12478         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12479         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12480         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12481         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12482         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12483         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12484
12485 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12486
12487         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12488         later.  Allow versions 5-9.
12489         * configure: Regenerated.
12490         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12491         required minimum version and 4.6 as recommended version.  Do not
12492         mention bugs in GCC 2.7 and 2.8.
12493         * INSTALL: Regenerated.
12494
12495 2012-02-27  David S. Miller  <davem@davemloft.net>
12496
12497         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12498         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12499         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12500         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12501         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12502         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12503         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12504         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12505
12506         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12507         manipulate bits before adding and subtracting TWO112[sx].
12508         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12509
12510 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12511
12512         [BZ #13775]
12513         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12514         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12515         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12516         being in POSIX, because they are in 1003.1-2008.
12517
12518         * rt/tst-aio.c: Include <fcntl.h>.
12519         * rt/tst-aio7.c: Likewise.
12520         * rt/tst-aio64.c: Likewise.
12521
12522         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12523
12524 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12525
12526         * manual/install.texi (--with-headers): Describe headers as
12527         interface headers, not private headers.
12528         (Specific advice for GNU/Linux systems): Describe use of headers
12529         from "make headers_install", not private headers from older
12530         kernels.
12531         * INSTALL: Regenerated.
12532         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12533         Change to 2.6.19.
12534         * sysdeps/unix/sysv/linux/configure: Regenerated.
12535
12536         * manual/llio.texi (fclean): Remove documentation.
12537
12538         * manual/Makefile (libc-texi-generated): New variable.  Include
12539         version.texi.
12540         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12541         $(libc-texi-generated), not duplicated list of files.
12542         (version.texi, stamp-version): New rules.
12543         (realclean): Remove $(libc-texi-generated), not individual files
12544         from that list.  Do not remove dir-add.texinfo.
12545         * manual/libc.texinfo: Comment out uses of edition numbers and
12546         references to printed manual.  Remove last-updated dates.
12547         (EDITION): Comment out.
12548         (ISBN): Likewise.
12549         (VERSION, UPDATED): Remove.
12550         (version.texi): Include.
12551
12552 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12553
12554         * sysdeps/posix/spawni.c: Include <signal.h>.
12555         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12556         * sysdeps/pthread/aio_fsync.c: Likewise.
12557
12558 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12559
12560         * conform/Makefile (tests): Run only when not cross-compiling and
12561         when fast-check is not defined.
12562
12563         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12564         * conform/data/limits.h-data: Fixes for POSIX2008.
12565         * conform/run-conformtest.sh: Run all tests.
12566         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12567         headers.
12568         * include/bits/dlfcn.h: Likewise.
12569         * include/langinfo.h: Likewise.
12570         * include/monetary.h: Likewise.
12571         * include/sys/poll.h: Likewise.
12572
12573         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12574         for __USE_GNU.
12575         * posix/spawn.h: Define __need_sigset_t.
12576         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12577         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12578         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12579         to get sigevent_t only.
12580         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12581         only for __USE_GNU.
12582         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12583         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12584         process_vm_writev only for __USE_GNU.
12585         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12586
12587         * conform/Makefile: For now ignore errors from run-conformtest.
12588         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12589         POSIX to avoid namespace pollution.  Don't prepend headers.
12590         * conform/data/aio.h-data: Fixes for POSIX testing.
12591         * conform/data/fcntl.h-data: Likewise.
12592         * conform/data/glob.h-data: Likewise.
12593         * conform/data/grp.h-data: Likewise.
12594         * conform/data/pthread.h-data: Likewise.
12595         * conform/data/pwd.h-data: Likewise.
12596         * conform/data/signal.h-data: Likewise.
12597         * conform/data/spawn.h-data: Likewise.
12598         * conform/data/stdio.h-data: Likewise.
12599         * conform/data/stdlib.h-data: Likewise.
12600         * conform/data/stropts.h-data: Likewise.
12601         * conform/data/sys/mman.h-data: Likewise.
12602         * conform/data/sys/stat.h-data: Likewise.
12603         * conform/data/sys/types.h-data: Likewise.
12604         * conform/data/sys/wait.h-data: Likewise.
12605         * conform/data/time.h-data: Likewise.
12606         * conform/data/unistd.h-data: Likewise.
12607         * conform/data/utime.h-data: Likewise.
12608
12609         * io/sys/stat.h: fchmod was always in POSIX.
12610         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12611         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12612         * rt/aio.h: Define __need_timespec before including <time.h>.
12613         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12614         struct.  Add forward declaration of pthread_attr_t and use it in
12615         sigevent.
12616         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12617         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12618         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12619         always remove CLK_TCK definition.
12620
12621 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12622
12623         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12624
12625 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12626
12627         * conform/run-conformtest.sh: New file.
12628         * conform/Makefile: Run run-conformtest for tests.
12629         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12630         support.
12631
12632         * conform/data/uchar.h-data: New file.
12633         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12634         * conform/data/arpa/inet.h-data: Likewise.
12635         * conform/data/assert.h-data: Likewise.
12636         * conform/data/complex.h-data: Likewise.
12637         * conform/data/cpio.h-data: Likewise.
12638         * conform/data/ctype.h-data: Likewise.
12639         * conform/data/dirent.h-data: Likewise.
12640         * conform/data/dlfcn.h-data: Likewise.
12641         * conform/data/errno.h-data: Likewise.
12642         * conform/data/fcntl.h-data: Likewise.
12643         * conform/data/float.h-data: Likewise.
12644         * conform/data/fmtmsg.h-data: Likewise.
12645         * conform/data/fnmatch.h-data: Likewise.
12646         * conform/data/ftw.h-data: Likewise.
12647         * conform/data/glob.h-data: Likewise.
12648         * conform/data/grp.h-data: Likewise.
12649         * conform/data/iconv.h-data: Likewise.
12650         * conform/data/inttypes.h-data: Likewise.
12651         * conform/data/langinfo.h-data: Likewise.
12652         * conform/data/libgen.h-data: Likewise.
12653         * conform/data/limits.h-data: Likewise.
12654         * conform/data/locale.h-data: Likewise.
12655         * conform/data/math.h-data: Likewise.
12656         * conform/data/monetary.h-data: Likewise.
12657         * conform/data/mqueue.h-data: Likewise.
12658         * conform/data/ndbm.h-data: Likewise.
12659         * conform/data/net/if.h-data: Likewise.
12660         * conform/data/netdb.h-data: Likewise.
12661         * conform/data/netinet/in.h-data: Likewise.
12662         * conform/data/nl_types.h-data: Likewise.
12663         * conform/data/poll.h-data: Likewise.
12664         * conform/data/pthread.h-data: Likewise.
12665         * conform/data/pwd.h-data: Likewise.
12666         * conform/data/regex.h-data: Likewise.
12667         * conform/data/sched.h-data: Likewise.
12668         * conform/data/search.h-data: Likewise.
12669         * conform/data/semaphore.h-data: Likewise.
12670         * conform/data/setjmp.h-data: Likewise.
12671         * conform/data/signal.h-data: Likewise.
12672         * conform/data/spawn.h-data: Likewise.
12673         * conform/data/stdarg.h-data: Likewise.
12674         * conform/data/stdio.h-data: Likewise.
12675         * conform/data/stdlib.h-data: Likewise.
12676         * conform/data/string.h-data: Likewise.
12677         * conform/data/strings.h-data: Likewise.
12678         * conform/data/stropts.h-data: Likewise.
12679         * conform/data/sys/ipc.h-data: Likewise.
12680         * conform/data/sys/mman.h-data: Likewise.
12681         * conform/data/sys/msg.h-data: Likewise.
12682         * conform/data/sys/resource.h-data: Likewise.
12683         * conform/data/sys/select.h-data: Likewise.
12684         * conform/data/sys/sem.h-data: Likewise.
12685         * conform/data/sys/shm.h-data: Likewise.
12686         * conform/data/sys/socket.h-data: Likewise.
12687         * conform/data/sys/stat.h-data: Likewise.
12688         * conform/data/sys/statvfs.h-data: Likewise.
12689         * conform/data/sys/time.h-data: Likewise.
12690         * conform/data/sys/timeb.h-data: Likewise.
12691         * conform/data/sys/times.h-data: Likewise.
12692         * conform/data/sys/types.h-data: Likewise.
12693         * conform/data/sys/uio.h-data: Likewise.
12694         * conform/data/sys/un.h-data: Likewise.
12695         * conform/data/sys/utsname.h-data: Likewise.
12696         * conform/data/sys/wait.h-data: Likewise.
12697         * conform/data/syslog.h-data: Likewise.
12698         * conform/data/tar.h-data: Likewise.
12699         * conform/data/termios.h-data: Likewise.
12700         * conform/data/utime.h-data: Likewise.
12701         * conform/data/utmpx.h-data: Likewise.
12702         * conform/data/varargs.h-data: Likewise.
12703         * conform/data/wchar.h-data: Likewise.
12704         * conform/data/wctype.h-data: Likewise.
12705         * conform/data/wordexp.h-data: Likewise.
12706
12707         * include/stropts.h: New file.
12708         * include/uchar.h: New file.
12709         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12710         * include/assert.h: Likewise.
12711         * include/ctype.h: Likewise.
12712         * include/dirent.h: Likewise.
12713         * include/dlfcn.h: Likewise.
12714         * include/fcntl.h: Likewise.
12715         * include/fnmatch.h: Likewise.
12716         * include/glob.h: Likewise.
12717         * include/grp.h: Likewise.
12718         * include/libio.h: Likewise.
12719         * include/locale.h: Likewise.
12720         * include/math.h: Likewise.
12721         * include/net/if.h: Likewise.
12722         * include/netdb.h: Likewise.
12723         * include/netinet/in.h: Likewise.
12724         * include/pthread.h: Likewise.
12725         * include/pwd.h: Likewise.
12726         * include/regex.h: Likewise.
12727         * include/sched.h: Likewise.
12728         * include/search.h: Likewise.
12729         * include/setjmp.h: Likewise.
12730         * include/signal.h: Likewise.
12731         * include/stdio.h: Likewise.
12732         * include/stdlib.h: Likewise.
12733         * include/string.h: Likewise.
12734         * include/sys/cdefs.h: Likewise.
12735         * include/sys/mman.h: Likewise.
12736         * include/sys/msg.h: Likewise.
12737         * include/sys/resource.h: Likewise.
12738         * include/sys/select.h: Likewise.
12739         * include/sys/socket.h: Likewise.
12740         * include/sys/stat.h: Likewise.
12741         * include/sys/statvfs.h: Likewise.
12742         * include/sys/time.h: Likewise.
12743         * include/sys/times.h: Likewise.
12744         * include/sys/uio.h: Likewise.
12745         * include/sys/utsname.h: Likewise.
12746         * include/sys/wait.h: Likewise.
12747         * include/termios.h: Likewise.
12748         * include/time.h: Likewise.
12749         * include/ulimit.h: Likewise.
12750         * include/unistd.h: Likewise.
12751         * include/utime.h: Likewise.
12752         * include/wchar.h: Likewise.
12753         * include/wctype.h: Likewise.
12754         * include/wordexp.h: Likewise.
12755
12756         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12757
12758         * time/time.h: TIME_UTC must be a macro.
12759         Make timespec_get available for ISO C11 only as well.
12760
12761 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12762
12763         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12764         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12765
12766 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12767
12768         * configure.in: Use -o not -a in test for unsupported multi-arch.
12769
12770 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12771
12772         * manual/texinfo.tex: Update to version 2012-01-19.16.
12773
12774 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12775
12776         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12777
12778 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12779
12780         [BZ #13738]
12781         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12782         * manual/fdl-1.3.texi: New file.
12783         * manual/fdl-1.1.texi: File removed.
12784
12785         [BZ #13738]
12786         * manual/libc.texinfo (FDL_VERSION): New @set.
12787         Use it for mention of FDL in cover text.
12788         (Documentation License): Use it in @include file name.
12789
12790 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12791             Roland McGrath  <roland@hack.frob.com>
12792
12793         [BZ #5461]
12794         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12795         not LONG_LONG_MAX and LONG_LONG_MIN.
12796         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12797         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12798         name.
12799         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12800
12801 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12802
12803         [BZ #2547]
12804         [BZ #11365]
12805         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12806         manipulate bits before adding and subtracting TWO23[sx].
12807         * math/libm-test.inc (nearbyint_test): Add more tests.
12808
12809 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12810
12811         [BZ #2548]
12812         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12813         bits before adding and subtracting TWO23[sx].
12814         * math/libm-test.inc (rint_test): Add more tests.
12815         (rint_test_tonearest): Likewise.
12816         (rint_test_towardzero): Likewise.
12817         (rint_test_downward): Likewise.
12818         (rint_test_upward: Likewise.
12819
12820 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12821
12822         [BZ #10110]
12823         * include/stdc-predef.h: New file.  Extracted from features.h.
12824         * include/features.h: Include stdc-predef.h.
12825         * Makefile (headers): Add stdc-predef.h.
12826         * CONFORMANCE (Compiler limitations): Update.
12827
12828 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12829
12830         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12831
12832 2012-02-21  David S. Miller  <davem@davemloft.net>
12833
12834         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12835         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12836
12837 2012-02-20  David S. Miller  <davem@davemloft.net>
12838
12839         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12840         using a normal save/restore sequence, rather than allocating a
12841         dummy stack frame just to store a frame pointer and restore.
12842         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12843
12844 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12845
12846         * manual/install.texi: Fix stray word in line-wrapped comment.
12847
12848 2012-02-20  David S. Miller  <davem@davemloft.net>
12849
12850         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12851         both binutils and gcc support GOTDATA.
12852
12853         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12854         "rd %pc" in the PIC register setup sequences.
12855
12856         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12857         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12858         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12859         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12860         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12861         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12862         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12863         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12864         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12865         (SYSCALL_ERROR_HANDLER): Likewise.
12866         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12867         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12868         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12869         (SYSCALL_ERROR_HANDLER): Likewise.
12870
12871         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12872         (HAVE_GCC_GOTDATA): New.
12873         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12874         relocation support in both binutils and gcc.
12875         * sysdeps/sparc/elf/configure: Regenerate.
12876
12877         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12878         * sysdeps/sparc/sparc32/elf/configure: Delete.
12879         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12880         * sysdeps/sparc/sparc64/elf/configure: Delete.
12881         * sysdeps/sparc/elf/configure.in: New file.
12882         * sysdeps/sparc/elf/configure: Generate.
12883
12884         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12885         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12886         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12887         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12888         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12889
12890 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12891
12892         * manual/install.texi: Do not mention specific glibc version
12893         numbers.
12894         * manual/libc.texinfo (VERSION, UPDATED): Update.
12895         (@copying): Use @copyright{} and range of years.
12896
12897 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12898
12899         [BZ #13695]
12900         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12901         [crti.S not in sysdirs] (generated): Do not append.
12902         [crti.S not in sysdirs] (omit-deps): Likewise.
12903         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12904         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12905         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12906         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12907         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12908         Likewise.
12909         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12910         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12911         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12912         * csu/defs.awk: Remove file.
12913         * sysdeps/generic/initfini.c: Likewise.
12914         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12915         variable.
12916         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12917         Likewise.
12918
12919 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12920
12921         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12922         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12923         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12924         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12925         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12926         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12927         <bits/epoll.h>.
12928         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12929         (__EPOLL_PACKED): Define to empty if not defined by
12930         <bits/epoll.h>.
12931         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12932         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12933         bits/epoll.h.
12934
12935 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12936
12937         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12938         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12939         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12940         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12941         <bits/timerfd.h>.
12942         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12943         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12944         bits/timerfd.h.
12945
12946 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12947
12948         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12949         in C locale.
12950         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12951         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12952         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12953         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12954
12955 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12956
12957         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12958         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12959
12960 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12961
12962         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12963         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12964         defined.
12965         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12966         Likewise.
12967         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12968         entry for 2.16.
12969
12970 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12971
12972         * math/w_acos.c: Use non-signaling floating-point comparisons.
12973         * math/w_acosf.c: Likewise.
12974         * math/w_acosh.c: Likewise.
12975         * math/w_acoshf.c: Likewise.
12976         * math/w_acoshl.c: Likewise.
12977         * math/w_acosl.c: Likewise.
12978         * math/w_asin.c: Likewise.
12979         * math/w_asinf.c: Likewise.
12980         * math/w_asinl.c: Likewise.
12981         * math/w_atanh.c: Likewise.
12982         * math/w_atanhf.c: Likewise.
12983         * math/w_atanhl.c: Likewise.
12984         * math/w_exp2.c: Likewise.
12985         * math/w_exp2f.c: Likewise.
12986         * math/w_exp2l.c: Likewise.
12987         * math/w_j0.c: Likewise.
12988         * math/w_j0f.c: Likewise.
12989         * math/w_j0l.c: Likewise.
12990         * math/w_j1.c: Likewise.
12991         * math/w_j1f.c: Likewise.
12992         * math/w_j1l.c: Likewise.
12993         * math/w_jn.c: Likewise.
12994         * math/w_jnf.c: Likewise.
12995         * math/w_log.c: Likewise.
12996         * math/w_log10.c: Likewise.
12997         * math/w_log10f.c: Likewise.
12998         * math/w_log10l.c: Likewise.
12999         * math/w_log2.c: Likewise.
13000         * math/w_log2f.c: Likewise.
13001         * math/w_log2l.c: Likewise.
13002         * math/w_logf.c: Likewise.
13003         * math/w_logl.c: Likewise.
13004         * math/w_sqrt.c: Likewise.
13005         * math/w_sqrtf.c: Likewise.
13006         * math/w_sqrtl.c: Likewise.
13007         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13008         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
13009         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13010         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13011         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13012
13013 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13014
13015         [BZ #9739]
13016         * manual/string.texi (strnlen): Use correct parameter name in
13017         equivalent expression.
13018
13019 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13020
13021         [BZ #11174]
13022         * manual/users.texi (seteuid): Consistently use neweuid for
13023         argument name.
13024
13025 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13026
13027         [BZ #13704]
13028         * manual/nss.texi (Services in the NSS configuration): Correct
13029         list of services in example configuration file.
13030
13031 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
13032
13033         [BZ #11322]
13034         * manual/arith.texi: Remove statements about negative zero
13035         behaving identically to zero.
13036
13037 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13038
13039         [BZ #5993]
13040         * manual/install.texi: Do not document upgrading from libc5.
13041
13042 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13043
13044         [BZ #4596]
13045         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
13046
13047 2012-02-18  David S. Miller  <davem@davemloft.net>
13048
13049         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
13050         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
13051         %o7 across the call.
13052         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
13053         instead.
13054         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
13055         SETUP_PIC_REG_LEAF.
13056         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13057         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
13058         * sysdeps/sparc/crtn.S: Likewise.
13059
13060 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
13061
13062         * aout/Makefile: Remove.
13063
13064 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
13065
13066         [BZ #13058]
13067         * manual/examples/argp-ex1.c (main): Format definition in GNU
13068         style.
13069         * manual/examples/argp-ex2.c (main): Likewise.
13070         * manual/examples/argp-ex3.c (main): Likewise.
13071         * manual/examples/argp-ex4.c (main): Likewise.
13072         * manual/examples/longopt.c (main): Use new-style prototype
13073         definition.
13074         * manual/examples/strncat.c (main): Specify return type and use
13075         (void) for arguments.
13076         * manual/examples/subopt.c (main): Use char **argv argument.
13077
13078 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13079
13080         [BZ #5077]
13081         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
13082         rounding modes.
13083
13084 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
13085
13086         [BZ #6907]
13087         * manual/string.texi (strchr): Change when strchrnul is
13088         recommended.
13089
13090 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
13091
13092         [BZ #174]
13093         * manual/locale.texi (setlocale): Document LOCPATH.
13094
13095 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13096
13097         [BZ #10210]
13098         * manual/process.texi (execle): Move @dots{} before last argument.
13099
13100 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
13101
13102         [BZ #12047]
13103         * manual/charset.texi (Generic Charset Conversion): Fix typo
13104         (LC_TYPE -> LC_CTYPE).
13105
13106 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
13107
13108         [BZ #5805]
13109         * manual/arith.texi (scalbn): Use @var{} on parameter names.
13110         (scalbnf): Likewise.
13111         (scalbnl): Likewise.
13112         (scalbln): Likewise.
13113         (scalblnf): Likewise.
13114         (scalblnl): Likewise.
13115         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
13116         (vwarnx): Likewise.
13117         (verr): Likewise.
13118         (verrx): Likewise.
13119         * manual/filesys.texi (telldir): Use braces around return type.
13120         * manual/llio.texi (mmap): Add space after comma.
13121         (mmap64): Likewise.
13122         * manual/math.texi (jn): Use @var{} on parameter names.
13123         (jnf): Likewise.
13124         (jnl): Likewise.
13125         (yn): Likewise.
13126         (ynf): Likewise.
13127         (ynl): Likewise.
13128         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
13129         line.
13130         * manual/resource.texi (ulimit): Use @dots{} instead of literal
13131         "...".
13132         (sched_get_priority_min): Remove semicolon on @deftypefun line.
13133         (sched_get_priority_max): Likewise.
13134         * manual/signal.texi (sigvec): Add space after comma.
13135         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
13136         names.
13137         (if_indextoname): Likewise.
13138         (if_freenameindex): Likewise.
13139         (sendto): Use ',' instead of '.' in prototype.
13140         * manual/startup.texi (syscall): Use @dots{} instead of literal
13141         "...".
13142         * manual/stdio.texi (__fpending): Separate initial words of
13143         paragraph from @deftypefun line.
13144         * manual/syslog.texi (syslog): Use @dots{} instead of literal
13145         "...".
13146         (vsyslog): Use @var{} on parameter names.
13147         * manual/terminal.texi (stty): Use @var{} on parameter names.
13148         * manual/users.texi (getutmp): Use @var{} on parameter names.
13149         (getutmpx): Likewise.
13150
13151 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13152
13153         [BZ #6884]
13154         * manual/stdio.texi (fopen): Fix typos in description of
13155         ",ccs=STRING".
13156
13157 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
13158
13159         [BZ #4026]
13160         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13161         get clock_id definition.
13162
13163 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13164
13165         [BZ #4822]
13166         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13167         (madvise): Cast every argument to void on its own.
13168
13169 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13170
13171         [BZ #9902]
13172         * manual/startup.texi (Exit Status): Fix typo.
13173
13174 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13175
13176         [BZ #10140]
13177         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13178         * manual/examples/argp-ex2.c: Likewise.
13179         * manual/examples/argp-ex3.c: Likewise.
13180
13181 2012-02-16  Richard Henderson  <rth@redhat.com>
13182
13183         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13184         * sysdeps/s390/s390-32/initfini.c: Remove.
13185         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13186         * sysdeps/s390/s390-64/initfini.c: Remove.
13187
13188 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13189
13190         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13191         compiler output for sysdeps/generic/initfini.c.
13192         * sysdeps/sh/elf/initfini.c: Remove file.
13193
13194 2012-02-16  David S. Miller  <davem@davemloft.net>
13195
13196         [BZ #11494]
13197         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13198
13199         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13200         * sysdeps/sparc/crti.S: New file.
13201         * sysdeps/sparc/crtn.S: New file.
13202         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13203         * sysdeps/sparc/sparc64/Makefile: Likewise.
13204
13205 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13206
13207         [BZ #3335]
13208         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13209
13210 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13211
13212         [BZ #4822]
13213         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13214
13215         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13216         (write, read, close): Likewise.
13217         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13218
13219 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13220
13221         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13222         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13223         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13224         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13225         <bits/signalfd.h>.
13226         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13227         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13228         bits/signalfd.h.
13229
13230 2012-02-14  Marek Polacek  <polacek@redhat.com>
13231
13232         * sysdeps/x86_64/crti.S: New file.
13233         * sysdeps/x86_64/crtn.S: New file.
13234         * sysdeps/x86_64/elf/initfini.c: Remove file.
13235
13236 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13237
13238         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13239         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13240         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13241         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13242         <bits/inotify.h>.
13243         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13244         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13245         bits/inotify.h.
13246
13247 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13248
13249         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13250         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13251         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13252         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13253         <bits/eventfd.h>.
13254         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13255         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13256         bits/eventfd.h.
13257
13258 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13259
13260         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13261         __feraiseexcept instead of feraiseexcept.
13262
13263         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13264         nanosleep invocations.
13265         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13266         strings, and add error checking for a nanosleep invocations.
13267
13268 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13269
13270         Replace FSF snail mail address with URLs, as per GNU coding standards.
13271         Most of the snail mail addresses were wrong anyway, and omitting
13272         them makes the source code easier to maintain.  Almost all of the
13273         changes are to license notices and to locale LC_IDENTIFICATION
13274         addresses, except for this one:
13275         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13276         not its snail mail address.
13277
13278 2012-02-09  Richard Henderson  <rth@twiddle.net>
13279
13280         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13281         of kernel-features.h.
13282
13283         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13284
13285 2012-02-08  Marek Polacek  <polacek@redhat.com>
13286
13287         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13288         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13289         * sysdeps/gnu/_G_config.h: Likewise.
13290         * sysdeps/generic/_G_config.h: Likewise.
13291
13292 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13293
13294         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13295         tests.
13296         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13297
13298         * sysdeps/powerpc/powerpc32/crti.S: New file.
13299         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13300         * sysdeps/powerpc/powerpc64/crti.S: New file.
13301         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13302
13303         * Makeconfig (have-initfini): Don't set.
13304         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13305         * configure.in (nopic_initfini): Don't substitute.
13306         * config.h.in (HAVE_INITFINI): Don't #undef.
13307         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13308         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13309
13310 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13311
13312         Support crti.S and crtn.S provided directly by architectures.
13313         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13314         [crti.S in sysdirs] (omit-deps): Likewise.
13315         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13316         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13317         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13318         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13319         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13320         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13321         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13322         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13323         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13324         compiler output for sysdeps/generic/initfini.c.
13325         * sysdeps/i386/elf/Makefile: Remove file.
13326         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13327
13328 2012-02-07  Marek Polacek  <polacek@redhat.com>
13329
13330         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13331         * sysdeps/gnu/_G_config.h: Likewise.
13332         * sysdeps/mach/hurd/_G_config.h: Likewise.
13333
13334 2012-02-07  Marek Polacek  <polacek@redhat.com>
13335
13336         * math/Makefile (tests): Add tst-CMPLX2.
13337         * math/tst-CMPLX2.c: New file.
13338
13339 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13340
13341         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13342
13343         * math/libm-test.inc (jn_test): Add missing L suffix.
13344
13345 2012-02-06  Marek Polacek  <polacek@redhat.com>
13346
13347         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13348         * sysdeps/i386/fpu/e_powf.S: Likewise.
13349         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13350         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13351         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13352         * sysdeps/i386/fpu/e_pow.S: Likewise.
13353         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13354         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13355         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13356         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13357         * sysdeps/i386/fpu/e_log2.S: Likewise.
13358         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13359         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13360         * sysdeps/i386/fpu/e_powl.S: Likewise.
13361         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13362         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13363         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13364         * sysdeps/i386/fpu/e_logl.S: Likewise.
13365         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13366         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13367         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13368         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13369         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13370         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13371         * sysdeps/i386/fpu/e_log.S: Likewise.
13372         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13373         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13374         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13375         * sysdeps/i386/fpu/e_logf.S: Likewise.
13376         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13377         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13378         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13379         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13380         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13381         * sysdeps/i386/fpu/e_log10.S: Likewise.
13382         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13383         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13384         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13385         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13386         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13387         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13388         * sysdeps/i386/asm-syntax.h: Likewise.
13389         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13390         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13391         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13392         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13393         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13394         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13395         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13396         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13397         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13398         * sysdeps/powerpc/sysdep.h: Likewise.
13399         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13400         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13401
13402 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13403
13404         [BZ #411]
13405         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13406
13407 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13408
13409         * sysdeps/i386/sysdep.h: Include <features.h>.
13410         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13411         version.
13412
13413 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13414
13415         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13416         Define.
13417         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13418         LOAD_PIC_REG_STR.
13419
13420 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13421
13422         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13423         (SETUP_PIC_REG): Use GET_PC_THUNK.
13424         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13425         macro.
13426
13427 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13428
13429         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13430         for non-PIC compilation.
13431         (SETUP_PIC_REG): Add .p2align directive.
13432         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13433         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13434         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13435         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13436         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13437         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13438         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13439         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13440         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13441         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13442         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13443         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13444         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13445         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13446         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13447         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13448         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13449         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13450         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13451         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13452         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13453         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13454         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13455         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13456         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13457         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13458         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13459         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13460         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13461         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13462         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13463         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13464         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13465         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13466         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13467         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13468         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13469         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13470         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13471         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13472         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13473
13474 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13475
13476         * math/tst-CMPLX.c: Include <stdio.h>.
13477
13478 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13479
13480         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13481         float.
13482         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13483         * sysdeps/sparc/bits/mathdef.h: Likewise.
13484
13485 2012-01-31  Marek Polacek  <polacek@redhat.com>
13486
13487         * libio/libio.h: Don't define _PARAMS.
13488         * locale/programs/config.h: Don't define PARAMS.
13489         * stdlib/strtol_l.c: Likewise.
13490         (__strtol_l): Remove PARAMS from the prototype.
13491
13492 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13493
13494         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13495         names.  Just use the correct names.  Remove unnecessary wrapper
13496         functions.
13497         * malloc/arena.c: Likewise.
13498         * malloc/hooks.c: Likewise.
13499
13500         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13501         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13502         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13503
13504 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13505
13506         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13507         into tail calls.
13508         (update_get_addr): New function.
13509         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13510         GET_ADDR_MODULE parameter.
13511
13512 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13513
13514         * crypt/cert.c: Remove __STDC__ conditionals.
13515         * crypt/crypt-entry.c: Likewise.
13516         * crypt/crypt_util.c: Likewise.
13517         * libio/filedoalloc.c: Likewise.
13518         * libio/fileops.c: Likewise.
13519         * libio/genops.c: Likewise.
13520         * libio/iofclose.c: Likewise.
13521         * libio/iofdopen.c: Likewise.
13522         * libio/iofopen.c: Likewise.
13523         * libio/iofopen64.c: Likewise.
13524         * libio/iogetdelim.c: Likewise.
13525         * libio/iopopen.c: Likewise.
13526         * libio/obprintf.c: Likewise.
13527         * libio/oldfileops.c: Likewise.
13528         * libio/oldiofclose.c: Likewise.
13529         * libio/oldiofdopen.c: Likewise.
13530         * libio/oldiofopen.c: Likewise.
13531         * libio/oldiopopen.c: Likewise.
13532         * libio/wfiledoalloc.c: Likewise.
13533         * libio/wgenops.c: Likewise.
13534         * locale/programs/xmalloc.c: Likewise.
13535         * misc/syslog.c: Likewise.
13536         * stdio-common/xbug.c: Likewise.
13537         * string/memchr.c: Likewise.
13538         * string/memcmp.c: Likewise.
13539         * string/memrchr.c: Likewise.
13540         * string/rawmemchr.c: Likewise.
13541         * sysdeps/posix/getcwd.c: Likewise.
13542         * time/strftime_l.c: Likewise.
13543
13544 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13545
13546         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13547         * config.make.in (config-cflags-sse2avx): Define.
13548         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13549         Fix typo.
13550
13551 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13552
13553         * scripts/config.guess: Update from upstream config git repository.
13554         * scripts/config.sub: Likewise.
13555
13556 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13557
13558         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13559         (EM_NUM): Update.
13560         (R_TILEPRO_*, R_TILEGX_*): New macros.
13561
13562         * scripts/firstversions.awk: Fix bug in version range handling.
13563
13564         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13565
13566         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13567
13568         * include/sys/epoll.h: New file.
13569         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13570         libc_hidden_def.
13571
13572 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13573
13574         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13575         Avoid unnecessary __WORDSIZE == 64 test.
13576         (fmaxf): Use VEX format if possible.
13577         (fmax): Likewise.
13578         (fminf): Likewise.
13579         (fmin): Likewise.
13580
13581         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13582         * math/math_private.h: Remove libc_fegetround* and
13583         libc_fesetround*.
13584         * sysdeps/i386/configure.in: Check for -msse2avx.
13585         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13586         also if SSE2AVX is defined.
13587         Remove libc_fegetround* and libc_fesetround*.
13588         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13589         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13590         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13591         of HAS_YMM_USABLE.
13592         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13593         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13594         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13595         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13596         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13597
13598         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13599
13600 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13601
13602         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13603         size is not set.
13604         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13605
13606 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13607
13608         [BZ #13618]
13609         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13610         relocation.
13611         * Makeconfig (libm): Define.
13612         * elf/Makefile: Add rules to build and run tst-relsort1.
13613         * elf/tst-relsort1.c: New file.
13614         * elf/tst-relsort1mod1.c: New file.
13615         * elf/tst-relsort1mod2.c: New file.
13616
13617 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13618
13619         * math/s_ldexp.c: Remove __STDC__ conditionals.
13620         * math/s_ldexpf.c: Likewise.
13621         * math/s_ldexpl.c: Likewise.
13622         * math/s_nextafter.c: Likewise.
13623         * math/s_nexttowardf.c: Likewise.
13624         * math/s_significand.c: Likewise.
13625         * math/s_significandf.c: Likewise.
13626         * math/s_significandl.c: Likewise.
13627         * math/w_jnl.c: Likewise.
13628         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13629         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13630         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13631         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13632         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13633         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13634         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13635         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13636         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13637         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13638         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13639         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13640         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13641         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13642         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13643         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13644         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13645         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13646         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13647         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13648         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13649         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13650         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13651         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13652         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13653         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13654         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13655         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13656         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13657         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13658         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13659         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13660         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13661         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13662         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13663         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13664         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13665         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13666         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13667         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13668         * sysdeps/ieee754/k_standard.c: Likewise.
13669         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13670         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13671         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13672         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13673         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13674         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13675         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13676         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13677         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13678         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13679         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13680         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13681         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13682         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13683         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13684         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13685         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13686         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13687         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13688         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13689         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13690         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13691         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13692         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13693         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13694         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13695         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13696         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13697         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13698         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13699         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13700         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13701         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13702         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13703         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13704         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13705         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13706         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13707         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13708         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13709         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13710         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13711         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13712         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13713         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13714         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13715         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13716         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13717         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13718         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13719         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13720         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13721         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13722         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13723         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13724         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13725         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13726         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13727         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13728         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13729         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13730         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13731         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13732         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13733         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13734         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13735         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13736         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13737         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13738         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13739         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13740         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13741         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13742         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13743         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13744         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13745         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13746         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13747         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13748         * sysdeps/ieee754/s_matherr.c: Likewise.
13749         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13750         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13751         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13752         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13753
13754 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13755
13756         * crypt/md5.h: Remove __STDC__ conditionals.
13757         * libio/libioP.h: Likewise.
13758         * locale/programs/config.h: Likewise.
13759         * sysdeps/generic/sysdep.h: Likewise.
13760         * sysdeps/i386/asm-syntax.h: Likewise.
13761         * sysdeps/s390/asm-syntax.h: Likewise.
13762         * sysdeps/unix/sysdep.h: Likewise.
13763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13765
13766 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13767
13768         * libio/libio.h: Remove __STDC__ conditionals.
13769         * malloc/obstack.h: Likewise.
13770         * math/complex.h: Likewise.
13771         * math/math.h: Likewise.
13772         * sysdeps/generic/_G_config.h: Likewise.
13773         * sysdeps/gnu/_G_config.h: Likewise.
13774         * sysdeps/mach/hurd/_G_config.h: Likewise.
13775         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13776         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13777         * sysdeps/sparc/bits/mathdef.h: Likewise.
13778
13779 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13780
13781         [BZ #13583]
13782         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13783         Clean up HAS_* macros.
13784         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13785         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13786         possible.
13787         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13788         HAS_AVX.
13789         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13790         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13791         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13792         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13793         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13794
13795 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13796
13797         * elf/tst-unique3.cc (gets): Remove declaration.
13798         * elf/tst-unique3lib.cc (gets): Likewise.
13799         * elf/tst-unique3lib2.cc (gets): Likewise.
13800         * elf/tst-unique4.cc (gets): Likewise.
13801
13802 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13803
13804         * include/stdio.h: Add C++ protection.  Add gets declarations and
13805         definitions.
13806         * debug/tst-chk1.c: Don't declare gets here.
13807         * stdio-common/tst-gets.c: Likewise.
13808
13809 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13810
13811         * posix/glob: Remove directory.
13812
13813 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13814
13815         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13816
13817 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13818
13819         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13820         of the non-standard EPFNOSUPPORT.
13821
13822 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13823
13824         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13825         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13826         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13827
13828 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13829
13830         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13831
13832 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13833
13834         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13835         transient errors.
13836         * nscd/grpcache.c (cache_addgr): Likewise.
13837         * nscd/hstcache.c (cache_addhst): Likewise.
13838         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13839         * nscd/pwdcache.c (cache_addpw): Likewise.
13840         * nscd/servicescache.c (cache_addserv): Likewise.
13841
13842 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13843
13844         * malloc/malloc.c: Various cleanups.
13845         * malloc/hooks.c: Likewise.
13846
13847         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13848         * stdlib/bug-fmtmsg1.c: New file.
13849
13850         * stdlib/fmtmsg.c (init): Add missing unlock.
13851         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13852
13853 2012-01-12  Marek Polacek  <polacek@redhat.com>
13854
13855         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13856         and _GNU_SOURCE.
13857
13858 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13859
13860         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13861         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13862         macro to ensure uniqueness of label name.
13863         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13864         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13865
13866 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13867
13868         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13869
13870         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13871         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13872         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13873         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13874
13875 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13876
13877         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13878
13879         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13880         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13881         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13882
13883         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13884
13885         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13886         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13887         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13888         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13889
13890         * math/bits/math-finite.h: Add ldexp support.
13891
13892 2012-01-10  Marek Polacek  <polacek@redhat.com>
13893
13894         * locale/programs/localedef.h (show_archive_content): Add noreturn
13895         attribute.
13896
13897 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13898
13899         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13900
13901 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13902
13903         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13904
13905         * io/Makefile (headers): Add bits/poll2.h.
13906
13907 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13908
13909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13910         typo #include statement.
13911
13912 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13913
13914         * include/sys/cdefs.h: Define __attribute_alloc_size.
13915         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13916         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13917         * elf/pldd.c: Likewise.
13918         * iconv/iconv_charmap.c: Likewise.
13919         * iconv/iconvconfig.c: Likewise.
13920         * iconv/strtab.c: Likewise.
13921         * locale/programs/locale.c: Likewise.
13922         * locale/programs/localedef.h: Likewise.
13923         * locale/programs/simple-hash.c: Likewise.
13924         * nscd/nscd.h: Likewise.
13925         * nss/makedb.c: Likewise.
13926         * sysdeps/generic/ldconfig.h: Likewise.
13927         * locale/programs/localedef.c: Remove xmalloc prototype.
13928         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13929
13930 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13931
13932         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13933         appropriate.
13934
13935 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13936
13937         * math/Makefile (tests): Add tst-CMPLX.
13938         * math/tst-CMPLX.c: New file.
13939
13940         * math/complex.h (CMPLXL): Fix typo.
13941
13942         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13943         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13944         GLIBC_2.16.
13945         * debug/tst-chk1.c: Add poll and ppoll tests.
13946         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13947         * include/sys/poll.h: Add hidden proto for ppoll.
13948         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13949         * sysdeps/mach/hurd/ppoll.c: Likewise.
13950         * io/ppoll.c: Likewise.
13951         * debug/poll_chk.c: New file.
13952         * debug/ppoll_chk.c: New file.
13953         * include/bits/poll2.h: New file.
13954         * io/bits/poll2.h: New file.
13955
13956         [BZ #1350]
13957         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13958
13959         * configure.in: static is always set to yes.  Remove.
13960         * config.make.in: Don't set build-static.
13961         * Makeconfig: Remove use of build-static.
13962         * dlfcn/Makefile: Likewise.
13963         * elf/Makefile: Likewise.
13964         * math/Makefile: Likewise.
13965         * misc/Makefile: Likewise.
13966         * nptl/Makefile: Likewise.
13967         * sysdeps/mach/hurd/Makefile: Likewise.
13968
13969         * configure.in: PWD_P is not used anymore.
13970         * config.make.in: Remove PWD_P entry.
13971
13972         * configure.in: Remove last remnants of RANLIB.
13973         No need to check for signed size_t anymore.
13974         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13975         and IA-64.
13976         Remove __builtin_expect test because we require at least gcc 3.4.
13977         * aclocal.m4: Likewise.
13978
13979         * wcsmbs/mbrtoc16.c: Implement using towc function.
13980         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13981         * wcsmbs/wcsmbsload.c: Likewise.
13982         * iconv/gconv_simple.c: Likewise.
13983         * iconv/gconv_int.h: Likewise.
13984         * iconv/gconv_builtin.h: Likewise.
13985         * iconv/iconv_prog.c: Remove CHAR16 handling.
13986
13987         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13988
13989         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13990
13991         * configure.in: Remove --with-elf and --enable-bounded options.
13992         Dont set base_machine for ia64.  More non-ELF conditions removed.
13993         Remove testing and setting of leading underscore information.
13994         * config.make.in (build-bounded): Set to no.
13995         * config.h.in: Remove NO_UNDERSCORES entry.
13996         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13997         them.
13998         * csu/start.c: Remove !NO_UNDERSCORE code.
13999         * locale/localeinfo.h: Likewise.
14000         * sysdeps/generic/machine-gmon.h: Likewise.
14001         * sysdeps/generic/sysdep.h: Likewise.
14002         * sysdeps/i386/sysdep.h: Likewise.
14003         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14004         * sysdeps/mach/sysdep.h: Likewise.
14005         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14006         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14007         * sysdeps/sh/sysdep.h: Likewise.
14008         * sysdeps/sparc/sparc32/alloca.S: Likewise.
14009         * sysdeps/unix/i386/sysdep.S: Likewise.
14010         * sysdeps/unix/sparc/start.c: Likewise.
14011         * sysdeps/unix/sparc/sysdep.S: Likewise.
14012         * sysdeps/unix/sparc/sysdep.h: Likewise.
14013         * sysdeps/unix/start.c: Likewise.
14014         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14015         * sysdeps/x86_64/sysdep.h: Likewise.
14016
14017 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
14018
14019         [BZ #13553]
14020         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
14021         for non-gcc.
14022         * argp/argp-fmtstream.h: Use const instead __const.
14023         * argp/argp.h: Likewise.
14024         * assert/assert.h: Likewise.
14025         * bits/fenv.h: Likewise.
14026         * bits/sched.h: Likewise.
14027         * bits/sigset.h: Likewise.
14028         * bits/sigthread.h: Likewise.
14029         * catgets/nl_types.h: Likewise.
14030         * conform/data/pthread.h-data: Likewise.
14031         * crypt/crypt-private.h: Likewise.
14032         * crypt/crypt.h: Likewise.
14033         * crypt/crypt_util.c: Likewise.
14034         * ctype/ctype.h: Likewise.
14035         * debug/execinfo.h: Likewise.
14036         * debug/mbsnrtowcs_chk.c: Likewise.
14037         * debug/mbsrtowcs_chk.c: Likewise.
14038         * debug/wcsnrtombs_chk.c: Likewise.
14039         * debug/wcsrtombs_chk.c: Likewise.
14040         * debug/wcstombs_chk.c: Likewise.
14041         * dirent/dirent.h: Likewise.
14042         * dlfcn/dlfcn.h: Likewise.
14043         * elf/neededtest4.c: Likewise.
14044         * grp/grp.h: Likewise.
14045         * gshadow/gshadow.h: Likewise.
14046         * iconv/gconv.h: Likewise.
14047         * iconv/gconv_int.h: Likewise.
14048         * iconv/gconv_simple.c: Likewise.
14049         * iconv/iconv.h: Likewise.
14050         * iconv/loop.c: Likewise.
14051         * iconv/skeleton.c: Likewise.
14052         * include/aio.h: Likewise.
14053         * include/aliases.h: Likewise.
14054         * include/argz.h: Likewise.
14055         * include/arpa/inet.h: Likewise.
14056         * include/assert.h: Likewise.
14057         * include/dirent.h: Likewise.
14058         * include/dlfcn.h: Likewise.
14059         * include/execinfo.h: Likewise.
14060         * include/fcntl.h: Likewise.
14061         * include/fenv.h: Likewise.
14062         * include/glob.h: Likewise.
14063         * include/grp.h: Likewise.
14064         * include/libintl.h: Likewise.
14065         * include/mntent.h: Likewise.
14066         * include/netdb.h: Likewise.
14067         * include/pwd.h: Likewise.
14068         * include/rpc/netdb.h: Likewise.
14069         * include/sched.h: Likewise.
14070         * include/search.h: Likewise.
14071         * include/shadow.h: Likewise.
14072         * include/signal.h: Likewise.
14073         * include/stdio.h: Likewise.
14074         * include/stdlib.h: Likewise.
14075         * include/string.h: Likewise.
14076         * include/sys/socket.h: Likewise.
14077         * include/sys/stat.h: Likewise.
14078         * include/sys/statfs.h: Likewise.
14079         * include/sys/statvfs.h: Likewise.
14080         * include/sys/syslog.h: Likewise.
14081         * include/sys/time.h: Likewise.
14082         * include/sys/uio.h: Likewise.
14083         * include/time.h: Likewise.
14084         * include/unistd.h: Likewise.
14085         * include/utmp.h: Likewise.
14086         * include/wchar.h: Likewise.
14087         * include/wctype.h: Likewise.
14088         * inet/aliases.h: Likewise.
14089         * inet/arpa/inet.h: Likewise.
14090         * inet/netinet/ether.h: Likewise.
14091         * inet/netinet/in.h: Likewise.
14092         * intl/libintl.h: Likewise.
14093         * io/bits/fcntl2.h: Likewise.
14094         * io/fcntl.h: Likewise.
14095         * io/ftw.h: Likewise.
14096         * io/sys/poll.h: Likewise.
14097         * io/sys/stat.h: Likewise.
14098         * io/sys/statfs.h: Likewise.
14099         * io/sys/statvfs.h: Likewise.
14100         * io/utime.h: Likewise.
14101         * libio/bits/stdio.h: Likewise.
14102         * libio/bits/stdio2.h: Likewise.
14103         * libio/libio.h: Likewise.
14104         * libio/libioP.h: Likewise.
14105         * libio/stdio.h: Likewise.
14106         * locale/lc-ctype.c: Likewise.
14107         * locale/locale.h: Likewise.
14108         * login/utmp.h: Likewise.
14109         * malloc/arena.c: Likewise.
14110         * malloc/malloc.c: Likewise.
14111         * malloc/malloc.h: Likewise.
14112         * malloc/mcheck.c: Likewise.
14113         * malloc/mtrace.c: Likewise.
14114         * math/bits/mathcalls.h: Likewise.
14115         * math/fenv.h: Likewise.
14116         * math/math_private.h: Likewise.
14117         * misc/bits/error.h: Likewise.
14118         * misc/bits/syslog.h: Likewise.
14119         * misc/err.h: Likewise.
14120         * misc/error.h: Likewise.
14121         * misc/fstab.h: Likewise.
14122         * misc/mntent.h: Likewise.
14123         * misc/regexp.h: Likewise.
14124         * misc/search.h: Likewise.
14125         * misc/sgtty.h: Likewise.
14126         * misc/sys/mman.h: Likewise.
14127         * misc/sys/syslog.h: Likewise.
14128         * misc/sys/uio.h: Likewise.
14129         * misc/sys/xattr.h: Likewise.
14130         * misc/ttyent.h: Likewise.
14131         * nis/rpcsvc/ypclnt.h: Likewise.
14132         * nss/nss.h: Likewise.
14133         * posix/bits/unistd.h: Likewise.
14134         * posix/fnmatch.h: Likewise.
14135         * posix/glob.h: Likewise.
14136         * posix/sched.h: Likewise.
14137         * posix/spawn.h: Likewise.
14138         * posix/sys/wait.h: Likewise.
14139         * posix/unistd.h: Likewise.
14140         * posix/wordexp.h: Likewise.
14141         * pwd/pwd.h: Likewise.
14142         * resolv/netdb.h: Likewise.
14143         * resource/sys/resource.h: Likewise.
14144         * rt/aio.h: Likewise.
14145         * rt/bits/mqueue2.h: Likewise.
14146         * rt/mqueue.h: Likewise.
14147         * shadow/shadow.h: Likewise.
14148         * signal/signal.h: Likewise.
14149         * socket/send.c: Likewise.
14150         * socket/sendto.c: Likewise.
14151         * socket/sys/socket.h: Likewise.
14152         * stdio-common/printf.h: Likewise.
14153         * stdlib/bits/stdlib.h: Likewise.
14154         * stdlib/fmtmsg.h: Likewise.
14155         * stdlib/monetary.h: Likewise.
14156         * stdlib/stdlib.h: Likewise.
14157         * stdlib/ucontext.h: Likewise.
14158         * streams/stropts.h: Likewise.
14159         * string/argz.h: Likewise.
14160         * string/bits/string2.h: Likewise.
14161         * string/string.h: Likewise.
14162         * string/strings.h: Likewise.
14163         * sunrpc/rpc/auth.h: Likewise.
14164         * sunrpc/rpc/auth_des.h: Likewise.
14165         * sunrpc/rpc/clnt.h: Likewise.
14166         * sunrpc/rpc/netdb.h: Likewise.
14167         * sunrpc/rpc/pmap_clnt.h: Likewise.
14168         * sunrpc/rpc/xdr.h: Likewise.
14169         * sysdeps/generic/inttypes.h: Likewise.
14170         * sysdeps/generic/net/if.h: Likewise.
14171         * sysdeps/generic/sys/swap.h: Likewise.
14172         * sysdeps/gnu/net/if.h: Likewise.
14173         * sysdeps/gnu/utmpx.h: Likewise.
14174         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14175         * sysdeps/i386/i486/bits/string.h: Likewise.
14176         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14177         * sysdeps/s390/bits/string.h: Likewise.
14178         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14179         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14180         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14181         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14182         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14183         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14184         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14185         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14186         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14187         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14188         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14189         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14190         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14191         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14192         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14193         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14194         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14195         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14196         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14197         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14198         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14199         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14200         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14201         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14202         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14203         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14204         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14205         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14206         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14207         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14208         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14209         * sysvipc/sys/ipc.h: Likewise.
14210         * sysvipc/sys/msg.h: Likewise.
14211         * sysvipc/sys/sem.h: Likewise.
14212         * sysvipc/sys/shm.h: Likewise.
14213         * termios/termios.h: Likewise.
14214         * time/sys/time.h: Likewise.
14215         * time/time.h: Likewise.
14216         * wcsmbs/bits/wchar2.h: Likewise.
14217         * wcsmbs/uchar.h: Likewise.
14218         * wcsmbs/wchar.h: Likewise.
14219         * wctype/wctype.h: Likewise.
14220
14221         [BZ #13551]
14222         * Makeconfig: Remove all but ELF support including AIX support.
14223         * Makerules: Likewise.
14224         * config.h.in: Likewise.
14225         * config.make.in: Likewise.
14226         * configure: Likewise.
14227         * configure.in: Likewise.
14228         * csu/Makefile: Likewise.
14229         * csu/version.c: Likewise.
14230         * debug/Makefile: Likewise.
14231         * dlfcn/Makefile: Likewise.
14232         * elf/Makefile: Likewise.
14233         * extra-lib.mk: Likewise.
14234         * iconv/Makefile: Likewise.
14235         * include/libc-symbols.h: Likewise.
14236         * include/shlib-compat.h: Likewise.
14237         * resolv/Makefile: Likewise.
14238         * resolv/res_libc.c: Likewise.
14239         * rt/Makefile: Likewise.
14240         * sysdeps/i386/asm-syntax.h: Likewise.
14241         * sysdeps/i386/sysdep.h: Likewise.
14242         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14243         * sysdeps/mach/sysdep.h: Likewise.
14244         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14245         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14246         * sysdeps/s390/asm-syntax.h: Likewise.
14247         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14248         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14249         * sysdeps/sh/sysdep.h: Likewise.
14250         * sysdeps/unix/sparc/sysdep.h: Likewise.
14251         * sysdeps/wordsize-32/divdi3.c: Likewise.
14252         * sysdeps/x86_64/sysdep.h: Likewise.
14253
14254         * argp/Versions: Remove _argp_unlock_xxx.
14255
14256         [BZ #13559]
14257         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14258         * abilist/libBrokenLocale.abilist: Likewise.
14259         * abilist/libanl.abilist: Likewise.
14260         * abilist/libc.abilist: Likewise.
14261         * abilist/libcrypt.abilist: Likewise.
14262         * abilist/libdl.abilist: Likewise.
14263         * abilist/libm.abilist: Likewise.
14264         * abilist/libnsl.abilist: Likewise.
14265         * abilist/libpthread.abilist: Likewise.
14266         * abilist/libresolv.abilist: Likewise.
14267         * abilist/librt.abilist: Likewise.
14268         * abilist/libthread_db.abilist: Likewise.
14269         * abilist/libutil.abilist: Likewise.
14270         * abilist/libnss_db.abilist: New file.
14271
14272         * scripts/abilist.awk: Add support for indirect functions.
14273
14274         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14275
14276         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14277
14278         * shlib-versions: Remove entries for ports architectures.
14279
14280         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14281         files in ports.
14282         * elf/stackguard-macros.h: Remove support for IA-64.
14283         * elf/tst-auditmod1.c: Likewise.
14284         * sysdeps/generic/ldsodefs.h: Likewise.
14285
14286         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14287         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14288         configure files.
14289
14290         [BZ #13552]
14291         * configure.in: Remove --enable-omitfp support.
14292         * FAQ.in: Adjust.
14293         * config.make.in: Likewise.
14294         * Makeconfig: Likewise.
14295         * manual/install.texi: Likewise.
14296
14297         In case anyone cares, the IA-64 architecture could move to ports.
14298         * sysdeps/ia64/*: Removed.
14299         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14300         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14301
14302         [BZ #13555]
14303         * configure.in: Remove entries for unsupported architectures.
14304
14305         [BZ #13533]
14306         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14307         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14308         routines.
14309         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14310         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14311         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14312         fall back to using wcrtomb.
14313         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14314         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14315         renaming.
14316         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14317         * wcsmbs/tst-c16c32-1.c: New file.
14318
14319         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14320         local variable.
14321
14322         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14323
14324         * elf/tst-unique3.cc: Add explicit declaration of gets.
14325         * elf/tst-unique3lib.cc: Likewise.
14326         * elf/tst-unique3lib2.cc: Likewise.
14327         * elf/tst-unique4.cc: Likewise.
14328
14329         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14330
14331 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14332
14333         [BZ #13566]
14334         * assert/assert.h (static_assert): Don't define for C++.
14335         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14336         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14337
14338 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14339
14340         * iconv/loop.c (single loop): Fix assertion in storing of
14341         remaining bytes.
14342
14343         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14344
14345 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14346
14347         * posix/getconf.c: Update copyright year.
14348         * nss/getent.c: Likewise.
14349         * nss/makedb.c: Likewise.
14350         * iconv/iconvconfig.c: Likewise.
14351         * iconv/iconv_prog.c: Likewise.
14352         * elf/ldconfig.c: Likewise.
14353         * elf/pldd.c: Likewise.
14354         * elf/sotruss.ksh: Likewise.
14355         * catgets/gencat.c: Likewise.
14356         * csu/version.c: Likewise.
14357         * elf/ldd.bash.in: Likewise.
14358         * elf/sprof.c (print_version): Likewise.
14359         * locale/programs/locale.c: Likewise.
14360         * locale/programs/localedef.c: Likewise.
14361         * login/programs/pt_chown.c: Likewise.
14362         * nscd/nscd.c (print_version): Likewise.
14363         * debug/xtrace.sh: Likewise.
14364         * malloc/memusage.sh: Likewise.
14365         * malloc/mtrace.pl: Likewise.
14366         * debug/catchsegv.sh: Likewise.
14367
14368 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14369
14370         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14371         pure attribute.
14372
14373 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14374
14375         [BZ #13533]
14376         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14377         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14378         transformations.
14379         * iconv/gconv_int.h: Likewise.
14380         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14381         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14382         from libc for GLIBC_2.16.
14383         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14384         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14385         * wcsmbs/uchar.h: Really define mbstate_t.
14386         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14387         * wcsmbs/c16rtomb.c: New file.
14388         * wcsmbs/mbrtoc16.c: New file.
14389         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14390         for C/POSIX locale.
14391         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14392         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14393
14394         * wcsmbs/wchar.h: Add missing __restrict.
14395
14396 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14397
14398         [BZ #13532]
14399         * time/Makefile (routines): Add timespec_get.
14400         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14401         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14402         timespec for ISO C11.
14403         * time/timespec_get.c: New file.
14404         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14405         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14406
14407         [BZ #13531]
14408         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14409         * stdlib/stdlib.h: Declare aligned_alloc.
14410         * Versions.def: Add GLIBC_2.16 for libc.
14411         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14412
14413         [BZ 13527]
14414         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14415         ISO C11.
14416
14417         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14418         code.
14419
14420         [BZ #13528]
14421         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14422
14423         [BZ #13529]
14424         * assert/assert.h (static_assert): Define.
14425
14426         * version.h: Update for 2.16 development version.
14427
14428         [BZ #13526]
14429         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14430         _ISOC11_SOURCE.
14431
14432         * version.h (RELEASE): Bump for 2.15 release.
14433         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14434
14435         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14436         Patch by Marek Polacek <mpolacek@redhat.com>.
14437
14438         * bits/byteswap.h: Protect long long constants with __extension__.
14439         * sysdeps/i386/bits/byteswap.h: Likewise.
14440         * sysdeps/ia64/bits/byteswap.h: Likewise.
14441         * sysdeps/s390/bits/byteswap.h: Likewise.
14442         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14443
14444 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14445
14446         [BZ #13540]
14447         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14448         destination buffer.
14449         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14450
14451 2011-12-23  Marek Polacek  <polacek@redhat.com>
14452
14453         * elf/dl-addr.c (determine_info): Add inline keyword.
14454         * elf/tst-auditmod4b.c (check_avx): Likewise.
14455         * elf/tst-auditmod6b.c (check_avx): Likewise.
14456         * elf/tst-auditmod6c.c (check_avx): Likewise.
14457         * elf/tst-auditmod7b.c (check_avx): Likewise.
14458
14459 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14460
14461         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14462         !__SSE_MATH__.
14463
14464 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14465
14466         [BZ #13540]
14467         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14468         processing for last bytes.
14469
14470 2011-08-06  Bruno Haible  <bruno@clisp.org>
14471
14472         [BZ #13061]
14473         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14474         U+0385, not to U+1FEE.
14475
14476         [BZ #13062]
14477         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14478         entry for U+00A5 U+0301.
14479
14480 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14481
14482         [BZ #13166]
14483         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14484         buffer for the output is too small.
14485
14486         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14487         optimization.
14488
14489         [BZ #13185]
14490         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14491         SSE flags if possible.
14492
14493 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14494
14495         [BZ #13540]
14496         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14497         processing for last bytes.
14498
14499 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14500
14501         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14502         (syscall-list-default-options, syscall-list-default-condition)
14503         (syscall-list-includes): Define.
14504         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14505         list of ABIs and options and #if conditions for each ABI.  Do not
14506         handle common syscalls between ABIs specially.
14507         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14508         Remove.
14509         (syscall-list-variants, syscall-list-32bit-options)
14510         (syscall-list-32bit-condition, syscall-list-64bit-options)
14511         (syscall-list-64bit-condition): Define.
14512         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14513         (syscall-list-variants, syscall-list-32bit-options)
14514         (syscall-list-32bit-condition, syscall-list-64bit-options)
14515         (syscall-list-64bit-condition): Define.
14516         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14517         Remove.
14518         (syscall-list-variants, syscall-list-32bit-options)
14519         (syscall-list-32bit-condition, syscall-list-64bit-options)
14520         (syscall-list-64bit-condition): Define.
14521         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14522         Remove.
14523         (syscall-list-variants, syscall-list-32bit-options)
14524         (syscall-list-32bit-condition, syscall-list-64bit-options)
14525         (syscall-list-64bit-condition): Define.
14526
14527 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14528
14529         * locale/iso-639.def: Add brx entry.
14530
14531         [BZ #13328]
14532         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14533         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14534
14535         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14536         __feraiseexcept_renamed.
14537
14538 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14539
14540         [BZ #13538]
14541         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14542         EPOLLET with unsigned values.
14543         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14544         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14545
14546         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14547         to large cancellation.
14548         * math/s_cacoshf.c: Likewise.
14549         * math/s_cacoshl.c: Likewise.
14550
14551 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14552
14553         [BZ #13305]
14554         [BZ #12786]
14555         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14556         * math/s_cacoshf.c: Likewise.
14557         * math/s_cacoshl.c: Likewise.
14558
14559 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14560
14561         [BZ #13439]
14562         * iconv/gconv.h: Define __GCONV_SWAP.
14563         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14564         * iconvdata/utf-16.c: Likewise.
14565         * iconvdata/utf-32.c: Likewise.
14566
14567 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14568
14569         [BZ #13524]
14570         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14571         numerator after shifting it by one limb.
14572
14573 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14574
14575         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14576         under [__USE_EXTERN_INLINES].
14577
14578 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14579
14580         [BZ #13446]
14581         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14582
14583 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14584
14585         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14586         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14587         optimized code.
14588         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14589         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14590         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14591         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14592         for strncasecmp/strncasecmp_l compilation.
14593         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14594         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14595
14596 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14597
14598         [BZ #13484]
14599         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14600         of __asm__.
14601
14602 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14603
14604         [BZ #13506]
14605         * time/tzfile.c (__tzfile_read): Check values from file header.
14606
14607 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14608
14609         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14610         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14611         * powerpc/powerpc32/dl-start.S: Likewise.
14612         * powerpc/powerpc32/elf/start.S: Likewise.
14613         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14614         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14615         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14616         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14617         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14618         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14619         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14620         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14621         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14622         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14623         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14624         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14625         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14626         * powerpc/powerpc32/memset.S: Likewise.
14627         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14628         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14629         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14630         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14631         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14632         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14633         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14634         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14635         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14636         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14637         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14638         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14639         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14640
14641 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14642
14643         * math/libm-test.inc: Added more nearbyint tests.
14644         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14645         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14646         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14647         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14648
14649 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14650
14651         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14652         FD_CLOEXEC.
14653
14654 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14655
14656         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14657         Add wcscpy-ssse3 wcscpy-c.
14658         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14659         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14660         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14661         * sysdeps/x86_64/wcschr.S: New file.
14662         * sysdeps/x86_64/wcsrchr.S: New file.
14663         * string/test-strcmp.c: Remove checking of wcscmp function for
14664         wrong alignments.
14665         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14666         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14667         wcsrchr-sse2 wcsrchr-c.
14668         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14669         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14670         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14671         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14672         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14673         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14674         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14675         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14676         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14677         * wcsmbc/wcschr.c (WCSCHR): New macro.
14678
14679 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14680
14681         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14682         * wcsmbs/test-wcsrchr.c: New file.
14683         * string/test-strrchr.c: Add wcsrchr support.
14684         (WIDE): New macro.
14685         * wcsmbs/test-wcscpy.c: New file.
14686         * string/test-strcpy.c: Add wcscpy support.
14687         (WIDE): New macro.
14688
14689 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14690
14691         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14692         the inner loop.
14693
14694 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14695
14696         [BZ #13472]
14697         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14698
14699 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14700
14701         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14702         Minor optimizations.
14703
14704         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14705         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14706         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14707
14708 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14709
14710         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14711         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14712         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14713         for gcc to avoid warnings.
14714         * inet/Makefile (tests): Add tst-checks.
14715         * inet/tst-checks.c: New file.
14716
14717         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14718         warning.
14719
14720         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14721         __wmemcmp_sse2.
14722
14723         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14724         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14725
14726         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14727
14728 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14729
14730         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14731         problem.
14732
14733         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14734
14735 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14736
14737         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14738         conditional on GCC version.
14739         (__arch_compare_and_exchange_val_8_acq)
14740         (__arch_compare_and_exchange_val_16_acq)
14741         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14742         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14743         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14744
14745 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14746
14747         * sysdeps/sh/backtrace.c: New file.
14748
14749 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14750
14751         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14752         parenthesis.
14753
14754 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14755
14756         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14757         falling back to utime.
14758
14759 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14760
14761         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14762         expectations for float.
14763
14764 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14765
14766         * locale/weight.h (findidx): Add parameter len.
14767         * locale/weightwc.h (findidx): Likewise.
14768         * posix/fnmatch_loop.c (FCT): Adjust caller.
14769         * posix/regcomp.c (build_equiv_class): Likewise.
14770         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14771         * posix/regexec.c (check_node_accept_bytes): Likewise.
14772         * string/strcoll_l.c (STRCOLL): Likewise.
14773         * string/strxfrm_l.c (STRXFRM): Likewise.
14774
14775 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14776
14777         * Makefile.in: Remove CVSOPT handling.
14778         * configure.in: Remove use of AC_REVISION.
14779         * iconvdata/Makefile (distribute): No need to filter out CVS.
14780         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14781         handling.
14782
14783 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14784
14785         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14786         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14787         [USE_AS_STRNCASECMP_L]: Likewise.
14788         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14789         NO_TLS_DIRECT_SEG_REFS.
14790         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14791         Fix argument offsets for non-PIC.
14792         [USE_AS_STRNCASECMP_L]: Likewise.
14793         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14794         NO_TLS_DIRECT_SEG_REFS.
14795
14796 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14797
14798         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14799         O_CLOEXEC.
14800         * locale/loadlocale.c (_nl_load_locale): Likewise.
14801
14802 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14803
14804         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14805         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14806         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14807         (SYSCALL_GETTIME): Set errno on error.
14808
14809         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14810         count references to noai6ai_cached.
14811
14812 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14813
14814         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14815
14816         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14817         FD_CLOEXEC for /proc/self/maps.
14818
14819         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14820         FD_CLOEXEC for /proc/meminfo.
14821
14822         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14823         gai.conf.
14824
14825         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14826         FD_CLOEXEC for given file.
14827
14828         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14829
14830         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14831         FD_CLOEXEC for /etc/hosts.
14832         (_gethtent): Likewise.
14833
14834         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14835
14836         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14837         cancellation and set FD_CLOEXEC for /etc/netgroup.
14838
14839         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14840         reading /etc/publickey.
14841
14842         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14843         allow cancellation when reading /etc/group.
14844
14845         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14846         cancellation.
14847         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14848
14849         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14850         when using data file.
14851
14852         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14853
14854         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14855         (write_nis_obj): Use "c" and "e" in fopen.
14856
14857         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14858
14859         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14860
14861         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14862
14863         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14864
14865         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14866         locale.alias.
14867
14868         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14869
14870         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14871
14872         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14873
14874         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14875         file parsing and set FD_CLOEXEC.
14876
14877 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14878
14879         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14880
14881 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14882
14883         * malloc/arena.c (arena_get2): Don't call reused_arena when
14884         _int_new_arena failed.
14885
14886 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14887
14888         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14889         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14890         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14891         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14892         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14893         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14894         to compile strcasecmp and strncasecmp.
14895         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14896         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14897
14898         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14899
14900 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14901
14902         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14903         locale-defines.sym to gen-as-const-headers.
14904         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14905         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14906         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14907         to compile strcasecmp and strncasecmp.
14908         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14909         strcasecmp_l and strncasecmp_l.
14910         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14911         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14912         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14913         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14914         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14915         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14916         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14917         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14918         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14919         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14920         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14921
14922 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14923
14924         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14925         result of SYSDEP_GETTIME_CPU to retval.
14926         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14927         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14928
14929         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14930         variable.
14931
14932         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14933         mantissa words.
14934         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14935
14936         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14937         from unused variable.
14938
14939         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14940         DWARF definitions.
14941         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14942         for assembling.
14943
14944         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14945         over namespaces.
14946
14947         * sunrpc/rpc_prot.c (rejected): Fix case value.
14948
14949         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14950         unsigned long long int to avoid warnings in shift.
14951
14952         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14953         of use of trans.
14954         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14955         variable tmp.
14956
14957         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14958         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14959         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14960
14961         * nis/nis_table.c (nis_list): Use variable of correct type for
14962         result of __follow_path call.
14963
14964 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14965
14966         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14967         of math functions ceil, trunc, floor, round, and sqrt, when
14968         avaliable on the platform.
14969         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14970         name clash.
14971         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14972         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14973         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14974
14975 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14976
14977         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14978         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14979
14980 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14981
14982         * include/unistd.h: Fix __readlink return type.
14983         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14984
14985 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14986
14987         * stdlib/ucontext.h: Undo last change for makecontext.
14988
14989 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14990
14991         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14992
14993         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14994         * setjmp/setjmp.h: Mark functions as non-leaf.
14995         * setjmp/bits/setjmp2.h: Likewise.
14996         * stdlib/ucontext.h: Likewise.
14997
14998 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14999
15000         * malloc/arena.c (_int_new_arena): Don't increment narenas.
15001         (reused_arena): Don't check arena limit.
15002         (arena_get2): Atomically check arena limit.
15003
15004 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
15005
15006         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
15007         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
15008
15009         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
15010         instructions.
15011
15012 2011-11-07  Andreas Schwab  <schwab@redhat.com>
15013
15014         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
15015         handler when locking.
15016
15017         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15018         Fix size of allocated buffer.
15019
15020 2011-11-04  Andreas Schwab  <schwab@redhat.com>
15021
15022         [BZ #10103]
15023         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
15024         declarations for long double functions.
15025         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
15026
15027         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
15028
15029 2011-11-03  Andreas Schwab  <schwab@redhat.com>
15030
15031         * nscd/nscd.c (main): Don't start AVC thread until credentials are
15032         installed.
15033
15034         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
15035         is disabled.
15036
15037 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15038
15039         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
15040
15041 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
15042
15043         * include/alloca.h (stackinfo_alloca_round): Define.
15044         (extend_alloca): Use it.
15045         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
15046         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
15047         here.
15048
15049         * scripts/check-local-headers.sh: Ignore libaudit.h.
15050
15051         * nscd/Makefile (extra-objs): Make recursively expanded.
15052
15053 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
15054
15055         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
15056         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
15057
15058         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
15059         * posix/tst-rfc3484-2.c: Likewise.
15060         * posix/tst-rfc3484-3.c: Likewise.
15061
15062         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
15063         process_vm_writev.
15064         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
15065         process_vm_writev.
15066         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
15067         process_vm_writev from libc using GLIBC_2.15 version.
15068
15069         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
15070
15071 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
15072
15073         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
15074         stack usage.
15075
15076 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
15077
15078         [BZ #13367]
15079         * nss/getent.c (initgroups_keys): Show error message in case no group
15080         names are given.
15081
15082         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
15083         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
15084         __bump_nl_timestamp.
15085         * nscd/connections (nscd_init): When host database is served open
15086         netlink socket and request notification about configuration changes.
15087         (main_loop_poll): Track netlink file descriptor and bump timestamp
15088         in case data becomes available.
15089         (main_loop_epoll): Likewise.
15090         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
15091         (database_pers_head): Add extra_data fileds.
15092         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
15093         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
15094         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
15095         Adjust caller.
15096         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
15097         in6ai data, call __free_in6ai.
15098         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
15099         Add -DHAVE_NETLINK.
15100         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
15101         interface information.  Reuse previous data if netlink timestamp
15102         is not changed.
15103         (__bump_nl_timestamp): New function.
15104         (__free_in6ai): New function.
15105
15106 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
15107
15108         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
15109         close_not_cancel_no_status here.
15110         (__check_pf): Reorganize code a bit to not call close twice if OOM.
15111
15112 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15113
15114         [BZ #13276]
15115         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
15116         return value.
15117
15118         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
15119         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
15120         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
15121
15122 2011-07-03  Andreas Jaeger  <aj@suse.de>
15123
15124         [BZ #10709]
15125         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
15126         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
15127         * math/libm-test.inc (sin_test): Add test case.
15128
15129 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15130
15131         [BZ #13337]
15132         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
15133         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15134
15135         * elf/chroot_canon.c (chroot_canon): Cleanups.
15136
15137         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
15138
15139         [BZ #13335]
15140         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
15141         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15142
15143         * string/test-strchr.c: Make usable for strchrnul testing.
15144         * string/test-strchrnul.c: New file.
15145         * string/Makefile (strop-tests): Add strchrnul.
15146
15147         * po/it.po: Update from translation team.
15148         * po/es.po: Likewise.
15149
15150 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
15151
15152         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
15153         the three constants needed as parameters.  Drop the others.
15154         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
15155         __m128i_strloadu_tolower.
15156         Create and initialize variable zero and use it in all the places
15157         where _mm_setzero_si128 was used.
15158
15159         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
15160         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15161         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15162         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15163         anymore.
15164         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15165         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15166         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15167         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15168         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15169         __mpranred, __mptan.
15170         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15171         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15172         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15173         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15174         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15175         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15176         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15177         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15178         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15179
15180 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15181
15182         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15183         redefine if SHARED.
15184         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15185
15186         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15187         wide char related routines to wcsmbs subdir.
15188
15189 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15190
15191         [BZ #13344]
15192         * misc/sys/cdefs.h (__THROWNL): Define.
15193         * posix/unistd.h: Use __THREADNL instead of __THREAD
15194         for memory synchronization functions.
15195
15196 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15197
15198         [BZ #13349]
15199         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15200         doesn't exist.
15201         * manual/stdio.texi (Obstack Streams): Node removed.
15202
15203 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15204
15205         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15206         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15207         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15208
15209         * math/math_private.h (math_force_eval): Allow non-addressable
15210         arguments.
15211         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15212
15213 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15214
15215         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15216         file is not needed.
15217
15218         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15219         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15220         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15221         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15222         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15223         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15224         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15225         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15226         Add AVX variants.
15227         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15228         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15229         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15230         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15231         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15232         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15233         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15234         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15235         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15236         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15237         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15238         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15239         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15240         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15241         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15242         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15243         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15244         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15245         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15246
15247         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15248         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15249
15250         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15251         place.  Use VEX encoding when compiling for AVX.
15252
15253 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15254
15255         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15256         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15257
15258         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15259
15260 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15261
15262         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15263         useless if() expression.
15264         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15265         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15266         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15267         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15268         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15269         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15270         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15271         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15272         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15273         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15274         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15275         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15276         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15277         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15278         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15279         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15280         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15281         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15282         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15283
15284         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15285
15286 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15287
15288         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15289         condition.
15290         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15291
15292 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15293
15294         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15295         .text section.  Avoid duplicate constants.
15296         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15297         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15298         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15299         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15300         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15301         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15302         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15303         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15304         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15305         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15306         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15307         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15308         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15309         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15310         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15311         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15312         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15313         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15314         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15315         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15316         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15317         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15318         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15319         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15320         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15321         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15322         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15323         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15324         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15325         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15326         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15327         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15328         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15329         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15330         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15331         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15332         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15333         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15334         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15335         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15336         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15337         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15338         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15339         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15340         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15341
15342 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15343
15344         * sysdeps/x86_64/dla.h: Move to ...
15345         * sysdeps/x86_64/fpu/dla.h: ...here.
15346         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15347         situations.  Use __builtin_fma only for gcc 4.6 and up.
15348
15349         * config.make.in: Add have-mfma4 entry.
15350         * configure.in: Substitute libc_cv_cc_fma4.
15351         * math/Makefile (dbl-only-routines): Add sincostab.
15352         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15353         Use __sincostab not sincos.
15354         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15355         name is a macro.
15356         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15357         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15358         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15359         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15360         using __copysign.
15361         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15362         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15363         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15364         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15365         and __inv.
15366         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15367         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15368         __copysign.
15369         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15370         define aliases when function name is a macro.
15371         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15372         sysdeps/ieee754/dbl-64/sincos.tbl.
15373         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15374         fma4-enabled routines.
15375         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15376         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15377         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15378         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15379         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15380         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15381         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15382         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15383         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15384         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15385         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15386         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15387         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15388         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15389         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15390         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15391         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15392         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15393         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15394         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15395         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15396         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15397         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15398         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15399         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15400         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15401         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15402         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15403         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15404         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15405
15406         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15407         rename.
15408         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15409         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15410         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15411         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15412         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15413         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15414         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15415         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15416
15417 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15418
15419         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15420
15421 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15422
15423         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15424
15425         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15426         prediction.
15427         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15428
15429         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15430         Remove unused variable magic_bits.
15431         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15432
15433         * string/strnlen.c: Define and use STRNLEN macro.
15434         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15435         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15436         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15437         * wcsmbs/wcslen.c: Define and use WCSLEN.
15438         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15439         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15440         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15441         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15442         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15443         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15444         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15445
15446 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15447
15448         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15449         strnlen-sse2-no-bsf.
15450         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15451         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15452         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15453         Add strnlen support.
15454         (USE_AS_STRNLEN): New macro.
15455         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15456         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15457         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15458         * sysdeps/x86_64/wcslen.S: New file.
15459
15460 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15461
15462         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15463         XMM-moves are used for copying on small sizes.
15464
15465 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15466
15467         * wcsmbs/Makefile (strop-tests): Add wcschr.
15468         * wcsmbs/test-wcschr.c: New file.
15469         * string/test-strchr.c: Update.
15470         Add wcschr support.
15471         (WIDE): New macro.
15472
15473 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15474
15475         * wcsmbs/Makefile (strop-tests): Add wcslen.
15476         * wcsmbs/test-wcslen.c: New file.
15477         * string/test-strlen.c: Update.
15478         Add wcslen support.
15479         (WIDE): New macro.
15480
15481 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15482
15483         * po/it.po: Update from translation team.
15484
15485 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15486
15487         * sysdeps/x86_64/wcscmp.S: Update.
15488         Fix wrong comparison semantics.
15489         wcscmp shall use signed comparison not unsigned.
15490         Don't use substraction to avoid overflow bug.
15491         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15492         * wcsmbc/wcscmp.c: Likewise.
15493         * string/test-strcmp.c: Likewise.
15494         Add new tests to check cases with negative values.
15495
15496 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15497
15498         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15499         * sysdeps/x86_64/dla.h: ...here.  New file.
15500         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15501         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15502         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15503         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15504         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15505         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15506         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15507         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15508         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15509
15510 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15511
15512         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15513         __ynl_finite aliases.
15514
15515 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15516
15517         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15518
15519         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15520         define DLA_FMA.
15521         [DLA_FMA] (EMULV): Use DLA_FMA.
15522         [DLA_FMA] (MUL12): Use EMULV.
15523         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15524         that are not needed.
15525         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15526         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15527         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15528         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15529         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15530         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15531         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15532
15533 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15534
15535         * math/s_nan.c: Undef __nan.
15536         * math/s_nanf.c: Undef __nanf.
15537         * math/s_nanl.c: Undef __nanl.
15538         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15539         "math_private.h".
15540
15541 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15542
15543         * math/s_catan.c: Add branch predictions.
15544         * math/s_catanf.c: Likewise.
15545         * math/s_catanh.c: Likewise.
15546         * math/s_catanhf.c: Likewise.
15547         * math/s_catanhl.c: Likewise.
15548         * math/s_catanl.c: Likewise.
15549         * math/s_cexp.c: Likewise.
15550         * math/s_cexpf.c: Likewise.
15551         * math/s_cexpl.c: Likewise.
15552         * math/s_clog.c: Likewise.
15553         * math/s_clog10.c: Likewise.
15554         * math/s_clog10f.c: Likewise.
15555         * math/s_clog10l.c: Likewise.
15556         * math/s_clogf.c: Likewise.
15557         * math/s_clogl.c: Likewise.
15558         * math/s_csqrt.c: Likewise.
15559         * math/s_csqrtf.c: Likewise.
15560         * math/s_csqrtl.c: Likewise.
15561         * math/s_ctanf.c: Likewise.
15562         * math/s_ctanh.c: Likewise.
15563         * math/s_ctanhf.c: Likewise.
15564         * math/s_ctanhl.c: Likewise.
15565         * math/s_ctanl.c: Likewise.
15566
15567         * math/math_private.h: Define __nan, __nanf, __nanl.
15568         * math/s_cacosh.c: Include <math_private.h>.
15569         * math/s_cacoshl.c: Likewise.
15570         * math/s_casinh.c: Likewise.
15571         * math/s_casinhf.c: Likewise.
15572         * math/s_casinhl.c: Likewise.
15573         * math/s_ccos.c: Rely entire on ccosh.
15574         * math/s_ccosf.c: Rely entire on ccoshf.
15575         * math/s_ccosl.c: Rely entirely on ccoshl.
15576         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15577         Remove tests for FE_INVALID.
15578         * math/s_ccoshf.c: Likewise.
15579         * math/s_ccoshl.c: Likewise.
15580         * math/s_csin.c: Likewise.
15581         * math/s_csinf.c: Likewise.
15582         * math/s_csinh.c Likewise.
15583         * math/s_csinhf.c: Likewise.
15584         * math/s_csinhl.c: Likewise.
15585         * math/s_csinl.c: Likewise.
15586         * math/s_ctan.c: Likewise.
15587         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15588         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15589         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15590
15591 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15592
15593         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15594         compilation problems.
15595
15596         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15597         __builtin_expect.
15598
15599 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15600
15601         * sysdeps/i386/configure.in: Test for -mfma4 option.
15602         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15603         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15604         COMMON_CPUID_INDEX_80000001.
15605         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15606         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15607         use it if FMA3 is not supported.
15608         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15609
15610         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15611         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15612
15613 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15614
15615         [BZ #12892]
15616         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15617         it would create a cycle with a link time dependency.
15618
15619 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15620
15621         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15622         instruction.
15623         * string/Makefile (strop-tests): Add rawmemchr.
15624         * string/test-rawmemchr.c: New file.
15625
15626         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15627         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15628         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15629         when compiling str{,n}casecmp and when AVX is available.  Hook up
15630         new optimized code in initializers.
15631
15632 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15633
15634         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15635         __feraiseexcept instead of feraiseexcept.
15636
15637 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15638
15639         * math/math_private.h: Define defaults for libc_fetestexcept and
15640         libc_feupdateenv.
15641         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15642         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15643         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15644         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15645         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15646         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15647         libc_fetestexcept and libc_feupdateenv.
15648
15649         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15650         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15651         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15652         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15653         libc_feholdexcept_setround.
15654
15655         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15656         Add s_nearbyint-c and s_nearbyintf-c.
15657         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15658         nearbyintf inlines.
15659         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15660         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15661         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15662         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15663
15664         * math/math_private.h: Define defaults for libc_fegetround,
15665         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15666         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15667         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15668         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15669         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15670         standard functions.
15671         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15672         Remove comments and hacks for old compiler versions.
15673         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15674         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15675         libc_feholdexceptl.
15676
15677 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15678
15679         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15680         (__feraiseexcept_renamed): Add __NTH.
15681         (feraiseexcept): Add __NTH.  Rename local variables to fix
15682         namespace violations.
15683
15684 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15685
15686         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15687
15688         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15689
15690         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15691         recently added interfaces.
15692         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15693
15694         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15695         about macro parameter expansion.
15696
15697         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15698         __NO_MATH_INLINES is defined.  Cleanups.
15699
15700         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15701         and __floorf is target has SSE4.1.
15702         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15703         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15704         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15705         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15706
15707         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15708         name.
15709         (floorf): Likewise.
15710
15711         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15712
15713 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15714
15715         * misc/sys/cdefs.h: Fix last change.
15716
15717         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15718         database lookup.
15719
15720 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15721
15722         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15723
15724         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15725         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15726         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15727         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15728         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15729         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15730         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15731         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15732         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15733         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15734         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15735         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15736         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15737         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15738         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15739         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15740         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15741         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15742         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15743         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15744         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15745         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15746
15747         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15748         ceil, ceilf, floor, floorf.
15749
15750         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15751         Perform IRELATIVE relocations last.
15752
15753         * elf/do-rel.h: Add another parameter nrelative, replacing the
15754         local variable with the same name.  Change name of the function
15755         to end in Rel or Rela (uppercase).
15756         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15757         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15758         elf_dynamic_do_##reloc function.
15759
15760 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15761
15762         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15763         is sufficient, at least on modern CPUs.
15764
15765         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15766
15767         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15768         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15769
15770         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15771         __expl_finite.
15772         * math/bits/math-finite.h: Add entries for exp.
15773         * math/e_expl.c: Add __*_finite alias.
15774         * sysdeps/i386/fpu/e_exp.S: Likewise.
15775         * sysdeps/i386/fpu/e_expf.S: Likewise.
15776         * sysdeps/i386/fpu/e_expl.c: Likewise.
15777         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15778         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15779         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15780         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15781         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15782         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15783         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15784
15785         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15786         is sufficient, at least on modern CPUs.
15787
15788         * ctype/ctype-info.c (__ctype_init): Define.
15789         * include/ctype.h (__ctype_init): Declare.
15790         (__ctype_b_loc): The variable is always initialized.
15791         (__ctype_toupper_loc): Likewise.
15792         (__ctype_tolower_loc): Likewise.
15793         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15794         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15795
15796 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15797
15798         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15799
15800         * configure.in: Also look in $cxxmachine/include for C++ system
15801         headers.
15802
15803 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15804
15805         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15806         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15807         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15808         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15809         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15810         (USE_AS_WMEMCMP): New macro.
15811         Fixing indents.
15812         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15813         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15814         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15815         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15816         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15817         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15818         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15819         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15820         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15821         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15822         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15823         (USE_AS_WMEMCMP): New macro.
15824         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15825         * sysdeps/string/test-memcmp.c: Update.
15826         Fix simple_wmemcmp.
15827         Add new tests.
15828         * wcsmbs/wmemcmp.c: Update.
15829         (WMEMCMP): New macro.
15830         Fix overflow bug.
15831
15832 2011-10-12  Andreas Jaeger  <aj@suse.de>
15833
15834         [BZ #13268]
15835         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15836
15837 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15838
15839         * libio/iofwide.c (do_length): Avoid warning.
15840
15841         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15842
15843 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15844
15845         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15846
15847         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15848         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15849         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15850         * sysdeps/i386/i686/fpu/e_log.S: New file.
15851         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15852         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15853
15854         * ctype/ctype.h: Add support for inlined isXXX functions when
15855         compiling C++ code.
15856
15857 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15858
15859         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15860
15861         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15862
15863 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15864
15865         [BZ #13291]
15866         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15867
15868 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15869
15870         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15871         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15872         feraiseexcept.
15873
15874         * sysdeps/x86_64/memrchr.S: Check for zero size.
15875
15876         * string/stratcliff.c: Add memrchr tests.
15877
15878 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15879
15880         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15881         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15882         rawmemchr-sse2 rawmemchr-sse2-bsf.
15883         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15884         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15885         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15886         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15887         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15888         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15889         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15890         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15891         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15892         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15893         * string/memrchr.c (MEMRCHR): New macro.
15894
15895 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15896
15897         Add integration with gcc's -ffinite-math-only and optimize wrapper
15898         functions in libm.
15899         * Versions.def: Define GLIBC_2.15 version for libm.
15900         * math/Makefile (headers): Add bits/math-finite.h.
15901         * math/bits/math-finite.h: New file.
15902         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15903         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15904         * math/e_acoshl.c: Add __*_finite alias.
15905         * math/e_acosl.c: Likewise.
15906         * math/e_asinl.c: Likewise.
15907         * math/e_atan2l.c: Likewise.
15908         * math/e_atanhl.c: Likewise.
15909         * math/e_coshl.c: Likewise.
15910         * math/e_exp10.c: Likewise.
15911         * math/e_exp10f.c: Likewise.
15912         * math/e_exp10l.c: Likewise.
15913         * math/e_exp2l.c: Likewise.
15914         * math/e_fmodl.c: Likewise.
15915         * math/e_gammal_r.c: Likewise.
15916         * math/e_hypotl.c: Likewise.
15917         * math/e_j0l.c: Likewise.
15918         * math/e_j1l.c: Likewise.
15919         * math/e_jnl.c: Likewise.
15920         * math/e_lgammal_r.c: Likewise.
15921         * math/e_log10l.c: Likewise.
15922         * math/e_log2l.c: Likewise.
15923         * math/e_logl.c: Likewise.
15924         * math/e_powl.c: Likewise.
15925         * math/e_sinhl.c: Likewise.
15926         * math/e_sqrtl.c: Likewise.
15927         * math/e_scalb.c: Completely rewritten and optimized.
15928         * math/e_scalbf.c: Likewise.
15929         * math/e_scalbl.c: Likewise.
15930         * math/w_acos.c: Likewise.
15931         * math/w_acosf.c: Likewise.
15932         * math/w_acosl.c: Likewise.
15933         * math/w_acosh.c: Likewise.
15934         * math/w_acoshf.c: Likewise.
15935         * math/w_acoshl.c: Likewise.
15936         * math/w_asin.c: Likewise.
15937         * math/w_asinf.c: Likewise.
15938         * math/w_asinl.c: Likewise.
15939         * math/w_atan2.c: Likewise.
15940         * math/w_atan2f.c: Likewise.
15941         * math/w_atan2l.c: Likewise.
15942         * math/w_atanh.c: Likewise.
15943         * math/w_atanhf.c: Likewise.
15944         * math/w_atanhl.c: Likewise.
15945         * math/w_exp10.c: Likewise.
15946         * math/w_exp10f.c: Likewise.
15947         * math/w_exp10l.c: Likewise.
15948         * math/w_fmod.c: Likewise.
15949         * math/w_fmodf.c: Likewise.
15950         * math/w_fmodl.c: Likewise.
15951         * math/w_j0.c: Likewise.
15952         * math/w_j0f.c: Likewise.
15953         * math/w_j0l.c: Likewise.
15954         * math/w_j1.c: Likewise.
15955         * math/w_j1f.c: Likewise.
15956         * math/w_j1l.c: Likewise.
15957         * math/w_jn.c: Likewise.
15958         * math/w_jnf.c: Likewise.
15959         * math/w_log.c: Likewise.
15960         * math/w_logf.c: Likewise.
15961         * math/w_logl.c: Likewise.
15962         * math/w_log10.c: Likewise.
15963         * math/w_log10f.c: Likewise.
15964         * math/w_log10l.c: Likewise.
15965         * math/w_log2.c: Likewise.
15966         * math/w_log2f.c: Likewise.
15967         * math/w_log2l.c: Likewise.
15968         * math/w_pow.c: Likewise.
15969         * math/w_powf.c: Likewise.
15970         * math/w_powl.c: Likewise.
15971         * math/w_remainder.c: Likewise.
15972         * math/w_remainderf.c: Likewise.
15973         * math/w_remainderl.c: Likewise.
15974         * math/w_scalb.c: Likewise.
15975         * math/w_scalbf.c: Likewise.
15976         * math/w_scalbl.c: Likewise.
15977         * math/w_sqrt.c: Likewise.
15978         * math/w_sqrtf.c: Likewise.
15979         * math/w_sqrtl.c: Likewise.
15980         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15981         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15982         used.
15983         * math/math_private.h: Declare __kernel_standard_f.
15984         * math/w_cosh.c: Remove cruft and optimize a bit.
15985         * math/w_coshf.c: Likewise.
15986         * math/w_coshl.c: Likewise.
15987         * math/w_exp2.c: Likewise.
15988         * math/w_exp2f.c: Likewise.
15989         * math/w_exp2l.c: Likewise.
15990         * math/w_hypot.c: Likewise.
15991         * math/w_hypotf.c: Likewise.
15992         * math/w_hypotl.c: Likewise.
15993         * math/w_lgamma.c: Likewise.
15994         * math/w_lgamma_r.c: Likewise.
15995         * math/w_lgammaf.c: Likewise.
15996         * math/w_lgammaf_r.c: Likewise.
15997         * math/w_lgammal.c: Likewise.
15998         * math/w_lgammal_r.c: Likewise.
15999         * math/w_sinh.c: Likewise.
16000         * math/w_sinhf.c: Likewise.
16001         * math/w_sinhl.c: Likewise.
16002         * math/w_tgamma.c: Likewise.
16003         * math/w_tgammaf.c: Likewise.
16004         * math/w_tgammal.c: Likewise.
16005         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16006         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16007         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
16008         Minor optimizations.  Pretty printing.  Remove cruft.
16009         * sysdeps/i386/fpu/e_acosf.S: Likewise.
16010         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16011         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16012         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16013         * sysdeps/i386/fpu/e_acosl.c: Likewise.
16014         * sysdeps/i386/fpu/e_asin.S: Likewise.
16015         * sysdeps/i386/fpu/e_asinf.S: Likewise.
16016         * sysdeps/i386/fpu/e_atan2.S: Likewise.
16017         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
16018         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
16019         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16020         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16021         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16022         * sysdeps/i386/fpu/e_exp10.S: Likewise.
16023         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
16024         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
16025         * sysdeps/i386/fpu/e_exp2.S: Likewise.
16026         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
16027         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
16028         * sysdeps/i386/fpu/e_fmod.S: Likewise.
16029         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
16030         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
16031         * sysdeps/i386/fpu/e_hypot.S: Likewise.
16032         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
16033         * sysdeps/i386/fpu/e_log.S: Likewise.
16034         * sysdeps/i386/fpu/e_log10.S: Likewise.
16035         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16036         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16037         * sysdeps/i386/fpu/e_log2.S: Likewise.
16038         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16039         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16040         * sysdeps/i386/fpu/e_logf.S: Likewise.
16041         * sysdeps/i386/fpu/e_logl.S: Likewise.
16042         * sysdeps/i386/fpu/e_pow.S: Likewise.
16043         * sysdeps/i386/fpu/e_powf.S: Likewise.
16044         * sysdeps/i386/fpu/e_powl.S: Likewise.
16045         * sysdeps/i386/fpu/e_remainder.S: Likewise.
16046         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
16047         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
16048         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16049         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16050         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16051         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
16052         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
16053         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
16054         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
16055         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16056         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16057         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16058         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16059         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
16060         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16061         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16062         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16063         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16064         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16065         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16066         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16067         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
16068         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
16069         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16070         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16071         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16072         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16073         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16074         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16075         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16076         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16077         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16078         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16079         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16080         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16081         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16082         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16083         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16084         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16085         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16086         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16087         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16088         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16089         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16090         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16091         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16092         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16093         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16094         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16095         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16096         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16097         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16098         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16099         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16100         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16101         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16102         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16103         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16104         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16105         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16106         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16107         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16108         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16109         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16110         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16111         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16112         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16113         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16114         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16115         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16116         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16117         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16118         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16119         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16120         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16121         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16122         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
16123         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16124         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16125         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16126         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16127         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16128         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16129         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16130         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
16131         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16132         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16133         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16134         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16135         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16136         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
16137         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16138         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16139         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16140         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16141         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16142         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16143         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16144         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16145         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16146         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16147         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
16148         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16149         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16150         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16151         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
16152         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
16153         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
16154         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
16155         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
16156         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
16157         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
16158         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16159         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16160         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16161         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16162         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16163         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16164         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16165         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16166         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16167         (__isnanf): Likewise.
16168         (__isinf_ns): Likewise.
16169         (__isinf_nsf): Likewise.
16170         (__finite): Likewise.
16171         (__finitef): Likewise.
16172         (__ieee754_sqrt): Define as macro.
16173         (__ieee754_sqrtf): Define as macro.
16174         (__ieee754_sqrtl): Define as macro.
16175         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16176         inlined copy.
16177         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16178         __FINITE_MATH_ONLY__ consistent.
16179         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16180
16181 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16182
16183         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16184         of rawmemchr.
16185
16186         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16187
16188 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16189
16190         * po/ja.po: Update from translation team.
16191
16192 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16193
16194         * locale/programs/locarchive.c (prepare_address_space): New function.
16195         (create_archive, enlarge_archive, open_archive): Use it.
16196
16197         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16198         inside [SHARED], where it is used.
16199
16200         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16201
16202         * nss/getent.c (netgroup_keys): Remove unused variable.
16203         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16204
16205 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16206
16207         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16208         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16209         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16210         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16211         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16212         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16213         * math/Makefile (libm-calls): Add s_isinf_ns.
16214         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16215         * math/multc3.c: Likewise.
16216         * math/s_casin.c: Likewise.
16217         * math/s_casinf.c: Likewise.
16218         * math/s_casinl.c: Likewise.
16219         * math/s_ccos.c: Likewise.
16220         * math/s_ccosf.c: Likewise.
16221         * math/s_ccosl.c: Likewise.
16222         * math/s_ctan.c: Likewise.
16223         * math/s_ctanf.c: Likewise.
16224         * math/s_ctanh.c: Likewise.
16225         * math/s_ctanhf.c: Likewise.
16226         * math/s_ctanhl.c: Likewise.
16227         * math/s_ctanl.c: Likewise.
16228         * math/w_fmod.c: Likewise.
16229         * math/w_fmodf.c: Likewise.
16230         * math/w_fmodl.c: Likewise.
16231         * math/w_remainder.c: Likewise.
16232         * math/w_remainderf.c: Likewise.
16233         * math/w_remainderl.c: Likewise.
16234         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16235         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16236         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16237         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16238         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16239         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16240         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16241         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16242
16243         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16244         of the number.
16245         * stdio-common/printf_fphex.c: Likewise.
16246         * stdio-common/printf_size.c: Likewise.
16247
16248         * math/e_exp10.c: Include math_private.h using <...> not "...".
16249         * math/e_exp10f.c: Likewise.
16250         * math/e_exp10l.c: Likewise.
16251         * math/e_exp2l.c: Likewise.
16252         * math/e_j0l.c: Likewise.
16253         * math/e_j1l.c: Likewise.
16254         * math/e_jnl.c: Likewise.
16255         * math/e_lgammal_r.c: Likewise.
16256         * math/e_rem_pio2l.c: Likewise.
16257         * math/e_scalb.c: Likewise.
16258         * math/e_scalbf.c: Likewise.
16259         * math/e_scalbl.c: Likewise.
16260         * math/k_cosl.c: Likewise.
16261         * math/k_sinl.c: Likewise.
16262         * math/k_tanl.c: Likewise.
16263         * math/s_cacoshf.c: Likewise.
16264         * math/s_catan.c: Likewise.
16265         * math/s_catanf.c: Likewise.
16266         * math/s_catanh.c: Likewise.
16267         * math/s_catanhf.c: Likewise.
16268         * math/s_catanhl.c: Likewise.
16269         * math/s_catanl.c: Likewise.
16270         * math/s_ccosh.c: Likewise.
16271         * math/s_ccoshf.c: Likewise.
16272         * math/s_ccoshl.c: Likewise.
16273         * math/s_cexp.c: Likewise.
16274         * math/s_cexpf.c: Likewise.
16275         * math/s_cexpl.c: Likewise.
16276         * math/s_clog.c: Likewise.
16277         * math/s_clog10.c: Likewise.
16278         * math/s_clog10f.c: Likewise.
16279         * math/s_clog10l.c: Likewise.
16280         * math/s_clogf.c: Likewise.
16281         * math/s_clogl.c: Likewise.
16282         * math/s_csin.c: Likewise.
16283         * math/s_csinf.c: Likewise.
16284         * math/s_csinh.c: Likewise.
16285         * math/s_csinhf.c: Likewise.
16286         * math/s_csinhl.c: Likewise.
16287         * math/s_csinl.c: Likewise.
16288         * math/s_csqrt.c: Likewise.
16289         * math/s_csqrtf.c: Likewise.
16290         * math/s_csqrtl.c: Likewise.
16291         * math/s_ctan.c: Likewise.
16292         * math/s_ctanf.c: Likewise.
16293         * math/s_ctanh.c: Likewise.
16294         * math/s_ctanhf.c: Likewise.
16295         * math/s_ctanhl.c: Likewise.
16296         * math/s_ctanl.c: Likewise.
16297         * math/s_ldexp.c: Likewise.
16298         * math/s_ldexpf.c: Likewise.
16299         * math/s_ldexpl.c: Likewise.
16300         * math/s_significand.c: Likewise.
16301         * math/s_significandf.c: Likewise.
16302         * math/s_significandl.c: Likewise.
16303         * math/w_acos.c: Likewise.
16304         * math/w_acosf.c: Likewise.
16305         * math/w_acosh.c: Likewise.
16306         * math/w_acoshf.c: Likewise.
16307         * math/w_acoshl.c: Likewise.
16308         * math/w_acosl.c: Likewise.
16309         * math/w_asin.c: Likewise.
16310         * math/w_asinf.c: Likewise.
16311         * math/w_asinl.c: Likewise.
16312         * math/w_atan2.c: Likewise.
16313         * math/w_atan2f.c: Likewise.
16314         * math/w_atan2l.c: Likewise.
16315         * math/w_atanh.c: Likewise.
16316         * math/w_atanhf.c: Likewise.
16317         * math/w_atanhl.c: Likewise.
16318         * math/w_cosh.c: Likewise.
16319         * math/w_coshf.c: Likewise.
16320         * math/w_coshl.c: Likewise.
16321         * math/w_dremf.c: Likewise.
16322         * math/w_exp10.c: Likewise.
16323         * math/w_exp10f.c: Likewise.
16324         * math/w_exp10l.c: Likewise.
16325         * math/w_exp2.c: Likewise.
16326         * math/w_exp2f.c: Likewise.
16327         * math/w_fmod.c: Likewise.
16328         * math/w_fmodf.c: Likewise.
16329         * math/w_fmodl.c: Likewise.
16330         * math/w_hypot.c: Likewise.
16331         * math/w_hypotf.c: Likewise.
16332         * math/w_hypotl.c: Likewise.
16333         * math/w_j0.c: Likewise.
16334         * math/w_j0f.c: Likewise.
16335         * math/w_j0l.c: Likewise.
16336         * math/w_j1.c: Likewise.
16337         * math/w_j1f.c: Likewise.
16338         * math/w_j1l.c: Likewise.
16339         * math/w_jn.c: Likewise.
16340         * math/w_jnf.c: Likewise.
16341         * math/w_jnl.c: Likewise.
16342         * math/w_lgamma.c: Likewise.
16343         * math/w_lgamma_r.c: Likewise.
16344         * math/w_lgammaf.c: Likewise.
16345         * math/w_lgammaf_r.c: Likewise.
16346         * math/w_lgammal.c: Likewise.
16347         * math/w_lgammal_r.c: Likewise.
16348         * math/w_log.c: Likewise.
16349         * math/w_log10.c: Likewise.
16350         * math/w_log10f.c: Likewise.
16351         * math/w_log10l.c: Likewise.
16352         * math/w_log2.c: Likewise.
16353         * math/w_log2f.c: Likewise.
16354         * math/w_log2l.c: Likewise.
16355         * math/w_logf.c: Likewise.
16356         * math/w_logl.c: Likewise.
16357         * math/w_pow.c: Likewise.
16358         * math/w_powf.c: Likewise.
16359         * math/w_powl.c: Likewise.
16360         * math/w_remainder.c: Likewise.
16361         * math/w_remainderf.c: Likewise.
16362         * math/w_remainderl.c: Likewise.
16363         * math/w_scalb.c: Likewise.
16364         * math/w_scalbf.c: Likewise.
16365         * math/w_scalbl.c: Likewise.
16366         * math/w_sinh.c: Likewise.
16367         * math/w_sinhf.c: Likewise.
16368         * math/w_sinhl.c: Likewise.
16369         * math/w_sqrt.c: Likewise.
16370         * math/w_sqrtf.c: Likewise.
16371         * math/w_sqrtl.c: Likewise.
16372         * math/w_tgamma.c: Likewise.
16373         * math/w_tgammaf.c: Likewise.
16374         * math/w_tgammal.c: Likewise.
16375
16376         * po/ja.po: Update from translation team.
16377
16378 2011-09-29  Andreas Jaeger  <aj@suse.de>
16379
16380         [BZ #13179]
16381         * sunrpc/netname.c (netname2host): Fix logic.
16382
16383         [BZ #6779]
16384         [BZ #6783]
16385         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16386         correctly.
16387         * math/w_remainder.c (__remainder): Likewise.
16388         * math/w_remainderf.c (__remainderf): Likewise.
16389         * math/libm-test.inc (remainder_test): Add test cases.
16390
16391 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16392
16393         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16394         sdiv_qrnnd.
16395
16396 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16397
16398         * string/test-memcmp.c: Avoid unncessary #defines.
16399         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16400
16401 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16402
16403         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16404         Use new sse2 version for core i3 - i7 as it's faster
16405         than sse42 version.
16406         (bit_Prefer_PMINUB_for_stringop): New.
16407         * sysdeps/x86_64/rawmemchr.S: Update.
16408         Replace with faster SSE2 version.
16409         * sysdeps/x86_64/memrchr.S: New file.
16410         * sysdeps/x86_64/memchr.S: Update.
16411         Replace with faster SSE2 version.
16412
16413 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16414
16415         * elf/dl-load.c (lose): Add cast to avoid warning.
16416
16417 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16418
16419         * po/ca.po: Update from translation team.
16420
16421         * inet/getnetgrent_r.c: Hook up nscd.
16422         * nscd/Makefile (routines): Add nscd_netgroup.
16423         (nscd-modules): Add netgroupcache.
16424         (CFLAGS-netgroupcache.c): Define.
16425         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16426         (cache_search): Add const to second parameter.
16427         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16428         INNETGR.
16429         (dbs): Add netgrdb entry.
16430         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16431         (verify_persistent_db): Handle netgrdb.
16432         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16433         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16434         GETFDNETGR.
16435         (netgroup_response_header): Define.
16436         (innetgroup_response_header): Define.
16437         (datahead): Add netgroup_response_header and innetgroup_response_header
16438         elements.
16439         * nscd/nscd.conf: Add entries for netgroup cache.
16440         * nscd/nscd.h (dbtype): Add netgrdb.
16441         (_PATH_NSCD_NETGROUP_DB): Define.
16442         (netgroup_iov_disabled): Declare.
16443         (xmalloc, xcalloc, xrealloc): Move declarations here.
16444         (cache_search): Adjust prototype.
16445         Add netgroup-related prototypes.
16446         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16447         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16448         (__nscd_innetgr): Declare.
16449         * nscd/selinux.c (perms): Use access_vector_t as element type and
16450         add netgroup-related initializers.
16451         * nscd/netgroupcache.c: New file.
16452         * nscd/nscd_netgroup.c: New file.
16453         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16454         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16455         For four parameters use innetgr.
16456         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16457         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16458         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16459         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16460
16461         * nscd/connections.c (register_traced_file): Don't register file
16462         for disabled databases.
16463
16464 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16465
16466         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16467
16468         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16469         from tree and freeing node.
16470
16471 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16472
16473         * nss/nsswitch.c (__nss_database_lookup): Handle
16474         nss_parse_service_list out of memory case.
16475
16476 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16477
16478         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16479         out of memory case.
16480
16481 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16482
16483         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16484         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16485         pass it down.
16486         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16487         elf_machine_rela, elf_machine_lazy_rel.
16488         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16489         (ELF_DYNAMIC_DO_REL): Likewise.
16490         (ELF_DYNAMIC_DO_RELA): Likewise.
16491         (ELF_DYNAMIC_RELOCATE): Likewise.
16492         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16493         to ELF_DYNAMIC_DO_REL.
16494         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16495         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16496         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16497         elf_machine_rela.
16498         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16499         skip_ifunc, don't call ifunc function if non-zero.
16500         (elf_machine_rela): Likewise.
16501         (elf_machine_lazy_rel): Likewise.
16502         (elf_machine_lazy_rela): Likewise.
16503         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16504         (elf_machine_lazy_rel): Likewise.
16505         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16506         Likewise.
16507         (elf_machine_lazy_rel): Likewise.
16508         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16509         Likewise.
16510         (elf_machine_lazy_rel): Likewise.
16511         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16512         (elf_machine_lazy_rel): Likewise.
16513         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16514         (elf_machine_lazy_rel): Likewise.
16515         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16516         (elf_machine_lazy_rel): Likewise.
16517         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16518         (elf_machine_lazy_rel): Likewise.
16519         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16520         (elf_machine_lazy_rel): Likewise.
16521         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16522         (elf_machine_lazy_rel): Likewise.
16523
16524 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16525
16526         * nss/nss_files/files-init.c (_nss_files_init): Use static
16527         initialization for all the *_traced_file variables.
16528
16529 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16530
16531         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16532
16533 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16534
16535         [BZ #13226]
16536         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16537
16538 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16539
16540         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16541         Reread the line before reparsing it.
16542
16543 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16544
16545         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16546
16547 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16548             Maxim Kuvyrkov  <maxim@codesourcery.com>
16549             Joseph Myers  <joseph@codesourcery.com>
16550
16551         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16552         if needed for __stack_chk_guard.
16553
16554 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16555
16556         * sysdeps/posix/spawni.c (script_execute): Always define it.
16557         It will be optimized away if unused.
16558         (maybe_script_execute): New function.
16559         (__spawni): Call it.
16560
16561         * Makerules: Don't include tls.make.
16562         (config-tls): Always set to thread.
16563         * tls.make.c: File removed.
16564
16565 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16566
16567         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16568         * config.make.in (CPPFLAGS-config): New substituted variable.
16569
16570 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16571
16572         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16573
16574         [BZ #13192]
16575         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16576         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16577
16578 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16579
16580         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16581         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16582         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16583         (CALL_FAIL): Likewise.
16584         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16585         (CALL_FAIL): Macro removed.
16586         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16587
16588 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16589
16590         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16591         for __FINITE_MATH_ONLY__ == 1.
16592
16593 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16594
16595         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16596         __ieee754_sqrt instead of sqrt.
16597         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16598         __ieee754_sqrtf instead of sqrtf.
16599         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16600         __floorf instead of floorf.
16601         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16602         __floorf, __truncf instead of floorf, truncf.
16603
16604 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16605
16606         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16607
16608         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16609         __extern_always_inline.
16610         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16611         32-bit.
16612
16613 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16614
16615         * elf/rtld.c (dl_main): Also relocate in dependency order when
16616         doing symbol dependency testing.
16617
16618 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16619
16620         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16621         Always define `refsym'.
16622
16623 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16624
16625         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16626         (__FD_ELT): Renamed from __FDELT.
16627         * misc/bits/select2.h (__FD_ELT): Likewise.
16628         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16629         __FD_MASK instead of __FDELT, __FDMASK.
16630         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16631         Likewise.
16632         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16633         Likewise.
16634
16635         * elf/Makefile (gen-ldd): Fix pattern.
16636
16637         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16638         (init_tls): Likewise.
16639
16640 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16641
16642         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16643
16644 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16645
16646         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16647         `struct cmsghdr *' instead of `void *'.
16648         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16649         Likewise.
16650
16651 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16652
16653         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16654         if non-absolute.
16655         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16656         ldd_rewrite_script.
16657
16658 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16659
16660         * configure.in: Remove --with-tls option.
16661         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16662         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16663         out in case it is missing.
16664         * sysdeps/ia64/elf/configure.in: Likewise.
16665         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16666         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16667         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16668         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16669         * sysdeps/sh/elf/configure.in: Likewise.
16670         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16671         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16672         * sysdeps/x86_64/elf/configure.in: Likewise.
16673         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16674         * sysdeps/mach/hurd/tls.h: Likewise.
16675
16676         [BZ #13067]
16677         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16678
16679         [BZ #13090]
16680         * configure.in: Fix use of AC_INIT.
16681
16682         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16683
16684 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16685
16686         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16687         __set_errno.
16688         * malloc/hooks.c: Likewise.
16689
16690         [BZ #11929]
16691         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16692         variables statically.
16693         (narenas): Initialize.
16694         (list_lock): Initialize.
16695         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16696         initializtion of main_arena and list_lock.  Small cleanups.
16697         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16698         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16699         Add initializers to main_arena and mp_.
16700         (malloc_state): Remove pagesize member.  Change all users to use
16701         GLRO(dl_pagesize).
16702
16703         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16704         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16705         is always initialized.
16706
16707         * malloc/malloc.c: Removed unused configurations and dead code.
16708         * malloc/arena.c: Likewise.
16709         * malloc/hooks.c: Likewise.
16710         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16711
16712         * include/tls.h: Removed.  USE___THREAD must always be defined.
16713         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16714         * elf/dl-libc.c: Likewise.
16715         * elf/dl-tsd.c: Likewise.
16716         * include/errno.h: Likewise.
16717         * include/netdb.h: Likewise.
16718         * include/resolv.h: Likewise.
16719         * inet/herrno-loc.c: Likewise.
16720         * inet/herrno.c: Likewise.
16721         * malloc/arena.c: Likewise.
16722         * malloc/hooks.c: Likewise.
16723         * malloc/malloc.c: Likewise.
16724         * resolv/res-state.c: Likewise.
16725         * resolv/res_libc.c: Likewise.
16726         * sysdeps/i386/dl-machine.h: Likewise.
16727         * sysdeps/ia64/dl-machine.h: Likewise.
16728         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16729         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16730         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16731         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16732         * sysdeps/sh/dl-machine.h: Likewise.
16733         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16734         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16735         * sysdeps/unix/i386/sysdep.S: Likewise.
16736         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16737         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16738         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16739         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16740         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16741         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16742         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16743         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16744         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16745         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16746         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16747         * sysdeps/x86_64/dl-machine.h: Likewise.
16748         * tls.make.c: Likewise.
16749
16750         * configure.in: Remove --with-__thread option.  Make tests for
16751         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16752         tls_model attribute fail if no support is available.  Remove
16753         USE_IN_LIBIO.
16754         * Makeconfig: Adjust for dropped configure option.  All features are
16755         now mandatory.
16756         * Makerules: Likewise.
16757         * Versions.def: Likewise.
16758         * argp/argp-fmtstream.c: Likewise.
16759         * argp/argp-fmtstream.h: Likewise.
16760         * argp/argp-help.c: Likewise.
16761         * assert/assert.c: Likewise.
16762         * config.h.in: Likewise.
16763         * config.make.in: Likewise.
16764         * configure: Likewise.
16765         * configure.in: Likewise.
16766         * csu/Versions: Likewise.
16767         * csu/init.c: Likewise.
16768         * elf/tst-audit2.c: Likewise.
16769         * elf/tst-tls10.c: Likewise.
16770         * elf/tst-tls10.h: Likewise.
16771         * elf/tst-tls11.c: Likewise.
16772         * elf/tst-tls12.c: Likewise.
16773         * elf/tst-tls14.c: Likewise.
16774         * elf/tst-tlsmod11.c: Likewise.
16775         * elf/tst-tlsmod12.c: Likewise.
16776         * elf/tst-tlsmod13.c: Likewise.
16777         * elf/tst-tlsmod13a.c: Likewise.
16778         * elf/tst-tlsmod14a.c: Likewise.
16779         * elf/tst-tlsmod15b.c: Likewise.
16780         * elf/tst-tlsmod16a.c: Likewise.
16781         * elf/tst-tlsmod16b.c: Likewise.
16782         * elf/tst-tlsmod7.c: Likewise.
16783         * elf/tst-tlsmod8.c: Likewise.
16784         * elf/tst-tlsmod9.c: Likewise.
16785         * gmon/gmon.c: Likewise.
16786         * grp/fgetgrent_r.c: Likewise.
16787         * grp/putgrent.c: Likewise.
16788         * hurd/fopenport.c: Likewise.
16789         * include/libc-symbols.h: Likewise.
16790         * include/tls.h: Likewise.
16791         * intl/gettextP.h: Likewise.
16792         * intl/loadinfo.h: Likewise.
16793         * locale/global-locale.c: Likewise.
16794         * locale/localeinfo.h: Likewise.
16795         * mach/devstream.c: Likewise.
16796         * malloc/arena.c: Likewise.
16797         * malloc/set-freeres.c: Likewise.
16798         * misc/err.c: Likewise.
16799         * misc/getttyent.c: Likewise.
16800         * misc/mntent_r.c: Likewise.
16801         * posix/getopt.c: Likewise.
16802         * posix/wordexp.c: Likewise.
16803         * pwd/fgetpwent_r.c: Likewise.
16804         * resolv/Versions: Likewise.
16805         * resolv/res_hconf.c: Likewise.
16806         * shadow/fgetspent_r.c: Likewise.
16807         * shadow/putspent.c: Likewise.
16808         * stdio-common/printf_fphex.c: Likewise.
16809         * stdio-common/tmpfile.c: Likewise.
16810         * stdlib/abort.c: Likewise.
16811         * stdlib/fmtmsg.c: Likewise.
16812         * sunrpc/auth_unix.c: Likewise.
16813         * sunrpc/clnt_perr.c: Likewise.
16814         * sunrpc/clnt_tcp.c: Likewise.
16815         * sunrpc/clnt_udp.c: Likewise.
16816         * sunrpc/clnt_unix.c: Likewise.
16817         * sunrpc/openchild.c: Likewise.
16818         * sunrpc/svc_simple.c: Likewise.
16819         * sunrpc/svc_tcp.c: Likewise.
16820         * sunrpc/svc_udp.c: Likewise.
16821         * sunrpc/svc_unix.c: Likewise.
16822         * sunrpc/xdr.c: Likewise.
16823         * sunrpc/xdr_array.c: Likewise.
16824         * sunrpc/xdr_rec.c: Likewise.
16825         * sunrpc/xdr_ref.c: Likewise.
16826         * sunrpc/xdr_stdio.c: Likewise.
16827
16828 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16829
16830         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16831
16832 2011-07-03  Andreas Jaeger  <aj@suse.de>
16833
16834         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16835         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16836         regenerate with gen-libm-tests.pl.
16837
16838 2010-05-12  Petr Baudis  <pasky@suse.cz>
16839
16840         [BZ #11589]
16841         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16842         around j0() zero points by switching to j1().
16843         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16844         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16845         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16846         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16847
16848 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16849
16850         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16851         instead of 0.
16852         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16853         instead of 0.                              .
16854         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16855         Patch in part by Pavel Roskin <proski@gnu.org>.
16856
16857         [BZ #13138]
16858         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16859         realloc.
16860         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16861         Free memory block if necessary.
16862
16863         [BZ #12847]
16864         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16865         be NULL.  Don't lock in this case.
16866
16867 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16868
16869         * elf/elf.h (ELFOSABI_GNU): New macro.
16870         (ELFOSABI_LINUX): Define to that.
16871
16872 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16873
16874         * string/strncat.c (strncat): Undef the symbol in case it has been
16875         defined in bits/string.h.
16876
16877 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16878
16879         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16880
16881         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16882         link map.
16883
16884 2011-08-17  Andreas Jaeger  <aj@suse.de>
16885
16886         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16887
16888 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16889             Ian Lance Taylor  <iant@google.com>
16890
16891         * math/libm-test.inc (lround_test): New testcase.
16892         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16893
16894 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16895
16896         * Makefile: Remove support for automatic cvs check-ins.
16897         * Makerules: Likewise.
16898         * config.make.in: Likewise.
16899         * configure.in: Likewise.
16900         * intl/Makefile: Likewise.
16901         * locale/Makefile: Likewise.
16902         * po/Makefile: Likewise.
16903         * posix/Makefile: Likewise.
16904         * sysdeps/gnu/Makefile: Likewise.
16905         * sysdeps/mach/hurd/Makefile: Likewise.
16906         * sysdeps/sparc/sparc32/Makefile: Likewise.
16907
16908         [BZ #13118]
16909         * posix/Makefile (bug-regex32-ENV): Define.
16910         Patch by John Stanley <jpsinthemix@verizon.net>.
16911
16912         * misc/Makefile (headers): Add bits/select2.h.
16913         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16914         * misc/bits/select2.h: New file.
16915         * include/bits/select2.h: New file.
16916         * debug/Makefile (routines): Add fdelt_chk.
16917         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16918         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16919         FD_ISSET.
16920         * debug/fdelt_chk.c: New file.
16921
16922         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16923         * wcsmbs/test-wmemcmp.c: Likewise.
16924         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16925         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16926
16927 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16928
16929         * string/Makefile (strop-tests): Add memcmp.
16930         * string/test-wmemcmp.c: New file.
16931         * string/test-memcmp.c: Add wmemcmp support.
16932
16933 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16934
16935         [BZ #13153]
16936         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16937         2011-07-19 change.
16938
16939         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16940         garbage value in a __mach_port_mod_refs call in the cases of the
16941         task-self and thread-self ports.
16942
16943 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16944
16945         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16946
16947 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16948
16949         * elf/dl-load.c (lose): Check for non-null L.
16950
16951 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16952
16953         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16954
16955         * elf/dl-libc.c (dlerror_run): Pass back error code from
16956         dl_catch_error.
16957
16958         [BZ #13123]
16959         * elf/dl-load.c (lose): Free l_origin if it is valid.
16960
16961         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16962         names.
16963         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16964         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16965         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16966         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16967         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16968         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16969
16970 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16971
16972         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16973         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16974         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16975         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16976         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16977         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16978         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16979         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16980         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16981         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16982
16983 2011-08-15  Alan Modra  <amodra@gmail.com>
16984
16985         [BZ #13092]
16986         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16987         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16988         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16989         ppc_mcount to static-only-routines.
16990         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16991         __mcount_internal.
16992         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16993         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16994
16995 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16996
16997         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16998         for finite and infinity parameters.
16999
17000 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
17001
17002         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
17003         and add nop instructions for throughput optimization.
17004         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17005
17006 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
17007
17008         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
17009         aligned copy for power7 with vector-scalar instructions.
17010         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
17011
17012 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
17013
17014         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
17015         AVX check.
17016
17017 2011-09-07  Andreas Schwab  <schwab@redhat.com>
17018
17019         [BZ #13144]
17020         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
17021         last change.
17022
17023 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17024
17025         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17026         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
17027         syscall wrapper around clock_gettime in __vdso_clock_gettime.
17028         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
17029         clock_gettime.
17030
17031 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17032
17033         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
17034         Forgot to demangle the pointer.
17035
17036         * sysdeps/i386/sysdep.h: Define atom_text_section.
17037         * sysdeps/x86_64/sysdep.h: Likewise.
17038         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
17039         section with atom_text_section.
17040         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17041         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17042         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
17043         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17044         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
17045
17046         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
17047         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
17048         already be defined.  Change to take two parameters and don't assign
17049         result to variable.  Adjust all users.
17050         Define INTERNAL_GETTIME if not already defined.
17051         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
17052         call.
17053         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
17054         HAVE_CLOCK_GETTIME_VSYSCALL.
17055         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
17056
17057         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
17058         gettimeofday vsyscall, just use time.
17059
17060 2011-09-06  Andreas Schwab  <schwab@redhat.com>
17061
17062         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
17063         <errno.h>.
17064
17065 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17066
17067         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
17068         syscall on x86-64.
17069         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
17070         syscall.
17071         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17072         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
17073         syscall if possible.
17074
17075 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17076
17077         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
17078         e_ident.  Don't pass to find_mapsXX.
17079         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
17080
17081 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17082
17083         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17084         strchr-sse2-no-bsf strrchr-sse2-no-bsf
17085         * sysdeps/x86_64/multiarch/strchr.S: Update.
17086         Check bit_slow_BSF bit.
17087         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17088         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
17089         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
17090
17091 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17092
17093         [BZ #13134]
17094         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
17095         before glibc 2.15.
17096         (tryshell): Define.
17097         (__spawni): Change last parameter to be flag.  Test
17098         SPAWN_XFLAGS_USE_PATH flag to use path or not.
17099         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
17100         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
17101         * posix/spawni.c: Likewise.
17102         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
17103         * posix/spawnp.c: Likewise.  Change normal version to use
17104         SPAWN_XFLAGS_USE_PATH.
17105         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
17106         SPAWN_XFLAGS_TRY_SHELL.
17107
17108         [BZ #13150]
17109         * posix/glob.h: Remove gcc 1.x support.
17110
17111         [BZ #13068]
17112         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
17113
17114 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17115
17116         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17117         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
17118         strrchr-sse2-bsf
17119         * sysdeps/i386/i686/multiarch/strchr.S: New file.
17120         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
17121         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
17122         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
17123         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
17124         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
17125
17126 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17127
17128         * sysdeps/x86_64/wcscmp.S: New file.
17129
17130         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
17131         wcscmp-c wcscmp-sse2
17132         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
17133         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
17134         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
17135         * wcsmbs/wcscmp.c: Allow renaming.
17136
17137 2011-09-05  David S. Miller  <davem@davemloft.net>
17138
17139         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
17140         stack slot, rather than the struct return pointer slot.
17141         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
17142         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
17143         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
17144         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
17145
17146 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17147
17148         * po/ja.po: Update from translation team.
17149
17150         [BZ #13144]
17151         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
17152         kernel in 64-bit binaries.
17153
17154 2011-09-01  David S. Miller  <davem@davemloft.net>
17155
17156         * elf/elf.h (HWCAP_SPARC_*): Move to..
17157         * sysdeps/sparc/sysdep.h: this new file and add new values.
17158         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
17159         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
17160         _DL_HWCAP_COUNT to 24.
17161         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17162         entries.
17163         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17164         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17165         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17166         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17167         instead of magic constants.
17168         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17169
17170 2011-08-31  David S. Miller  <davem@davemloft.net>
17171
17172         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17173         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17174         Reimplement to do errno handling inline.
17175         (SYSCALL_ERROR_HANDLER): New macro.
17176         (__SYSCALL_STRING): Do not do errno handling in asm.
17177         (__CLONE_SYSCALL_STRING): Delete.
17178         (__INTERNAL_SYSCALL_STRING): Delete.
17179         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17180         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17181         (PSEUDO): Reimplement to do errno handling inline.
17182         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17183         (SYSCALL_ERROR_HANDLER): New macro.
17184         (__SYSCALL_STRING): Do not do errno handling in asm.
17185         (__CLONE_SYSCALL_STRING): Delete.
17186         (__INTERNAL_SYSCALL_STRING): Delete.
17187         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17188         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17189         i386.
17190         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17191         (inline_syscall*): Add 'err' argument.
17192         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17193         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17194         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17195         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17196
17197         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17198         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17199
17200 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17201
17202         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17203
17204 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17205
17206         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17207         directive.
17208
17209 2011-08-24  David S. Miller  <davem@davemloft.net>
17210
17211         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17212
17213 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17214
17215         * elf/Makefile: Add rules to build and run unload8 test.
17216         * elf/unload8.c: New file.
17217         * elf/unload8mod1.c: New file.
17218         * elf/unload8mod1x.c: New file.
17219         * elf/unload8mod2.c: New file.
17220         * elf/unload8mod3.c: New file.
17221
17222         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17223         it wasn't used.
17224
17225 2011-08-23  David S. Miller  <davem@davemloft.net>
17226
17227         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17228         subtract stack bias.
17229         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17230         %sp not %fp in calculations.
17231         (_JMPBUF_UNWINDS_ADJ): Likewise.
17232
17233         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17234         (aio_suspend): Call it to force an exception region around the
17235         AIO_MISC_WAIT() invocation.
17236
17237 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17238
17239         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17240         backslash.
17241
17242 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17243
17244         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17245         protection macro.
17246         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17247         and <dl-machine.h>.
17248         (Elf64_FuncDesc): Remove.
17249
17250 2011-08-22  David S. Miller  <davem@davemloft.net>
17251
17252         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17253         sigaltstack check, add missing cfi directives.
17254         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17255         missing cfi directives, and sigaltstack handling.
17256
17257 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17258
17259         [BZ #11724]
17260         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17261         object is seen twice.
17262         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17263
17264         * elf/Makefile (distribute): Add tst-initorder2.c.
17265         (tests): Add tst-initorder2.
17266         (modules-names): Add tst-initorder2a tst-initorder2b
17267         tst-initorder2c tst-initorder2d.  Add rules to build them.
17268         ($(objpfx)tst-initorder2.out): New rule.
17269         * elf/tst-initorder2.c: New file.
17270         * elf/tst-initorder2.exp: New file.
17271
17272 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17273
17274         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17275
17276         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17277         dependencies back to end of function.
17278
17279         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17280         $(elfobjdir)/ld.so.
17281
17282 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17283
17284         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17285         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17286         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17287         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17288         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17289         of __vdso_gettimeofday.
17290         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17291         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17292         attribute_hidden.
17293         (_libc_vdso_platform_setup): Remove initialization of
17294         __vdso_gettimeofday and __vdso_time.
17295
17296 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17297
17298         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17299         and fgetc_unlocked.
17300         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17301         getc_unlocked.
17302
17303         * elf/dl-open.c (add_to_global): Report additions to the global scope
17304         for LD_DEBUG=scopes.
17305         (dl_open_worker): Also print scope of newly loaded dependencies.
17306         (_dl_show_scope): Indicate if there is no scope.
17307
17308         [BZ #13114]
17309         * stdio-common/Makefile (tests): Add bug24.
17310         * stdio-common/bug24.c: New file.
17311
17312 2011-08-19  Andreas Jaeger  <aj@suse.de>
17313
17314         [BZ #13114]
17315         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17316         non-existant file when using close-on-exec mode.
17317
17318 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17319
17320         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17321         the very first instruction.
17322
17323         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17324         the CFI state in the end.
17325         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17326         inclusion of dl-trampoline.h.
17327         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17328
17329 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17330
17331         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17332         expectations for long double.
17333
17334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17335         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17336
17337 2011-08-14  David S. Miller  <davem@davemloft.net>
17338
17339         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17340         artificual limit depends upon the system page size.
17341
17342 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17343
17344         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17345         * resolv/Makefile: Define CFLAGS-libresolv.
17346
17347 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17348
17349         * nss/makedb.c (compute_tables): Make variables used in nested
17350         function static.
17351
17352 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17353
17354         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17355         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17356         if buffer was too small.
17357
17358         * elf/pldd.c (main): Attach to all threads in the process.
17359         Rewrite /proc handling to use *at functions.
17360
17361 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17362
17363         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17364         specifies first scope to show.
17365         (dl_open_worker): Update callers.  Move printing scope of new
17366         object to before the relocation.
17367         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17368         * sysdeps/generic/ldsodefs.h: Update declaration.
17369
17370         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17371         string for the scope number.
17372
17373 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17374
17375         * nscd/servicescache.c (cache_addserv): Make sure written is always
17376         initialized.
17377
17378 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17379
17380         * sysdeps/i386/i486/bits/atomic.h
17381         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17382         statement expression, so as to suppress "set but not used" warning.
17383         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17384
17385         * string/strncat.c (STRNCAT): Use prototype definition.
17386
17387         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17388         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17389         -Iprograms here.
17390         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17391         (localedef-modules): Add localedef.
17392         (locale-modules): Add locale.
17393
17394         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17395         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17396         to avoid a warning.
17397
17398 2011-08-14  David S. Miller  <davem@davemloft.net>
17399
17400         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17401         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17402
17403 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17404
17405         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17406         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17407         * elf/rtld.c (dl_main): Set l_name of vDSO.
17408         Call _dl_show_scope when DL_DEBUG_SCOPES.
17409         (process_dl_debug): Recognize scopes flag and also set it for all.
17410         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17411         Declare _dl_show_scope.
17412
17413         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17414         (do_dlopen): Pass caller_dlopen to dl_open.
17415         (__libc_dlopen_mode): Initialize caller_dlopen.
17416
17417         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17418         of libc.  Make tolower call locale-independent.  Optimize a bit by
17419         using isdigit instead of isalnum.
17420         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17421
17422 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17423
17424         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17425         was a dependency or dynamically loaded.
17426
17427 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17428
17429         * intl/l10nflist.c: Allow architecture-specific pop function.
17430         * sysdeps/x86_64/l10nflist.c: New file.
17431
17432         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17433         classification.
17434
17435 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17436
17437         * include/dirent.h: Add libc_hidden_proto for scandirat and
17438         scandirat64.  Don't declare __scandirat64.
17439         * dirent/scandirat.c: Add libc_hidden_def.
17440         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17441         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17442
17443 2011-08-10  David S. Miller  <davem@davemloft.net>
17444
17445         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17446         enum.
17447         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17448         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17449         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17450
17451 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17452
17453         * Versions.def [libc]: Add GLIBC_2.15.
17454         * dirent/Makefile (routines): Add scandirat and scandirat64.
17455         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17456         GLIBC_2.15.
17457         * dirent/dirent.h: Declare scandirat and scandirat64.
17458         * dirent/scandirat.c: New file.
17459         * dirent/scandirat64.c: New file.
17460         * sysdeps/wordsize-64/scandirat.c: New file.
17461         * sysdeps/wordsize-64/scandirat64.c: New file.
17462         * dirent/opendir.c: Define opendirat.
17463         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17464         using scandirat.
17465         * dirent/scandir64.c: Adjust for scandir.c change.
17466         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17467         __scandirat64, and __scandir_cancel_handler.
17468         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17469         additional parameter and use openat instead of open (outside of ld.so).
17470         Add new __opendir as wrapper around __opendirat.
17471         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17472         here without requiring old scandirat implementation.
17473
17474 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17475
17476         * dirent/scandir.c (cancel_handler): Renamed to
17477         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17478         defined.  Adjust users.
17479         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17480         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17481
17482 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17483
17484         * string/test-string.h (IMPL): Use __STRING to expand name and then
17485         stringify it.
17486
17487         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17488         of cleanups.
17489
17490 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17491
17492         * string/Makefile: Update.
17493         (strop-tests): Append strncat.
17494         * string/test-wcscmp.c: New file.
17495         New comprehensive test for wcscmp.
17496         * string/test-strcmp.c: Update.
17497         (WIDE): New define.
17498
17499 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17500
17501         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17502         line.
17503
17504 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17505
17506         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17507         encoding to ACE if AI_IDN.
17508
17509 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17510
17511         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17512         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17513
17514 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17515
17516         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17517         Fix overflow bug in strncat.
17518         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17519
17520         * string/test-strncat.c: Update.
17521         Add new tests for checking overflow bugs.
17522
17523 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17524
17525         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17526         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17527         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17528         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17529         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17530         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17531         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17532         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17533         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17534
17535         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17536         (USE_AS_STRCAT): Define.
17537         Add strcat and strncat support.
17538         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17539
17540 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17541
17542         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17543         __n bigger than INT_MAX+1.
17544         (__strncmp_g): Likewise.
17545
17546 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17547
17548         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17549         * libio/stido.h: Likewise.
17550
17551         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17552         (AF_NFC): Define.
17553         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17554         (AF_NFC): Define.
17555
17556         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17557         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17558         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17559         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17560         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17561
17562         [BZ #13021]
17563         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17564         installed.
17565
17566         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17567         typo.
17568         (_dl_x86_64_save_sse): Likewise.
17569
17570 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17571
17572         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17573         OSXSAVE.
17574         (_dl_x86_64_save_sse): Likewise.
17575
17576         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17577
17578         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17579
17580 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17581
17582         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17583         change.
17584         (_dl_x86_64_save_sse): Use correct AVX check.
17585
17586 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17587
17588         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17589         bug in strncpy/strncat.
17590         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17591
17592 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17593
17594         * string/tester.c (test_strcat): Add tests for different alignments
17595         of source and destination.
17596         (test_strncat): Likewise.
17597
17598 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17599
17600         [BZ #12852]
17601         * posix/glob.c (glob): Check passed in values before using them in
17602         expressions to avoid some overflows.
17603         (glob_in_dir): Likewise.
17604
17605         [BZ #13007]
17606         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17607         check for AVX enablement so that we don't crash with old kernels and
17608         new hardware.
17609         * elf/tst-audit4.c: Add same checks here.
17610         * elf/tst-audit6.c: Likewise.
17611
17612         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17613
17614 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17615
17616         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17617
17618 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17619
17620         * po/cs.po: Update from translation team.
17621         * po/bg.po: Likewise.
17622
17623 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17624
17625         * misc/sys/cdefs.h: Add support for const attribute.
17626         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17627         to gnu_dev_{major,minor,makedev} functions.
17628
17629 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17630
17631         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17632
17633 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17634
17635         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17636         strlen results.
17637
17638 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17639
17640         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17641         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17642         register in order to avoid conflicts with the soft frame pointer
17643         being held in r11 when necessary.
17644         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17645         (INTERNAL_VSYSCALL_NCS): Likewise.
17646
17647 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17648
17649         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17650         * elf/dl-fini.c (_dl_fini): Adjust caller.
17651         * elf/dl-close.c (_dl_close_worker): Likewise.
17652         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17653
17654 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17655
17656         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17657         "aux_cache->nlibs < 0".
17658
17659         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17660         in the reload-count case.
17661
17662 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17663
17664         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17665         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17666         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17667         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17668         * sysdeps/x86_64/multiarch/strcat.S: New file.
17669         * sysdeps/x86_64/multiarch/strncat.S: New file.
17670         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17671         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17672         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17673         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17674         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17675         (USE_AS_STRCAT): Define.
17676         Add strcat and strncat support.
17677         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17678         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17679         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17680         * string/strncat.c: Update.
17681         (USE_AS_STRNCAT): Define.
17682         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17683         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17684         and i7.
17685         * sysdeps/x86_64/multiarch/init-arch.h
17686         (bit_Prefer_PMINUB_for_stringop): New.
17687         (index_Prefer_PMINUB_for_stringop): Likewise.
17688         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17689         bit_Prefer_PMINUB_for_stringop.
17690
17691 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17692
17693         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17694         buffer64.
17695         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17696         of casting of buffer.
17697         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17698         buffer32 and buffer64.
17699         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17700         writes instead of casting of buffer.
17701         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17702         buffer32.
17703         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17704         casting of buffer.
17705
17706 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17707
17708         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17709
17710 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17711
17712         * nscd/nscd.c (termination_handler): Don't do anything for a database
17713         if it has not yet been initialized.
17714
17715 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17716
17717         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17718
17719 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17720
17721         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17722
17723 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17724
17725         * po/nl.po: Update from translation team.
17726         * po/sv.po: Likewise.
17727
17728 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17729
17730         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17731         now disallowed by GCC.
17732
17733         * configure.in (use-default-link): Default to yes if a test -shared
17734         link meets our qualifications.
17735         * configure: Regenerated.
17736
17737         * config.make.in (output-format): New variable.
17738         * configure.in: Check for ld --print-output-format support.
17739         * configure: Regenerated.
17740         * Makerules ($(common-objpfx)format.lds)
17741         [$(output-format) != unknown]: Just use $(output-format),
17742         instead of the linker-script munging.
17743
17744 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17745
17746         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17747         of $(common-objpfx)shlib.lds.
17748         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17749
17750         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17751         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17752
17753         * configure.in (-z relro check): Adjust test code to add a large
17754         writable data section after it.
17755         * configure: Regenerated.
17756
17757 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17758
17759         * configure.in (-z relro check): Fix test code to make the variable
17760         truly const.
17761         * configure: Regenerated.
17762
17763 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17764
17765         * nscd/nscd.h (struct traced_file): Define.
17766         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17767         elements.  Add traced_files.
17768         (inotify_fd): Declare.
17769         (register_traced_file): Declare.
17770         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17771         (inotify_fd): Export.
17772         (resolv_conf_descr): Remove.
17773         (nscd_init): Move inotify descriptor creation to main.
17774         Don't register files for notification here.
17775         (register_traced_file): New function.
17776         (invalidate_cache): Don't use reset_res to determine whether to call
17777         res_init, go through the list of registered files.
17778         (main_loop_poll): The inotify descriptors are now stored in the
17779         structures for the traced files.
17780         (main_loop_epoll): Likewise
17781         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17782         to __nss_disable_nscd.
17783         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17784         for a database anymore.  Check the records for all the registered
17785         files instead.
17786         * nss/Makefile (libnss_files-routines): Add files-init.
17787         (libnss_db-routines): Add db-init.
17788         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17789         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17790         * nss/nss_db/db-init.c: New file.
17791         * nss/nss_files/files-init.c: New file.
17792         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17793         __nss_lookup_function.
17794         (__nss_lookup_function): Call nss_load_library.
17795         (nss_load_all_libraries): New function.
17796         (__nss_disable_nscd): Take parameter with callback function for files
17797         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17798         used for the cached services.
17799         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17800         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17801         options for features to all the files in nscd.
17802
17803         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17804
17805 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17806
17807         * csu/elf-init.c (__libc_csu_init): Comment typo.
17808
17809 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17810
17811         * po/pl.po: Update from translation team.
17812         * po/ja.po: Likewise.
17813         * po/ru.po: Likewise.
17814         * po/ko.po: Likewise.
17815         * po/fr.po: Likewise.
17816
17817 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17818
17819         * configure.in (.ctors/.dtors header and trailer check):
17820         Use an empirical test on a built program.
17821         * configure: Regenerated.
17822
17823         * configure.in (-z relro check): Use an empirical test on a built DSO.
17824         Detect, but do not require, on ia64.
17825         * configure: Regenerated.
17826
17827         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17828         Update tests that use readelf to use $READELF instead.
17829         * configure: Regenerated.
17830
17831 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17832
17833         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17834         if the result is not used.
17835
17836 2011-07-05  Andreas Jaeger  <aj@suse.de>
17837
17838         [BZ#9696]
17839         * stdlib/tst-strtod.c: Add testcase.
17840
17841 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17842
17843         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17844         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17845         The latter has a higher limit.  Take additional parameter to pass to
17846         the new function.
17847         (__pathconf): Pass file to __statfs_link_max.
17848         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17849         __statfs_link_max.
17850         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17851         __statfs_link_max.
17852
17853         [BZ #12868]
17854         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17855         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17856         Handle Lustre.
17857         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17858         (__statfs_filesize_max): Likewise.
17859         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17860
17861 2011-07-05  Andreas Jaeger  <aj@suse.de>
17862
17863         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17864
17865 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17866
17867         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17868         `status' variable.
17869         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17870         Likewise.
17871
17872 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17873
17874         * Makefile (strop-tests): Add strncat.
17875         * string/test-strncat.c: New file.
17876
17877 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17878
17879         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17880
17881 2011-06-21  Andreas Jaeger  <aj@suse.de>
17882
17883         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17884         Copy rule from iconvdata/Makefile.
17885
17886 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17887
17888         [BZ #12922]
17889         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17890         but no long options are defined, just return 'W'.
17891
17892 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17893
17894         [BZ #9696]
17895         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17896
17897 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17898
17899         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17900         netgroups to read.
17901         (innetgr): Likewise.
17902
17903 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17904
17905         * config.make.in (install_root): Default to $(DESTDIR).
17906
17907 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17908
17909         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17910
17911 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17912
17913         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17914
17915         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17916         containing directory rather than embedding absolute directory names.
17917
17918         * scripts/check-local-headers.sh: Rewritten using awk.
17919         Match by word, not by line.  Print error messages for matches.
17920         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17921
17922         * Makerules [shlib-lds-flags empty]:
17923         ($(common-objpfx)libc_pic.opts): New target.
17924         ($(common-objpfx)libc_pic.os.clean): New target.
17925         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17926
17927         * config.make.in (OBJCOPY): New variable.
17928         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17929         * configure: Regenerated.
17930
17931         * config.make.in (use-default-link): New variable.
17932         * configure.in (use_default_link): Grok --with-default-link to set it.
17933         * configure: Regenerated.
17934         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17935         (shlib-lds, shlib-lds-flags): Define to empty.
17936
17937         * Makerules (shlib-lds): New variable.
17938         (shlib-lds-flags): New variable.
17939         (build-shlib, build-moduile, build-module-asneeded): Use it.
17940         ($(common-objpfx)libc.so): Use $(shlib-lds).
17941         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17942         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17943
17944         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17945         DT_FLAGS/DT_FLAGS_1 with zero flags.
17946
17947         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17948         linker script munging.
17949
17950 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17951
17952         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17953         as 128-bit value.
17954         * crypt/sha512.c (sha512_process_block): Perform total addition using
17955         128-bit if possible.
17956         (__sha512_finish_ctx): Likewise.
17957         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17958         as 64-bit value.
17959         * crypt/sha256.c (SWAP64): Define.
17960         (sha256_process_block): Perform total addition using 64-bit if
17961         possible.
17962         (__sha256_finish_ctx): Likewise.
17963
17964 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17965
17966         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17967         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17968         * nscd/hstcache.c (cache_addhst): Likewise.
17969         * nscd/grpcache.c (cache_addgr): Likewise.
17970         * nscd/aicache.c (addhstaiX): Likewise
17971         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17972
17973 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17974
17975         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17976         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17977         * nscd/hstcache.c (cache_addhst): Likewise.
17978         * nscd/grpcache.c (cache_addgr): Likewise.
17979         * nscd/aicache.c (addhstaiX): Likewise
17980
17981 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17982
17983         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17984         domain only when needed.
17985
17986 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17987
17988         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17989         is always restored.
17990
17991 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17992
17993         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17994         are re-adding the entry.
17995         * nscd/servicescache.c (cache_addserv): Likewise.
17996
17997 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17998
17999         * sysdeps/generic/dl-irel.h: fix protection against multiple
18000         inclusions.
18001         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
18002
18003 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
18004
18005         [BZ #12935]
18006         * malloc/memusage.sh: Fix quoting in message.
18007         * debug/xtrace.sh: Likewise.
18008
18009         * configure.in: Remove support for --experimental-malloc option, make
18010         it the default.
18011         * config.make.in: Likewise.
18012         * malloc/Makefile: Likewise.
18013
18014 2011-06-27  Andreas Schwab  <schwab@redhat.com>
18015
18016         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
18017         two-byte characters.
18018
18019 2011-06-27  Roland McGrath  <roland@hack.frob.com>
18020
18021         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
18022         AC_CACHE_CHECK invocation.
18023         * configure: Regenerated.
18024
18025         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
18026
18027 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
18028
18029         [BZ #12350]
18030         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
18031         bit from old_res_options.
18032
18033         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
18034
18035         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
18036         value type for setfct.
18037
18038 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18039
18040         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18041         __gettimeofday instead of gettimeofday.
18042
18043 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
18044
18045         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
18046
18047 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18048
18049         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
18050
18051         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
18052         info.
18053
18054 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18055
18056         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18057         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18058         strcpy-sse2-unaligned strncpy-sse2-unaligned
18059         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
18060         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
18061         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
18062         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
18063         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
18064         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
18065         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
18066         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
18067         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
18068         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
18069         (STRCPY): Support SSE2 and SSSE3 versions.
18070
18071 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
18072
18073         [BZ #12874]
18074         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
18075         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
18076         kernels which artificially limit size of requests.
18077
18078 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18079
18080         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18081         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18082         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
18083         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
18084         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
18085         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
18086         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
18087         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
18088         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
18089         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
18090         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
18091         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
18092         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
18093         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
18094         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
18095         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18096         Enable unaligned load optimization for Intel Core i3, i5 and i7
18097         processors.
18098         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
18099         Define.
18100         (index_Fast_Unaligned_Load): Define.
18101         (HAS_FAST_UNALIGNED_LOAD): Define.
18102
18103 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
18104
18105         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
18106
18107 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18108
18109         [BZ #12907]
18110         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
18111         until it is clear that the information is realy needed.
18112         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
18113
18114 2011-06-22  Andreas Schwab  <schwab@redhat.com>
18115
18116         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
18117
18118 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18119
18120         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18121         /sys/devices/system/cpu/online if it is usable.
18122
18123         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
18124         reading the information from the /proc filesystem to once a second.
18125
18126 2011-06-21  Andreas Jaeger  <aj@suse.de>
18127
18128         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
18129         NULL after inclusion of kernel headers.
18130
18131 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
18132
18133         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
18134         calls to internal_setent.
18135
18136         [BZ #12885]
18137         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
18138         addresses using gethostbyname4_r ignore IPv4 addresses.
18139
18140         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
18141         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
18142
18143         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
18144
18145 2011-06-20  David S. Miller  <davem@davemloft.net>
18146
18147         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
18148         inclusions.
18149         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
18150
18151         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
18152         (elf_irel): Use it.
18153         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
18154         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
18155         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
18156         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
18157         * sysdeps/x86_64/dl-irel.h: Likewise.
18158
18159         * elf/dl-runtime.c: Use elf_ifunc_invoke.
18160         * elf/dl-sym.c: Likewise.
18161
18162 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18163
18164         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18165         need to dereference resplen2.
18166
18167 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18168
18169         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18170
18171 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18172
18173         * Makeconfig: Define vardbdir and inst_vardbdir.
18174         * nss/Makefile: Add rules to install db-Makefile.
18175
18176         * nss/nss_db/db-XXX.c: Cleanup.
18177
18178         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18179         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18180         GLIBC_PRIVATE.
18181         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18182         * nss/makedb.c: Implement -g option to specify that value strings
18183         are generated and should not be added to table iterated over for
18184         get*ent calls.
18185         * nss/nss_db/db-initgroups.c: New file.
18186
18187         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18188         interface.
18189
18190         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18191         (internal_getgrouplist): Adjust to name change.
18192         Update use_initgroups_entry if this is not the first call.
18193         * nss/databases.def: Add initgroups entry.
18194
18195         * nss/makedb.c (compute_tables): Check result of multiple hash table
18196         sizes to minimize maximum chain length.
18197
18198 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18199
18200         * Versions.def: Add entry for libnss_db.
18201         * shlib-versions: Likewise.
18202         * nss/Makefile: Add rules to build libnss_db.
18203         * nss/Versions: Add libnss_db information.  Organize libnss_files
18204         entries better.
18205         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18206         makedb progra.  Some minor improvements to generate smaller files.
18207         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18208         here from...
18209         * nss/makedb.c: ...here.
18210         Improve database format to be smaller and require less memory at
18211         runtime.
18212         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18213         db anymore.
18214         * nss/nss_db/db-netgrp.c: Likewise.
18215         * nss/nss_db/db-open.c: Likewise.
18216         * nss/nss_files/flies-XXX.x: Adjust comments.
18217         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18218         * nss/nss_files/files-grp.c: Likewise.
18219         * nss/nss_files/files-hosts.c: Likewise.
18220         * nss/nss_files/files-network.c: Likewise.
18221         * nss/nss_files/files-proto.c: Likewise.
18222         * nss/nss_files/files-pwd.c: Likewise.
18223         * nss/nss_files/files-rpc.c: Likewise.
18224         * nss/nss_files/files-service.c: Likewise.
18225         * nss/nss_files/files-sgrp.c: Likewise.
18226         * nss/nss_files/files-spwd.c: Likewise.
18227         * nss/nss_db/db-alias.c: Removed.
18228         * nss/nss_db/dummy-db.h: Removed.
18229
18230 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18231
18232         * nss/makedb.c: Rewritten to not use database library.
18233         * nss/Makefile: Update to build new makedb program.
18234
18235 2011-06-14  Andreas Jaeger  <aj@suse.de>
18236
18237         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18238         memset declaration.
18239
18240 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18241
18242         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18243         tmpbuf.
18244
18245 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18246
18247         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18248         * elf/Makefile ($(objpfx)ld.so): Likewise.
18249
18250         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18251         Don't list ld.so twice in dependencies.
18252
18253         * posix/bug-regex31.c: Include <stdlib.h>.
18254
18255         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18256
18257         * nis/nss_compat/compat-spwd.c
18258         (getspent_next_nss_netgr): Remove unused variable.
18259         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18260
18261         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18262         nonmembers" output to use the right array.
18263
18264         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18265
18266         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18267
18268         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18269         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18270         * catgets/gencat.c (read_input_file): Likewise.
18271         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18272
18273         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18274         variable definition inside #if's controlling its use.
18275
18276         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18277
18278         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18279
18280         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18281
18282         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18283         unreachable code.
18284
18285         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18286
18287         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18288         * configure: Regenerated.
18289
18290         * Makerules: Revert last change.
18291         * elf/Makefile: Likewise.
18292
18293 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18294
18295         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18296         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18297         (reloc-link): Likewise.
18298
18299 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18300
18301         * elf/Makefile: Add rules to build pldd.
18302         * elf/pldd.c: New file.
18303         * elf/pldd-xx.c: New file.
18304
18305 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18306
18307         * version.h: Update for 2.15 development version.
18308
18309 2011-06-07  David S. Miller  <davem@davemloft.net>
18310
18311         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18312         ifuncs.
18313         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18314         elf_machine_lazy_rel): Likewise.
18315         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18316         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18317         elf_machine_lazy_rel): Likewise.
18318         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18319         dl_hwcap via passed in argument.
18320         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18321         Likewise.
18322
18323 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18324
18325         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18326
18327 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18328
18329         [BZ #12849]
18330         * manual/fdl-1.1.texi: New file, verbatim from:
18331         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18332         * manual/lgpl-2.1.texi: New file, verbatim from:
18333         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18334         * manual/Makefile (licenses): New variable, list those new file names.
18335         (texis): Use it.
18336         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18337
18338         * manual/fdl.texi: File removed.
18339         * manual/lesser.texi: File removed.
18340         * manual/libc.texinfo (Copying, Documentation License):
18341         Use new @include file names, put @appendix directive before @include.
18342
18343 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18344
18345         [BZ #12841]
18346         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18347         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18348         (mq_open): Add __NTH.
18349
18350 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18351
18352         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18353         Assume Intel Core i3/i5/i7 processor if AVX is available.
18354
18355 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18356
18357         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18358         typo.
18359
18360 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18361
18362         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18363         memory.  Use alloca_account.  Fix memory leak when retrying.
18364
18365 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18366
18367         * version.h (RELEASE): Bump for 2.14 release.
18368         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18369
18370         * config.make.in (RANLIB): Remove entry.
18371
18372 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18373
18374         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18375         (libc.pot): Work around missing support for .ksh extension in xgettext.
18376
18377         [BZ #12684]
18378         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18379         if both request failed.
18380         (send_dg): In case of server errors clear resplen or *resplen2.
18381
18382         [BZ #12454]
18383         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18384         when there are multiple maps.
18385         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18386         (_dl_fini): Remove test here.
18387
18388         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18389
18390 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18391
18392         [BZ #12350]
18393         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18394         bit from old_res_options.
18395         (gaih_inet): Likewise.
18396
18397         [BZ #11099]
18398         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18399         as signed.
18400
18401         * resolv/res_init.c (res_setoptions): Make the code more compact.
18402
18403         [BZ #11558]
18404         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18405         set RES_USEVC.
18406
18407         [BZ #11634]
18408         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18409
18410         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18411
18412         [BZ #11781]
18413         * malloc/malloc.h: Declare malloc hook variables as volatile.
18414
18415         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18416         in last patch.
18417
18418         [BZ #11799]
18419         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18420         raise in the comment.
18421         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18422         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18423         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18424
18425 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18426
18427         [BZ #12811]
18428         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18429         grow the buffers more if it already has to be sufficient.
18430         (build_wcs_upper_buffer): Likewise.
18431         * posix/regexec.c (check_matching): Likewise.
18432         (clean_state_log_if_needed): Likewise.
18433         (extend_buffers): Don't enlarge buffers beyond size of the input
18434         buffer.
18435         Patches mostly by Emil Wojak <emil@wojak.eu>.
18436         * posix/bug-regex32.c: New file.
18437         * posix/Makefile (tests): Add bug-regex32.
18438
18439         * locale/findlocale.c (_nl_find_locale): Return right away if
18440         _nl_explode_name failed.
18441         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18442
18443         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18444
18445         * debug/xtrace.sh: Unify messages.
18446         * malloc/memusage.sh: Likewise.
18447
18448         [BZ #12813]
18449         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18450         time symbol from vDSO.  Substitute with vsyscall if not available.
18451         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18452         __vdso_time.
18453
18454         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18455         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18456         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18457         Add sendmmsg and internal_sendmmsg.
18458         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18459         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18460         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18461
18462         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18463         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18464         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18465
18466 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18467
18468         [BZ #12813]
18469         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18470         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18471         available.
18472         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18473         __vdso_getcpu.
18474
18475         [BZ #12814]
18476         * iconvdata/Makefile (tests): Add bug-iconv9.
18477         * iconvdata/bug-iconv9.c: New file.
18478
18479 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18480
18481         [BZ #12814]
18482         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18483
18484 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18485
18486         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18487         (struct user_regs_struct): Change intcs field back to cs.
18488
18489 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18490
18491         * po/ja.po: Update from translation team.
18492
18493 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18494
18495         [BZ #12795]
18496         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18497         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18498
18499 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18500
18501         * stdlib/longlong.h: Update from GCC.
18502
18503 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18504
18505         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18506         parameter name.
18507         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18508         Add parameter name.
18509         (__sysconf): Pass it down.
18510
18511 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18512
18513         [BZ #12671]
18514         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18515         some situations.
18516         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18517         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18518         add in in __libc_use_alloca calls.  Adjust callers.
18519         (glob): Use malloc in some situations.
18520
18521         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18522         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18523         pltexit.
18524
18525 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18526
18527         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18528         and CLOCK_BOOTTIME_ALARM.
18529
18530         [BZ #12782]
18531         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18532         is returned.
18533
18534         * string/_strerror.c (__strerror_r): Print negative errors as signed
18535         numbers.
18536
18537         [BZ #12777]
18538         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18539         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18540         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18541
18542         * configure.in: Fix typo in redirection and correct removal of test
18543         files in two cases.
18544
18545         [BZ #12788]
18546         * locale/setlocale.c (new_composite_name): Fix test to check for
18547         identical name of all categories.
18548
18549         [BZ #12792]
18550         * libio/filedoalloc.c (local_isatty): New function.
18551         (_IO_file_doallocate): Use local_isatty.
18552         * stdio-common/perror.c (perror): In case a new stream is used
18553         forward the stream error.
18554         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18555         error flag.
18556
18557 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18558
18559         [BZ #11869]
18560         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18561         alloca.
18562         * include/alloca.h (extend_alloca_account): Define.
18563
18564         [BZ #11857]
18565         * posix/regex.h: Fix comments with documentation of user-accessible
18566         fields after compilation and describe correct free'ing of pattern
18567         after re_compile_pattern.
18568         Patch by Reuben Thomas <rrt@sc3d.org>.
18569
18570 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18571
18572         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18573         and -mno-altivec to prevent the compiler from using Altivec and/or
18574         VSX instructions when the corresponding registers are not available.
18575
18576 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18577
18578         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18579
18580 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18581
18582         * libio/freopen.c (freopen): Use __dup2, not dup2.
18583         * libio/freopen64.c (freopen64): Likewise.
18584
18585 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18586
18587         [BZ #12775]
18588         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18589         * math/Makefile (tests): Add test-powl.
18590         (CFLAGS-test-powl.c): Define.
18591         * math/test-powl.c: New file.
18592
18593 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18594
18595         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18596
18597 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18598
18599         [BZ #11837]
18600         * iconvdata/gb18030.c: Update to GB18020-2005.
18601
18602 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18603
18604         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18605         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18606         Patch by Aharon Robbins <arnold@skeeve.com>.
18607
18608         [BZ #11892]
18609         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18610         on the stack.
18611
18612         [BZ #11895]
18613         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18614         through underflows.
18615
18616         [BZ #12766]
18617         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18618         point to strings before performing equality test for error_one_per_line
18619         mode.
18620
18621         [BZ #11697]
18622         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18623
18624         [BZ #11820]
18625         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18626         (struct user_fpregs_struct): Avoid __uint*_t types.
18627
18628         [BZ #6420]
18629         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18630         symbol info.  Use it instead of calling _dl_addr locally.
18631         (lock_and_info): New function.
18632         (tr_freehook): Call lock_and_info and pass symbol info as additional
18633         parameter to tr_where.
18634         (tr_mallochook): Likewise.
18635         (tr_reallochook): Likewise.
18636         (tr_memalignhook): Likewise.
18637
18638         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18639         used and couldn't be at all thread-safe.
18640
18641 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18642
18643         * libio/freopen.c (freopen): Don't close old file descriptor
18644         before the new one is opened.  Instead dup the new file descriptor
18645         to the old one after the new stream is created.
18646         * libio/freopen64.c (freopen64): Likewise.
18647         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18648         * libio/fileops.c (_IO_new_file_close_it): Handle new
18649         _IO_FLAGS2_NOCLOSE flag.
18650         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18651         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18652         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18653         _IO_FLAGS2_NOCLOSE flag.
18654         * include/unistd.h: Add hidden_proto for dup3.
18655         Define __have_dup3.
18656         * io/dup3.c: Define hidden symbol.
18657         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18658
18659         [BZ #7101]
18660         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18661         when an incomplete long option is used.
18662         * posix/tst-getopt_long1.c: New file.
18663         * posix/Makefile (tests): Add tst-getopt_long1.
18664
18665         [BZ #10138]
18666         * scripts/config.guess: Update from autoconf-2.68.
18667         * scripts/config.sub: Likewise.
18668
18669         [BZ #10157]
18670         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18671         tests into ...
18672         (has_cpuclock): ...this.  New function.
18673         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18674         macro here based on has_cpuclock code.
18675
18676         [BZ #10149]
18677         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18678         First byte (not low byte) is now always NUL.
18679         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18680
18681         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18682         Use non-cancelable interfaces.
18683
18684         [BZ #9809]
18685         * locale/iso-639.def: Add entry for Sorani.
18686
18687         [BZ #11901]
18688         * include/stdlib.h: Move include protection to the right place.
18689         Define abort_msg_s.  Declare __abort_msg with it.
18690         * stdlib/abort.c (__abort_msg): Adjust type.
18691         * assert/assert.c (__assert_fail_base): New function.  Majority
18692         of code from __assert_fail.  Allocate memory for __abort_msg with
18693         mmap.
18694         (__assert_fail): Now call __assert_fail_base.
18695         * assert/assert-perr.c: Remove bulk of implementation.  Use
18696         __assert_fail_base.
18697         * include/assert.hL Declare __assert_fail_base.
18698         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18699         mmap.
18700         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18701
18702 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18703
18704         [BZ #11952]
18705         [BZ #12453]
18706         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18707         until all modules are registered in the DTV.
18708         * elf/Makefile: Add rules to build and run tst-tls19.
18709         * elf/tst-tls19.c: New file.
18710         * elf/tst-tls19mod1.c: New file.
18711         * elf/tst-tls19mod2.c: New file.
18712         * elf/tst-tls19mod3.c: New file.
18713         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18714
18715         [BZ #12083]
18716         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18717         correctly.
18718
18719         [BZ #12601]
18720         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18721         two-byte sequence errors.
18722         * iconvdata/Makefile (tests): Add bug-iconv8.
18723         * iconvdata/bug-iconv8.c: New file.
18724
18725         [BZ #12626]
18726         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18727         buf2 definition.
18728
18729         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18730
18731         [BZ #12432]
18732         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18733         (dummy_getcfa): New function.
18734         (init): Get _Unwind_GetCFA address, use dummy if not found.
18735         (backtrace_helper): In recursion check, also check whether CFA changes.
18736         (__backtrace): Completely initialize arg.
18737
18738         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18739         storing incomplete byte sequence in state object.  Avoid testing for
18740         guaranteed too small input if we know there is enough data available.
18741
18742 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18743
18744         * Makeconfig (+link-pie): Indent.
18745         * Rules (binaries-pie): Define if $(have-fpie) and
18746         $(build-shared).
18747         (binaries-shared): Also filter out $(binaries-pie).
18748         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18749         * nscd/Makefile (others-pie): Add nscd.
18750         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18751         ($(objpfx)nscd): Remove command override.
18752         * login/Makefile (others-pie): Add pt_chown.
18753         ($(objpfx)pt_chown): Remove command override.
18754         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18755         remove command overrides.
18756
18757 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18758
18759         * libio/tst_putwc.c: Fix error messages.
18760
18761         [BZ #12724]
18762         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18763         currently writing and seek to current position when not.
18764         * libio/Makefile (tests): Add bug-fclose1.
18765         * libio/bug-fclose1.c: New file.
18766
18767 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18768
18769         [BZ #12511]
18770         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18771         don't set DF_1_NODELETE here.
18772         (do_lookup_x): When entering new entry test for copy relocation
18773         and if necessary set DF_1_NODELETE flag.
18774         * elf/tst-unique4.cc: New file.
18775         * elf/tst-unique4.h: New file.
18776         * elf/tst-unique4lib.cc: New file.
18777         * elf/Makefile: Add rules to build and run tst-unique4.
18778         Patch by Piotr Bury <pbury@goahead.com>.
18779
18780 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18781
18782         [BZ #12052]
18783         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18784
18785         [BZ #12625]
18786         * misc/mntent_r.c (addmntent): Flush the stream after the output
18787
18788         [BZ #12393]
18789         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18790         (is_trusted_path_normalize): Skip initial colon.  Append slash
18791         to empty buffer.  Duplicate is_trusted_path code but allow
18792         constructed patch to be prefix.
18793         (is_dst): Allow $ORIGIN followed by /.
18794         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18795         Correct testing of result of is_trusted_path_normalize
18796         (decompose_rpath): Fix warning.
18797
18798 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18799
18800         [BZ #11257]
18801         * grp/initgroups.c (internal_getgrouplist): When we found the service
18802         list through the initgroups entry in nsswitch.conf do not always
18803         continue on a successful lookup.  Don't always use the
18804         __nss_group_database value if it is set.
18805         * nss/nsswitch.conf (initgroups): Change action for successful db
18806         lookup to continue for compatibility.
18807
18808 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18809
18810         [BZ #11532]
18811         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18812         and CP774 modules.
18813         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18814         and CP774 modules.
18815         * iconvdata/tst-tables.sh: Likewise.
18816         * iconvdata/cp770.c: New file.
18817         * iconvdata/cp771.c: New file.
18818         * iconvdata/cp772.c: New file.
18819         * iconvdata/cp773.c: New file.
18820         * iconvdata/cp774.c: New file.
18821         * iconvdata/testdata/CP770: New file.
18822         * iconvdata/testdata/CP770..UTF8: New file.
18823         * iconvdata/testdata/CP771: New file.
18824         * iconvdata/testdata/CP771..UTF8: New file.
18825         * iconvdata/testdata/CP772: New file.
18826         * iconvdata/testdata/CP772..UTF8: New file.
18827         * iconvdata/testdata/CP773: New file.
18828         * iconvdata/testdata/CP773..UTF8: New file.
18829         * iconvdata/testdata/CP774: New file.
18830         * iconvdata/testdata/CP774..UTF8: New file.
18831
18832         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18833         END CHARMAP line.
18834         * iconvdata/gen-8bit-gap.sh: Likewise.
18835         * iconvdata/gen-8bit.sh: Likewise.
18836
18837         * locale/iso-639.def: Add ary entry.
18838
18839         [BZ #11258]
18840         * locale/C-translit.h.in: Add U20A1 transliteration.
18841
18842         [BZ #12178]
18843         * locale/iso-639.def: Add wae entry.
18844         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18845
18846         [BZ #12545]
18847         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18848         for n.
18849
18850         [BZ #12711]
18851         * locale/C-translit.h.in: Add entry for U20B9.
18852         Patch by pravin.d.s@gmail.com.
18853
18854 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18855
18856         [BZ #12713]
18857         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18858         ENAMETOOLONG use generic getcwd.
18859         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18860         in rtld.  Use *stat64.
18861         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18862         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18863         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18864         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18865         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18866         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18867         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18868         __fstatat64 macros.
18869         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18870         * dirent/rewinddir.c: Add libc_hidden_def.
18871         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18872         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18873
18874         * include/dirent.h (__alloc_dir): Add flags parameter.
18875         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18876         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18877         __alloc_dir.
18878         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18879         from fdopendir if O_CLOEXEC is already set.
18880
18881 2011-03-15  Alan Modra  <amodra@gmail.com>
18882
18883         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18884         l_tls_firstbyte_offset non-zero.  Save padding offset in
18885         l_tls_firstbyte_offset for later use.
18886         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18887         freeing static tls block.
18888
18889 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18890
18891         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18892         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18893         being defined by the kernel headers.
18894
18895 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18896
18897         [BZ #12734]
18898         * resolv/resolv.h: Define RES_NOTLDQUERY.
18899         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18900         no-tld-query and set RES_NOTLDQUERY.
18901         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18902         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18903         modern BIND to search name as TLD unless forbidden.
18904
18905 2011-05-07  Petr Baudis  <pasky@suse.cz>
18906             Ulrich Drepper  <drepper@gmail.com>
18907
18908         [BZ #12393]
18909         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18910         (is_trusted_path): ...to here.
18911         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18912         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18913         using is_trusted_path_normalize() in setuid scripts.
18914
18915 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18916
18917         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18918         __BEGIN/__END_DECLS.
18919
18920 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18921
18922         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18923         NSS_STATUS_NOTFOUND if no record was found.
18924
18925 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18926
18927         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18928         (headers-not-in-tirpc): Remove rpc/netdb.h
18929         * resolv/netdb.h: Revert last change.
18930
18931 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18932
18933         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18934         circular dependency between libgcc.a and libc.a.
18935
18936 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18937
18938         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18939         * nis/Makefile: Don't install rpcsvc/*.
18940         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18941         instead of <rpc/types.h>.
18942         (MAXHOSTNAMELEN): Define.
18943
18944 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18945
18946         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18947
18948 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18949
18950         [BZ #12714]
18951         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18952         gethostbyname4_r when IPv6 results are possible.
18953
18954 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18955
18956         [BZ #12723]
18957         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18958         _PC_PIPE_BUF handling.
18959
18960 2011-04-30  Bruno Haible  <bruno@clisp.org>
18961
18962         [BZ #12717]
18963         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18964         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18965         to 'int'.
18966         * inet/getnameinfo.c (getnameinfo): Likewise.
18967
18968 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18969
18970         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18971         to groups setting in database lookup.
18972         * nss/nsswitch.conf: Add initgroups entry.
18973
18974 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18975
18976         [BZ #12685]
18977         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18978         mode string.
18979         Patch by Eric Blake <eblake@redhat.com>.
18980
18981 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18982
18983         * sunrpc/Makefile (need-export-routines): Add svc_run.
18984         (routines): Remove svc_run.
18985         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18986         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18987         * sunrpc/svc_run.c (svc_run): Likewise.
18988         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18989
18990 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18991
18992         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18993         problem in reallocation in last patch.
18994
18995 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18996
18997         * sunrpc/Makefile: Move inclusion of Rules.
18998
18999 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19000
19001         * nss/nss_files/files-initgroups.c: New file.
19002         * nss/Makefile (libnss_files-routines): Add files-initgroups.
19003         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
19004         _nss_files_initgroups_dyn.
19005
19006 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
19007
19008         * elf/elf.h (R_ARM_IRELATIVE): Define.
19009
19010 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19011
19012         * po/ru.po: Update from translation team.
19013
19014 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19015
19016         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
19017         dependencies.
19018
19019 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
19020
19021         [BZ #12653]
19022         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
19023         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
19024         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19025         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
19026         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
19027
19028 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
19029
19030         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
19031         differing bytes.
19032         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
19033         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
19034         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
19035
19036 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19037
19038         [BZ #12420]
19039         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
19040         storing it.
19041         * stdlib/bug-getcontext.c: New file.
19042         * stdlib/Makefile: Add rules to build and run bug-getcontext.
19043
19044 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19045
19046         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
19047         instructions into .machine "z9-109".
19048         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
19049         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
19050
19051 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19052
19053         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
19054         between environment variables and auxiliary vector.
19055
19056 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
19057
19058         * Makefile: Add rules to build linkobj/libc.so.
19059         * include/libc-symbols.h: Define libc_hidden_nolink.
19060         * include/rpc/auth.h: Mark functions which are to be hidden.
19061         * include/rpc/auth_des.h: Likewise.
19062         * include/rpc/auth_unix.h: Likewise.
19063         * include/rpc/clnt.h: Likewise.
19064         * include/rpc/des_crypt.h: Likewise.
19065         * include/rpc/key_prot.h: Likewise.
19066         * include/rpc/pmap_clnt.h: Likewise.
19067         * include/rpc/pmap_prot.h: Likewise.
19068         * include/rpc/pmap_rmt.h: Likewise.
19069         * include/rpc/rpc_msg.h: Likewise.
19070         * include/rpc/svc.h: Likewise.
19071         * include/rpc/svc_auth.h: Likewise.
19072         * include/rpc/xdr.h: Likewise.
19073         * nis/Makefile: Link all DSOs against linkobj/libc.so.
19074         * nss/Makefile: Likewise.
19075         * sunrpc/Makefile: Don't install headers.  Build library with normal
19076         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
19077         * sunrpc/auth_des.c: Hide exported symbols by default, export some
19078         for the compat linking library.  Remove use of INTDEF/INTUSE.
19079         * sunrpc/auth_none.c: Likewise.
19080         * sunrpc/auth_unix.c: Likewise.
19081         * sunrpc/authdes_prot.c: Likewise.
19082         * sunrpc/authuxprot.c: Likewise.
19083         * sunrpc/clnt_gen.c: Likewise.
19084         * sunrpc/clnt_perr.c: Likewise.
19085         * sunrpc/clnt_raw.c: Likewise.
19086         * sunrpc/clnt_simp.c: Likewise.
19087         * sunrpc/clnt_tcp.c: Likewise.
19088         * sunrpc/clnt_udp.c: Likewise.
19089         * sunrpc/clnt_unix.c: Likewise.
19090         * sunrpc/des_crypt.c: Likewise.
19091         * sunrpc/des_soft.c: Likewise.
19092         * sunrpc/get_myaddr.c: Likewise.
19093         * sunrpc/key_call.c: Likewise.
19094         * sunrpc/key_prot.c: Likewise.
19095         * sunrpc/netname.c: Likewise.
19096         * sunrpc/pm_getmaps.c: Likewise.
19097         * sunrpc/pm_getport.c: Likewise.
19098         * sunrpc/pmap_clnt.c: Likewise.
19099         * sunrpc/pmap_prot.c: Likewise.
19100         * sunrpc/pmap_prot2.c: Likewise.
19101         * sunrpc/pmap_rmt.c: Likewise.
19102         * sunrpc/publickey.c: Likewise.
19103         * sunrpc/rpc_cmsg.c: Likewise.
19104         * sunrpc/rpc_common.c: Likewise.
19105         * sunrpc/rpc_dtable.c: Likewise.
19106         * sunrpc/rpc_prot.c: Likewise.
19107         * sunrpc/rpc_thread.c: Likewise.
19108         * sunrpc/rtime.c: Likewise.
19109         * sunrpc/svc.c: Likewise.
19110         * sunrpc/svc_auth.c: Likewise.
19111         * sunrpc/svc_authux.c: Likewise.
19112         * sunrpc/svc_raw.c: Likewise.
19113         * sunrpc/svc_run.c: Likewise.
19114         * sunrpc/svc_simple.c: Likewise.
19115         * sunrpc/svc_tcp.c: Likewise.
19116         * sunrpc/svc_udp.c: Likewise.
19117         * sunrpc/svc_unix.c: Likewise.
19118         * sunrpc/svcauth_des.c: Likewise.
19119         * sunrpc/xcrypt.c: Likewise.
19120         * sunrpc/xdr.c: Likewise.
19121         * sunrpc/xdr_array.c: Likewise.
19122         * sunrpc/xdr_float.c: Likewise.
19123         * sunrpc/xdr_intXX_t.c: Likewise.
19124         * sunrpc/xdr_mem.c: Likewise.
19125         * sunrpc/xdr_rec.c: Likewise.
19126         * sunrpc/xdr_ref.c: Likewise.
19127         * sunrpc/xdr_sizeof.c: Likewise.
19128         * sunrpc/xdr_stdio.c: Likewise.
19129
19130 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
19131
19132         [BZ #12650]
19133         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
19134         * sysdeps/ia64/dl-tls.h: Likewise.
19135         * sysdeps/powerpc/dl-tls.h: Likewise.
19136         * sysdeps/s390/dl-tls.h: Likewise.
19137         * sysdeps/sh/dl-tls.h: Likewise.
19138         * sysdeps/sparc/dl-tls.h: Likewise.
19139         * sysdeps/x86_64/dl-tls.h: Likewise.
19140         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
19141
19142 2011-03-14  Andreas Schwab  <schwab@redhat.com>
19143
19144         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
19145         rpath element also skip the following colon.
19146         (expand_dynamic_string_token): Add is_path parameter and pass
19147         down to DL_DST_REQUIRED and _dl_dst_substitute.
19148         (decompose_rpath): Call expand_dynamic_string_token with
19149         non-zero is_path.  Ignore empty rpaths.
19150         (_dl_map_object_from_fd): Call expand_dynamic_string_token
19151         with zero is_path.
19152
19153 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
19154
19155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
19156         Make cancelable.
19157
19158 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
19159
19160         [BZ #12655]
19161         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19162         Patch by Filipe David Manana <fdmanana@apache.org>.
19163
19164 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19165
19166         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19167         Maintain aligned stack.
19168         (CHECK_RSP): Remove unused macro.
19169
19170 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19171
19172         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19173         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19174
19175 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19176
19177         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19178
19179         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19180
19181 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19182
19183         [BZ #12518]
19184         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19185         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19186         * sysdeps/x86_64/memmove.c: New file.
19187         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19188         (memcpy): Renamed to ...
19189         (__new_memcpy): This.
19190         (memcpy): Provide GLIBC_2_14 memcpy.
19191         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19192         (memcpy): Provide GLIBC_2_2_5 memcpy.
19193
19194 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19195
19196         [BZ #12631]
19197         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19198
19199 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19200
19201         * misc/syncfs.c: New file.
19202         * misc/Makefile (routines): Add syncfs.
19203         * posix/unistd.h: Declare syncfs.
19204         * sysdeps/unix/syscalls.list: Add syncfs.
19205
19206 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19207
19208         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19209         open_by_handle_at.
19210         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19211         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19212         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19213         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19214         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19215         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19216         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19217
19218 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19219
19220         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19221         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19222         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19223         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19224         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19225         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19226         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19227
19228         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19229         sync_file_range.c with -fexceptions.
19230         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19231         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19232         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19233         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19234         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19235         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19236         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19237         sync_file_range as cancellation point
19238         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19239         now a wrapper around __call_sync_file_range with cancellation handling.
19240         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19241         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19242         function name to __call_sync_file_range.
19243         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19244         Add call_sync_file_range.
19245
19246 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19247
19248         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19249         bits/timex.h.
19250
19251 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19252
19253         * iconv/iconv.h: Fix typo in comment.
19254         * io/fcntl.h: Likewise.
19255         * libio/stdio.h: Likewise.
19256         * posix/spawn.h: Likewise.
19257         * posix/unistd.h: Likewise.
19258         * stdlib/stdlib.h: Likewise.
19259         * time/time.h: Likewise.
19260         * wcsmbs/wchar.h: Likewise.
19261
19262         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19263         open_by_handle): Add.
19264         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19265         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19266         Augment a few comments.
19267         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19268         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19269         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19270         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19271         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19272         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19273         open_by_handle.
19274
19275         * io/fcntl.h (AT_EMPTY_PATH): Define.
19276
19277 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19278
19279         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19280         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19281         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19282         to...
19283         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19284         * Versions.def: Add GLIBC_2.14.
19285         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19286         Export.
19287
19288 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19289
19290         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19291         round counter.
19292         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19293
19294 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19295
19296         [BZ #12597]
19297         * string/test-strncmp.c (do_page_test): New function.
19298         (check2): Likewise.
19299         (test_main): Call check2.
19300         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19301
19302 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19303
19304         [BZ #12587]
19305         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19306         Handle cache information in CPU leaf 4.
19307         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19308
19309 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19310
19311         [BZ #12583]
19312         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19313         character representation.
19314         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19315
19316 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19317
19318         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19319         END(__isnan) to END(__isnanf) to match function entry point/label
19320         EALIGN(__isnanf,...).
19321
19322 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19323
19324         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19325
19326 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19327
19328         [BZ #12510]
19329         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19330         copy from the symbol referenced in the relocation to initialize the
19331         used variable.
19332         Patch by Piotr Bury <pbury@goahead.com>.
19333         * elf/Makefile: Add rules to build and tst-unique3.
19334         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19335         * elf/tst-unique3.cc: New file.
19336         * elf/tst-unique3.h: New file.
19337         * elf/tst-unique3lib.cc: New file.
19338         * elf/tst-unique3lib2.cc: New file.
19339
19340         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19341
19342 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19343
19344         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19345         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19346         to _start.
19347
19348 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19349
19350         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19351         to-be-loaded object along a path to loader is ld.so.
19352
19353 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19354             Ulrich Drepper  <drepper@gmail.com>
19355
19356         * sysdeps/x86_64/memset.S: After aligning destination, code
19357         branches to different locations depending on the value of
19358         misalignment, when multiarch is enabled. Fix this.
19359
19360 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19361
19362         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19363         Set _x86_64_preferred_memory_instruction for AMD processsors.
19364         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19365         Set bit_Prefer_SSE_for_memop for AMD processors.
19366
19367 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19368
19369         * libio/fmemopen.c (fmemopen): Optimize a bit.
19370
19371 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19372
19373         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19374
19375 2011-03-03  Roland McGrath  <roland@redhat.com>
19376
19377         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19378
19379 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19380
19381         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19382         __bzero_ultra1 instead of __memset_ultra1.
19383
19384 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19385             Ulrich Drepper  <drepper@gmail.com>
19386
19387         [BZ #12509]
19388         * include/link.h (struct link_map): Add l_orig_initfini.
19389         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19390         returning unsuccessfully.
19391         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19392         close of a file loaded at startup, restore the original l_initfini
19393         list.
19394         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19395         list, store the pointer.
19396         * elf/Makefile ($(objpfx)noload-mem): New rule.
19397         (noload-ENV): Define.
19398         (tests): Add $(objpfx)noload-mem.
19399         * elf/noload.c: Include <memcheck.h>.
19400         (main): Call mtrace.  Close all opened handles.
19401
19402 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19403
19404         [BZ #12454]
19405         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19406         dependencies are missing.
19407
19408 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19409
19410         Fix __if_freereq crash: Unlike the generic version which uses free,
19411         Hurd needs munmap.
19412         * sysdeps/mach/hurd/ifreq.h: New file.
19413
19414 2011-01-27  Petr Baudis  <pasky@suse.cz>
19415             Ulrich Drepper  <drepper@gmail.com>
19416
19417         [BZ 12445]#
19418         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19419         to extend_alloca().
19420         * stdio-common/bug23.c: New file.
19421         * stdio-common/Makefile (tests): Add bug23.
19422
19423 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19424             Ulrich Drepper  <drepper@gmail.com>
19425
19426         [BZ #12489]
19427         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19428         before performing relro protection.  At old place add assertion
19429         to make sure nothing changed.
19430
19431 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19432             Glauber de Oliveira Costa  <glommer@gmail.com>
19433
19434         * elf/elf.h: Add new ARM TLS relocs.
19435
19436 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19437
19438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19439         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19440         cast from r3.
19441         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19442         'tests' variable.
19443         * sysdeps/wordsize-64/tst-writev.c: New file.
19444
19445 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19446
19447         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19448         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19449         insns in _dl_start to prevent a TOC reference before relocs are
19450         resolved.
19451
19452 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19453
19454         [BZ #12469]
19455         * Makeconfig: Remove RANLIB definition.
19456         * Makerules: Don't use RANLIB.
19457         * aclocal.m4: Remove ranlib test.
19458         * configure.in: No need to check for ranlib.
19459         * elf/rtld-Rules: Don't use RANLIB.
19460
19461 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19462
19463         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19464         protection macro.
19465         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19466         inclusion protection macro.
19467
19468         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19469         SIGRTMIN and SIGRTMAX and print information in that case only when
19470         SIGRTMIN is defined.
19471
19472 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19473
19474         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19475         arginfo fn returning -1.
19476
19477         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19478         and thousands string is zero terminated.
19479
19480 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19481
19482         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19483         sysdeps/unix/sysv/linux/bits/socket.h.
19484
19485 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19486
19487         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19488         (__CPU_COUNT): Remove old macros.
19489         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19490         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19491         (__CPU_ALLOC, __CPU_FREE): Add macros.
19492         (__sched_cpualloc, __sched_cpufree): Add declarations.
19493
19494 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19495
19496         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19497         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19498         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19499         (readdhstai): Return value of addhstaiX call.
19500         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19501         (addgrbyX): Return value returned by cache_addgr.
19502         (readdgrbyname): Return value returned by addgrbyX.
19503         (readdgrbygid): Likewise.
19504         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19505         (addpwbyX): Return value returned by cache_addpw.
19506         (readdpwbyname): Return value returned by addhstbyX.
19507         (readdpwbyuid): Likewise.
19508         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19509         (addservbyX): Return value returned by cache_addserv.
19510         (readdservbyname): Return value returned by addservbyX:
19511         (readdservbyport): Likewise.
19512         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19513         (addhstbyX): Return value returned by cache_addhst.
19514         (readdhstbyname): Return value returned by addhstbyX.
19515         (readdhstbyaddr): Likewise.
19516         (readdhstbynamev6): Likewise.
19517         (readdhstbyaddrv6): Likewise.
19518         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19519         (readdinitgroups): Return value returned by addinitgroupsX.
19520         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19521         (prune_cache): Keep track of timeout value of re-added entries.
19522         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19523         * nscd/nscd.h: Adjust prototypes of readd* functions.
19524
19525 2011-02-04  Roland McGrath  <roland@redhat.com>
19526
19527         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19528         (nis_stats): Likewise.
19529         * nis/nis_modify.c (nis_modify): Likewise.
19530         * nis/nis_remove.c (nis_remove): Likewise.
19531         * nis/nis_add.c (nis_add): Likewise.
19532
19533         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19534
19535         * posix/fnmatch_loop.c: Add some consts.
19536
19537         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19538
19539 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19540
19541         [BZ #12460]
19542         * config.make.in (config-cflags-novzeroupper): Define.
19543         * configure.in: Substitute libc_cv_cc_novzeroupper.
19544         * elf/Makefile (AVX-CFLAGS): Define.
19545         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19546         (CFLAGS-tst-auditmod4a.c): Likewise.
19547         (CFLAGS-tst-auditmod4b.c): Likewise.
19548         (CFLAGS-tst-auditmod6b.c): Likewise.
19549         (CFLAGS-tst-auditmod6c.c): Likewise.
19550         (CFLAGS-tst-auditmod7b.c): Likewise.
19551         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19552
19553 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19554
19555         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19556         function to the callback.
19557         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19558
19559 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19560
19561         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19562         of errno.
19563
19564 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19565
19566         [BZ #11724]
19567         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19568         of constructors.
19569         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19570         of destructors.
19571         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19572
19573         [BZ #11724]
19574         * elf/Makefile: Add rules to build and run new test.
19575         * elf/tst-initorder.c: New file.
19576         * elf/tst-initorder.exp: New file.
19577         * elf/tst-initordera1.c: New file.
19578         * elf/tst-initordera2.c: New file.
19579         * elf/tst-initordera3.c: New file.
19580         * elf/tst-initordera4.c: New file.
19581         * elf/tst-initorderb1.c: New file.
19582         * elf/tst-initorderb2.c: New file.
19583         * elf/tst-order-a1.c: New file.
19584         * elf/tst-order-a2.c: New file.
19585         * elf/tst-order-a3.c: New file.
19586         * elf/tst-order-a4.c: New file.
19587         * elf/tst-order-b1.c: New file.
19588         * elf/tst-order-b2.c: New file.
19589         * elf/tst-order-main.c: New file.
19590         New test case by George Gensure <werkt0@gmail.com>.
19591
19592 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19593
19594         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19595         decoding ACE if AI_CANONIDN.
19596
19597 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19598
19599         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19600
19601 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19602
19603         * version.h (RELEASE): Bump for 2.13 release.
19604         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19605
19606         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19607
19608         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19609         MADV_NOHUGEPAGE.
19610         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19611         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19612         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19613         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19614         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19615         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19616
19617         * posix/getconf.c: Update copyright year.
19618         * catgets/gencat.c: Likewise.
19619         * csu/version.c: Likewise.
19620         * debug/catchsegv.sh: Likewise.
19621         * debug/xtrace.sh: Likewise.
19622         * elf/ldconfig.c: Likewise.
19623         * elf/ldd.bash.in: Likewise.
19624         * elf/sprof.c (print_version): Likewise.
19625         * iconv/iconv_prog.c: Likewise.
19626         * iconv/iconvconfig.c: Likewise.
19627         * locale/programs/locale.c: Likewise.
19628         * locale/programs/localedef.c: Likewise.
19629         * malloc/memusage.sh: Likewise.
19630         * malloc/mtrace.pl: Likewise.
19631         * nscd/nscd.c (print_version): Likewise.
19632         * nss/getent.c: Likewise.
19633
19634         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19635         PF_CAIF, and PF_ALG.
19636         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19637
19638 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19639
19640         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19641         (modules-names): Use them.
19642         (ifunc-test-modules, ifunc-pie-tests): Define.
19643         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19644         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19645         (test-extras): Likewise.
19646         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19647         $(compile-command.c).
19648         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19649         (all-built-dso): Define.
19650         (check-textrel.out, check-execstack.out): Depend on it.
19651
19652         * configure.in: Don't override --enable-multi-arch.
19653
19654 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19655
19656         [BZ #6812]
19657         * nscd/hstcache.c (tryagain): Define.
19658         (cache_addhst): Return tryagain not notfound for temporary errors.
19659         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19660         failed.
19661
19662 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19663
19664         [BZ #10563]
19665         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19666         to make the syscall.
19667         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19668
19669         [BZ #12378]
19670         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19671         and fall back to matching as normal character if the string ends before
19672         the matching ']' is found.  This is what POSIX requires.
19673         * posix/testfnm.c: Adjust test result.
19674         * posix/globtest.sh: Adjust test result.  Add new test.
19675         * posix/tst-fnmatch.input: Likewise.
19676         * posix/tst-fnmatch2.c: Add new test.
19677
19678 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19679
19680         * elf/Makefile (check-execstack): Revert last change.  Depend on
19681         check-execstack.h.
19682         (check-execstack.h): New target.
19683         (generated): Add check-execstack.h.
19684         * elf/check-execstack.c: Include "check-execstack.h".
19685         (main): Revert last change.
19686         (handle_file): Return zero if GNU_STACK is absent and
19687         DEFAULT_STACK_PERMS doesn't include PF_X.
19688
19689 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19690
19691         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19692         in child fails because the descriptor is already closed.
19693         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19694         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19695         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19696
19697         [BZ #12397]
19698         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19699         syscall.
19700
19701         [BZ #10484]
19702         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19703         temporary buffer used to handle multi lookups locally.
19704         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19705
19706 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19707
19708         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19709         loader is ld.so.
19710
19711 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19712
19713         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19714         alignment for SSE2.
19715
19716 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19717
19718         [BZ #12394]
19719         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19720         characters.  When rounding increased number of integer digits recompute
19721         number of groups.
19722         * stdio-common/tst-grouping.c: New file.
19723         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19724
19725 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19726
19727         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19728         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19729
19730         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19731         void.
19732         * bits/select.h: Likewise.
19733
19734 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19735
19736         * po/ja.po: Update from translation team.
19737
19738 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19739
19740         [BZ #11155]
19741         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19742         implementation just like for lxstat, fxstatat, et al.
19743
19744 2010-12-27  Jim Meyering  <meyering@redhat.com>
19745
19746         [BZ #12348]
19747         * posix/regexec.c (build_trtable): Return failure indication upon
19748         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19749
19750 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19751
19752         [BZ #12201]
19753         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19754         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19755         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19756         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19757
19758         [BZ #12207]
19759         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19760
19761         [BZ #12204]
19762         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19763         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19764
19765 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19766
19767         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19768         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19769         script has SORT_BY_INIT_PRIORITY.
19770         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19771         NO_CTORS_DTORS_SECTIONS is defined.
19772         * elf/soinit.c: Likewise.
19773         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19774         NO_CTORS_DTORS_SECTIONS is defined.
19775         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19776         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19777         * sysdeps/sh/init-first.c: Likewise.
19778         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19779
19780 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19781
19782         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19783         always use the slow path.
19784
19785 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19786
19787         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19788         similar rule which adds the sysdep directories to the header search in
19789         order to pick up the correct platform stackinfo.h.
19790         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19791         perform test if it is, otherwise return successfully without testing.
19792         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19793         DEFAULT_STACK_PERMS define in stackinfo.h.
19794         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19795         defined in stackinfo.h.
19796         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19797         DEFAULT_STACK_PERMS defined in stackinfo.h.
19798         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19799         * sysdeps/ia64/stackinfo.h: Likewise.
19800         * sysdeps/s390/stackinfo.h: Likewise.
19801         * sysdeps/sh/stackinfo.h: Likewise.
19802         * sysdeps/sparc/stackinfo.h: Likewise.
19803         * sysdeps/x86_64/stackinfo.h: Likewise.
19804         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19805         PF_X for powerpc64.  Retain PF_X for powerpc32.
19806
19807 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19808
19809         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19810         accurately.
19811         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19812         GETDENTS_64BIT_ALIGNED.
19813
19814 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19815
19816         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19817
19818 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19819
19820         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19821         _GNU_SOURCE.
19822
19823         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19824         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19825         Remove __restrict.
19826         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19827         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19828
19829 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19830
19831         [BZ #11655]
19832         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19833         are initialized.
19834
19835 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19836
19837         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19838
19839 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19840
19841         * po/it.po: Update from translation team.
19842
19843 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19844
19845         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19846         unused codes.
19847
19848 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19849
19850         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19851
19852 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19853
19854         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19855         specially.
19856         (gaih_getanswer_slice): Likewise.
19857
19858 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19859
19860         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19861
19862 2010-05-31  Petr Baudis  <pasky@suse.cz>
19863
19864         [BZ #11149]
19865         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19866         silently even in the chroot mode.
19867
19868 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19869
19870         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19871         last patch a bit.  Pretty printing
19872
19873 2010-05-31  Petr Baudis <pasky@suse.cz>
19874
19875         [BZ #10085]
19876         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19877         initialization of skip_initgroups_dyn.
19878
19879 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19880
19881         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19882         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19883
19884 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19885
19886         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19887
19888 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19889
19890         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19891         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19892         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19893         ($(objpfx)tst-fnmatch-mem): New rule.
19894         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19895         * posix/tst-fnmatch.c (main): Call mtrace.
19896
19897 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19898
19899         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19900         Support Intel processor model 6 and model 0x2c.
19901
19902 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19903
19904         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19905           signed comparison.
19906
19907 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19908
19909         [BZ #12205]
19910         * string/test-strncasecmp.c (check_result): New function.
19911         (do_one_test): Use it.
19912         (check1): New function.
19913         (test_main): Use it.
19914         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19915         Support strcasecmp and strncasecmp.
19916
19917 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19918
19919         [BZ #12194]
19920         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19921         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19922
19923 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19924
19925         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19926         IFUNC support.
19927         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19928         memset-x86-64.
19929         * sysdeps/x86_64/multiarch/bzero.S: New file.
19930         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19931         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19932         * sysdeps/x86_64/multiarch/memset.S: New file.
19933         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19934         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19935         Set bit_Prefer_SSE_for_memop for Intel processors.
19936         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19937         Define.
19938         (index_Prefer_SSE_for_memop): Define.
19939         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19940
19941 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19942
19943         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19944         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19945
19946 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19947
19948         [BZ #12191]
19949         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19950         (__x86_64_raw_data_cache_size_half): Likewise.
19951         (__x86_64_raw_shared_cache_size): Likewise.
19952         (__x86_64_raw_shared_cache_size_half): Likewise.
19953
19954         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19955         (__x86_64_raw_data_cache_size_half): Likewise.
19956         (__x86_64_raw_shared_cache_size): Likewise.
19957         (__x86_64_raw_shared_cache_size_half): Likewise.
19958         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19959         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19960         and __x86_64_raw_shared_cache_size_half.  Round
19961         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19962         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19963         to multiple of 256 bytes.
19964
19965 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19966
19967         [BZ #12167]
19968         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19969         of inacessible symlinks.  Verify result of symlink before returning it.
19970         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19971         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19972
19973 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19974
19975         * math/math.h (isinf): Fix typo in comment.
19976
19977 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19978
19979         * po/da.po: Update from translation team.
19980
19981 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19982
19983         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19984         is added to the list.
19985
19986 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19987             Ulrich Drepper  <drepper@gmail.com>
19988
19989         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19990         the global list here.  Move code to...
19991         (_dl_add_to_namespace_list): ...here.  New function.
19992         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19993         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19994         * elf/dl-load.c (lose): Don't remove the element from the list.
19995         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19996         (_dl_map_object): Likewise.
19997
19998 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19999
20000         [BZ #12159]
20001         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
20002         into all bytes of SSE register.
20003         Patch by Richard Li <richardpku@gmail.com>.
20004
20005 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
20006
20007         [BZ #12140]
20008         * malloc/malloc.c (_int_free): Fill correct number of bytes when
20009         perturbing.
20010
20011 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
20012
20013         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
20014         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
20015         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
20016         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
20018         submachine.
20019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
20020
20021 2010-10-22  Andreas Schwab  <schwab@redhat.com>
20022
20023         * include/dlfcn.h (__RTLD_SECURE): Define.
20024         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
20025         mode & __RTLD_SECURE instead.
20026         (open_path): Rename preloaded parameter to secure.
20027         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
20028         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
20029         * elf/dl-deps.c (openaux): Likewise.
20030         * elf/rtld.c (struct map_args): Remove is_preloaded.
20031         (map_doit): Don't use it.
20032         (dl_main): Likewise.
20033         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
20034         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
20035
20036 2010-09-09  Andreas Schwab  <schwab@redhat.com>
20037
20038         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
20039         (sysd-rules-targets): Remove duplicates.
20040         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
20041         rtld-%.$o dependency.
20042
20043 2010-10-18  Andreas Schwab  <schwab@redhat.com>
20044
20045         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
20046         _dl_map_object do it.
20047
20048 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
20049
20050         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
20051         fast fma builtins, define the macros in the C99 standard.
20052         (FP_FAST_FMAF): Likewise.
20053         (FP_FAST_FMAL): Likewise.
20054         * sysdeps/x86_64/bits/mathdef.h: Likewise.
20055
20056         * bits/mathdef.h: Update copyright year.
20057         * sysdeps/powerpc/bits/mathdef.h: Likewise.
20058
20059 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20060
20061         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
20062         builtins, define the macros in the C99 standard.
20063         (FP_FAST_FMAF): Likewise.
20064         (FP_FAST_FMAL): Likewise.
20065         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
20066         multiply/add.
20067         (FP_FAST_FMAF): Likewise.
20068
20069 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
20070
20071         [BZ #3268]
20072         * math/libm-test.inc (fma_test): Some new testcases.
20073         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
20074         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
20075         y and infinite z.  Do multiplication by C already in long double.
20076         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
20077         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
20078         y and infinite z.  Do bitwise or of inexact bit into u.d.
20079         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
20080         * sysdeps/i386/fpu/s_fmaf.S: Removed.
20081         * sysdeps/i386/fpu/s_fma.S: Removed.
20082         * sysdeps/i386/fpu/s_fmal.S: Removed.
20083
20084 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
20085
20086         [BZ #3268]
20087         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
20088         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
20089         computation is not scheduled after fetestexcept.  Fix value
20090         of minimum denormal long double.
20091
20092 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
20093
20094         [BZ #3268]
20095         * math/libm-test.inc (fma_test): Add some more tests.
20096         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
20097         correctly.
20098
20099 2010-10-15  Andreas Schwab  <schwab@redhat.com>
20100
20101         * scripts/data/localplt-s390-linux-gnu.data: New file.
20102         * scripts/data/localplt-s390x-linux-gnu.data: New file.
20103
20104 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
20105
20106         [BZ #3268]
20107         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
20108         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
20109         instead of dbl-64.
20110         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
20111         inlines.
20112         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
20113         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
20114         if one of x and y is very large and the other is subnormal.
20115         * sysdeps/s390/fpu/s_fmaf.c: New file.
20116         * sysdeps/s390/fpu/s_fma.c: New file.
20117         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
20118         * sysdeps/powerpc/fpu/s_fma.S: New file.
20119         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
20120         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
20121         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
20122
20123 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
20124
20125         [BZ #3268]
20126         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
20127         fma tests.
20128         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
20129         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
20130         * sysdeps/i386/i686/multiarch/s_fma.c: Include
20131         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
20132         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
20133         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
20134         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
20135
20136 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
20137
20138         [BZ #12078]
20139         * posix/regcomp.c (parse_branch): One more memory leak plugged.
20140         * posix/bug-regex31.input: Add test case.
20141
20142 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20143
20144         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
20145         * posix/bug-regex31.input: New file.
20146
20147         [BZ #12078]
20148         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
20149         (parse_sub_exp): Fix last change, use postorder.
20150
20151         * posix/bug-regex31.c: New file.
20152         * posix/Makefile: Add rules to build and run bug-regex31.
20153
20154         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
20155
20156         [BZ #12078]
20157         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
20158
20159         [BZ #12108]
20160         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20161         to have entries in sys_siglist.
20162
20163         [BZ #12093]
20164         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20165         be NULL.
20166
20167 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20168
20169         [BZ #3268]
20170         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20171         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20172         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20173         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20174         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20175         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20176         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20177         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20178         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20179         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20180         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20181         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20182         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20183         * math/ftestexcept.c (fetestexcept): Likewise.
20184         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20185         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20186         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20187         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20188         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20189         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20190         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20191
20192 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20193
20194         [BZ #12107]
20195         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20196         newline.
20197
20198 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20199
20200         * string/bug-strstr1.c: New file.
20201         * string/Makefile: Add rules to build and run bug-strstr1.
20202
20203 2010-10-05  Eric Blake  <eblake@redhat.com>
20204
20205         [BZ #12092]
20206         * string/str-two-way.h (two_way_long_needle): Always clear memory
20207         when skipping input due to the shift table.
20208
20209 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20210
20211         [BZ #12005]
20212         * malloc/mcheck.c: Handle large requests.
20213
20214         [BZ #12077]
20215         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20216         for strncmp and strncasecmp.
20217         * string/stratcliff.c: Add tests for strcmp and strncmp.
20218         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20219
20220 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20221
20222         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20223         __set_fpscr.
20224
20225 2010-09-30  Andreas Jaeger  <aj@suse.de>
20226
20227         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20228         (CGROUP_SUPER_MAGIC): Define.
20229         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20230         Handle btrfs and cgroup file systems.
20231         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20232         Likewise.
20233
20234 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20235
20236         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20237         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20238
20239 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20240
20241         [BZ #12067]
20242         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20243         trying to locate the ELF header.
20244
20245 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20246
20247         [BZ #11611]
20248         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20249         Mask out sign-bit copies when constructing f_fsid.
20250
20251 2010-09-24  Petr Baudis <pasky@suse.cz>
20252
20253         * debug/stack_chk_fail_local.c: Add missing licence exception.
20254         * debug/warning-nop.c: Likewise.
20255
20256 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20257
20258         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20259         implementing getdents64 using getdents syscall, set d_type if
20260         __ASSUME_GETDENTS32_D_TYPE.
20261
20262 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20263
20264         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20265         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20266
20267 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20268
20269         [BZ #12037]
20270         * posix/unistd.h: Undo change of feature selection for ftruncate from
20271         2010-01-11.
20272
20273 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20274
20275         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20276         detection.
20277
20278 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20279
20280         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20281         fanotify_mark.
20282         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20283
20284 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20285
20286         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20287         variables after CHECK_SP call.
20288         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20289
20290 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20291             Ulrich Drepper  <drepper@redhat.com>
20292
20293         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20294         re-relocationg ld.so.
20295         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20296         _dl_init_paths call.
20297         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20298         here anymore.
20299
20300 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20301
20302         * resolv/res_init.c (__res_vinit): Count the default server we added.
20303
20304 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20305             Ulrich Drepper  <drepper@redhat.com>
20306
20307         [BZ #11968]
20308         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20309         (____longjmp_chk): Use %ebx for saving value across system call.
20310         Add unwind info.
20311
20312 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20313
20314         * manual/Makefile: Don't mix pattern rules with normal rules.
20315
20316 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20317
20318         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20319         operation.
20320         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20321         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20322         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20323         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20324         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20325         Likewise.
20326
20327 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20328
20329         [BZ #11979]
20330         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20331         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20332
20333 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20334
20335         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20336         * sysdeps/x86_64/addmul_1.S: Likewise.
20337         * sysdeps/x86_64/lshift.S: Likewise.
20338         * sysdeps/x86_64/mul_1.S: Likewise.
20339         * sysdeps/x86_64/rshift.S: Likewise.
20340         * sysdeps/x86_64/sub_n.S: Likewise.
20341         * sysdeps/x86_64/submul_1.S: Likewise.
20342
20343 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20344
20345         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20346         Define __sched_param instead of SCHED_* and sched_param when
20347         <bits/sched.h> is included with __need_schedparam defined.
20348         * bits/sched.h [__need_schedparam]
20349         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20350         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20351         (__defined_schedparam): Define to 1.
20352         (__sched_param): New structure, identical to sched_param.
20353         (__need_schedparam): Undefine.
20354
20355 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20356
20357         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20358         (epoll_create1): Declare.
20359
20360         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20361
20362 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20363
20364         [BZ #7066]
20365         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20366         shifting retval into place.
20367
20368 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20369
20370         * nis/rpcsvc/nis.h: Update copyright notice.
20371         * nis/rpcsvc/nis.x: Likewise.
20372         * nis/rpcsvc/nis_callback.h: Likewise.
20373         * nis/rpcsvc/nis_callback.x: Likewise.
20374         * nis/rpcsvc/nis_object.x: Likewise.
20375         * nis/rpcsvc/nis_tags.h: Likewise.
20376         * nis/rpcsvc/yp.h: Likewise.
20377         * nis/rpcsvc/yp.x: Likewise.
20378         * nis/rpcsvc/ypupd.h: Likewise.
20379         * nis/yp_xdr.c: Likewise.
20380         * nis/ypupdate_xdr.c: Likewise.
20381
20382         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20383         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20384         (pmap_getport): Use __libc_rpc_getport.
20385         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20386         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20387         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20388
20389 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20390
20391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20392         fanotify_mark.
20393
20394 2010-08-27  Roland McGrath  <roland@redhat.com>
20395
20396         * sysdeps/i386/i686/multiarch/Makefile
20397         (CFLAGS-varshift.c): New variable.
20398
20399 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20400
20401         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20402         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20403
20404         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20405
20406         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20407
20408 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20409
20410         * sysdeps/x86_64/strlen.S: Unroll the loop.
20411         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20412         strlen-sse2 strlen-sse2-bsf.
20413         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20414         __strlen_no_bsf if bit_Slow_BSF is set.
20415         (__strlen_sse42): Removed.
20416         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20417         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20418
20419 2010-08-25  Roland McGrath  <roland@redhat.com>
20420
20421         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20422         * sysdeps/x86_64/multiarch/varshift.c: New file.
20423         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20424         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20425         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20426         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20427
20428 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20429
20430         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20431         strlen-sse2 strlen-sse2-bsf.
20432         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20433         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20434         (__strlen_sse2): Removed.
20435         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20436         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20437         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20438         bit_Slow_BSF for Atom.
20439         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20440         (index_Slow_BSF): Define.
20441         (HAS_SLOW_BSF): Define.
20442
20443 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20444
20445         [BZ #10851]
20446         * resolv/res_init.c (__res_vinit): When no server address at all
20447         is given default to loopback.
20448
20449 2010-08-24  Roland McGrath  <roland@redhat.com>
20450
20451         * configure.in: Remove config-name.h generation.
20452         * configure: Regenerated.
20453         * config-name.in: File removed.
20454         * scripts/config-uname.sh: New file.
20455         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20456         ($(objdir)config-name.h): New target.
20457
20458         * sunrpc/rpc_parse.h: Avoid nested comment.
20459
20460 2010-08-24  Richard Henderson  <rth@redhat.com>
20461             Ulrich Drepper  <drepper@redhat.com>
20462             H.J. Lu  <hongjiu.lu@intel.com>
20463
20464         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20465         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20466         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20467         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20468         _mm_alignr_epi8 with _mm_loadu_si128.
20469         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20470         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20471         (__m128i_shift_right): Removed.
20472         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20473         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20474         * sysdeps/x86_64/multiarch/varshift.h: New file.
20475         * sysdeps/x86_64/multiarch/varshift.S: New file.
20476
20477 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20478
20479         * configure.in: Move assembler checks to before sysdep dir checking.
20480
20481 2010-08-20  Petr Baudis  <pasky@suse.cz>
20482
20483         * LICENSES: Sync the sunrpc license.
20484
20485 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20486
20487         * sunrpc/auth_des.c: Update copyright notice once again.
20488         * sunrpc/auth_none.c: Likewise.
20489         * sunrpc/auth_unix.c: Likewise.
20490         * sunrpc/authdes_prot.c: Likewise.
20491         * sunrpc/authuxprot.c: Likewise.
20492         * sunrpc/bindrsvprt.c: Likewise.
20493         * sunrpc/clnt_gen.c: Likewise.
20494         * sunrpc/clnt_perr.c: Likewise.
20495         * sunrpc/clnt_raw.c: Likewise.
20496         * sunrpc/clnt_simp.c: Likewise.
20497         * sunrpc/clnt_tcp.c: Likewise.
20498         * sunrpc/clnt_udp.c: Likewise.
20499         * sunrpc/clnt_unix.c: Likewise.
20500         * sunrpc/des_crypt.c: Likewise.
20501         * sunrpc/des_soft.c: Likewise.
20502         * sunrpc/get_myaddr.c: Likewise.
20503         * sunrpc/getrpcport.c: Likewise.
20504         * sunrpc/key_call.c: Likewise.
20505         * sunrpc/key_prot.c: Likewise.
20506         * sunrpc/openchild.c: Likewise.
20507         * sunrpc/pm_getmaps.c: Likewise.
20508         * sunrpc/pm_getport.c: Likewise.
20509         * sunrpc/pmap_clnt.c: Likewise.
20510         * sunrpc/pmap_prot.c: Likewise.
20511         * sunrpc/pmap_prot2.c: Likewise.
20512         * sunrpc/pmap_rmt.c: Likewise.
20513         * sunrpc/rpc/auth.h: Likewise.
20514         * sunrpc/rpc/auth_unix.h: Likewise.
20515         * sunrpc/rpc/clnt.h: Likewise.
20516         * sunrpc/rpc/des_crypt.h: Likewise.
20517         * sunrpc/rpc/key_prot.h: Likewise.
20518         * sunrpc/rpc/netdb.h: Likewise.
20519         * sunrpc/rpc/pmap_clnt.h: Likewise.
20520         * sunrpc/rpc/pmap_prot.h: Likewise.
20521         * sunrpc/rpc/pmap_rmt.h: Likewise.
20522         * sunrpc/rpc/rpc.h: Likewise.
20523         * sunrpc/rpc/rpc_des.h: Likewise.
20524         * sunrpc/rpc/rpc_msg.h: Likewise.
20525         * sunrpc/rpc/svc.h: Likewise.
20526         * sunrpc/rpc/svc_auth.h: Likewise.
20527         * sunrpc/rpc/types.h: Likewise.
20528         * sunrpc/rpc/xdr.h: Likewise.
20529         * sunrpc/rpc_clntout.c: Likewise.
20530         * sunrpc/rpc_cmsg.c: Likewise.
20531         * sunrpc/rpc_common.c: Likewise.
20532         * sunrpc/rpc_cout.c: Likewise.
20533         * sunrpc/rpc_dtable.c: Likewise.
20534         * sunrpc/rpc_hout.c: Likewise.
20535         * sunrpc/rpc_main.c: Likewise.
20536         * sunrpc/rpc_parse.c: Likewise.
20537         * sunrpc/rpc_parse.h: Likewise.
20538         * sunrpc/rpc_prot.c: Likewise.
20539         * sunrpc/rpc_sample.c: Likewise.
20540         * sunrpc/rpc_scan.c: Likewise.
20541         * sunrpc/rpc_scan.h: Likewise.
20542         * sunrpc/rpc_svcout.c: Likewise.
20543         * sunrpc/rpc_tblout.c: Likewise.
20544         * sunrpc/rpc_util.c: Likewise.
20545         * sunrpc/rpc_util.h: Likewise.
20546         * sunrpc/rpcinfo.c: Likewise.
20547         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20548         * sunrpc/rpcsvc/key_prot.x: Likewise.
20549         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20550         * sunrpc/rpcsvc/mount.x: Likewise.
20551         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20552         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20553         * sunrpc/rpcsvc/rex.x: Likewise.
20554         * sunrpc/rpcsvc/rstat.x: Likewise.
20555         * sunrpc/rpcsvc/rusers.x: Likewise.
20556         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20557         * sunrpc/rpcsvc/spray.x: Likewise.
20558         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20559         * sunrpc/rtime.c: Likewise.
20560         * sunrpc/svc.c: Likewise.
20561         * sunrpc/svc_auth.c: Likewise.
20562         * sunrpc/svc_authux.c: Likewise.
20563         * sunrpc/svc_raw.c: Likewise.
20564         * sunrpc/svc_run.c: Likewise.
20565         * sunrpc/svc_simple.c: Likewise.
20566         * sunrpc/svc_tcp.c: Likewise.
20567         * sunrpc/svc_udp.c: Likewise.
20568         * sunrpc/svc_unix.c: Likewise.
20569         * sunrpc/svcauth_des.c: Likewise.
20570         * sunrpc/xcrypt.c: Likewise.
20571         * sunrpc/xdr.c: Likewise.
20572         * sunrpc/xdr_array.c: Likewise.
20573         * sunrpc/xdr_float.c: Likewise.
20574         * sunrpc/xdr_mem.c: Likewise.
20575         * sunrpc/xdr_rec.c: Likewise.
20576         * sunrpc/xdr_ref.c: Likewise.
20577         * sunrpc/xdr_sizeof.c: Likewise.
20578         * sunrpc/xdr_stdio.c: Likewise.
20579
20580         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20581         handling.
20582
20583 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20584
20585         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20586
20587 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20588
20589         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20590         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20591         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20592         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20593         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20594         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20595         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20596         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20597         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20598         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20599         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20600         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20601         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20602         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20603
20604 2010-07-26  Anton Blanchard  <anton@samba.org>
20605
20606         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20607         * malloc/arena.c (heap_trim): Likewise.
20608
20609 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20610
20611         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20612         here.  Not...
20613         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20614         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20615
20616 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20617
20618         * sysdeps/i386/elf/Makefile: New file.
20619
20620 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20621
20622         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20623         from fanotify_init.
20624         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20625         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20626
20627 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20628
20629         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20630         of strncasecmp_l.
20631         * sysdeps/multiarch/strcmp.S: Likewise.
20632
20633 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20634
20635         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20636         strncase_l-nonascii.
20637         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20638         Add strncase_l-ssse3.
20639         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20640         * sysdeps/x86_64/strcmp.S: Likewise.
20641         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20642         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20643         * sysdeps/x86_64/strncase.S: New file.
20644         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20645         * sysdeps/x86_64/strncase_l.S: New file.
20646         * string/Makefile (strop-tests): Add strncasecmp.
20647         * string/test-strncasecmp.c: New file.
20648
20649         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20650         warning.
20651
20652         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20653         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20654
20655 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20656
20657         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20658
20659 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20660
20661         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20662         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20663         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20664
20665 2010-05-01  Alan Modra  <amodra@gmail.com>
20666
20667         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20668         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20669         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20670         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20671         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20672         tidying.  Don't tail-call __sigjmp_save for static lib.
20673         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20674         save location.
20675         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20676         (CALL_MCOUNT): Add eh info, and nop after bl.
20677         (TAIL_CALL_SYSCALL_ERROR): New macro.
20678         (PSEUDO_RET): Use it.
20679         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20680         Correct save location of integer regs and cr.
20681         (_dl_profile_resolve): Correct cr save location.  Delete nops
20682         after bl when SHARED.  Reduce cfi size a little by better
20683         placement of cfi directives.
20684         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20685         make a stack frame.  Instead use parm save area as a temp.
20686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20687         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20689         Don't make a stack frame for parent, use parm save area.
20690         Increase child stack frame to 112 bytes.  Don't save unused reg,
20691         and adjust reg usage.  Set up cfi on error recovery and
20692         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20694         (__makecontext): Add dummy nop after jump to exit.
20695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20696         Use correct parm save area and cr save, reduce stack frame.
20697         Correct cfi for possible PSEUDO_RET frame setup.
20698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20699         Branch to local label emitted by PSEUDO_RET rather than
20700         __syscall_error.
20701
20702 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20703
20704         [BZ #11904]
20705         * locale/programs/locale.c (print_assignment): New function.
20706         (show_locale_vars): Use it.
20707
20708 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20709
20710         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20711         field.
20712         (struct statfs64): Likewise.
20713         (_STATFS_F_FLAGS): Define.
20714         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20715         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20716         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20717         (ST_VALID): Define locally.
20718         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20719         __statvfs_getflags, use the provided value.
20720         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20721         __ASSUME_STATFS_F_FLAGS.
20722
20723         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20724
20725         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20726         Add sys/fanotify.h.
20727         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20728         fanotify_mask for GLIBC_2.13.
20729         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20730         fanotify_init and fanotify_mark.
20731         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20732         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20733
20734         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20735         Add prlimit.
20736         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20737         prlimit64 for GLIBC_2.13.
20738         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20739         prlimit64.
20740         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20741         syscall.
20742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20743         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20744         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20745         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20746         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20747         add prlimit alias.
20748         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20749
20750         [BZ #11903]
20751         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20752         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20753
20754         * nss/Makefile: Add rules to build and run tst-nss-test1.
20755         * shlib-versions: Add entry for libnss_test1.
20756         * nss/nss_test1.c: New file.
20757         * nss/tst-nss-test1.c: New file.
20758
20759         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20760         (__nss_configure_lookup): Set appropriate entry in
20761         __nss_configure_lookup to true.
20762         * nss/nsswitch.h: Define enum with indeces of databases in
20763         databases and __nss_database_custom arrays.  Declare
20764         __nss_database_custom.
20765         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20766         to avoid using nscd when custom rules are installed.
20767         * nss/getXXbyYY_r.c: Likewise.
20768         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20769
20770         * nss/nss_files/files-parse.c: Whitespace fixes.
20771
20772 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20773
20774         [BZ #11883]
20775         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20776         * posix/fnmatch_loop.c: Likewise.
20777
20778 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20779
20780         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20781         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20782         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20783         * Versions.def [GLIBC_2.13]: Add.
20784
20785 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20786
20787         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20788         Also fail if tpwd after pwuid call is NULL.
20789
20790 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20791
20792         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20793         when converting to ms.
20794
20795 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20796
20797         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20798         EOPNOTSUPP errors with ENOTTY.
20799         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20800         EOPNOTSUPP errors with ENOTTY.
20801
20802 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20803
20804         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20805         Add strcasecmp_l-ssse3.
20806         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20807         strcasecmp.
20808         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20809         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20810         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20811
20812 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20813
20814         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20815
20816         * string/Makefile (strop-tests): Add strcasecmp.
20817         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20818         strcasecmp_l-nonascii.
20819         (gen-as-const-headers): Add locale-defines.sym.
20820         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20821         * sysdeps/x86_64/strcasecmp.S: New file.
20822         * sysdeps/x86_64/strcasecmp_l.S: New file.
20823         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20824         * sysdeps/x86_64/locale-defines.sym: New file.
20825         * string/test-strcasecmp.c: New file.
20826
20827         * string/test-strcasestr.c: Test both ends of the range of characters.
20828         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20829
20830 2010-07-29  Roland McGrath  <roland@redhat.com>
20831
20832         [BZ #11856]
20833         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20834
20835 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20836
20837         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20838         for ld.so.
20839
20840 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20841
20842         * manual/memory.texi (Malloc Tunable Parameters): Document
20843         M_PERTURB.
20844
20845 2010-07-26  Roland McGrath  <roland@redhat.com>
20846
20847         [BZ #11840]
20848         * configure.in (-fgnu89-inline check): Set and substitute
20849         gnu89_inline, not libc_cv_gnu89_inline.
20850         * configure: Regenerated.
20851         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20852
20853 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20854
20855         * string/test-strnlen.c: New file.
20856         * string/Makefile (strop-tests): Add strnlen.
20857         * string/tester.c (test_strnlen): Add a few more test cases.
20858         * string/tst-strlen.c: Better error reporting.
20859
20860         * sysdeps/x86_64/strnlen.S: New file.
20861
20862 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20863
20864         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20865         lower-latency instructions.
20866
20867 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20868
20869         * string/test-strcasestr.c: New file.
20870         * string/test-strstr.c: New file.
20871         * string/Makefile (strop-tests): Add strstr and strcasestr.
20872         * string/str-two-way.h: Don't undefine MAX.
20873         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20874
20875 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20876
20877         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20878         strcasestr-nonascii.
20879         (CFLAGS-strcasestr-nonascii.c): Define.
20880         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20881         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20882         Remove unused attribute.
20883
20884 2010-07-20  Roland McGrath  <roland@redhat.com>
20885
20886         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20887         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20888         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20889         like LD_HWCAP_MASK can disable hwcaps.
20890
20891 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20892
20893         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20894
20895 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20896
20897         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20898         call in strcasestr.
20899         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20900         __strcasestr_sse42_nonascii.
20901         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20902         strcasestr-nonascii.c.
20903         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20904
20905 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20906
20907         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20908         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20909         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20910         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20911
20912 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20913
20914         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20915         fcntl.
20916
20917 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20918
20919         [BZ #11577]
20920         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20921         dl_signal_cerror.
20922
20923 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20924
20925         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20926         _PC_PIPE_BUF using F_GETPIPE_SZ.
20927
20928 2010-07-05  Roland McGrath  <roland@redhat.com>
20929
20930         * manual/arith.texi (Rounding Functions): Fix rint description
20931         implicit in round description.
20932
20933 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20934
20935         * elf/Makefile: Fix linking for a few tests to make recent linker
20936         happy.
20937
20938 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20939
20940         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20941         $(common-objpfx)libc_nonshared.a.
20942
20943 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20944
20945         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20946         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20947         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20948         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20949         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20950         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20951         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20952         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20967         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20968         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20969         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20970         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20971         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20972         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20973         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20974         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20975         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20976         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20977         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20978         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20993
20994 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20995
20996         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20997         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20998         * string/memmove.c (memmove): Renamed to ...
20999         (MEMMOVE): ...this.  Default to memmove.
21000         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
21001         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
21002         (END_CHK): Define.
21003         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21004         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
21005         mempcpy-ssse3-back memmove-ssse3-back.
21006         * sysdeps/x86_64/multiarch/bcopy.S: New file .
21007         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
21008         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
21009         * sysdeps/x86_64/multiarch/memcpy.S: New file.
21010         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
21011         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
21012         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
21013         * sysdeps/x86_64/multiarch/memmove.c: New file.
21014         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
21015         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
21016         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
21017         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
21018         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
21019         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
21020         Define.
21021         (index_Fast_Copy_Backward): Define.
21022         (HAS_ARCH_FEATURE): Define.
21023         (HAS_FAST_REP_STRING): Define.
21024         (HAS_FAST_COPY_BACKWARD): Define.
21025
21026 2010-06-21  Andreas Schwab  <schwab@redhat.com>
21027
21028         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21029         Restore proper fallback handling.
21030
21031 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
21032
21033         [BZ #11701]
21034         * posix/group_member.c (__group_member): Correct checking loop.
21035
21036         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
21037         OOM in getpwuid_r correctly.  Return error number when the caller
21038         should return, otherwise -1.
21039         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
21040         call returning > 0 value.
21041         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
21042
21043 2010-06-07  Andreas Schwab  <schwab@redhat.com>
21044
21045         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
21046         libc_nonshared.a from targets in modules-names.
21047
21048 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
21049
21050         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
21051         requires it.
21052
21053 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
21054
21055         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
21056         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
21057         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
21058         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
21059
21060 2010-06-02  Andreas Schwab  <schwab@redhat.com>
21061
21062         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
21063
21064 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
21065
21066         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
21067         and F_GETPIPE_SZ.
21068         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
21069         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21070         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21071         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21072         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21073         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
21074
21075 2010-06-14  Roland McGrath  <roland@redhat.com>
21076
21077         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
21078
21079 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
21080
21081         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
21082         __REDIRECT followed by __THROW.
21083         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
21084         * posix/getopt.h (getopt): Likewise.
21085
21086 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21087
21088         * hurd/lookup-at.c (__file_name_lookup_at): Accept
21089         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
21090         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
21091         in AT_FLAGS.
21092         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
21093         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
21094
21095 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
21096
21097         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
21098
21099 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
21100
21101         [BZ #11640]
21102         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21103         Properly check family and model.
21104
21105 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
21106
21107         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
21108
21109 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
21110
21111         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
21112
21113 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
21114
21115         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
21116         symbol reference.
21117
21118 2010-05-19  Andreas Schwab  <schwab@redhat.com>
21119
21120         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
21121         symbol reference.
21122
21123 2010-05-21  Andreas Schwab  <schwab@redhat.com>
21124
21125         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
21126         and internal_recvmmsg.
21127         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
21128         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
21129         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
21130         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
21131
21132         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
21133         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
21134         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
21135
21136 2010-05-20  Andreas Schwab  <schwab@redhat.com>
21137
21138         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
21139
21140 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
21141
21142         POWER7 optimizations.
21143         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
21144         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
21145
21146 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
21147
21148         * version.h: Update for 2.13 development version.
21149
21150 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
21151
21152         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
21153         exceptions.  Return 0.
21154
21155 2010-05-07  Roland McGrath  <roland@redhat.com>
21156
21157         * elf/ldconfig.c (main): Add a const.
21158
21159 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
21160
21161         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21162         (args_options): Add no-idn option.
21163         (ahosts_keys_int): Add idn_flags to ai_flags.
21164         (parse_option): Handle 'i' option to clear idn_flags.
21165
21166         * malloc/malloc.c (_int_free): Possible race in the most recently
21167         added check.  Only act on the data if no current modification
21168         happened.
21169
21170 See ChangeLog.17 for earlier changes.