Don't flush write buffer for ftell
[platform/upstream/glibc.git] / ChangeLog
1 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2
3         [BZ #5298]
4         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
5         for ftell.  Compute offsets from write pointers instead.
6         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
7
8 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9
10         [BZ #14543]
11         * libio/Makefile (tests): New test case tst-fseek.
12         * libio/tst-fseek.c: New test case to verify that fseek/ftell
13         combination works in wide mode.
14         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
15         state when the external buffer state changes.
16
17 2012-09-27  David S. Miller  <davem@davemloft.net>
18
19         [BZ #14376]
20         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
21         pass reloc->r_addend in as the 'high' argument to
22         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
23
24         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25
26 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27
28         * rt/tst-aio2.c: Include <pthread.h>.
29         * rt/tst-aio3.c: Likewise.
30
31 2012-09-27  Steve Ellcey  <sellcey@mips.com>
32
33         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
34
35 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
36
37         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Empty if not in
38         libc.a.
39
40 2012-09-26  Marek Polacek  <polacek@redhat.com>
41
42         [BZ #14530]
43         [BZ #13741]
44         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
45         for C++ and GCC <4.3 as well as for non GCC compilers.
46
47 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
48
49         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
50
51 2012-09-25  Roland McGrath  <roland@hack.frob.com>
52
53         * Makefile.in (all, install): Declare with .PHONY.
54         Reported by Michael Hope <michael.hope@linaro.org>.
55
56 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57
58         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
59         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
60         system header.
61         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
62         Likewise.
63         (sydep_routines): Add the new and the internal functions.
64         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
65         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
66         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
67         (GLIBC_2.17): Add the new function.
68         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
69         (GLIBC_2.17): Likewise.
70         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
71         (GLIBC_2.17): Likewise.
72         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
73         (GLIBC_2.17): Likewise.
74         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
75
76 2012-09-25  Alan Modra  <amodra@gmail.com>
77
78         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
79         Add release barrier before setting once_control to say
80         initialisation is done.  Add hints on lwarx.  Use macro in
81         place of isync.
82         (clear_once_control): Add release barrier.
83
84 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
85
86         [BZ #13629]
87         * math/s_clog.c (__clog): Handle more values close to |z| = 1
88         specially.
89         * math/s_clog10.c (__clog10): Likewise.
90         * math/s_clog10f.c (__clog10f): Likewise.
91         * math/s_clog10l.c (__clog10l): Likewise.
92         * math/s_clogf.c (__clogf): Likewise.
93         * math/s_clogl.c (__clogl): Likewise.
94         * math/Makefile (libm-calls): Add x2y2m1.
95         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
96         (__x2y2m1): Likewise.
97         (__x2y2m1l): Likewise.
98         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
99         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
100         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
101         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
102         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
103         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
104         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
105         * sysdeps/i386/fpu/libm-test-ulps: Update.
106         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
107
108         [BZ #14621]
109         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
110         int as type of variable DEPTH.
111         (glob): Use size_t instead of int as type of variables NEWCOUNT
112         and OLD_PATHC.
113
114 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
115
116         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
117         Add s_sincosf-sse2.
118         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
119         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
120         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
121         macros for using routine as __sincosf_ia32.
122         Use macro for function declaration and weak_alias.
123         * sysdeps/i386/fpu/libm-test-ulps: Update.
124
125         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
126         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
127
128         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
129         subnormal argument.
130         * math/s_cexpf.c (__cexpf): Likewise.
131         * math/s_csinf.c (__csinf): Likewise.
132         * math/s_csinhf.c (__csinhf): Likewise.
133         * math/s_ctanf.c (__ctanf): Likewise.
134         * math/s_ctanhf.c (__ctanhf): Likewise.
135         * math/s_ccosh.c (__ccoshf): Likewise.
136         * math/s_cexp.c (__cexpl): Likewise.
137         * math/s_csin.c (__csin): Likewise.
138         * math/s_csinh.c (__csinh): Likewise.
139         * math/s_ctan.c (__ctan): Likewise.
140         * math/s_ctanh.c (ctanh): Likewise.
141         * math/s_ccoshl.c (__ccoshl): Likewise.
142         * math/s_cexpl.c (__cexpl): Likewise.
143         * math/s_csinl.c (__csinl): Likewise.
144         * math/s_csinhl.c (__csinhl): Likewise.
145         * math/s_ctanl.c (__ctanl): Likewise.
146         * math/s_ctanhl.c (__ctanhl): Likewise.
147
148 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
149
150         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
151         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
152         (_IO_off_t): Define to __off_t, not _G_off_t.
153         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
154         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
155         (_IO_wint_t): Define to wint_t, not _G_wint_t.
156         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
157         type of __dummy and __dummy2 fields.
158         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
159         (_G_ssize_t): Likewise.
160         (_G_off_t): Likewise.
161         (_G_pid_t): Likewise.
162         (_G_uid_t): Likewise.
163         (_G_wchar_t): Likewise.
164         (_G_wint_t): Likewise.
165         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
166         (_G_ssize_t): Likewise.
167         (_G_off_t): Likewise.
168         (_G_pid_t): Likewise.
169         (_G_uid_t): Likewise.
170         (_G_wchar_t): Likewise.
171         (_G_wint_t): Likewise.
172         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
173         (_G_ssize_t): Likewise.
174         (_G_off_t): Likewise.
175         (_G_pid_t): Likewise.
176         (_G_uid_t): Likewise.
177         (_G_wchar_t): Likewise.
178         (_G_wint_t): Likewise.
179
180 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
181
182         * malloc/arena.c: Include malloc-sysdep.h.
183         (shrink_heap): Use check_may_shrink_heap to decide if madvise
184         is sufficient to shrink the heap or an unmap is needed.
185         * sysdeps/generic/malloc-sysdep.h: New file.  Define
186         new function check_may_shrink_heap.
187         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
188         new function check_may_shrink_heap.
189
190 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
191
192         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
193         comments.
194
195 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
196
197         * catgets/test-gencat.sh: Add "set -e".
198         * elf/tst-pathopt.sh: Likewise.
199         * grp/tst_fgetgrent.sh: Likewise.
200         * iconvdata/run-iconv-test.sh: Likewise.
201         * intl/tst-gettext.sh: Likewise.
202         * intl/tst-gettext2.sh: Likewise.
203         * intl/tst-gettext4.sh: Likewise.
204         * intl/tst-gettext6.sh: Likewise.
205         * intl/tst-translit.sh: Likewise.
206         * io/ftwtest-sh: Likewise.
207         * libio/test-freopen.sh: Likewise.
208         * malloc/tst-mtrace.sh: Likewise.
209         * posix/globtest.sh: Likewise.
210         * posix/tst-getconf.sh: Likewise.
211         * posix/wordexp-tst.sh: Likewise.
212         * stdio-common/tst-printf.sh: Likewise.
213         * stdio-common/tst-unbputc.sh: Likewise.
214         * stdlib/tst-fmtmsg.sh: Likewise.
215         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
216         * catgets/Makefile: Do not specify -e option when running
217         testsuite shell scripts.
218         * elf/Makefile: Likewise.
219         * grp/Makefile: Likewise.
220         * iconvdata/Makefile: Likewise.
221         * intl/Makefile: Likewise.
222         * io/Makefile: Likewise.
223         * libio/Makefile: Likewise.
224         * malloc/Makefile: Likewise.
225         * posix/Makefile: Likewise.
226         * stdio-common/Makefile: Likewise.
227         * stdlib/Makefile: Likewise.
228         * sysdeps/x86_64/Makefile: Likewise.
229
230         * io/ftwtest-sh: Add copyright header.
231         * posix/globtest.sh: Likewise.
232         * posix/tst-getconf.sh: Likewise.
233         * posix/wordexp-tst.sh: Likewise.
234         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
235
236 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
237
238         [BZ #13679]
239         * Makeconfig (+link): Defined as $(+link-static) if
240         $(build-shared) isn't yes.
241         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
242         isn't yes.
243         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
244
245         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
246
247         [BZ #14562]
248         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
249         new chunk size with MALLOC_ALIGN_MASK.
250
251 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
252
253         [BZ #5044]
254         * stdio-common/printf_fphex.c: Include <stdbool.h> and
255         <rounding-mode.h>.
256         (__printf_fphex): Determine rounding using get_rounding_mode and
257         round_away.
258         * stdio-common/tst-printf-round.c (struct hex_test): New
259         structure.
260         (hex_tests): New variable.
261         (test_hex_in_one_mode): New function.
262         (do_test): Also run tests for hex float output.
263
264 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
265
266         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
267         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
268         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
269         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
270         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
271         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
272         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
273         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
274
275 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
276
277         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
278         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
279         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
280         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
281
282 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
283
284         [BZ #14579]
285         * elf/rtld.c (dl_main): Limit the check for self loading to normal
286         mode only.
287         * elf/tst-rtld-load-self.sh: New test.
288         * elf/Makefile: Run it.
289
290 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
291
292         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
293         (tst-writev-ENV): Remove.
294         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
295
296 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
297
298         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
299
300 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
301
302         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
303         unconditional.
304         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
305         Likewise.
306         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
307         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
308         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
309         Likewise.
310
311 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
312
313         [BZ #14587]
314         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
315         * config.make.in (have-cpp-asm-debuginfo): Removed.
316         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
317         * configure: Regenerated.
318
319 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
320
321         [BZ #5044]
322         * stdio-common/printf_fp.c: Include <stdbool.h> and
323         <rounding-mode.h>.
324         (___printf_fp): Determine rounding using get_rounding_mode and
325         round_away.
326         * stdio-common/tst-printf-round.c: New file.
327         * stdio-common/Makefile (tests): Add tst-printf-round.
328         (link-libm): New variable.
329         ($(objpfx)tst-printf-round): Depend in $(link-libm).
330
331 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
332
333         [BZ #14576]
334         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
335         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
336         Likewise.
337         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
338         Likewise.
339
340 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
341
342         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
343         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
344         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
345         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
346
347 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
348
349         [BZ #14518]
350         * include/rounding-mode.h: New file.
351         * sysdeps/generic/get-rounding-mode.h: Likewise.
352         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
353         * stdlib/strtod_l.c: Include <rounding-mode.h>.
354         (MAX_VALUE): New macro.
355         (MIN_VALUE): Likewise.
356         (overflow_value): New function.
357         (underflow_value): Likewise.
358         (round_and_return): Use overflow_value and underflow_value to
359         determine return values in overflow and underflow cases.  Use
360         round_away to determine rounding depending on rounding mode.
361         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
362         determine return values in overflow and underflow cases.
363         * stdlib/tst-strtod-round.c: Include <fenv.h>.
364         (struct test_results): New structure.
365         (struct test): Use struct test_results to store expected results
366         for all rounding modes.
367         (TEST): Include expected results for all rounding modes.
368         (test_in_one_mode): New function.
369         (do_test): Use test_in_one_mode to compute and check results.
370         Check results for all rounding modes.
371         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
372         $(link-libm).
373
374 2012-12-09  Allan McRae  <allan@archlinux.org>
375
376         * sysdeps/i386/fpu/libm-test-ulps: Update
377
378 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
379
380         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
381         (_G_int32_t): Likewise.
382         (_G_uint16_t): Likewise.
383         (_G_uint32_t): Likewise.
384         (_G_HAVE_BOOL): Likewise.
385         (_G_HAVE_ATEXIT): Likewise.
386         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
387         (_G_HAVE_IO_FILE_OPEN): Likewise.
388         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
389         (_G_int32_t): Likewise.
390         (_G_uint16_t): Likewise.
391         (_G_uint32_t): Likewise.
392         (_G_HAVE_BOOL): Likewise.
393         (_G_HAVE_ATEXIT): Likewise.
394         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
395         (_G_HAVE_IO_FILE_OPEN): Likewise.
396         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
397         (_G_int32_t): Likewise.
398         (_G_uint16_t): Likewise.
399         (_G_uint32_t): Likewise.
400         (_G_HAVE_BOOL): Likewise.
401         (_G_HAVE_ATEXIT): Likewise.
402         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
403         (_G_HAVE_IO_FILE_OPEN): Likewise.
404
405 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
406
407         * csu/libc-tls.c: Update copyright years.
408
409 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
410
411         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
412         [!_G_USING_THUNKS]: Remove conditional code.
413         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
414         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
415
416         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
417         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
418         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
419         (_G_VTABLE_LABEL_PREFIX): Likewise.
420         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
421         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
422         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
423         (_G_VTABLE_LABEL_PREFIX): Likewise.
424         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
425         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
426         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
427         (_G_VTABLE_LABEL_PREFIX): Likewise.
428         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
429
430 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
431
432         * libio/Makefile: Include ../Makeconfig before tests.
433         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
434         only if $(build-shared) is yes.
435
436         * iconv/gconv_db.c: Update copyright years.
437
438 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
439
440         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
441         unwind info if defined PIC. Fix special cases description.
442         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
443
444         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
445         DP_HI_MASK entry.
446         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
447
448 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
449
450         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
451
452         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
453         is NULL.
454
455         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
456         (LDLIBS-tst-chk4): This.
457         (LDFLAGS-tst-chk5): Renamed to ...
458         (LDLIBS-tst-chk5): This.
459         (LDFLAGS-tst-chk6): Renamed to ...
460         (LDLIBS-tst-chk6): This.
461         (LDFLAGS-tst-lfschk4): Renamed to ...
462         (LDLIBS-tst-lfschk4): This.
463         (LDFLAGS-tst-lfschk5): Renamed to ...
464         (LDLIBS-tst-lfschk5): This.
465         (LDFLAGS-tst-lfschk6): Renamed to ...
466         (LDLIBS-tst-lfschk6): This.
467
468         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
469         on $(common-objpfx)soversions.mk.
470
471 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
472
473         [BZ #10014]
474         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
475         example host name.
476
477 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
478
479         * malloc/arena.c (arena_get_retry): New function that gets
480         another arena for the caller to try its request on.
481         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
482         current arena cannot fulfill the request.
483         (__libc_memalign): Likewise.
484         (__libc_memalign): Likewise.
485         (__libc_pvalloc): Likewise.
486         (__libc_calloc): Likewise.
487
488 2012-09-05  John Tobey  <john.tobey@gmail.com>
489
490         [BZ #13542]
491         * manual/arith.texi (Operations on Complex): Fix description
492         of carg branch cut.
493
494 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
495
496         [BZ #10014]
497         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
498         host name.
499
500         [BZ #10038]
501         * manual/memory.texi (Memory): Make order of menu items match
502         order of sections.
503
504 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
505
506         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
507         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
508         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
509
510 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
511
512         * csu/libc-tls.c (static_dtv): Renamed to ...
513         (_dl_static_dtv): This.  Make it global.
514         (_dl_initial_dtv): Removed.
515         (__libc_setup_tls): Updated.
516         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
517         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
518         DL_INITIAL_DTV.
519
520 2012-09-06  Petr Machata  <pmachata@redhat.com>
521
522         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
523         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
524         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
525         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
526
527 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
528
529         [BZ #14545]
530         * csu/libc-tls.c (_dl_initial_dtv): New variable.
531         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
532         freeing dtv[-1].
533
534 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
535
536         [BZ #14544]
537         * Makeconfig (link-static-before-libc): Replace $(+prector)
538         with $(+prectorT).
539         (link-static-after-libc): Replace $(+postctor) with
540         $(+postctorT).
541         (link-bounded): Replace $(+prector)/$(+postctor) with
542         $(+prectorT)/$(+postctorT).
543         (+prectorT): New macro.
544         (+postctorT): Likewise.
545
546 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
547
548         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
549         (round_str): Handle values above the maximum for IBM long double
550         as inexact.
551         * stdlib/tst-strtod-round.c (tests): Regenerated.
552
553 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
554
555         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
556         assembler flag.
557         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
558         zarch_nohighgprs around the zarch optimized routines.
559         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
560         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
561         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
562         for zarch.
563
564 2012-09-05  David S. Miller  <davem@davemloft.net>
565
566         * sysdeps/sparc/fpu/libm-test-ulps: Update.
567
568         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
569         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
570         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
571         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
572         entries.
573
574 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
575
576         * malloc/arena.c: Fold copyright years.
577         * malloc/mcheck.c, malloc/memusage.c: Likewise.
578
579 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
580
581         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
582
583 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
584
585         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
586
587 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
588
589         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
590         change internal state upon failure.
591
592 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
593
594         * malloc/mcheck.c (mcheck_check_all): Fix typo.
595         * malloc/memusage.c (mmap): Likewise.
596         (mmap64, mremap): Likewise.  Adjust name in comment.
597
598 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
599
600         * libio/fileops.c: Fix typos in comments.
601         * libio/oldfileops.c: Likewise.
602         * libio/wfileops.c: Likewise.
603
604 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
605
606         [BZ #1349]
607         * malloc/Makefile (tests): Add tst-malloc-usable test case.
608         (tst-malloc-usable-ENV): Set environment for test case.
609         * malloc/hooks.c (malloc_check_get_size): New function to get
610         requested size.
611         * malloc/malloc.c (musable): Use malloc_check_get_size.
612         * malloc/tst-malloc-usable.c: New test case.
613
614 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
615
616         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
617
618 2012-09-05  Allan McRae  <allan@archlinux.org>
619
620         [BZ #13966]
621         * configure.in (CXX_SYSINCLUDES): Use compiler output to
622         determine header location.
623         * configure: Regenerated.
624
625 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
626
627         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
628         float format.
629         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
630         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
631         format.
632         (test): Regenerate.
633
634 2012-09-04  David S. Miller  <davem@davemloft.net>
635
636         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
637         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
638         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
639
640 2012-09-04  Florian Weimer  <fweimer@redhat.com>
641
642         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
643         failures.
644
645         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
646
647 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
648
649         [BZ #9914]
650         * libio/iogetdelim.c: Include <limits.h>.
651         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
652         + len + 1 would overflow.
653
654 2012-09-03  Andreas Jaeger  <aj@suse.de>
655
656         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
657         * sysdeps/i386/fpu/libm-test-ulps: Update.
658
659 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
660
661         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
662         Add s_sinf-sse2, s_conf-sse2.
663
664         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
665         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
666         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
667         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
668
669         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
670         for using routine as __sinf_ia32.
671         Use macro for function declaration and weak_alias.
672         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
673         for using routine as __cosf_ia32.
674         Use macro for function declaration and weak_alias.
675
676         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
677         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
678
679         * sysdeps/x86_64/fpu/s_sinf.S: New file.
680         * sysdeps/x86_64/fpu/s_cosf.S: New file.
681         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
682
683         * math/libm-test.inc (cos_test): Add more test cases.
684         (sin_test): Likewise.
685         (sincos_test): Likewise.
686
687 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
688
689         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
690         (IFUNC_RESOLVE): Make pointers to the specialized implementations
691         hidden.
692         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
693
694 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
695
696         [BZ #14538]
697         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
698         first element of the GOT.
699         (elf_machine_load_address): Return the difference between
700         the runtime address of _DYNAMIC and elf_machine_dynamic ().
701
702 2012-09-01  Allan McRae  <allan@archlinux.org>
703
704         [BZ #13412]
705         * configure.in (AWK): Require gawk version 3.0 or later.
706         * configure: Regenerated.
707
708 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
709
710         * sysdeps/unix/sysv/linux/kernel-features.h
711         (__ASSUME_POSIX_CPU_TIMERS): Remove.
712         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
713         [__NR_clock_getres]: Make code unconditional.
714         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
715         (clock_getcpuclockid): Remove code left unreachable by removal of
716         conditionals.
717         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
718         code unconditional.
719         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
720         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
721         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
722         Make code unconditional.
723         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
724         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
725         * sysdeps/unix/sysv/linux/clock_settime.c
726         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
727         conditional code.
728         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
729         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
730
731 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
732
733         [BZ #14476]
734         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
735         scripts/test-installation.pl.
736
737         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
738         and $ld_so_version if it is set.
739
740 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
741
742         [BZ #14516]
743         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
744         failure if reading from procfs failed.
745         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
746
747 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
748
749         * sysdeps/unix/sysv/linux/kernel-features.h
750         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
751         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
752         Remove conditional code.
753         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
754         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
755         Remove conditional code.
756         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
757         * sysdeps/unix/sysv/linux/i386/fxstat.c
758         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
759         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
760         * sysdeps/unix/sysv/linux/i386/fxstatat.c
761         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
762         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
763         * sysdeps/unix/sysv/linux/i386/lxstat.c
764         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
765         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
766         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
767         Remove conditional code.
768         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
769         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
770         Remove conditional code.
771         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
772         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
773         <kernel-features.h>.
774         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
775         Remove.
776         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
777         Remove conditional code.
778         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
779         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
780         Remove conditional.
781
782 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
783
784         [BZ #5400]
785         * NEWS: Add fixed bug number.
786
787 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
788
789         [BZ #14519]
790         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
791         underflowing exponent in case of negative sign.
792         * stdlib/tst-strtod-round-data: Add more tests.
793         * stdlib/tst-strtod-round.c (tests): Regenerated.
794
795         [BZ #3479]
796         * stdlib/strtod_l.c (NDIG): Remove.
797         (HEXNDIG): Likewise.
798         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
799         smallest representable value.
800         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
801         lie within an exact representation of 1/2 ulp of the result.
802         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
803         unconditionally.
804         (TENS_P9_IDX): Define unconditionally.
805         (TENS_P9_SIZE): Likewise.
806         (TENS_P10_IDX): Likewise.
807         (TENS_P10_SIZE): Likewise.
808         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
809         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
810         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
811         entries for 10^2^13 and 10^2^14.
812         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
813         (TENS_P13_IDX): Define.
814         (TENS_P13_SIZE): Likewise.
815         (TENS_P14_IDX): Likewise.
816         (TENS_P14_SIZE): Likewise.
817         (_fpioconst_pow10): Change array size to
818         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
819         unconditional.
820         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
821         1024]: Add entries for 10^2^13 and 10^2^14.
822         [LAST_POW10 > _LAST_POW10]: Remove #error.
823         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
824         (_fpioconst_pow10): Change array size to
825         FPIOCONST_POW10_ARRAY_SIZE.
826         * stdlib/gen-fpioconst.c: New file.
827         * stdlib/gen-tst-strtod-round.c: Likewise.
828         * stdlib/tst-strtod-round-data: Likewise.
829         * stdlib/tst-strtod-round.c: Likewise.
830         * stdlib/Makefile (tests): Add tst-strtod-round.
831
832         [BZ #14459]
833         * stdlib/strtod_l.c: Include <stdint.h>.
834         (NDEBUG): Do not define.
835         (round_and_return): Change EXPONENT parameter to type intmax_t.
836         Rearrange calculations to avoid internal overflow possibilities.
837         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
838         Rearrange calculations to avoid internal overflow possibilities.
839         Assert that number fits inside MPNSIZE limbs.
840         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
841         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
842         calculations and add assertions to avoid internal overflow
843         possibilities.  Add casts to avoid signed/unsigned operations.
844         * stdlib/tst-strtod-overflow.c: New file.
845         * stdlib/Makefile (tests): Add tst-strtod-overflow.
846
847 2012-08-25  Marek Polacek  <polacek@redhat.com>
848
849         * time/time.h: Fix some typos in comments.
850
851 2012-08-23  Roland McGrath  <roland@hack.frob.com>
852
853         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
854         * posix/tst-rfc3484-2.c: Likewise.
855         * posix/tst-rfc3484-3.c: Likewise.
856
857 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
858
859         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
860         (EF_ARM_ABI_FLOAT_HARD): Likewise.
861
862 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
863
864         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
865         #include of fxstatat64.c.
866
867 2012-08-22  Roland McGrath  <roland@hack.frob.com>
868
869         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
870         * shadow/getspent_r.c: Likewise.
871         * shadow/getspnam.c: Likewise.
872         * shadow/getspnam_r.c: Likewise.
873         * gshadow/getsgent.c: Likewise.
874         * gshadow/getsgent_r.c: Likewise.
875         * gshadow/getsgnam.c: Likewise.
876         * gshadow/getsgnam_r.c: Likewise.
877         * inet/getnetbyad.c: Likewise.
878         * inet/getnetbyad_r.c: Likewise.
879         * inet/getnetbynm.c: Likewise.
880         * inet/getnetbynm_r.c: Likewise.
881         * inet/getnetent.c: Likewise.
882         * inet/getnetent_r.c: Likewise.
883         * inet/getproto.c: Likewise.
884         * inet/getproto_r.c: Likewise.
885         * inet/getprtent.c: Likewise.
886         * inet/getprtent_r.c: Likewise.
887         * inet/getprtname.c: Likewise.
888         * inet/getprtname_r.c: Likewise.
889         * inet/getrpcbyname.c: Likewise.
890         * inet/getrpcbyname_r.c: Likewise.
891         * inet/getrpcbynumber.c: Likewise.
892         * inet/getrpcbynumber_r.c: Likewise.
893         * inet/getrpcent.c: Likewise.
894         * inet/getrpcent_r.c: Likewise.
895         * inet/getaliasent.c: Likewise.
896         * inet/getaliasent_r.c: Likewise.
897         * inet/getaliasname.c: Likewise.
898         * inet/getaliasname_r.c: Likewise.
899         * nscd/getgrgid_r.c: Likewise.
900         * nscd/getgrnam_r.c: Likewise.
901         * nscd/gethstbyad_r.c: Likewise.
902         * nscd/gethstbynm3_r.c: Likewise.
903         * nscd/getpwnam_r.c: Likewise.
904         * nscd/getpwuid_r.c: Likewise.
905         * nscd/getsrvbynm_r.c: Likewise.
906         * nscd/getsrvbypt_r.c: Likewise.
907         * nscd/gai.c: Likewise.
908
909         * configure.in (build_nscd): New substituted variable, set
910         by --disable-build-nscd and defaults to $use_nscd.
911         * configure: Regenerated.
912         * config.make.in (build-nscd): New substituted variable.
913         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
914         Change conditional to require [$(build-nscd) = yes] as well.
915         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
916
917         [BZ# 13696]
918         * configure.in (use_nscd): New substituted variable, set by
919         --disable-nscd.  If enabled, define USE_NSCD.
920         * configure: Regenerated.
921         * config.h.in: Add USE_NSCD.
922         * config.make.in (use-nscd): New substituted variable.
923         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
924         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
925         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
926         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
927         (CFLAGS-getgrnam_r.c): Likewise.
928         (CFLAGS-initgroups.c): Likewise.
929         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
930         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
931         Variables removed.
932         * inet/getnetgrent_r.c
933         (nscd_setnetgrent): New function, broken out of ...
934         (setnetgrent): ... here.  Call it.
935         (innetgr): Conditionalize nscd bits on [USE_NSCD].
936         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
937         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
938         * nscd/Makefile (routines, aux): Move definitions after include of
939         Makeconfig.  Conditionalize on [$(use-nscd) != no].
940         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
941         Conditionalize on [USE_NSCD].
942         (is_nscd, nscd_init_cb): Likewise.
943         (nss_load_library): Conditionalize init callback on [USE_NSCD].
944         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
945         * nss/nss_db/db-init.c: Likewise.
946         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
947         [USE_NSCD].
948         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
949         (make_request): Use it.
950         (cache_valid_p): New function.
951         (__check_pf): Use it.
952         * NEWS: Add item for --disable-nscd.
953
954 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
955
956         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
957         to support sed >= 4.2.1-20-ga9bf076.
958         * configure: Regenerated.
959
960 2012-08-22  Roland McGrath  <roland@hack.frob.com>
961
962         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
963         Conditionalize whole body on [IREL].
964
965 2012-08-22  Jeff Law <law@redhat.com>
966
967         [BZ #14505]
968         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
969         if the family is PF_UNSPEC.
970
971 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
972
973         * Makerules (lib-version): Rename from V.
974         (install-lib-nosubdir): Change V to lib-version.
975
976 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
977
978         [BZ #14252]
979         * powerpc32/power6/wcschr.c: New file.
980         * powerpc32/power6/wcscpy.c: New file.
981         * powerpc32/power6/wcsrchr.c: New file.
982         * powerpc64/power6/wcschr.c: New file.
983         * powerpc64/power6/wcscpy.c: New file.
984         * powerpc64/power6/wcsrchr.c: New file.
985
986 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
987
988         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
989         (two_way_short_needle): Use it.
990         * string/strstr.c (AVAILABLE1_USES_J): Define.
991         * string/strcasestr.c: Likewise.
992
993         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
994         array references.
995         * string/strcasestr.c (TOLOWER): Make side-effect safe.
996
997         [BZ #11607]
998         * NEWS: Add an entry.
999         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1000         define their defaults.
1001         (two_way_short_needle): Detect end-of-string on-the-fly.
1002         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1003         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1004         * string/bug-strcasestr1.c: New test.
1005         * string/Makefile: Run it.
1006
1007 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1008
1009         [BZ #11607]
1010         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1011         the first character.
1012
1013 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1014
1015         * csu/elf-init.c (__libc_csu_irel): Function removed.
1016         * csu/libc-start.c (apply_irel): New function.
1017         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1018
1019 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1020
1021         * sysdeps/unix/sysv/linux/kernel-features.h
1022         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1023         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1024         <kernel-features.h>.
1025         [__NR_fadvise64_64]: Make code unconditional.
1026         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1027         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1028         !__NR_fadvise64_64)]: Likewise.
1029         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1030         !__NR_fadvise64_64))]: Likewise.
1031         [__NR_fadvise64]: Make code unconditional.
1032         [!__NR_fadvise64]: Remove conditional code.
1033         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1034         <kernel-features.h>.
1035         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1036         unconditional.
1037         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1038         conditional code.
1039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1040         not include <kernel-features.h>.
1041         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1042         unconditional.
1043         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1044         conditional code.
1045         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1046         include <kernel-features.h>.
1047         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1048         unconditional.
1049         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1050         conditional code.
1051
1052 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1053
1054         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1055         slight instruction rearrangements per scrollpipe analysis.
1056         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1057
1058 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1059
1060         * manual/syslog.texi (syslog; vsyslog, closelog):
1061         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1062         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1063
1064         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1065         DSOCAPS to match condition on defining it.
1066
1067 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1068
1069         * sysdeps/unix/sysv/linux/kernel-features.h
1070         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1072         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1073         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1075         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1076         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1078         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1079         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1080
1081         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1082         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1083
1084         * sysdeps/unix/sysv/linux/kernel-features.h
1085         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1086         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1087         unconditional.
1088         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1089         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1090         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1091         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1092         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1093         Make code unconditional.
1094         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1095         (__mmap64) [!__NR_mmap2]: Likewise.
1096         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1097         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1098         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1099         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1100         [__NR_mmap2]: Make code unconditional.
1101         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1102         (__mmap64) [!__NR_mmap2]: Likewise.
1103
1104 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1105
1106         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1107
1108 2012-08-18  Andreas Jaeger  <aj@suse.de>
1109
1110         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1111
1112 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1113
1114         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1115         * include/unistd.h (__have_sock_cloexec): Likewise.
1116         (__have_pipe2): Likewise.
1117         (__have_dup3): Likewise.
1118
1119 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1120
1121         [BZ #9685]
1122         * include/unistd.h (__have_pipe2): Change define into an extern int.
1123         (__have_dup3): Likewise.
1124         * socket/have_sock_cloexec.c: Include fcntl.h.
1125         (__have_pipe2): New variable.
1126         (__have_dup3): Likewise.
1127
1128 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1129
1130         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1131
1132 2012-08-17  Marek Polacek  <polacek@redhat.com>
1133
1134         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1135         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1136
1137 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1138
1139         * configure.in: Add AC_SUBST for sysheaders.
1140         * configure: Regenerated.
1141         * config.make.in (sysheaders): New substituted variable.
1142
1143         * sysdeps/unix/mkfifo.c: Moved ...
1144         * sysdeps/posix/mkfifo.c: ... here.
1145         * sysdeps/unix/mkfifoat.c: Moved ...
1146         * sysdeps/posix/mkfifoat.c: ... here.
1147
1148         * sysdeps/unix/utime.c: Moved ...
1149         * sysdeps/posix/utime.c: ... here.
1150
1151         * sysdeps/unix/time.c: Moved ...
1152         * sysdeps/posix/time.c: ... here.
1153         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1154         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1155
1156         * sysdeps/unix/nice.c: Moved ...
1157         * sysdeps/posix/nice.c: ... here.
1158
1159         * sysdeps/unix/alarm.c: Moved ...
1160         * sysdeps/posix/alarm.c: ... here.
1161
1162         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1163
1164 2012-08-17  Jeff Law <law@redhat.com>
1165
1166         * intl/Makefile (codeset_mo): New variable.
1167         ($(codeset_mo)): New target.
1168         (tst-codeset.out): Depend on that.  Remove explicit rule.
1169         (tst-gettext3.out, tst-gettext5.out): Likewise.
1170         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1171         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1172         * intl/tst-codeset.sh: Remove.
1173         * intl/tst-gettext3.sh: Likewise.
1174         * intl/tst-gettext5.sh: Likewise.
1175
1176 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1177
1178         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1179         * sysdeps/unix/syscalls.list: ... here.
1180
1181         * sysdeps/posix/getaddrinfo.c
1182         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1183         (gaiconf_init, gaiconf_reload): Use them.
1184         [!_STATBUF_ST_NSEC]
1185         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1186         Define using time_t rather than struct timespec.
1187
1188         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1189         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1190         Macros removed.
1191         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1192         [!NO_THREADS].
1193         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1194         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1195         Likewise.
1196
1197         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1198         __libc_cleanup_push argument.
1199
1200         * bits/param.h: New file.
1201         * misc/sys/param.h: New file.
1202         * include/sys/param.h: New file.
1203         * misc/Makefile (headers): Add bits/param.h.
1204         * sysdeps/generic/sys/param.h: File removed.
1205         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1206         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1207         * sysdeps/mach/hurd/bits/param.h: New file.
1208         * sysdeps/mach/hurd/sys/param.h: New file.
1209
1210         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1211         last change.
1212
1213         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1214         [_IO_MTSAFE_IO].
1215         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1216         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1217         New macros.
1218
1219         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1220         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1221         rather than -D_IO_MTSAFE_IO conditionally.
1222         * stdio-common/Makefile (CPPFLAGS): Likewise.
1223         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1224         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1225         Use $(libio-mtsafe).
1226         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1227         of -D_IO_MTSAFE_IO.
1228         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1229         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1230         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1231         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1232         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1233         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1234         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1235         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1236         (CFLAGS-fread_u_chk.c): Likewise.
1237         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1238         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1239         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1240         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1241         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1242         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1243         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1244         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1245         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1246
1247         * libio/Makefile: Test [$(libc-reentrant) = yes]
1248         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1249
1250         * Makeconfig
1251         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1252         * sysdeps/pthread/configure: File removed.
1253         * sysdeps/pthread/Makeconfig: New file.
1254         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1255         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1256
1257 2012-08-16  Gary Benson  <gbenson@redhat.com>
1258
1259         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1260         unmapping the first object in a namespace.
1261
1262 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1263
1264         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1265         (__internal_setnetgrent): ... this.  Add internal_function to
1266         definition.  Add libc_hidden_def.
1267         (setnetgrent): Update caller.
1268         (internal_endnetgrent): Renamed to ...
1269         (__internal_endnetgrent): ... this.  Add internal_function to
1270         definition.  Add libc_hidden_def.
1271         (endnetgrent): Update caller.
1272         (internal_getnetgrent_r): Renamed to ...
1273         (__internal_getnetgrent_r): ... this.  Add internal_function to
1274         definition.  Add libc_hidden_def.
1275         (__getnetgrent_r): Update caller.
1276         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1277
1278 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1279
1280         * stdlib/longlong.h: Update from GCC.
1281
1282 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1283
1284         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1285         on _QL, which is set by umul_ppmm but never used.
1286         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1287         variables, which are set by GMP macros but never used.
1288         * stdio-common/_itowa.c (_itowa): Likewise.
1289         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1290         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1291
1292 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1293
1294         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1295         struct La_sh_regs is not constant.
1296         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1297         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1298         and struct La_sparc64_regs are not constant.
1299
1300 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1301
1302         * sysdeps/unix/sysv/linux/kernel-features.h
1303         (__ASSUME_POSIX_TIMERS): Remove.
1304         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1305         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1306         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1307         Make code unconditional.
1308         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1309         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1310         Make code unconditional.
1311         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1312         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1313         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1314         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1315         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1316         Make code unconditional.
1317         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1318         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1319         (__libc_missing_posix_timers): Remove.
1320
1321 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1322
1323         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1324         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1325
1326         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1327
1328         * elf/dl-sym.c: Include <stdlib.h>.
1329
1330         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1331         constants, which avoids warnings in 32-bit builds.
1332
1333         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1334         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1335
1336         * misc/lseek.c: File moved to ...
1337         * io/lseek.c: ... here.
1338
1339         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1340
1341         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1342         shifting LEN more than 31 bits at once.
1343
1344 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1345
1346         [BZ #14195]
1347         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1348         segmentation fault for a case of two empty input strings.
1349         * string/test-strncasecmp.c (check1): Renamed to...
1350         (bz12205): ...this.
1351         (bz14195): Add new testcase for two empty input strings and N > 0.
1352         (test_main): Call new testcase, adapt for renamed function.
1353
1354 2012-08-15  Andreas Jaeger  <aj@suse.de>
1355
1356         [BZ #14090]
1357         * crypt/md5test2.c: New test, based on test supplied by Serge
1358         Belyshev <belyshev@depni.sinp.msu.ru>.
1359         * crypt/Makefile (xtests): Add md5test-giant..
1360         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1361
1362 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1363
1364         [BZ #14090]
1365         * crypt/md5.c (md5_process_block): Don't assume the buffer
1366         length is less than 2**32.
1367         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1368         length is less than 2**64.
1369
1370 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1371
1372         * string/str-two-way.h: Include <sys/param.h>.
1373         (MAX): Macro removed.
1374
1375         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1376         Move #define and #undef of memmove to just before and after
1377         including <string.h>.
1378
1379         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1380         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1381         and after including <string.h>.  Move declarations of
1382         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1383         to before #include "string/memmove.c".
1384
1385         * include/dirent.h: Declare __getdirentries.
1386
1387         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1388         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1389
1390 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1391
1392         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1393         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1394         * sysdeps/i386/configure: Regenerated.
1395         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1396         STABS_CURRENT_FILE, and STABS_FUN.
1397         (END): Remove call to STABS_FUN_END.
1398         (STABS_CURRENT_FILE1): Delete.
1399         (STABS_CURRENT_FILE): Likewise.
1400         (STABS_FUN): Likewise.
1401         (STABS_FUN_END): Likewise.
1402         (STABS_FUN2): Likewise.
1403         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1404         * sysdeps/x86_64/configure: Regenerated.
1405
1406 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1407
1408         * elf/dl-open.c: Include <atomic.h>.
1409         * elf/dl-lookup.c: Likewise.
1410
1411 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1412
1413         * sysdeps/unix/sysv/linux/kernel-features.h
1414         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1415         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1416         unconditionally.
1417         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1418         unconditionally.
1419         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1420         condition on __ASSUME_CLONE_THREAD_FLAGS.
1421
1422 2012-08-14  Andreas Jaeger  <aj@suse.de>
1423
1424         * sysdeps/i386/fpu/libm-test-ulps: Update.
1425
1426 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1427
1428         * include/atomic.h (atomic_exchange_and_add): Split into ...
1429         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1430         New atomic macros.
1431
1432 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1433
1434         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1435
1436 2012-08-13  Jeff Law <law@redhat.com>
1437
1438         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1439         null byte in the output string.
1440
1441 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1442
1443         * sysdeps/unix/sysv/linux/kernel-features.h
1444         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1445         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1446         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1447         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1448         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1449         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1450         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1451
1452 2012-08-09  Jeff Law <law@redhat.com>
1453
1454         [BZ #13939]
1455         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1456         When avoid_arena is set, don't retry in the that arena.  Pick the
1457         next one, whatever it might be.
1458         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1459         (arena_lock): Pass in new parameter to arena_get2.
1460         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1461         arena_get2.
1462         (__libc_malloc): Unify retrying after main arena failure with
1463         __libc_memalign version.
1464         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1465
1466 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1467
1468         [BZ #14166]
1469         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1470         to __redirect_strstr.
1471         (__strstr_sse42): Use typeof __redirect_strstr.
1472         (__strstr_ia32): Likewise.
1473         (__libc_strstr): New prototype.
1474         (strstr): Renamed to ...
1475         (__libc_strstr): This.
1476         (strstr): New strong alias of __libc_strstr.
1477         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1478         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1479         __redirect_time.
1480         Include <time.h>.
1481         (__libc_time): New prototype.
1482         (time_ifunc): Replace time with __libc_time.
1483         (time): New strong alias and hidden definition of __libc_time.
1484         (__GI_time): Remove strong alias.
1485         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1486         Include <stddef.h>.
1487         (memmove): Redefined to __redirect_memmove.
1488         (__memmove_sse2): Use typeof __redirect_memmove.
1489         (__memmove_ssse3): Likewise.
1490         (__memmove_ssse3_back): Likewise.
1491         (__libc_memmove): New prototype.
1492         (memmove): Renamed to ...
1493         (__libc_memmove): This.
1494         (memmove): New strong alias of __libc_memmove.
1495
1496 2012-08-08  Mark Salter  <msalter@redhat.com>
1497
1498         * elf/elf.h
1499         (R_MN10300_TLS_GD): Define.
1500         (R_MN10300_TLS_LD): Likewise.
1501         (R_MN10300_TLS_LDO): Likewise.
1502         (R_MN10300_TLS_GOTIE): Likewise.
1503         (R_MN10300_TLS_IE): Likewise.
1504         (R_MN10300_TLS_LE): Likewise.
1505         (R_MN10300_TLS_DTPMOD): Likewise.
1506         (R_MN10300_TLS_DTPOFF): Likewise.
1507         (R_MN10300_TLS_TPOFF): Likewise.
1508         (R_MN10300_SYM_DIFF): Likewise.
1509         (R_MN10300_ALIGN): Likewise.
1510         (R_MN10300_NUM): Update.
1511
1512 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1513
1514         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1515         Remove.
1516
1517 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1518
1519         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1520
1521         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1522         sysdeps/unix -> sysdeps/posix move.
1523         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1524
1525 2012-08-07      Allan McRae     <allan@archlinux.org>
1526
1527         [BZ #14303]
1528         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1529         (SUNOS_CPP): Likewise.
1530         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1531         not found.
1532         (open_input): Call CPP using execvp.
1533
1534 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1535
1536         * sysdeps/unix/sysv/linux/kernel-features.h
1537         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1538         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1539         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1540         (__ASSUME_WAITID_SYSCALL): Likewise.
1541         * sysdeps/unix/sysv/linux/dl-execstack.c
1542         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1543         code unconditional.
1544         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1545         conditional code.
1546         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1547         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1548         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1549         code.
1550         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1551         unconditional.
1552         [__ASSUME_WAITID_SYSCALL]: Likewise.
1553         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1554
1555 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1556
1557         * sysdeps/unix/closedir.c: Renamed to ...
1558         * sysdeps/posix/closedir.c: ... here.
1559         * sysdeps/unix/dirfd.c: Renamed to ...
1560         * sysdeps/posix/dirfd.c: ... here.
1561         * sysdeps/unix/dirstream.h: Renamed to ...
1562         * sysdeps/posix/dirstream.h: ... here.
1563         * sysdeps/unix/fdopendir.c: Renamed to ...
1564         * sysdeps/posix/fdopendir.c: ... here.
1565         * sysdeps/unix/opendir.c: Renamed to ...
1566         * sysdeps/posix/opendir.c: ... here.
1567         * sysdeps/unix/readdir.c: Renamed to ...
1568         * sysdeps/posix/readdir.c: ... here.
1569         * sysdeps/unix/readdir_r.c: Renamed to ...
1570         * sysdeps/posix/readdir_r.c: ... here.
1571         * sysdeps/unix/rewinddir.c: Renamed to ...
1572         * sysdeps/posix/rewinddir.c: ... here.
1573         * sysdeps/unix/seekdir.c: Renamed to ...
1574         * sysdeps/posix/seekdir.c: ... here.
1575         * sysdeps/unix/telldir.c: Renamed to ...
1576         * sysdeps/posix/telldir.c: ... here.
1577         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1578         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1579         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1580         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1581
1582         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1583         * bits/fcntl.h: ... here.
1584
1585         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1586         not 0.
1587         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1588         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1589         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1590         (struct flock): Move l_start, l_len to the beginning.
1591         Use __pid_t for l_pid.
1592         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1593         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1594         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1595         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1596         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1597         [__USE_LARGEFILE64] (struct flock64): New type.
1598         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1599
1600         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1601         * bits/dirent.h: ... here.
1602
1603         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1604         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1605
1606 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1607
1608         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1609         Change from 2.6.0 to 2.6.16.
1610         * sysdeps/unix/sysv/linux/configure: Regenerated.
1611         * sysdeps/unix/sysv/linux/kernel-features.h
1612         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1613         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1614         version.
1615         (__ASSUME_UTIMES): Likewise.
1616         (__ASSUME_CLONE_STOPPED): Remove.
1617         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1618         architectures, not kernel version.
1619         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1620         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1621         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1622         (__ASSUME_WAITID_SYSCALL): Likewise.
1623         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1624         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1625         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1626         refer to older versions.
1627
1628 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1629
1630         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1631         Define alphasort64 as an alias.
1632         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1633         Define versionsort64 as an alias.
1634         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1635         Define scandir64 as an alias.
1636         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1637         Define scandirat64 as an alias.
1638         * dirent/alphasort64.c (alphasort64):
1639         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1640         * dirent/versionsort64.c: Likewise.
1641         * dirent/scandir64.c: Likewise.
1642         * dirent/scandirat64.c: Likewise.
1643         * sysdeps/wordsize-64/alphasort.c: File removed.
1644         * sysdeps/wordsize-64/alphasort64.c: File removed.
1645         * sysdeps/wordsize-64/scandir.c: File removed.
1646         * sysdeps/wordsize-64/scandir64.c: File removed.
1647         * sysdeps/wordsize-64/scandirat.c: File removed.
1648         * sysdeps/wordsize-64/scandirat64.c: File removed.
1649         * sysdeps/wordsize-64/versionsort.c: File removed.
1650         * sysdeps/wordsize-64/versionsort64.c: File removed.
1651         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1652         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1653         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1654         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1655         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1656         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1657         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1658         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1659
1660         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1661         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1662         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1663         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1664         [defined __arch64__ || defined __sparcv9]
1665         (__INO_T_MATCHES_INO64_T): New macro.
1666         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1667         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1668         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1669         * sysdeps/unix/sysv/linux/bits/dirent.h
1670         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1671         (_DIRENT_MATCHES_DIRENT64): New macro.
1672
1673         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1674         Define lockf64 as an alias.
1675         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1676         Define fseeko64 as an alias.
1677         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1678         Define ftello64 as an alias.
1679         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1680         Define _IO_fgetpos64 and fgetpos64 as aliases.
1681         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1682         Define _IO_fsetpos64 and fsetpos64 as aliases.
1683         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1684         Conditionalize body on this.
1685         * libio/fseeko64.c: Likewise.
1686         * libio/ftello64.c: Likewise.
1687         * libio/iofgetpos64.c: Likewise.
1688         * libio/iofsetpos64.c: Likewise.
1689         * sysdeps/wordsize-64/lockf.c: File removed.
1690         * sysdeps/wordsize-64/lockf64.c: File removed.
1691         * sysdeps/wordsize-64/fseeko.c: File removed.
1692         * sysdeps/wordsize-64/fseeko64.c: File removed.
1693         * sysdeps/wordsize-64/ftello.c: File removed.
1694         * sysdeps/wordsize-64/ftello64.c: File removed.
1695         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1696         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1697         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1698         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1699         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1700         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1701         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1702         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1703         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1704         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1705         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1706         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1707         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1708         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1709
1710         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1711         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1712         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1713         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1714         [defined __arch64__ || defined __sparcv9]
1715         (__OFF_T_MATCHES_OFF64_T): New macro.
1716         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1717         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1718         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1719         (__OFF_T_MATCHES_OFF64_T): New macro.
1720
1721 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1722
1723         * stdlib/secure-getenv.c (__secure_getenv): Replace
1724         GLIBC_2_16 with GLIBC_2_17.
1725
1726 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1727
1728         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1729         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1730
1731 2012-08-03  David S. Miller  <davem@davemloft.net>
1732
1733         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1734
1735 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1736
1737         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1738         Remove.
1739         (__ASSUME_CORRECT_SI_PID): Likewise.
1740         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1741         (__ASSUME_TMPFS_NAME): Likewise.
1742         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1743         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1744         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1745         (HAVE_AUX_SECURE): Make definition unconditional.
1746         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1747         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1748
1749 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1750
1751         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1752         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1753         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1754         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1755         __eloop_threshold instead of SYMLOOP_MAX.
1756
1757         * sysdeps/generic/eloop-threshold.h: New file.
1758         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1759         of MAXSYMLINKS.
1760         * elf/chroot_canon.c (chroot_canon): Likewise.
1761
1762 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1763
1764         [BZ #13717]
1765         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1766         Change to 2.6.0 everywhere.
1767         * sysdeps/unix/sysv/linux/configure: Regenerated.
1768         * sysdeps/unix/sysv/linux/kernel-features.h
1769         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1770         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1771         kernel versions.
1772         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1773         (__ASSUME_FUTEX_REQUEUE): Remove.
1774         (__ASSUME_STATFS64): Define unconditionally.
1775         (__ASSUME_AT_SECURE): Likewise.
1776         (__ASSUME_CORRECT_SI_PID): Likewise.
1777         (__ASSUME_TGKILL): Define without depending on kernel version for
1778         i386.
1779         (__ASSUME_UTIMES): Likewise.
1780         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1781         kernel version.
1782         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1783         (__ASSUME_TMPFS_NAME): Likewise.
1784         * README: Update reference to Linux kernel versions.
1785
1786 2012-08-02  Marek Polacek  <polacek@redhat.com>
1787
1788         [BZ# 14150]
1789         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1790         libc_cv_asm_type_prefix with %.
1791         * configure: Regenerated.
1792         * include/libc-symbols.h: Remove comment about
1793         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1794         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1795         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1796         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1797         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1798         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1799         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1800         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1801         * elf/tst-unique2mod1.c: Likewise.
1802         * elf/tst-unique1mod2.c: Likewise.
1803         * elf/tst-unique1mod1.c: Likewise.
1804         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1805         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1806         Replace ASM_TYPE_DIRECTIVE with .type.
1807         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1808         * sysdeps/i386/sysdep.h: Likewise.
1809         * sysdeps/x86_64/sysdep.h: Likewise.
1810         * sysdeps/sh/sysdep.h: Likewise.
1811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1812         Do not define ASM_TYPE_DIRECTIVE.
1813         * sysdeps/powerpc/sysdep.h: Likewise.
1814         * sysdeps/powerpc/powerpc32/sysdep.h:
1815         Replace ASM_TYPE_DIRECTIVE with .type.
1816         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1817         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1818         * sysdeps/i386/fpu/e_powf.S: Likewise.
1819         * sysdeps/i386/fpu/e_expl.S: Likewise.
1820         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1821         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1822         * sysdeps/i386/fpu/e_pow.S: Likewise.
1823         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1824         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1825         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1826         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1827         * sysdeps/i386/fpu/e_log2.S: Likewise.
1828         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1829         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1830         * sysdeps/i386/fpu/e_powl.S: Likewise.
1831         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1832         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1833         * sysdeps/i386/fpu/e_logl.S: Likewise.
1834         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1835         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1836         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1837         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1838         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1839         * sysdeps/i386/fpu/e_log.S: Likewise.
1840         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1841         * sysdeps/i386/fpu/e_logf.S: Likewise.
1842         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1843         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1844         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1845         * sysdeps/i386/fpu/e_log10.S: Likewise.
1846         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1847         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1848         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1849         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1850         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1851         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1852         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1853         * sysdeps/i386/i686/strtok.S: Likewise.
1854         * sysdeps/i386/i386-mcount.S: Likewise.
1855         * sysdeps/i386/strtok.S: Likewise.
1856         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1857         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1858         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1859         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1860         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1861         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1862         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1863         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1864         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1865         * sysdeps/x86_64/_mcount.S: Likewise.
1866         * sysdeps/x86_64/strtok.S: Likewise.
1867         * sysdeps/sh/_mcount.S: Likewise.
1868
1869 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1870
1871         * libio/iofopen.c: Include <fcntl.h>.
1872         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1873         (_IO_fopen64, fopen64): Define as aliases.
1874         * libio/iofopen64.c: Include <fcntl.h>.
1875         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1876         Conditionalize body on this.
1877         * sysdeps/wordsize-64/iofopen.c: File removed.
1878         * sysdeps/wordsize-64/iofopen64.c: File removed.
1879
1880 2012-08-01  Marek Polacek  <polacek@redhat.com>
1881
1882         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1883         Use dlfcn directly instead of a variable.
1884         (binfmt-subdir): Do not define.
1885         (dlfcn): Likewise.
1886
1887 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1888
1889         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1890         Remove all definitions.
1891         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1892         <kernel-features.h>.
1893         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1894         (miss_F_GETOWN_EX): Remove all definitions.
1895         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1896         macro definition.
1897         [!__ASSUME_FCNTL64]: Remove conditional code.
1898         [__ASSUME_FCNTL64]: Make code unconditional.
1899         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1900         <kernel-features.h>.
1901         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1902         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1903         (lockf64) [__NR_fcntl64]: Make code unconditional.
1904         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1905
1906         * sysdeps/unix/sysv/linux/kernel-features.h
1907         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1908         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1909         Make code unconditional.
1910         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1911         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1913         [__NR_vfork]: Make code unconditional.
1914         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1915         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1917         [__NR_vfork]: Make code unconditional.
1918         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1919         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1920
1921 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1922
1923         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1924         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
1925
1926         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1927         Define mkstemp64 as an alias.
1928         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1929         Define mkstemps64 as an alias.
1930         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1931         Define mkostemp64 as an alias.
1932         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1933         Define mkostemps64 as an alias.
1934         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
1935         Conditionalize body on this.
1936         * misc/mkostemp64.c: Likewise.
1937         * misc/mkostemps64.c: Likewise.
1938         * misc/mkstemps64.c: Likewise.
1939         * sysdeps/wordsize-64/mkstemp64.c: File removed.
1940         * sysdeps/wordsize-64/mkostemp64.c: File removed.
1941         * sysdeps/wordsize-64/mkostemp.c: File removed.
1942         * sysdeps/wordsize-64/mkstemp.c: File removed.
1943         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
1944         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
1945         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
1946         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
1947
1948         [BZ #14138]
1949         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
1950         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
1951         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
1952         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
1953
1954         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
1955         compat_symbol macros from <shlib-compat.h> rather than the underlying
1956         default_symbol_version and symbol_version macros, so that DEFAULT
1957         lines in shlib-versions are respected.
1958         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1959
1960 2012-08-01  Florian Weimer  <fweimer@redhat.com>
1961
1962         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
1963         Declare with warn_unused_result.
1964         (setgid, setregid, setegid, setresgid): Likewise.
1965         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
1966         Likewise.
1967         * WUR-REPORT: Remove set*id functions.
1968
1969 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
1970
1971         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
1972
1973 2012-07-31  Roland McGrath  <roland@hack.frob.com>
1974
1975         * include/sys/socket.h (__libc_accept, __libc_accept4):
1976         Add attribute_hidden.
1977         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
1978
1979         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
1980         use of PTR_MANGLE.
1981         * inet/getnetgrent_r.c (setup): Likewise.
1982
1983         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
1984
1985 2012-07-31  David S. Miller  <davem@davemloft.net>
1986
1987         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1988
1989 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
1990
1991         [BZ #13629]
1992         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
1993         value between 1.0 and 2.0 and smaller part has absolute value less
1994         than 1.0.
1995         * math/s_clog10.c (__clog10): Likewise.
1996         * math/s_clog10f.c (__clog10f): Likewise.
1997         * math/s_clog10l.c (__clog10l): Likewise.
1998         * math/s_clogf.c (__clogf): Likewise.
1999         * math/s_clogl.c (__clogl): Likewise.
2000         * math/libm-test.inc (clog_test): Add more tests.
2001         (clog10_test): Likewise.
2002         * sysdeps/i386/fpu/libm-test-ulps: Update.
2003         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2004
2005 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2006
2007         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2008         Exit with zero in case no suitable GID is found, and write a
2009         message to standard error.
2010
2011 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2012
2013         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2014         rather than to 1.
2015         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2016         (MAXPATHLEN): Removed.
2017         (NOGROUP, NODEV): New macros.
2018         (setbit, clrbit, isset, isclr): New macros.
2019         (howmany, roundup, powerof2): New macros.
2020         (DEV_BSIZE): New macro.
2021
2022         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2023         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2024
2025         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2026         definition on [!__NO_LONG_DOUBLE_MATH].
2027
2028         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2029         PTR_MANGLE and PTR_DEMANGLE.
2030
2031         * socket/accept4.c (accept4): Rename to __libc_accept4.
2032         Define accept4 as a weak alias.
2033
2034         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2035         on [_DIRENT_HAVE_D_TYPE].
2036         * io/ftw.c (ftw_dir): Likewise.
2037
2038         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2039
2040         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2041
2042         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2043         Use the BSD numbers rather than the arbitrary ones we had.
2044         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2045         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2046         (SIGXCPU, SIGXFSZ): New macros.
2047         (_NSIG): Now 32.
2048
2049         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2050         initializer on [_LIBC_REENTRANT].
2051
2052         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2053         definitions inside [_POSIX_MAPPED_FILES].
2054
2055         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2056
2057         * dirent/opendir.c: Include <fcntl.h>.
2058
2059         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2060         (__libc_getspecific): Likewise.
2061         (__libc_key_create): Likewise.
2062
2063         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2064         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2065         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2066         (tmpfile64): Define as alias.
2067         * sysdeps/wordsize-64/tmpfile.c: File removed.
2068         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2069         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2070         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2071
2072         * stdio-common/vfscanf.c: Include <stdbool.h>.
2073         * nss/makedb.c: Likewise.
2074         * stdio-common/_i18n_number.h: Likewise.
2075         * argp/argp-help.c: Likewise.
2076         * posix/wordexp.c: Likewise.
2077         * sysdeps/posix/spawni.c: Likewise.
2078         * nss/nss_files/files-initgroups.c: Likewise.
2079         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2080         * nss/nss_files/files-initgroups.c: Likewise.
2081         * nss/nss_db/db-netgrp.c: Likewise.
2082         * nss/nss_db/db-initgroups.c: Likewise.
2083         * io/fchmodat.c: Include <sys/stat.h>.
2084
2085         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2086         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2087
2088         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2089         [HAVE_MMAP].
2090
2091         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2092         Add multiple inclusion protection.
2093
2094 2012-07-27  David S. Miller  <davem@davemloft.net>
2095
2096         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2097
2098 2012-07-27  Gary Benson  <gbenson@redhat.com>
2099
2100         [BZ #14298]
2101         * elf/rtld.c: Include <stap-probe.h>.
2102         (dl_main): Added static probes "init_start" and "init_complete".
2103         * elf/dl-load.c: Include <stap-probe.h>.
2104         (lose): Take new parameter "nsid".
2105         Added static probe "map_failed".
2106         (_dl_map_object_from_fd): Pass namespace id to lose.
2107         Added static probe "map_start".
2108         (open_verify): Pass namespace id to lose.
2109         * elf/dl-open.c: Include <stap-probe.h>.
2110         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2111         and "reloc_complete".
2112         * elf/dl-close.c: Include <stap-probe.h>.
2113         (_dl_close_worker): Added static probes "unmap_start" and
2114         "unmap_complete".
2115         * elf/rtld-debugger-interface.txt: New file documenting the above.
2116
2117 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2118
2119         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2120         rather than a string variable.
2121         * sunrpc/rpc_main.c (h_output): Likewise.
2122         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2123
2124 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2125
2126         * inet/check_native.c: New file.
2127
2128 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2129
2130         [BZ #13629]
2131         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2132         if larger part has absolute value 1.0.
2133         * math/s_clog10.c (__clog10): Likewise.
2134         * math/s_clog10f.c (__clog10f): Likewise.
2135         * math/s_clog10l.c (__clog10l): Likewise.
2136         * math/s_clogf.c (__clogf): Likewise.
2137         * math/s_clogl.c (__clogl): Likewise.
2138         * math/libm-test.inc (clog_test): Add more tests.
2139         (clog10_test): Likewise.
2140         * sysdeps/i386/fpu/libm-test-ulps: Update.
2141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2142
2143         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2144         (pltexit): Likewise.
2145         (La_regs): Likewise.
2146         (La_retval): Likewise.
2147         (int_retval): Likewise.
2148         Update #error for removed macros to refer only to definitions in
2149         tst-audit.h.
2150         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2151         macro.
2152         (pltexit): Likewise.
2153         (La_regs): Likewise.
2154         (La_retval): Likewise.
2155         (int_retval): Likewise.
2156         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2157         macro.
2158         (pltexit): Likewise.
2159         (La_regs): Likewise.
2160         (La_retval): Likewise.
2161         (int_retval): Likewise.
2162         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2163         macro.
2164         (pltexit): Likewise.
2165         (La_regs): Likewise.
2166         (La_retval): Likewise.
2167         (int_retval): Likewise.
2168         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2169         macro.
2170         (pltexit): Likewise.
2171         (La_regs): Likewise.
2172         (La_retval): Likewise.
2173         (int_retval): Likewise.
2174         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2175         macro.
2176         (pltexit): Likewise.
2177         (La_regs): Likewise.
2178         (La_retval): Likewise.
2179         (int_retval): Likewise.
2180         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2181         macro.
2182         (pltexit): Likewise.
2183         (La_regs): Likewise.
2184         (La_retval): Likewise.
2185         (int_retval): Likewise.
2186         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2187         macro definitions in tst-audit.h.
2188         * sysdeps/i386/tst-audit.h: New file.
2189         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2190         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2191         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2192         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2193         * sysdeps/sh/tst-audit.h: Likewise.
2194         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2195         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2196         * sysdeps/x86_64/tst-audit.h: Likewise.
2197
2198 2012-07-26  Andreas Jaeger  <aj@suse.de>
2199
2200         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2201         ptrace.
2202
2203         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2204         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2205         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2206         PTRACE_O_MASK.
2207         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2208         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2209         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2210
2211         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2212         value.
2213
2214         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2215         _sigsys.
2216         (si_call_addr, si_syscall, si_arch): Define new macro.
2217         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2218         _sigsys.
2219         (si_call_addr, si_syscall, si_arch): Define new marcro.
2220         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2221         _sigsys.
2222         (si_call_addr, si_syscall, si_arch): Define new macro.
2223         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2224         _sigsys.
2225         (si_call_addr, si_syscall, si_arch): Define new macro.
2226
2227 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2228
2229         [BZ #13717]
2230         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2231         Change to 2.4.21 where previously 2.4.1.
2232         * sysdeps/unix/sysv/linux/configure: Regenerated.
2233         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2234         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2235         Linux kernel version.
2236         (__ASSUME_STD_AUXV): Remove.
2237         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2238         kernel version.
2239         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2240         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2241         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2242         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2243         (__ASSUME_NETLINK_SUPPORT): Likewise.
2244         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2245         (__no_netlink_support): Remove conditional definition.
2246         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2247         Remove.
2248         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2249         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2250         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2251         (if_nameindex_ioctl): Remove.
2252         (if_nameindex_netlink): Do not handle __no_netlink_support.
2253         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2254         code.
2255         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2256         Remove conditional code.
2257         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2258         code.
2259         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2260         unconditional.
2261         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2262         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2263         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2264         Remove.
2265         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2266         [!__ASSUME_STD_AUXV]: Remove conditional code.
2267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2268         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2269         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2271         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2272         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2273         code.
2274         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2276         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2277         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2278         conditional code.
2279         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2281         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2282         code.
2283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2284         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2285         conditional code.
2286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2287         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2288         code unconditional.
2289         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2290         conditional code.
2291         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2292         unconditional.
2293         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2294         conditional code.
2295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2296         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2297         unconditional.
2298         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2299         conditional code.
2300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2301         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2302         code unconditional.
2303         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2304         conditional code.
2305         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2306         unconditional.
2307         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2308         conditional code.
2309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2310         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2311         code unconditional.
2312         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2313         conditional code.
2314         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2315         unconditional.
2316         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2317         conditional code.
2318
2319 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2320
2321         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2322         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2323         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2324         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2325         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2326         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2327         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2328         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2329         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2330         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2331         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2332         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2333         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2334         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2335         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2336         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2337         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2338         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2339         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2340         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2341         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2342         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2343         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2344
2345 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2346
2347         * Versions.def: Add GLIBC_2.17.
2348         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2349         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2350         Introduce __libc_secure_getenv.
2351         * stdlib/Versions (2.17): Add secure_getenv
2352         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2353         * stdlib/secure-getenv.c: Rename __secure_getenv to
2354         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2355         symbol __secure_getenv for GLIBC_2.0.
2356         * stdlib/tst-secure-getenv.c: New.
2357         * stdlib/Makefile (tests): Add testcase.
2358         * manual/startup.texi (Environment Access): Document
2359         secure_getenv.
2360         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2361         __libc_secure_getenv.
2362         * inet/ruserpass.c (ruserpass): Likewise.
2363         * malloc/mtrace.c (mtrace): Likewise.
2364         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2365         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2366         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2367         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2368         HAVE_SECURE_GETENV.
2369         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2370         __secure_getenv to __libc_secure_getenv.
2371         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2373         Likewise.
2374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2375         Likewise.
2376         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2377         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2378         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2379         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2380         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2381         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2382         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2383
2384 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2385
2386         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2387         (struct La_i86_retval): Likewise.
2388         (struct La_x86_64_regs): Likewise.
2389         (struct La_x86_64_retval): Likewise.
2390         (struct La_x32_regs): Likewise.
2391         (struct La_x32_retval): Likewise.
2392         (struct La_ppc32_regs): Likewise.
2393         (struct La_ppc32_retval): Likewise.
2394         (struct La_ppc64_regs): Likewise.
2395         (struct La_ppc64_retval): Likewise.
2396         (struct La_sh_regs): Likewise.
2397         (struct La_sh_retval): Likewise.
2398         (struct La_s390_32_regs): Likewise.
2399         (struct La_s390_32_retval): Likewise.
2400         (struct La_s390_64_regs): Likewise.
2401         (struct La_s390_64_retval): Likewise.
2402         (struct La_sparc32_regs): Likewise.
2403         (struct La_sparc32_retval): Likewise.
2404         (struct La_sparc64_regs): Likewise.
2405         (struct La_sparc64_retval): Likewise.
2406         (struct audit_ifaces): Remove architecture-specific pltenter and
2407         pltexit members.
2408         * sysdeps/i386/ldsodefs.h: New file.
2409         * sysdeps/powerpc/ldsodefs.h: Likewise.
2410         * sysdeps/s390/ldsodefs.h: Likewise.
2411         * sysdeps/sh/ldsodefs.h: Likewise.
2412         * sysdeps/sparc/ldsodefs.h: Likewise.
2413         * sysdeps/x86_64/ldsodefs.h: Likewise.
2414
2415 2012-07-25  Marek Polacek  <polacek@redhat.com>
2416
2417         [BZ #6808]
2418         * math/libm-test.inc (yn_test): Add another test.
2419         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2420         to ERANGE when the result is +-Inf.
2421         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2422         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2423         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2424         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2425
2426 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2427
2428         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2429         equal to 0.
2430         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2431         clock_t.
2432         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2433
2434 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2435
2436         * configure.in <sysdeps resolving>: Correct printing
2437         Implies_before.
2438         * configure: Regenerate.
2439
2440 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2441
2442         * math/w_ilogb.c: Include <limits.h>.
2443         * math/w_ilogbl.c: Likewise.
2444
2445 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2446
2447         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2448         va_copy.  Document allowing for unavailable va_copy only as
2449         pre-C99 compatibility.
2450         * manual/string.texi (Copying and Concatenation): Use va_copy
2451         instead of __va_copy in concat example.
2452
2453 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2454
2455         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2456         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2457         it if not null.
2458
2459         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2460         with O_NOLINK passed to __file_name_lookup.
2461
2462         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2463         with O_NOLINK passed to __file_name_lookup.
2464
2465         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2466         negative N or less than NGIDS.
2467
2468         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2469         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2470         enough.  Use memcpy instead of strncpy.
2471
2472 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2473
2474         * elf/Makefile (check-data): Remove.
2475         (localplt.data): New vpath directive.
2476         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2477         instead of $(check-data).
2478         * scripts/data/localplt-generic.data: Move to ...
2479         * sysdeps/generic/localplt.data: ... here.
2480         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2481         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2482         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2484         ... here.
2485         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2487         ... here.
2488         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2489         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2490         ... here.
2491         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2492         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2493         ... here.
2494         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2495         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2496         ... here.
2497         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2498         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2499         ... here.
2500
2501 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2502
2503         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2504         PPC32 and PPC64 files.
2505         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2506         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2507
2508 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2509
2510         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2511         __makecontext_ret to ...
2512         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2513         ... here and call exit if uc_link is NULL.  New file.
2514         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2515         __makecontext_ret.S.
2516         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2517         __makecontext_ret to ...
2518         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2519         ... here and call exit if uc_link is NULL.  New file.
2520         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2521         __makecontext_ret.S.
2522
2523 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2524
2525         * elf/elf.h (R_390_IRELATIVE): New definition.
2526         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2527         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2528         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2529         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2530         (elf_machine_lazy_rel): Likewise.
2531         * sysdeps/s390/dl-irel.h: New file.
2532         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2533         * sysdeps/s390/s390-64/memset.S: New asm code.
2534         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2535         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2536         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2537         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2538         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2539         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2540         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2541         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2542         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2543         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2544         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2545         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2546         * sysdeps/s390/s390-32/memset.S: New asm code.
2547         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2548
2549 2012-07-17  Marek Polacek  <polacek@redhat.com>
2550
2551         [BZ #14349]
2552         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2553         * sysdeps/s390/s390-64/configure.in: Likewise.
2554         * sysdeps/sparc/configure.in: Likewise.
2555         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2556         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2557         * sysdeps/i386/configure.in: Likewise.
2558         * sysdeps/x86_64/configure.in: Likewise.
2559         * sysdeps/sh/configure.in: Likewise.
2560         * sysdeps/s390/s390-32/configure: Regenerated.
2561         * sysdeps/s390/s390-64/configure: Likewise.
2562         * sysdeps/x86_64/configure: Likewise.
2563         * sysdeps/sh/configure: Likewise.
2564         * sysdeps/powerpc/powerpc64/configure: Likewise.
2565         * sysdeps/powerpc/powerpc32/configure: Likewise.
2566         * sysdeps/sparc/configure: Likwise.
2567         * sysdeps/i386/configure: Likewise.
2568
2569         * elf/dl-open.c: Comment fixes.
2570
2571 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2572
2573         * Makefile [CXX] (check-data): Remove.
2574         [CXX] (c++-types.data): New vpath directive.
2575         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2576         vpath.  Do not allow for C++ type data being missing.
2577         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2578         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2579         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2580         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2581         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2582         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2583         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2585         ... here.
2586         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2588         ... here.
2589         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2590         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2591         ... here.
2592         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2593         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2594         ... here.
2595         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2596         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2597         ... here.
2598         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2599         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2600         ... here.
2601         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2602         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2603         ... here.
2604         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2605         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2606
2607         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2608         definitions to architecture-specific files.
2609         (TLS_IE): Likewise.
2610         (TLS_LD): Likewise.
2611         (TLS_GD): Likewise.
2612         * sysdeps/i386/tls-macros.h: New file.
2613         * sysdeps/powerpc/tls-macros.h: Likewise.
2614         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2615         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2616         * sysdeps/sh/tls-macros.h: Likewise.
2617         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2618         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2619         * sysdeps/x86_64/tls-macros.h: Likewise.
2620
2621 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2622
2623         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2624         zero value for regular exit case.
2625
2626         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2627         (__start_context): Preserve zero value for regular exit case.
2628
2629 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2630             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2631
2632         * manual/setjmp.texi (setcontext): Clarify normal process
2633         termination when uc_link is the null pointer.
2634         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2635         exit call.
2636
2637 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2638
2639         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2640         preprocessor.  Test for each exception mask separately.
2641
2642 2012-07-16  Andreas Jaeger  <aj@suse.de>
2643
2644         * po/ru.po: Update from translation team.
2645
2646 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2647
2648         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2649         equal to 0.
2650         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2651         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2652         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2653         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2654         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2655
2656 2012-07-13  Andreas Jaeger  <aj@suse.de>
2657
2658         * po/fr.po: Update from translation team.
2659
2660 2012-07-12  Marek Polacek  <polacek@redhat.com>
2661
2662         [BZ #14173]
2663         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2664         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2665         loop condition.
2666
2667 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2668
2669         [BZ #13717]
2670         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2671         Change to 2.4.1 where previously 2.4.0.
2672         * sysdeps/unix/sysv/linux/configure: Regenerated.
2673         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2674         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2675         version.
2676         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2677         (__ASSUME_AT_CLKTCK): Remove.
2678         (__ASSUME_AT_PAGESIZE): Likewise.
2679         (__ASSUME_AT_XID): Likewise.
2680         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2681         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2682         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2683         unconditionally.
2684         (HAVE_AUX_PAGESIZE): Likewise.
2685         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2686         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2687         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2688
2689 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2690
2691         [BZ #14307]
2692         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2693         the temporary buffer used to invoke __gethostbyname2_r,
2694         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2695         host_data / struct gaih_addrtuple.
2696         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2697         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2698         header file nss/nsswitch.h.
2699         * nss/nsswitch.h (global scope): Add definition of implementation
2700         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2701         resolv/nss_dns/dns-host.c).
2702
2703 2012-07-11  Andreas Jaeger  <aj@suse.de>
2704
2705         * po/fr.po: Update from translation team.
2706
2707         * po/sv.po: Update from translation team
2708         * po/fr.po: Another update from translation team.
2709
2710 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2711
2712         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2713         for subnormals or multiply small sinh result by itself.
2714         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2715         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2716
2717 2012-07-11  David S. Miller  <davem@davemloft.net>
2718
2719         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2720
2721 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2722
2723         [BZ #14347]
2724         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2725         (INTERNAL_MARK): Shift it here.
2726
2727 2012-07-10  Marek Polacek  <polacek@redhat.com>
2728
2729         [BZ #14151]
2730         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2731         libc_cv_asm_global_directive with .globl.
2732         * configure: Regenerated.
2733         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2734         with .globl.
2735         * sysdeps/i386/configure: Regenerated.
2736         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2737         with .globl.
2738         * sysdeps/x86_64/configure: Regenerated.
2739         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2740         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2741         * elf/tst-unique2mod2.c: Likewise.
2742         * elf/tst-unique2mod1.c: Likewise.
2743         * elf/tst-unique1mod2.c: Likewise.
2744         * elf/tst-unique1mod1.c: Likewise.
2745         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2746         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2747         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2748         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2749         * sysdeps/mach/sysdep.h: Likewise.
2750         * sysdeps/i386/sysdep.h: Likewise.
2751         * sysdeps/i386/i386-mcount.S: Likewise.
2752         * sysdeps/x86_64/_mcount.S: Likewise.
2753         * sysdeps/x86_64/sysdep.h: Likewise.
2754         * sysdeps/sh/_mcount.S: Likewise.
2755         * sysdeps/sh/sysdep.h: Likewise.
2756         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2757         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2758         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2759         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2760         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2761         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2762         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2763         * locale/localeinfo.h: Likewise.
2764         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2765         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2766
2767 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2768
2769         [BZ #14336]
2770         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2771         system".
2772         * manual/message.texi (The Uniforum approach): Likewise.
2773         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2774         (glibc iconv Implementation): Likewise.
2775
2776 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2777
2778         [BZ #14337]
2779         * math/s_clog.c (__clog): Avoid scaling a value down where that
2780         could result in underflow.
2781         * math/s_clog10.c (__clog10): Likewise.
2782         * math/s_clog10f.c (__clog10f): Likewise.
2783         * math/s_clog10l.c (__clog10l): Likewise.
2784         * math/s_clogf.c (__clogf): Likewise.
2785         * math/s_clogl.c (__clogl): Likewise.
2786         * math/libm-test.inc (clog_test): Add more tests.
2787         (clog10_test): Likewise.
2788         * sysdeps/i386/fpu/libm-test-ulps: Update.
2789         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2790
2791 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2792
2793         [BZ #14283]
2794         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2795         by 7 not 8 to examine high bit of fractional part.
2796
2797         [BZ #14042]
2798         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2799         for call to __mcount_internal.
2800         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2801         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2802         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2803
2804 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2805
2806         [BZ #14154]
2807         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2808         approximation for values within 0x1p-13f of an odd multiple of
2809         pi/4.
2810         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2811         exception.  Add more tests.
2812         * sysdeps/i386/fpu/libm-test-ulps: Update.
2813
2814         [BZ #6778]
2815         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2816         inputs and return -1 for them.  Do not check for +Inf in case not
2817         reachable for +Inf.
2818         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2819         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2820         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2821         and return -1 for them.  Do not check for +Inf in case not
2822         reachable for +Inf.
2823         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2824         define.
2825         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2826         and return -1 for them.  Do not check for +Inf in case not
2827         reachable for +Inf.
2828         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2829         spurious underflow.
2830         * sysdeps/i386/fpu/libm-test-ulps: Update.
2831         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2832
2833 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2834
2835         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2836
2837 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2838
2839         [BZ #14157]
2840         [BZ #14331]
2841         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2842         could result in spurious underflow.  Scale down values above
2843         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2844         * math/s_csqrtf.c (__csqrtf): Likewise.
2845         * math/s_csqrtl.c (__csqrtl): Likewise.
2846         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2847         spurious underflow.
2848         * sysdeps/i386/fpu/libm-test-ulps: Update.
2849         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2850
2851 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2852
2853         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2854         xopen-msg.sed.
2855         * catgets/xopen-msg.awk: New file.
2856         * catgets/xopen-msg.sed: Removed.
2857
2858         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2859         po2text.sed.
2860         * intl/po2test.awk: New file.
2861         * intl/po2test.sed: Removed.
2862
2863 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2864
2865         [BZ #14328]
2866         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2867         or multiply small sinh result by itself.
2868         * math/s_ctanf.c (__ctanf): Likewise.
2869         * math/s_ctanh.c (__ctanh): Likewise.
2870         * math/s_ctanhf.c (__ctanhf): Likewise.
2871         * math/s_ctanhl.c (__ctanhl): Likewise.
2872         * math/s_ctanl.c (__ctanl): Likewise.
2873         * math/libm-test.inc (ctan_test_tonearest): New function.
2874         (ctan_test_towardzero): Likewise.
2875         (ctan_test_downward): Likewise.
2876         (ctan_test_upward): Likewise.
2877         (ctanh_test_tonearest): Likewise.
2878         (ctanh_test_towardzero): Likewise.
2879         (ctanh_test_downward): Likewise.
2880         (ctanh_test_upward): Likewise.
2881         (main): Call these new functions.
2882         * sysdeps/i386/fpu/libm-test-ulps: Update.
2883         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2884
2885 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2886
2887         * .gitignore: Delete /ports entry.
2888
2889 2012-07-03  Andreas Jaeger  <aj@suse.de>
2890
2891         * po/bg.po: Update from translation team.
2892         * po/cs.po: Likewise.
2893         * po/de.po: Likewise.
2894         * po/hr.po: Likewise.
2895         * po/nl.pl: Likewise.
2896         * po/pl.po: Likewise.
2897         * po/vi.po: Likewise.
2898
2899 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2900
2901         * Makeconfig [!+link] (+link-before-libc): New variable.
2902         [!+link] (+link-after-libc): Likewise.
2903         [!+link] (+link-tests): Likewise.
2904         [!+link] (+link): Define in terms of $(+link-before-libc) and
2905         $(+link-after-libc).
2906         [!+link-static] (+link-static-before-libc): New variable.
2907         [!+link-static] (+link-static-after-libc): Likewise.
2908         [!+link-static] (+link-static-tests): Likewise.
2909         [!+link-static] (+link-static): Define in terms of
2910         $(+link-static-before-libc) and $(+link-static-after-libc).
2911         [build-shared] (link-libc-before-gnulib): New variable.
2912         [build-shared] (link-libc-tests): Likewise.
2913         [build-shared] (link-libc): Define in terms of
2914         $(link-libc-before-gnulib).
2915         [!build-shared] (link-libc-tests): New variable.
2916         (link-libc-static-tests): New variable.
2917         [!gnulib] (gnulib-arch): New variable.
2918         [!gnulib] (gnulib-tests): Likewise.
2919         [!gnulib] (static-gnulib-arch): Likewise.
2920         [!gnulib] (static-gnulib-tests): Likewise.
2921         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
2922         Define with "=" instead of ":=".
2923         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
2924         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
2925         * Rules (binaries-all-notests): New variable.
2926         (binaries-all-tests): Likewise.
2927         (binaries-static-notests): Likewise.
2928         (binaries-static-tests): Likewise.
2929         (binaries-all): Define using $(binaries-all-notests) and
2930         $(binaries-all-tests).
2931         (binaries-static): Define using $(binaries-static-notests) and
2932         $(binaries-static-tests).
2933         (binaries-shared-tests): New variable.
2934         (binaries-shared-notests): Likewise.
2935         (binaries-shared): Remove variable.
2936         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
2937         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
2938         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
2939         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
2940         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
2941         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
2942         * elf/Makefile (sln-modules): New variable.
2943         (extra-objs): Add $(sln-modules:=.o).
2944         (ldconfig-modules): Add static-stubs.
2945         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
2946         * elf/static-stubs.c: New file.
2947
2948         [BZ #14283]
2949         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
2950         by 7 not 8 to examine high bit of fractional part.  Use volatile
2951         variables when splitting into final array of floats if
2952         __FLT_EVAL_METHOD__ != 0.
2953         * math/libm-test.inc (cos_test): Add another test.
2954         (sin_test): Likewise.
2955         * sysdeps/i386/fpu/libm-test-ulps: Update.
2956
2957         [BZ #14273]
2958         * math/libm-test.inc (cosh_test): Add more tests.
2959
2960         * version.h (RELEASE): Set to "development".
2961         (VERSION): Set to "2.16.90".
2962
2963 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
2964
2965         * NEWS: Update copyright. Remove last-updated date.
2966         Mention math library bug fixes and timezone data changes.
2967         * README: Mention GNU/Hurd, x32, and HPPA support status.
2968
2969 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
2970
2971         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
2972
2973 2012-06-27  Andreas Jaeger  <aj@suse.de>
2974
2975         * manual/contrib.texi (Contributors): Add Samuel Thibault.
2976
2977 2012-06-25  Andreas Jaeger  <aj@suse.de>
2978
2979         * sysdeps/s390/fpu/libm-test-ulps: Update.
2980
2981 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
2982             Thomas Schwinge  <thomas@codesourcery.com>
2983
2984         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
2985         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
2986         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
2987         fanotify_mark.
2988
2989 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
2990
2991         * sysdeps/mach/start.c: Remove file.
2992         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
2993         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
2994         * sysdeps/sh/init-first.c: Likewise.
2995
2996         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
2997         registers for frame unwinding purposes, add CFI directives.
2998         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2999         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3000         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3001         Likewise.
3002
3003         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3004         __fortify_fail returning.
3005         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3006
3007         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3008         sysdeps/sh/____longjmp_chk.S.
3009         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3010         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3011         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3012         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3013
3014         * sysdeps/sh/abort-instr.h: New file.
3015         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3016         process in case exit returns.
3017
3018         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3019         initialize the GOT register before use.
3020
3021         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3022         calculation of ARGC > 4.
3023
3024         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3025         meaningful names to some local labels.
3026
3027 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3028             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3029
3030         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3031         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3032         (__arch_compare_and_exchange_val_16_acq): Likewise.
3033         (__arch_compare_and_exchange_val_32_acq): Likewise.
3034         (atomic_exchange_and_add): Fix gUSA sequence.
3035         (atomic_add): Likewise.
3036         (atomic_add_negative): Likewise.
3037         (atomic_add_zero): Likewise.
3038         (atomic_bit_test_set): Likewise.
3039
3040 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3041
3042         [BZ #13579]
3043         * include/link.h (struct link_map): Add l_free_initfini.
3044         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3045         l_initfini.
3046         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3047         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3048         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3049         set.
3050
3051 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3052
3053         * configure.in: Use AC_LANG_SOURCE.
3054         * configure: Regenerate.
3055
3056 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3057
3058         * configure.in (libc_cv_localstatedir): New substituted variable.
3059         * configure: Regenerated.
3060         * config.make.in (localstatedir): New variable, substituted from
3061         libc_cv_localstatedir.
3062         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3063         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3064         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3065         * sysdeps/gnu/configure: Regenerated.
3066
3067 2012-06-21  Jeff Law  <law@redhat.com>
3068
3069         [BZ #14277]
3070         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3071         free.  Simplify list management for _LIBC case.
3072
3073 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3074
3075         [BZ #14273]
3076         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3077         Clear sign bit of 64-bit integer value before comparing against
3078         overflow value.
3079
3080         * sysdeps/mach/configure: Regenerated.
3081
3082 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3083
3084         [BZ #14278]
3085         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3086
3087 2012-06-21  Jeff Law  <law@redhat.com>
3088
3089         [BZ #13882]
3090         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3091         uint16_t for elements in the "seen" array to avoid char overflows.
3092         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3093         * elf/dl-open.c (dl_open_worker): Likewise.
3094
3095 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3096
3097         * scripts/list-sources.sh: Scan PORTS for translations.
3098         * po/libc.pot: Regenerated.
3099
3100 2012-06-21  Andreas Jaeger  <aj@suse.de>
3101
3102         [BZ #12194]
3103         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3104         warning.
3105         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3106         * bits/byteswap-16.h (__bswap_16): Likewise.
3107         * bits/byteswap.h (__bswap_constant_16): Likewise.
3108
3109 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3110
3111         [BZ #14117]
3112         * sysdeps/i386/fpu_control.h: Removed.
3113         * sysdeps/x86_64/fpu_control.h: Moved to ...
3114         * sysdeps/x86/fpu_control.h: Here.
3115
3116         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3117         (_FPU_SETCW): Likewise.
3118
3119 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3120
3121         [BZ #14117]
3122         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3123         * sysdeps/x86/fpu/bits/mathinline.h: This.
3124         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3125
3126         [BZ #14050]
3127         [BZ #14117]
3128         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3129         functions if __x86_64__ is defined.
3130
3131 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3132
3133         * string/endian.h: Add !__ASSEMBLER__ condition for including
3134         conversion interfaces.
3135
3136 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3137
3138         [BZ #14241]
3139         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3140         of ABS(x) in calculating zero to negative powers other than odd
3141         integers.
3142         * math/libm-test.inc (pow_test): Add more tests.
3143
3144 2012-06-15  Andreas Jaeger  <aj@suse.de>
3145
3146         * manual/contrib.texi (Contributors): Update entry of Liubov
3147         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3148         Machado Filho.
3149
3150 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3151
3152         * string/string.h: Add __wur to GNU version of strerror_r.
3153
3154 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3155
3156         [BZ #14229]
3157         * string/Makefile (tests): Add tst-strtok_r.
3158         * string/tst-strtok_r.c: New file.
3159         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3160         RAX_LP/RDX_LP on SAVE_PTR.
3161
3162 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3163
3164         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3165
3166 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3167
3168         * libm_test.inc (csqrt_test): Allow more spurious underflow
3169         exceptions.
3170         (j0_test): Likewise.
3171         (j1_test): Likewise.
3172         (y0_test): Likewise.
3173         (y1_test): Likewise.
3174
3175 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3176
3177         * po/Makefile (libc.pot): Use UTF-8 charset.
3178
3179 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3180
3181         [BZ #14210]
3182         Suppress sign-conversion warning from FD_SET.
3183         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3184         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3185         not unsigned long int.
3186         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3187
3188 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3189
3190         [BZ #14050]
3191         [BZ #14117]
3192         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3193         __extern_always_inline instead of __extern_inline.
3194         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3195         (__signbit): Likewise.
3196         (__signbitl): Support C++ namespace.
3197         (lrintf): New inline function.
3198         (lrint): Likewise.
3199         (llrintf): Likewise.
3200         (llrint): Likewise.
3201         (fmaxf): Likewise.
3202         (fmax): Likewise.
3203         (fminf): Likewise.
3204         (fmin): Likewise.
3205         (rint): Likewise.
3206         (rintf): Likewise.
3207         (ceil): Likewise.
3208         (ceilf): Likewise.
3209         (floor): Likewise.
3210         (floorf): Likewise.
3211         (nearbyint): Likewise.
3212         (nearbyintf): Likewise.
3213
3214 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3215
3216         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3217         non-default versions.
3218
3219 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3220
3221         [BZ #14218]
3222         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3223
3224 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3225
3226         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3227         (FE_UPWARD, FE_DOWNWARD): Don't define.
3228         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3229         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3230
3231         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3232         reading it.
3233         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3234         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3235
3236 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3237
3238         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3239         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3240         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3241         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3242
3243 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3244
3245         [BZ #14117]
3246         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3247         * sysdeps/i386/fpu/Implies: New file.
3248         * sysdeps/x86_64/fpu/Implies: Likewise.
3249         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3250         * sysdeps/x86/fpu/bits/fenv.h: This.
3251
3252         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3253         __SSE_MATH__.
3254
3255 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3256
3257         [BZ #14134]
3258         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3259         character 0xffff that matches the last element of the
3260         conversion table.
3261
3262 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3263
3264         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3265         fmodl commit.
3266
3267 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3268
3269         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3270         values higher than 25.6283.
3271
3272 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3273
3274         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3275         subnormal exponent extraction and add some __builtin_expect.
3276         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3277         Fix for subnormal mantissa calculation.
3278
3279 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3280
3281         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3282         cpu2 is -1 and errno is not ENOSYS.
3283
3284 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3285
3286         [BZ #14117]
3287         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3288         * sysdeps/x86/bits/string.h: This.
3289         * sysdeps/x86_64/bits/string.h: Removed.
3290
3291         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3292         if not compiling for x86-64, but compiling for >= i486.
3293
3294         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3295         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3296
3297         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3298         New macro from Linux kernel 3.4.0.
3299         (FP_XSTATE_MAGIC2): Likewise.
3300         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3301         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3302         (struct _fpx_sw_bytes): New struct.
3303         (struct _xsave_hdr): Likewise.
3304         (struct _ymmh_state): Likewise.
3305         (struct _xstate): Likewise.
3306
3307         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3308         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3309         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3310         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3311         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3312         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3313
3314         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3315         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3316         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3317         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3318         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3319         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3320
3321 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3322
3323         [BZ #13743]
3324         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3325         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3326         (sysdep_headers): Include sys/platform/ppc.h.
3327         * sysdeps/powerpc/test-gettimebase.c: Test for
3328         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3329         * manual/Makefile (appendices): Include platform.texi.
3330         * manual/contrib.texi (Contributors): Update @node pointers.
3331         * manual/maint.texi (Maintenance): Likewise.
3332         (Platform): New node.
3333         * manual/platform.texi: New file.  Document the new features.
3334
3335 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3336             Jakub Jelinek  <jakub@redhat.com>
3337
3338         [BZ #14188]
3339         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3340         where __builtin_expect is unavailable.
3341
3342 2012-06-03  David S. Miller  <davem@davemloft.net>
3343
3344         * stdlib/longlong.h: Updated from GCC.
3345
3346 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3347
3348         [BZ #14042]
3349         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3350         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3351         __mcount_internal.
3352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3353         (GLIBC_2.16): Likewise.
3354
3355 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3356
3357         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3358
3359 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3360
3361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3362         (default-abi): New variable.
3363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3364         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3365         variable.
3366         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3367         Likewise.
3368         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3369         Likewise.
3370         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3371         Likewise.
3372
3373         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3374         definition.  Document in comment.
3375
3376 2012-06-01  David S. Miller  <davem@davemloft.net>
3377
3378         * stdlib/longlong.h: Updated from GCC.
3379
3380 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3381
3382         [BZ #14117]
3383         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3384         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3385         sys/debugreg.h sys/io.h here.
3386         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3387         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3388         sys/io.h.
3389         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3390         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3391         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3392         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3393         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3394         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3395
3396         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3397         Define only if __x86_64__ is defined.
3398
3399 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3400
3401         [BZ #14048]
3402         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3403         Use int64_t for variable i.
3404         * math/libm-test.inc (fmod_test): Add more tests.
3405
3406         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3407         z computation is not scheduled after fetestexcept.
3408         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3409         Use math_force_eval instead of asm to ensure calculation scheduled
3410         before exception test.
3411         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3412         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3413
3414 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3415
3416         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3417         computation is not scheduled after fetestexcept.
3418
3419 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3420
3421         [BZ #14117]
3422         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3423         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3424
3425 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3426
3427         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3428         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3429
3430 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3431
3432         [BZ #14117]
3433         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3434         <bits/wordsize.h>.
3435         (__WCHAR_MIN): Support __WORDSIZE == 64.
3436         (__WCHAR_MAX): Likewise.
3437
3438         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3439         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3440
3441         [BZ #14183]
3442         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3443         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3444
3445         [BZ #14117]
3446         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3447         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3448
3449         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3450         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3451
3452         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3453         Defined to 1 if __x86_64__ isn't defined.
3454         (_STAT_VER_LINUX_OLD): New.
3455         (st_atime): Remove duplicate.
3456         (st_mtime): Likewise.
3457         (st_ctime): Likewise.
3458
3459 2012-05-31  David S. Miller  <davem@davemloft.net>
3460
3461         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3462         entries.
3463
3464 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3465
3466         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3467         gen-libm-test.pl.
3468
3469         [BZ #14132]
3470         * elf/dl-reloc.c: Include <_itoa.h>.
3471         (_dl_reloc_bad_type): Remove use of INTUSE.
3472         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3473         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3474         * stdio-common/psiginfo.c (psiginfo): Likewise.
3475         * stdio-common/psignal.c (psignal): Likewise.
3476         * string/strsignal.c (strsignal): Likewise.
3477         * include/signal.h (_sys_siglist): Declare hidden proto.
3478         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3479         INTVARDEF with libc_hidden_data_def.
3480         * stdio-common/itoa-udigits.c: Likewise.
3481         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3482         (_itoa_lower_digits_internal): Remove declaration.
3483         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3484         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3485         (_sys_sigabbrev_internal): Remove aliases.
3486         (_sys_siglist): Define hidden alias.
3487
3488 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3489
3490         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3491         bits/sysctl.h.
3492
3493 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3494
3495         [BZ #14117]
3496         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3497         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3498
3499         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3500         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3501         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3502         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3503         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3504         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3505
3506         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3507         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3508         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3509
3510         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3511         with __addr.
3512         (insw): Likewise.
3513         (insl): Likewise.
3514         (outsb): Likewise.
3515         (outsw): Likewise.
3516         (outsl): Likewise.
3517
3518         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3519         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3520         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3521
3522         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3523         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3524         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3525         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3526         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3527         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3528
3529         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3530         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3531
3532         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3533         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3534
3535         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3536         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3537         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3538
3539         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3540         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3541         to ...
3542         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3543
3544         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3545         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3546         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3547
3548         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3549         for x86-64.
3550         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3551
3552 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3553
3554         * math/math.h (M_El): Use two more decimal places.
3555         (M_LOG2El): Likewise.
3556         (M_LOG10El): Likewise.
3557         (M_LN2l): Likewise.
3558         (M_LN10l): Likewise.
3559         (M_PIl): Likewise.
3560         (M_PI_2l): Likewise.
3561         (M_PI_4l): Likewise.
3562         (M_1_PIl): Likewise.
3563         (M_2_PIl): Likewise.
3564         (M_2_SQRTPIl): Likewise.
3565         (M_SQRT2l): Likewise.
3566         (M_SQRT1_2l): Likewise.
3567
3568 2012-05-31  David S. Miller  <davem@davemloft.net>
3569
3570         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3571         values between float registers.
3572         * sysdeps/sparc/sparc64/memset.S: Likewise.
3573         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3574
3575 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3576
3577         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3578         -D_FORTIFY_SOURCE=1.
3579         (CPPFLAGS-tst-longjmp_chk.c): Define.
3580         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3581         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3582         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3583         CFLAGS-tst-wchar-h.c.
3584
3585 2012-05-31  Marek Polacek  <polacek@redhat.com>
3586
3587         [BZ #14132]
3588         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3589         __endmntent_internal): Remove declaration.
3590         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3591         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3592         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3593
3594 2012-05-30  David S. Miller  <davem@davemloft.net>
3595
3596         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3597         (___Q_simulate_exceptions): Use real FP ops rather than writing
3598         into the %fsr.
3599         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3600         Likewise.
3601
3602 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3603
3604         [BZ #14117]
3605         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3606         * sysdeps/x86/bits/xtitypes.h: This.
3607
3608         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3609         * sysdeps/x86/bits/wordsize.h: This.
3610
3611         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3612         * sysdeps/x86/bits/huge_vall.h: This.
3613
3614         * sysdeps/i386/bits/select.h: Removed.
3615         * sysdeps/x86_64/bits/select.h: Renamed to ...
3616         * sysdeps/x86/bits/select.h: This.
3617
3618         * sysdeps/i386/bits/setjmp.h: Removed.
3619         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3620         * sysdeps/x86/bits/setjmp.h: This.
3621
3622         * sysdeps/i386/bits/mathdef.h: Removed.
3623         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3624         * sysdeps/x86/bits/mathdef.h: This.
3625
3626 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3627
3628         [BZ #14132]
3629         * include/sys/socket.h (__connect_internal)
3630         (__libc_sa_len_internal): Remove declaration.
3631         (__connect, __libc_sa_len): Declare hidden_proto.
3632         (SA_LEN): Remove use of INTUSE.
3633         * socket/connect.c: Add libc_hidden_def.
3634         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3635         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3636         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3637         alias.
3638         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3639         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3640         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3641         of adding _internal alias.
3642
3643 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3644
3645         [BZ #14117]
3646         * sysdeps/i386/bits/link.h: Removed.
3647         * sysdeps/i386/bits/linkmap.h: Likewise.
3648         * sysdeps/x86_64/bits/link.h: Renamed to ...
3649         * sysdeps/x86/bits/link.h: This.
3650         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3651         * sysdeps/x86/bits/linkmap.h: This.
3652
3653         * sysdeps/i386/bits/endian.h: Removed.
3654         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3655         * sysdeps/x86/bits/endian.h: This.
3656
3657         * sysdeps/i386/bits/byteswap.h: Removed.
3658         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3659         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3660         * sysdeps/x86/bits/byteswap.h: This.
3661         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3662         * sysdeps/x86/bits/byteswap-16.h: This.
3663         * sysdeps/i386/Implies: Add x86.
3664         * sysdeps/x86_64/Implies: Likewise.
3665
3666 2012-05-30  David S. Miller  <davem@davemloft.net>
3667
3668         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3669         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3670         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3671         (FP_TRAPPING_EXCEPTIONS): Define.
3672         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3673         (FP_TRAPPING_EXCEPTIONS): Define.
3674         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3675         subnormals only when inexact has been signalled or underflow
3676         exceptions are enabled.
3677         (_FP_PACK_CANONICAL): Likewise.
3678
3679 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3680
3681         [BZ #14183]
3682         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3683         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3684
3685 2012-05-30  Richard Henderson  <rth@twiddle.net>
3686
3687         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3688         with #ifndef NOT_IN_libc.
3689
3690         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3691         marked to avoid plt entry.
3692
3693 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3694
3695         [BZ #14112]
3696         * Makeconfig (default-abi): New macro.
3697         (abi-includes): Likewise.
3698         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3699         $(abi-$(default-abi)-lib-soname) for soname if defined.
3700         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3701         abi-variants.
3702         * Makefile (installed-stubs): Likewise.
3703         * include/stubs-biarch.h: Removed.
3704         * scripts/lib-names.awk: Only handle one library at a time.
3705         * scripts/soversions.awk: Remove WORDSIZE support.
3706         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3707         entries.
3708         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3709         Removed.
3710         (syscall-list-default-condition): Likewise.
3711         (syscall-list-default-condition): Likewise.
3712         (syscall-list-includes): Likewise.
3713         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3714         syscall-list-* with abi-*.  Handle undefined abi-variants.
3715         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3716         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3717         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3718         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3719         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3720         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3721         Removed.
3722         (syscall-list-32-options): Likewise.
3723         (syscall-list-32-condition): Likewise.
3724         (syscall-list-64-options): Likewise.
3725         (syscall-list-64-condition): Likewise.
3726         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3727         macro.
3728         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3729         Renamed to ...
3730         (abi-*): This.
3731         (abi-64-ld-soname): New macro.
3732         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3733         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3734         Renamed to ...
3735         (abi-*): This.
3736         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3737         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3738
3739 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3740
3741         * sysdeps/unix/sysv/linux/kernel-features.h
3742         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3743         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3744         include <kernel-features.h>.
3745         [!__NR_ftruncate64]: Remove conditional code.
3746         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3747         [__NR_ftruncate64]: Make code unconditional.
3748         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3749         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3750         include <kernel-features.h>.
3751         [!__NR_ftruncate64]: Remove conditional code.
3752         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3753         [__NR_ftruncate64]: Make code unconditional.
3754         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3756         include <kernel-features.h>.
3757         [!__NR_ftruncate64]: Remove conditional code.
3758         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3759         [__NR_ftruncate64]: Make code unconditional.
3760         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3762         include <kernel-features.h>.
3763         [!__NR_ftruncate64]: Remove conditional code.
3764         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3765         [__NR_ftruncate64]: Make code unconditional.
3766         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3767
3768         * configure.in (libc_cv_fpie): Weaken to a compile test using
3769         LIBC_TRY_CC_OPTION.
3770         * configure: Regenerated.
3771
3772 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3773
3774         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3775         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3776         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3777         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3778         Refreshed.
3779         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3780         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3781         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3782         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3783         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3784         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3785         Refreshed.
3786
3787 2012-05-27  David S. Miller  <davem@davemloft.net>
3788
3789         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3790         (___Q_zero): New.
3791         (__Q_simulate_exceptions): Return void.  Change to simulate
3792         exceptions by writing into the %fsr.
3793         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3794         (__Qp_handle_exceptions): Likewise.
3795         (numbers): Delete.
3796         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3797         __Qp_handle_exceptions.
3798         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3799         __Qp_handle_exceptions.
3800         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3801         as unused and give dummy FP_RND_NEAREST initializer.
3802         (FP_INHIBIT_RESULTS): Define.
3803         (___Q_simulate_exceptions): Update declaration.
3804         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3805         formatting.
3806         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3807         as unused and give dummy FP_RND_NEAREST initializer.
3808         (__Qp_handle_exceptions): Update declaration.
3809         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3810         formatting.
3811
3812 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3813
3814         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3815         the temporary FPU control word.
3816         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3817         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3818         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3819         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3820         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3821         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3822         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3823         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3824         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3825         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3826         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3827
3828 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3829
3830         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3831         fields.
3832
3833 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3834
3835         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3836         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3837         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3838         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3839         Likewise.
3840         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3841         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3842         Likewise.
3843
3844 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3845
3846         * po/h.po: Update from translation team.
3847
3848 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3849
3850         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3851
3852         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3853         handling of denormals.
3854         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3855         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3856         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3857         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3858         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3859         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3860         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3861         Likewise.
3862
3863 2012-05-26  Marek Polacek  <polacek@redhat.com>
3864
3865         [BZ #14152]
3866         * math/libm-test.inc (fma_test): Don't always expect underflow
3867         exception.
3868
3869 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3870
3871         [BZ #12416]
3872         * elf/tst-execstack.c: Include stackinfo.h.
3873         (do_test): Adjust test case to ensure that pthread_getattr_np
3874         behaviour remains the same after marking stack executable.
3875
3876 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3877
3878         * sysdeps/unix/sysv/linux/kernel-features.h
3879         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3880         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3881         kernel-features.h.
3882         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3883         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3884         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3885         kernel-features.h.
3886         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3887         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3888
3889 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3890
3891         * configure.in: Define the default includes to being none.
3892         * configure: Regenerated.
3893
3894 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3895
3896         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3897         * sysdeps/x86_64/setjmp.S: Likewise.
3898         * sysdeps/i386/bsd-setjmp.S: Likewise.
3899         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3900         * sysdeps/i386/setjmp.S: Likewise.
3901         * sysdeps/i386/__longjmp.S: Likewise.
3902         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3903         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3904
3905         * include/stap-probe.h: New file.
3906         * configure.in: Handle --enable-systemtap.
3907         * configure: Regenerated.
3908         * config.h.in (USE_STAP_PROBE): New #undef.
3909         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3910         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3911         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3912
3913 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3914
3915         [BZ #13717]
3916         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3917         to 2.4.0 where earlier.
3918         * sysdeps/unix/sysv/linux/configure: Regenerated.
3919         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3920         <kernel-features.h>.
3921         [__ASSUME_32BITUIDS]: Make code unconditional.
3922         [!__ASSUME_32BITUIDS]: Remove conditional code.
3923         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
3924         <kernel-features.h>.
3925         [__ASSUME_32BITUIDS]: Make code unconditional.
3926         [!__ASSUME_32BITUIDS]: Remove conditional code.
3927         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
3928         [__ASSUME_32BITUIDS]: Make code unconditional.
3929         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
3930         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
3931         <kernel-features.h>.
3932         [__ASSUME_32BITUIDS]: Make code unconditional.
3933         [!__ASSUME_32BITUIDS]: Remove conditional code.
3934         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
3935         <kernel-features.h>.
3936         [__ASSUME_32BITUIDS]: Make code unconditional.
3937         [!__ASSUME_32BITUIDS]: Remove conditional code.
3938         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
3939         <kernel-features.h>.
3940         [__ASSUME_32BITUIDS]: Make code unconditional.
3941         [!__ASSUME_32BITUIDS]: Remove conditional code.
3942         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
3943         <kernel-features.h>.
3944         [__ASSUME_32BITUIDS]: Make code unconditional.
3945         [!__ASSUME_32BITUIDS]: Remove conditional code.
3946         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
3947         <kernel-features.h>.
3948         [__ASSUME_32BITUIDS]: Make code unconditional.
3949         [!__ASSUME_32BITUIDS]: Remove conditional code.
3950         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
3951         <kernel-features.h>.
3952         [__ASSUME_32BITUIDS]: Make code unconditional.
3953         [!__ASSUME_32BITUIDS]: Remove conditional code.
3954         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
3955         <kernel-features.h>.
3956         [__ASSUME_32BITUIDS]: Make code unconditional.
3957         [!__ASSUME_32BITUIDS]: Remove conditional code.
3958         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3959         <kernel-features.h>.
3960         [__ASSUME_32BITUIDS]: Make code unconditional.
3961         [!__ASSUME_32BITUIDS]: Remove conditional code.
3962         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
3963         <kernel-features.h>.
3964         [__ASSUME_32BITUIDS]: Make code unconditional.
3965         [!__ASSUME_32BITUIDS]: Remove conditional code.
3966         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
3967         <kernel-features.h>.
3968         [__ASSUME_32BITUIDS]: Make code unconditional.
3969         [!__ASSUME_32BITUIDS]: Remove conditional code.
3970         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
3971         <kernel-features.h>.
3972         [__NR_setresgid] (__setresgid): Do not declare.
3973         [__ASSUME_32BITUIDS]: Make code unconditional.
3974         [!__ASSUME_32BITUIDS]: Remove conditional code.
3975         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
3976         <kernel-features.h>.
3977         [__NR_setresuid] (__setresuid): Do not declare.
3978         [__ASSUME_32BITUIDS]: Make code unconditional.
3979         [!__ASSUME_32BITUIDS]: Remove conditional code.
3980         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
3981         <kernel-features.h>.
3982         [__ASSUME_32BITUIDS]: Make code unconditional.
3983         [!__ASSUME_32BITUIDS]: Remove conditional code.
3984         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
3985         <kernel-features.h>.
3986         [__ASSUME_32BITUIDS]: Make code unconditional.
3987         [!__ASSUME_32BITUIDS]: Remove conditional code.
3988         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
3989         <kernel-features.h>.
3990         [__ASSUME_32BITUIDS]: Make code unconditional.
3991         [!__ASSUME_32BITUIDS]: Remove conditional code.
3992         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
3993         <kernel-features.h>.
3994         [__ASSUME_32BITUIDS]: Make code unconditional.
3995         [!__ASSUME_32BITUIDS]: Remove conditional code.
3996         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
3997         <kernel-features.h>.
3998         [__ASSUME_32BITUIDS]: Make code unconditional.
3999         [!__ASSUME_32BITUIDS]: Remove conditional code.
4000         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4001         <kernel-features.h>.
4002         [__ASSUME_32BITUIDS]: Make code unconditional.
4003         [!__ASSUME_32BITUIDS]: Remove conditional code.
4004         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4005         <kernel-features.h>.
4006         [__ASSUME_32BITUIDS]: Make code unconditional.
4007         [!__ASSUME_32BITUIDS]: Remove conditional code.
4008         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4009         <kernel-features.h>.
4010         [__ASSUME_32BITUIDS]: Make code unconditional.
4011         [!__ASSUME_32BITUIDS]: Remove conditional code.
4012         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4013         <kernel-features.h>.
4014         [__ASSUME_32BITUIDS]: Make code unconditional.
4015         [!__ASSUME_32BITUIDS]: Remove conditional code.
4016         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4017         <kernel-features.h>.
4018         [__ASSUME_32BITUIDS]: Make code unconditional.
4019         [!__ASSUME_32BITUIDS]: Remove conditional code.
4020         * sysdeps/unix/sysv/linux/kernel-features.h
4021         (__ASSUME_SETRESUID_SYSCALL): Remove.
4022         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4023         (__ASSUME_32BITUIDS): Likewise.
4024         (__ASSUME_LDT_WORKS): Likewise.
4025         (__ASSUME_O_DIRECTORY): Likewise.
4026         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4027         architecture but not kernel version.
4028         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4029         (__ASSUME_MMAP2_SYSCALL): Likewise.
4030         (__ASSUME_STAT64_SYSCALL): Likewise.
4031         (__ASSUME_IPC64): Likewise.
4032         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4033         <kernel-features.h>.
4034         [__ASSUME_32BITUIDS]: Make code unconditional.
4035         [!__ASSUME_32BITUIDS]: Remove conditional code.
4036         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4037         <kernel-features.h>.
4038         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4039         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4040         132096]: Remove conditional code.
4041         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4042         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4043         <kernel-features.h>.
4044         [__ASSUME_32BITUIDS]: Make code unconditional.
4045         [!__ASSUME_32BITUIDS]: Remove conditional code.
4046         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4047         <kernel-features.h>.
4048         [__ASSUME_32BITUIDS]: Make code unconditional.
4049         [!__ASSUME_32BITUIDS]: Remove conditional code.
4050         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4051         <kernel-features.h>.
4052         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4053         unconditional.
4054         (__setresgid): Do not declare.
4055         [__ASSUME_32BITUIDS]: Make code unconditional.
4056         [!__ASSUME_32BITUIDS]: Remove conditional code.
4057         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4058         <kernel-features.h>.
4059         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4060         unconditional.
4061         (__setresuid): Do not declare.
4062         [__ASSUME_32BITUIDS]: Make code unconditional.
4063         [!__ASSUME_32BITUIDS]: Remove conditional code.
4064         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4065         <kernel-features.h>.
4066         [__ASSUME_32BITUIDS]: Make code unconditional.
4067         [!__ASSUME_32BITUIDS]: Remove conditional code.
4068         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4069         <kernel-features.h>.
4070         [__ASSUME_32BITUIDS]: Make code unconditional.
4071         [!__ASSUME_32BITUIDS]: Remove conditional code.
4072
4073 2012-05-25  Richard Henderson  <rth@twiddle.net>
4074
4075         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4076         dl_hwcap to ifunc resolver.
4077         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4078         elf_ifunc_invoke.
4079         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4080         dl_hwcap to ifunc resolver.
4081         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4082
4083 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4084
4085         [BZ #14153]
4086         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4087         for |x| <= 2**-26, not 2**-57.
4088         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4089         exception.
4090
4091 2012-05-24  Jeff Law  <law@redhat.com>
4092
4093         * stdio-common/Makefile (tests): Add bug25.
4094         * stdio-common/bug25.c: New test.
4095
4096 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4097
4098         [BZ #13576]
4099         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4100         multiple of MALLOC_ALIGNMENT in size.
4101         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4102
4103 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4104
4105         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4106         Require >= 256.
4107         (FILENAME_MAX): Use macro-int-constant.
4108         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4109         (_IOFBF): Use macro-int-constant.
4110         (_IOLBF): Likewise.
4111         (_IONBF): Likewise.
4112         (SEEK_CUR): Likewise.
4113         (SEEK_END): Likewise.
4114         (SEEK_SET): Likewise.
4115         (TMP_MAX): Likewise.
4116         (EOF): Use macro-int-constant.  Require < 0.
4117         (NULL): Use macro-constant.  Require == 0.
4118         (stdin): Require type to be FILE *.
4119         (stdout): Likewise.
4120         (stderr): Likewise.
4121         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4122         macro-int-constant.
4123         (EXIT_SUCCESS): Likewise.
4124         (NULL): Use macro-constant.  Require == 0.
4125         (RAND_MAX): Use macro-int-constant.
4126         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4127         [C99-based standards] (strtof): Require function.
4128         [C99-based standards] (strtold): Likewise.
4129         [C99-based standards] (strtoll): Likewise.
4130         [C99-based standards] (strtoull): Likewise.
4131         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4132         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4133         [ISO || ISO99 || ISO11] (math.h): Likewise.
4134         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4135         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4136         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4137
4138 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4139
4140         [BZ #14132]
4141         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4142         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4143         * intl/dgettext.c (DCGETTEXT): Likewise.
4144         * intl/gettext.c (DCGETTEXT): Likewise.
4145         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4146         * posix/regex_internal.h (gettext): Likewise.
4147         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4148         Remove declaration.
4149         * include/argz.h (__argz_count_internal)
4150         (__argz_stringify_internal): Remove declaration.
4151         (__argz_count, __argz_stringify): Declare hidden proto.
4152         * intl/dcgettext.c: Remove use of INTDEF.
4153         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4154         * string/argz-stringify.c: Likewise.
4155         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4156         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4157         Declare hidden proto.
4158         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4159         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4160         Declare hidden proto.
4161         * include/stdio.h (__asprintf_internal): Don't declare.
4162         (__asprintf): Don't define as macro.  Declare hidden proto.
4163         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4164         (__fsetlocking): Declare hidden proto.
4165         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4166         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4167         hidden proto.
4168         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4169         (_IO_setlinebuf): Remove use of INTUSE.
4170         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4171         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4172         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4173         Remove declaration.
4174         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4175         (_IO_do_flush): Remove use of INTUSE.
4176         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4177         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4178         (_IO_adjust_column, _IO_least_wmarker)
4179         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4180         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4181         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4182         (_IO_default_doallocate, _IO_wdefault_doallocate)
4183         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4184         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4185         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4186         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4187         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4188         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4189         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4190         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4191         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4192         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4193         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4194         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4195         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4196         proto.
4197         (_IO_flush_all_internal, _IO_adjust_column_internal)
4198         (_IO_default_uflow_internal, _IO_default_finish_internal)
4199         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4200         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4201         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4202         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4203         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4204         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4205         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4206         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4207         (_IO_file_close_internal, _IO_file_close_it_internal)
4208         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4209         (_IO_file_init_internal, _IO_file_attach_internal)
4210         (_IO_file_fopen_internal, _IO_file_read_internal)
4211         (_IO_file_sync_internal, _IO_file_seek_internal)
4212         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4213         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4214         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4215         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4216         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4217         (_IO_list_all_internal, _IO_link_in_internal)
4218         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4219         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4220         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4221         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4222         (_IO_do_write_internal, _IO_padn_internal)
4223         (_IO_getline_info_internal, _IO_getline_internal)
4224         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4225         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4226         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4227         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4228         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4229         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4230         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4231         with libc_hidden_ver, remove use of INTUSE.
4232         * libio/genops.c: Likewise.
4233         * libio/freopen.c: Likewise.
4234         * libio/freopen64.c: Likewise.
4235         * libio/iofclose.c: Likewise.
4236         * libio/iofdopen.c: Likewise.
4237         * libio/iofflush.c: Likewise.
4238         * libio/iofflush_u.c: Likewise.
4239         * libio/iofgets.c: Likewise.
4240         * libio/iofgets_u.c: Likewise.
4241         * libio/iofopen.c: Likewise.
4242         * libio/iofopncook.c: Likewise.
4243         * libio/iofread.c: Likewise.
4244         * libio/iofread_u.c: Likewise.
4245         * libio/ioftell.c: Likewise.
4246         * libio/iofwrite.c: Likewise.
4247         * libio/iogetline.c: Likewise.
4248         * libio/iogets.c: Likewise.
4249         * libio/iogetwline.c: Likewise.
4250         * libio/iopadn.c: Likewise.
4251         * libio/iopopen.c: Likewise.
4252         * libio/ioseekoff.c: Likewise.
4253         * libio/ioseekpos.c: Likewise.
4254         * libio/iosetbuffer.c: Likewise.
4255         * libio/iosetvbuf.c: Likewise.
4256         * libio/ioungetc.c: Likewise.
4257         * libio/ioungetwc.c: Likewise.
4258         * libio/iovdprintf.c: Likewise.
4259         * libio/iovsprintf.c: Likewise.
4260         * libio/iovsscanf.c: Likewise.
4261         * libio/memstream.c: Likewise.
4262         * libio/obprintf.c: Likewise.
4263         * libio/oldfileops.c: Likewise.
4264         * libio/oldiofclose.c: Likewise.
4265         * libio/oldiofdopen.c: Likewise.
4266         * libio/oldiofopen.c: Likewise.
4267         * libio/oldiopopen.c: Likewise.
4268         * libio/oldstdfiles.c: Likewise.
4269         * libio/putc.c: Likewise.
4270         * libio/setbuf.c: Likewise.
4271         * libio/setlinebuf.c: Likewise.
4272         * libio/stdfiles.c: Likewise.
4273         * libio/strops.c: Likewise.
4274         * libio/vasprintf.c: Likewise.
4275         * libio/vscanf.c: Likewise.
4276         * libio/vsnprintf.c: Likewise.
4277         * libio/vswprintf.c: Likewise.
4278         * libio/wfiledoalloc.c: Likewise.
4279         * libio/wfileops.c: Likewise.
4280         * libio/wgenops.c: Likewise.
4281         * libio/wmemstream.c: Likewise.
4282         * libio/wstrops.c: Likewise.
4283         * libio/__fpurge.c: Likewise.
4284         * libio/__fsetlocking.c: Likewise.
4285         * assert/assert.c: Likewise.
4286         * debug/fgets_chk.c: Likewise.
4287         * debug/fgets_u_chk.c: Likewise.
4288         * debug/fread_chk.c: Likewise.
4289         * debug/fread_u_chk.c: Likewise.
4290         * debug/gets_chk.c: Likewise.
4291         * debug/obprintf_chk.c: Likewise.
4292         * debug/vasprintf_chk.c: Likewise.
4293         * debug/vdprintf_chk.c: Likewise.
4294         * debug/vsnprintf_chk.c: Likewise.
4295         * debug/vsprintf_chk.c: Likewise.
4296         * malloc/mtrace.c: Likewise.
4297         * misc/error.c: Likewise.
4298         * misc/syslog.c: Likewise.
4299         * stdio-common/asprintf.c: Likewise.
4300         * stdio-common/fxprintf.c: Likewise.
4301         * stdio-common/getw.c: Likewise.
4302         * stdio-common/isoc99_fscanf.c: Likewise.
4303         * stdio-common/isoc99_scanf.c: Likewise.
4304         * stdio-common/isoc99_vfscanf.c: Likewise.
4305         * stdio-common/isoc99_vscanf.c: Likewise.
4306         * stdio-common/isoc99_vsscanf.c: Likewise.
4307         * stdio-common/printf-prs.c: Likewise.
4308         * stdio-common/printf_fp.c: Likewise.
4309         * stdio-common/printf_fphex.c: Likewise.
4310         * stdio-common/printf_size.c: Likewise.
4311         * stdio-common/putw.c: Likewise.
4312         * stdio-common/scanf.c: Likewise.
4313         * stdio-common/sprintf.c: Likewise.
4314         * stdio-common/tmpfile.c: Likewise.
4315         * stdio-common/vfprintf.c: Likewise.
4316         * stdio-common/vfscanf.c: Likewise.
4317         * stdlib/strfmon_l.c: Likewise.
4318         * sunrpc/openchild.c: Likewise.
4319         * sunrpc/xdr_stdio.c: Likewise.
4320         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4321         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4322
4323 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4324
4325         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4326
4327         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4328         in the third column, to generate for the shared library an IFUNC
4329         that uses _dl_vdso_vsym.
4330         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4331         * Makeconfig (object-suffixes-noshared): New variable.
4332
4333         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4334         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4335         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4336         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4337
4338         [BZ #14132]
4339         * include/sys/time.h (__gettimeofday): Remove macro.
4340         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4341         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4342         Remove INTDEF.
4343         (__gettimeofday): Add libc_hidden_def.
4344         (gettimeofday): Add libc_hidden_weak.
4345         * sysdeps/mach/gettimeofday.c: Likewise.
4346         * sysdeps/posix/gettimeofday.c: Likewise.
4347         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4348         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4349         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4350         (__gettimeofday_internal): Remove strong_alias.
4351         (__gettimeofday): Add libc_hidden_def.
4352         (gettimeofday): Add libc_hidden_weak.
4353         * sysdeps/unix/syscalls.list (gettimeofday):
4354         Remove __gettimeofday_internal alias.
4355
4356 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4357             H.J. Lu  <hongjiu.lu@intel.com>
4358
4359         [BZ #12495]
4360         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4361         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4362         (largebin_index_32_big): New.
4363         (largebin_index): Use it for 16-byte alignment.
4364         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4365         correction with front_misalign.
4366
4367 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4368
4369         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4370         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4371         Likewise.
4372         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4373         Likewise.
4374         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4375         Likewise.
4376         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4377         Likewise.
4378         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4379         Likewise.
4380         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4381         Likewise.
4382         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4383         Likewise.
4384         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4385         Likewise.
4386         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4387         Likewise.
4388         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4389         Likewise.
4390         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4391         Likewise.
4392         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4393         Likewise.
4394
4395         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4396         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4397
4398 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4399
4400         [BZ #10846]
4401         [BZ #14036]
4402         * math/libm-test.inc (exp_test): Add test from bug 14036.
4403         (pow_test): Add test from bug 10846.
4404
4405         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4406         and other flags.
4407         (special_function): Do not include flags in test name.
4408         (parse_args): Likewise.
4409         * sysdeps/i386/fpu/libm-test-ulps: Update.
4410         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4411         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4412         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4413         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4414
4415         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4416         exceptions.
4417         * math/libm-test.inc ("Philosophy"): Update comment about
4418         exception testing.
4419         (UNDERFLOW_EXCEPTION): New macro.
4420         (UNDERFLOW_EXCEPTION_OK): Likewise.
4421         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4422         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4423         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4424         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4425         (INVALID_EXCEPTION_OK): Update value.
4426         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4427         (OVERFLOW_EXCEPTION_OK): Likewise.
4428         (IGNORE_ZERO_INF_SIGN): Likewise.
4429         (test_exceptions): Handle underflow exceptions.
4430         (acos_test): Update for underflow exception expectations.
4431         (cexp_test): Likewise.
4432         (clog_test): Likewise.
4433         (clog10_test): Likewise.
4434         (csqrt_test): Likewise.
4435         (ctan_test): Likewise.
4436         (ctanh_test): Likewise.
4437         (exp_test): Likewise.
4438         (exp10_test): Likewise.
4439         (exp2_test): Likewise.
4440         (expm1_test): Likewise.
4441         (fma_test): Likewise.
4442         (j0_test): Likewise.
4443         (jn_test): Likewise.
4444         (nexttoward_test): Likewise.
4445         (pow_test): Likewise.
4446         (scalbn_test): Likewise.
4447         (scalbln_test): Likewise.
4448         (tan_test): Likewise.
4449         (y1_test): Likewise.
4450         * sysdeps/i386/fpu/libm-test-ulps: Update.
4451         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4452
4453 2012-05-23  David S. Miller  <davem@davemloft.net>
4454
4455         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4456         (__libc_sigaction): Remove unused local variables.
4457
4458 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4459
4460         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4461
4462 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4463
4464         mktime: avoid signed integer overflow
4465         * time/mktime.c (__mktime_internal): Do not mishandle the case
4466         where diff == INT_MIN.
4467
4468         mktime: simplify computation of average
4469         * time/mktime.c (ranged_convert): Use new time_t_avg function
4470         instead of rolling our own (probably-slower) code.
4471
4472         mktime: do not assume signed right shift propagates sign bit
4473         * time/mktime.c (isdst_differ): New static function.
4474         (__mktime_internal): No need to normalize tm_isdst now.
4475         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4476         tm_isdst values.
4477
4478         mktime: merge another wrapv change from gnulib
4479         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4480         from some compilers.
4481
4482         mktime: remove incorrect attempt at unusual arithmetics
4483         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4484         The code didn't really work on such machines anyway.
4485         (TYPE_MINIMUM): Assume two's complement.
4486         (twos_complement_arithmetic): Verify that long_int and time_t
4487         are two's complement (or unsigned, in the latter case).
4488
4489         mktime: check signed shifts on long_int and time_t, too
4490         * time/mktime.c (SHR): Check that shifts work as desired
4491         on the types long_int and time_t too, as SHR is used on
4492         such types.
4493
4494         mktime: do not assume 'long' is wide enough
4495         * time/mktime.c (verify): Move decl up.
4496         (long_int): New type.
4497         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4498         to remove assumption in the code that 'long' is wide enough to
4499         store year values.  This assumption is not true on x32 and on
4500         some non-glibc platforms.
4501
4502         mktime: merge wrapv change from gnulib
4503         * time/mktime.c (WRAPV): New macro.
4504         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4505         (guess_time_tm, __mktime_internal): Do not assume that signed
4506         integer overflow wraps around; modern compilers generate code
4507         where this assumption is no longer valid.
4508
4509 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4510
4511         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4512         Replace "jmp L(pseudo_end)" with "ret".
4513         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4514         Likewise.
4515
4516 2012-05-23  Andreas Jaeger  <aj@suse.de>
4517
4518         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4519         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4520
4521 2012-05-23  Andreas Jaeger  <aj@suse.de>
4522             Maximilian Attems  <max@stro.at>
4523
4524         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4525         New macros.
4526
4527 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4528
4529         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4530         code so that pseudo_end is just ret and the stack pointer is
4531         correct also for static library in error case.
4532
4533 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4534
4535         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4536         move to syscalls.list.
4537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4541
4542         * manual/install.texi (Running make install): Do not mention Linux
4543         kernel version for which pt_chown is not needed.
4544         (Linux): Do not mention problems with nscd with 2.0 kernels.
4545         * INSTALL: Regenerated.
4546
4547 2012-05-23  Andreas Jaeger  <aj@suse.de>
4548
4549         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4550         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4551         macro.
4552         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4553         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4554         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4555         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4556         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4557         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4558         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4559         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4560         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4561         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4562         * sysdeps/unix/sysv/linux/bits/in.h
4563         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4564
4565 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4566
4567         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4568         (PREPARE_VERSION): Just use assert instead, it will be elided
4569         under [NDEBUG] anyway.
4570
4571 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4572
4573         * sysdeps/unix/sysv/linux/Makefile: Include
4574         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4575         (sysdep_routines): Remove sysctl.
4576         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4577         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4578         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4579         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4580         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4581
4582 2012-05-22  Andreas Jaeger  <aj@suse.de>
4583
4584         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4585         that pseudo_end is just ret and the stack pointer is correct also
4586         for static library in error case.
4587
4588 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4589
4590         [BZ #14122]
4591         * nss/nsswitch.c (defconfig_entries): New variable.
4592         (__nss_database_lookup): Don't leak defconfig entries.
4593         (nss_parse_service_list): Don't leak on error paths.
4594         (free_database_entries): New function.
4595         (free_defconfig): New function.
4596         (free_mem): Move common code to free_database_entries.
4597
4598 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4599
4600         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4601         Add arch_prctl.
4602         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4603
4604         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4605         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4606         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4607         New macro.
4608         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4609         (INTERNAL_SYSCALL_TYPES): Likewise.
4610         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4611         (LOAD_REGS_TYPES_[1-6]): Likewise.
4612         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4613         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4614
4615 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4616
4617         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4618         copysignl for GLIBC_2_0.
4619         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4620         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4621         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4622         logbl for GLIBC_2_0.
4623         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4624         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4625
4626 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4627
4628         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4629         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4630
4631         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4632         Use "neg %eax".
4633
4634         * time/mktime.c: Update copyright years.
4635
4636 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4637
4638         mktime: merge comment-quoting-style change from gnulib
4639         * time/mktime.c: Quote 'like this' in comments.
4640         The GNU coding standards suggest that we no longer quote `like this',
4641         as "`" and "'" are typically rendered asymmetrically nowadays.
4642         The typical gnulib style is to quote 'like this' when quoting
4643         code, and "like this" when quoting English.
4644
4645         * time/mktime.c (compile-command): Add "-I.".
4646
4647         mktime: merge mktime-internal.h change from gnulib
4648         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4649
4650         mktime: merge time_r change from gnulib
4651         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4652
4653         mktime: merge DEBUG change from gnulib
4654         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4655         case system <time.h> has a #define.
4656
4657         mktime: merge <sys/types.h> change from gnulib
4658         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4659         since <time.t> is now guaranteed to define time_t.
4660
4661         mktime: merge HAVE_CONFIG_H change from gnulib
4662         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4663
4664 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4665
4666         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4667         Use "neg %eax".
4668
4669         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4670         __rlim_t cast.
4671         (struct rusage): Use anonymous union to pad each field to
4672         __syscall_slong_t.
4673
4674 2012-05-21  David S. Miller  <davem@davemloft.net>
4675
4676         * Makefules (o-iterator): Remove .s cases.
4677         (compile-command.s): Delete.
4678         (COMPILE.s): Delete.
4679         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4680
4681 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4682
4683         * configure.in (libc_cv_predef_stack_protector): Only consider
4684         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4685         * configure: Regenerated.
4686
4687 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4688
4689         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4690         New macro.  Use R*LP on int and pointer.
4691         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4692         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4693         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4694         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4695
4696         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4697         [__WORDSIZE_TIME64_COMPAT32] instead of
4698         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4699         (struct utmp): Likewise.
4700         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4701         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4702         Renamed to ...
4703         (__WORDSIZE_TIME64_COMPAT32): This.
4704         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4705         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4706         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4707         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4708         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4709         (__WORDSIZE_TIME64_COMPAT32): New macro.
4710
4711 2012-05-21  Andreas Jaeger  <aj@suse.de>
4712
4713         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4714         only if [SHARED]. Add prototype for __wcschr_ia32.
4715
4716 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4717
4718         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4719         of %rbp unmolested in the jmp_buf while mangling the low bits.
4720         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4721         unmolested high bits of %rbp while demangling the low bits.
4722         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4723
4724 2012-05-21  Andreas Jaeger  <aj@suse.de>
4725
4726         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4727         * sunrpc/svc_simple.c: Use it for registerrpc.
4728         * sunrpc/xcrypt.c: Use it for passwd2des.
4729
4730         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4731
4732 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4733
4734         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4735         Don't define if [__SYSCALL_WORDSIZE != 32].
4736         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4737         New macro.
4738
4739 2012-05-21  Bruno Haible  <bruno@clisp.org>
4740             Andreas Jaeger  <aj@suse.de>
4741
4742         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4743         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4744         inptr and inend for must_buffer_ch.
4745         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4746         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4747         * stdio-common/Makefile (tests): Remove bug15.
4748         (bug15-ENV): Remove macro.
4749         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4750         anymore.
4751
4752 2012-05-19  Andreas Jaeger  <aj@suse.de>
4753             Roland McGrath  <roland@hack.frob.com>
4754
4755         * manual/contrib.texi: Completely rewritten. It contains now an
4756         alphabetical list of contributors and their contributions.
4757
4758 2012-05-21  Richard Henderson  <rth@twiddle.net>
4759
4760         * misc/getauxval.c (__getauxval): Use unsigned long int.
4761         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4762         (getauxval): Use unsigned long int.
4763
4764 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4765
4766         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4767
4768 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4769
4770         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4771         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4772         __alignof__ (long double).
4773
4774 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4775
4776         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4777
4778 2012-05-20  Richard Henderson  <rth@twiddle.net>
4779
4780         * misc/getauxval.c: New file.
4781         * misc/sys/auxv.h: New file.
4782         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4783         (routines): Add getauxval.
4784         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4785         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4786         * elf/dl-sysdep.c (_dl_auxv): Remove.
4787         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4788         * elf/dl-support.c (_dl_auxv): New variable.
4789         (_dl_aux_init): Initialize it.
4790         * manual/startup.texi (Auxiliary Vector): New node.
4791         * sysdeps/generic/bits/hwcap.h: New file.
4792         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4793         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4794         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4795         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4796         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4797         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4799         Update.
4800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4801         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4802         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4803         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4804         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4805         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4806         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4807         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4808
4809 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4810
4811         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4812
4813 2012-05-19  David S. Miller  <davem@davemloft.net>
4814
4815         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4816
4817 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4818
4819         [BZ #14123]
4820         * math/s_ccosh.c: Include <float.h>
4821         (__ccosh): Avoid internal overflow calculating sinh and cosh
4822         values before multiplying by sin and cos values.
4823         * math/s_ccoshf.c: Likewise.
4824         * math/s_ccoshl.c: Likewise.
4825         * math/s_csin.c: Likewise.
4826         * math/s_csinf.c: Likewise.
4827         * math/s_csinl.c: Likewise.
4828         * math/s_csinh.c: Likewise.
4829         * math/s_csinhf.c: Likewise.
4830         * math/s_csinhl.c: Likewise.
4831         * math/libm-test.inc (ccos_test): Add more tests.
4832         (ccosh_test): Likewise.
4833         (csin_test): Likewise.
4834         (csinh_test): Likewise.
4835         * sysdeps/i386/fpu/libm-test-ulps: Update.
4836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4837
4838 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4839
4840         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4841         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4842
4843         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4844
4845 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4846
4847         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4848         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4849         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4850         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4851         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4852         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4853         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4854         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4855         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4856         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4857         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4858         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4859         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4860         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4861         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4862         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4863         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4864         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4865         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4866         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4867         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4868         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4869         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4870         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4871         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4872         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4873         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4874         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4875         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4876         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4877         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4878
4879 2012-05-18  Andreas Jaeger  <aj@suse.de>
4880
4881         * csu/.gitignore: Delete.
4882
4883 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4884
4885         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4886         (timex): Use __syscall_slong_t.
4887
4888 2012-05-18  Andreas Jaeger  <aj@suse.de>
4889             Carlos O'Donell  <carlos_odonell@mentor.com>
4890
4891         * manual/install.texi (Configuring and compiling): Update
4892         description about files modified in the source directory.
4893         * INSTALL: Regenerated.
4894
4895 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4896
4897         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4898         value.  Use "or" to set return value to -1.
4899         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4900         negate return value.
4901
4902 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4903
4904         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4905         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4906         failure if the compiler has Graphite support disabled.
4907         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4908         Likewise.
4909         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4910         CFLAGS-memmove.c): Likewise.
4911         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4912         Likewise.
4913
4914 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4915
4916         * sysdeps/x86_64/x32/_itoa.h: New file.
4917
4918         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4919         getdents system call only if kernel and user dirents have the
4920         same d_ino and d_off.
4921
4922         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4923         LLONG_MAX != LONG_MAX.
4924         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4925         (_fitoa_word): Likewise.
4926
4927         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
4928         years.
4929         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
4930         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
4931         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
4932
4933         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
4934         include <bits/wordsize.h>.  Check __x86_64__ instead of
4935         __WORDSIZE.
4936         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
4937         if __x86_64__ is defined.  Use anonymous union on fpstate.
4938
4939         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
4940         anonymous union.
4941
4942 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
4943
4944         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
4945         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
4946         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
4947         Refer to _rtld_local_ro instead of _rtld_global_ro.
4948         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
4949         Likewise.
4950         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
4951         Likewise.
4952         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
4953         Likewise.
4954         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
4955         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
4956         of _rtld_global, and rtld_progname instead of _dl_argv[0].
4957
4958         * sysdeps/powerpc/powerpc32/dl-machine.c
4959         (__elf_machine_runtime_setup) [PROF]: Don't reference
4960         _dl_prof_resolve.
4961
4962 2012-05-18  Andreas Jaeger  <aj@suse.de>
4963
4964         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
4965         function only available for GCCs before 3.4 since GCC 3.4
4966         introduced a builtin.
4967         (lrint): Likewise.
4968         (llrintf): Likewise.
4969         (llrint): Likewise.
4970         (fmaxf): Likewise.
4971         (fmax): Likewise.
4972         (fminf): Likewise.
4973         (fmin): Likewise.
4974         (rint): Likewise.
4975         (rintf): Likewise.
4976         (nearbyint): Likewise.
4977         (nearbyintf): Likewise.
4978         (ceil): Likewise.
4979         (ceilf): Likewise.
4980         (floor): Likewise.
4981         (floorf): Likewise.
4982
4983 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4984
4985         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
4986         on both fields and cast pointer to __syscall_ulong_t.
4987
4988         * bits/types.h (__fsword_t): New type.
4989         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
4990         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
4991         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4992         (__FSWORD_T_TYPE): Likewise.
4993         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4994         (__FSWORD_T_TYPE): Likewise.
4995         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4996         (__FSWORD_T_TYPE): Likewise.
4997         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
4998         (__FSWORD_T_TYPE): Likewise.
4999         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5000         __SWORD_TYPE with __fsword_t.
5001         (statfs64): Likewise.
5002
5003 2012-05-17  David S. Miller  <davem@davemloft.net>
5004
5005         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5006
5007 2012-05-17  Andreas Jaeger  <aj@suse.de>
5008
5009         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5010         warning.
5011
5012 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5013
5014         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5015
5016 2012-05-17  Andreas Jaeger  <aj@suse.de>
5017
5018         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5019         when it is used.
5020
5021 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5022
5023         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5024
5025 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5026
5027         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5028         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5029
5030 2012-05-17  Andreas Jaeger  <aj@suse.de>
5031             Carlos O'Donell  <carlos_odonell@mentor.com>
5032
5033         [BZ #14059]
5034         * sysdeps/x86_64/multiarch/init-arch.h
5035         (bit_YMM_Usable): Rename to...
5036         (bit_AVX_Usable): ... this.
5037         (bit_FMA4_Usable): New macro.
5038         (bit_XMM_state): New macro.
5039         (bit_YMM_state): New macro.
5040         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5041         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5042         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5043         (CPUID_OSXSAVE): New macro.
5044         (CPUID_AVX): New macro.
5045         (CPUID_FMA4): New macro.
5046         (index_YMM_Usable): Rename to...
5047         (index_AVX_Usable): ... this.
5048         (HAS_AVX): Use HAS_ARCH_FEATURE.
5049         (HAS_FMA4): Likewise.
5050         (HAS_YMM_USABLE): Remove.
5051         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5052         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5053         are present.
5054         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5055         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5056         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5057         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5058         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5059
5060 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5061
5062         * math/libm-test.c: Support platforms without multiple rounding modes.
5063         * math/bug-nextafter.c: Support platforms without FP exceptions.
5064         * math/bug-nexttoward.c: Likewise.
5065         * math/test-fenv.c: Likewise.
5066         * math/test-misc.c: Likewise.
5067         * stdlib/bug-getcontext.c: Likewise.
5068
5069 2012-05-17  Andreas Jaeger  <aj@suse.de>
5070
5071         * manual/examples/search.c (critter_cmp): Change signature to
5072         avoid warnings.
5073         * manual/string.texi (Collation Functions): Likewise.
5074
5075 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5076
5077         * bits/types.h: Fold copyright years.
5078         * bits/typesizes.h: Likewise.
5079         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5080         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5081         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5082         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5083         * time/time.h: Likewise.
5084
5085 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5086
5087         [BZ #208]
5088         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5089         in instead of returning them.  Return void.
5090         (__libc_mallinfo): Accumulate over all arenas.
5091         (__malloc_stats): Adjust for change in int_mallinfo interface.
5092
5093 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5094
5095         [BZ #10375]
5096         * configure.in (NM): Add AC_CHECK_TOOL for it.
5097         (libc_extra_cflags): New substituted variable.
5098         Check for -fstack-protector being used implicitly.
5099         * configure: Regenerated.
5100         * config.make.in (config-extra-cflags): New variable,
5101         gets @libc_extra_cflags@.
5102         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5103
5104         [BZ #10375]
5105         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5106         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5107         * configure: Regenerated.
5108         * config.make.in (CPPUNDEFS): New substituted variable.
5109         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5110         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5111         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5112
5113 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5114
5115         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5116         (mq_attr): Use __syscall_slong_t.
5117
5118 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5119
5120         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5121         Check __x86_64__ instead of __WORDSIZE.
5122         (_STAT_VER_LINUX): Likewise.
5123         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5124         __syscall_ulong_t and __syscall_slong_t.
5125         (stat64): Likewise.
5126
5127 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5128
5129         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5130
5131 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5132
5133         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5134
5135 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5136
5137         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5138         __syscall_ulong_t.
5139
5140         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5141         include <bits/wordsize.h>.  Check __x86_64__ instead of
5142         __WORDSIZE.
5143         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5144         defined.
5145         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5146
5147         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5148         include <bits/wordsize.h>.  Check __x86_64__ instead of
5149         __WORDSIZE.
5150         (user_regs_struct): Use "__extension__ unsigned long long"
5151         instead of "unsigned long" if __x86_64__ is defined.
5152         (user): Likewise.  Pad after pointer field if __ILP32__ is
5153         defined.
5154
5155 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5156
5157         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5158         versions 5 to 9.
5159         * configure: Regenerated.
5160         * manual/install.texi (texinfo): Increase version requirement to
5161         4.5 or later.
5162         * INSTALL: Regenerated.
5163
5164         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5165
5166 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5167
5168         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5169
5170         * sysdeps/x86_64/x32/ffs.c: New file.
5171
5172         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5173         __syscall_ulong_t.
5174         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5175         defined.  Use __syscall_ulong_t.
5176         (shminfo): Use __syscall_ulong_t.
5177         (shm_info): Likewise.
5178
5179         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5180         __syscall_ulong_t.
5181
5182         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5183         <bits/wordsize.h>.
5184         (msgqnum_t): Use __syscall_ulong_t.
5185         (msglen_t): Likewise.
5186         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5187         __syscall_ulong_t.
5188
5189         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5190         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5191
5192         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5193
5194         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5195         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5196
5197         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5198         __syscall_slong_t.
5199
5200         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5201         include <bits/wordsize.h>.  Check __x86_64__ instead of
5202         __WORDSIZE.
5203
5204         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5205         "unsigned long long int" if __x86_64__ is defined.
5206         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5207
5208         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5209         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5210         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5211
5212         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5213         <stdint.h>.
5214         (GET_PC): Cast to uintptr_t first.
5215         (GET_FRAME): Likewise.
5216         (GET_STACK): Likewise.
5217
5218         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5219         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5220         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5221         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5222         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5223         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5224         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5225         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5226         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5227         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5228         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5229         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5230         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5231         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5232         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5233         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5234         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5235         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5236         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5237         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5238         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5239         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5240         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5241         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5242         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5243         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5244         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5245         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5246         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5247
5248 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5249
5250         * Makerules (+depfiles): Also collect depfiles from .oS in
5251         $(extra-objs).
5252         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5253         .oS, $(libnldbl-routines)).
5254
5255         * Makerules (native-compile-mkdep-flags): Define.
5256         * sunrpc/Makefile (extra-objs): Add $(addprefix
5257         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5258         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5259         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5260         calling $(make-target-directory).
5261
5262 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5263
5264         * bits/types.h (__snseconds_t): Removed.
5265         * time/time.h (struct timespec): Replace __snseconds_t with
5266         __syscall_slong_t.
5267         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5268         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5269         Likewise.
5270         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5271         (__SNSECONDS_T_TYPE): Likewise.
5272         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5273         (__SNSECONDS_T_TYPE): Likewise.
5274         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5275         (__SNSECONDS_T_TYPE): Likewise.
5276
5277 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5278
5279         * sysdeps/mach/hurd/bits/typesizes.h
5280         (__SYSCALL_SLONG_TYPE): New macro.
5281         (__SYSCALL_ULONG_TYPE): Likewise.
5282
5283 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5284
5285         * bits/types.h (__syscall_slong_t): New type.
5286         (__syscall_ulong_t): Likewise.
5287
5288         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5289         (__SYSCALL_ULONG_TYPE): Likewise.
5290         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5291         (__SYSCALL_SLONG_TYPE): Likewise.
5292         (__SYSCALL_ULONG_TYPE): Likewise.
5293         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5294         (__SYSCALL_SLONG_TYPE): Likewise.
5295         (__SYSCALL_ULONG_TYPE): Likewise.
5296         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5297         (__SYSCALL_SLONG_TYPE): Likewise.
5298         (__SYSCALL_ULONG_TYPE): Likewise.
5299
5300 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5301
5302         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5303         Add sigaltstack-offsets.sym.
5304         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5305         <sigaltstack-offsets.h>.
5306         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5307         longjmp_msg pointer.
5308         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5309         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5310         signal stack.
5311         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5312
5313 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5314
5315         * elf/stackguard-macros.h: Remove file.
5316         * sysdeps/generic/stackguard-macros.h: New file.
5317         * sysdeps/i386/stackguard-macros.h: Likewise.
5318         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5319         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5320         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5321         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5322         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5323         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5324         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5325         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5326         <elf/stackguard-macros.h>.
5327
5328         [BZ #14109]
5329         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5330         __aligned__ in attribute.
5331         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5332         (gregset_t): Likewise.
5333
5334 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5335
5336         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5337         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5338         * sysdeps/x86_64/x32/Implies-after: New file.
5339
5340 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5341
5342         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5343         and access return value for _dl_profile_fixup.  Use R10_LP to
5344         load frame size.
5345
5346 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5347
5348         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5349
5350 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5351
5352         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5353         * sysdeps/x86_64/x32/sysdep.h: New file.
5354
5355 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5356
5357         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5358         * sysdeps/x86_64/setjmp.S: Likewise.
5359
5360 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5361
5362         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5363         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5364         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5365         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5366         remove unused global constant.
5367
5368 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5369
5370         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5371         include of <not-cancel.h>.
5372
5373 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5374
5375         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5376
5377 2012-05-15  Jeff Law  <law@redhat.com>
5378             Andreas Jaeger  <aj@suse.de>
5379
5380         [BZ #13594]
5381         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5382         out from...
5383         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5384         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5385         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5386         code changing __hst_map_handle.map.
5387
5388 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5389
5390         * configure.in (sysnames): Look for Implies-before and Implies-after
5391         files.
5392         * configure: Regenerated.
5393
5394 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5395
5396         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5397         8-byte data alignment with LP_SIZE alignment.
5398
5399 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5400
5401         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5402         into R10_LP.
5403
5404 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5405
5406         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5407
5408 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5409
5410         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5411         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5412         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5413         Likewise.
5414         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5415
5416 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5417
5418         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5419         (stackinfo_sub_sp): Likewise.
5420
5421 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5422
5423         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5424         RAX_LP.
5425
5426 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5427
5428         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5429         into R*_LP.
5430
5431 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5432
5433         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5434         sizes into R*_LP.
5435
5436 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5437
5438         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5439
5440 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5441
5442         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5443         into R11_LP and load __x86_64_shared_cache_size_half into
5444         R8_LP.
5445
5446 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5447
5448         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5449         R8_LP.
5450
5451 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5452
5453         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5454         logb for POWER7.
5455         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5456         logbf for POWER7.
5457         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5458         logbl for POWER7.
5459         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5460         powerpc32/power7/fpu/s_logb.c via #include.
5461         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5462         powerpc32/power7/fpu/s_logbf.c via #include.
5463         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5464         powerpc32/power7/fpu/s_logbl.c via #include.
5465
5466 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5467
5468         * README.libm: Remove file.
5469
5470 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5471
5472         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5473         count for x32.  Use R*_LP and omit operand-size suffix.
5474
5475 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5476
5477         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5478         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5479         * sysdeps/x86_64/x32/shlib-versions: New file.
5480
5481 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5482
5483         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5484         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5485         Use _dl_fatal_printf instead.
5486
5487 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5488
5489         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5490         set if not set by the user.  Do not allow for being unset.
5491         * sysdeps/unix/sysv/linux/configure: Regenerated.
5492
5493 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5494
5495         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5496         the `q' suffix from lea and replace .quad with ASM_ADDR.
5497
5498 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5499
5500         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5501         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5502         instead of $17.
5503         (PTR_DEMANGLE): Likewise.
5504
5505 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5506
5507         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5508         (LP_OP): Likewise.
5509         (ASM_ADDR): Likewise.
5510         (RAX_LP): Likewise.
5511         (RBP_LP): Likewise.
5512         (RBX_LP): Likewise.
5513         (RCX_LP): Likewise.
5514         (RDI_LP): Likewise.
5515         (RSI_LP): Likewise.
5516         (RSP_LP): Likewise.
5517         (R8_LP): Likewise.
5518         (R9_LP): Likewise.
5519         (R10_LP): Likewise.
5520         (R10_LP): Likewise.
5521         (R11_LP): Likewise.
5522         (R12_LP): Likewise.
5523         (R13_LP): Likewise.
5524         (R14_LP): Likewise.
5525         (R15_LP): Likewise.
5526
5527 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5528
5529         * sysdeps/x86_64/x32/dl-machine.h: New file.
5530
5531 2012-05-14  Andreas Jaeger  <aj@suse.de>
5532
5533         * manual/Makefile (subdir): Remove export of subdir.
5534         (all): Remove target.
5535         (.PHONY): Remove all from list.
5536         (mkinstalldirs): Remove.
5537         (.PHONY): Remove installdirs from list.
5538         ($(inst_infodir)/libc.info): Use make-target-directory.
5539         (installdirs): Remove.
5540         (subdir_%): Remove.
5541         (glibc-targets): Remove.
5542         (lib): Remove.
5543         (stubs): Remove.
5544         ($(objpfx)stubs ../po/manual.pot): Remove.
5545         ($(objpfx)stamp%): Remove.
5546         (make-target-directory): Remove.
5547         (subdir_install): Remove.
5548         (routines): Remove.
5549         (aux): Remove.
5550         (sources): Remove.
5551         (objects): Remove.
5552         (headers): Remove.
5553
5554         [BZ #13750]
5555         * manual/.gitignore: Remove, it's not needed anymore.
5556         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5557         all files in it.
5558         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5559         directory.
5560         (texis): Renamed to $(objpfx)texis.
5561         (texis-path): New, contains path to generated files.
5562         (chapters.%): Use texis-path for complete path, add extra argument
5563         libc-texinfo.sh.
5564         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5565         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5566         (summary,texi, stamp-summary): Use complete path of
5567         files. Generate files in build dir.
5568         (dir-add.texi): Build in build dir.
5569         (libm-err.texi,stamp-libm-err): Likewise.
5570         (version.texi, stamp-version): Likewise.
5571         (.%c.texi): Likewise.
5572         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5573         (mostlyclean): Remove target.
5574         (realclean): Remove target.
5575         (generated): Add new variable with contents from mostlyclean and
5576         realclean, remove entries duplicated in common-mostlyclean, add
5577         stamp-libm-err and stamp-version.
5578         (generated-dirs): Add libc directory.
5579         ($(inst_infodir)/libc.info): Install files from build dir.
5580
5581         * manual/install.texi (Configuring and compiling): Adjust since
5582         the info files are not part of the tar ball anymore.
5583
5584 2012-05-14  Andreas Jaeger  <aj@suse.de>
5585
5586         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5587         variable.
5588
5589 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5590
5591         [BZ #13717]
5592         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5593         to 2.2.0 where earlier.
5594         * sysdeps/unix/sysv/linux/configure: Regenerated.
5595         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5596         Remove conditional code.
5597         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5598         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5599         Remove conditional code.
5600         [!__NR_lchown]: Likewise.
5601         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5602         [__NR_lchown]: Likewise.
5603         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5604         comment referencing __ASSUME_LCHOWN_SYSCALL.
5605         * sysdeps/unix/sysv/linux/i386/sigaction.c
5606         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5607         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5608         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5609         Remove conditional code.
5610         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5611         (__protocol_available): Remove #if 0 code.
5612         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5613         conditional code.
5614         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5615         * sysdeps/unix/sysv/linux/kernel-features.h
5616         (__ASSUME_GETCWD_SYSCALL): Don't define.
5617         (__ASSUME_REALTIME_SIGNALS): Likewise.
5618         (__ASSUME_PREAD_SYSCALL): Likewise.
5619         (__ASSUME_PWRITE_SYSCALL): Likewise.
5620         (__ASSUME_POLL_SYSCALL): Likewise.
5621         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5622         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5623         non-SPARC.
5624         (__ASSUME_SIOCGIFNAME): Don't define.
5625         (__ASSUME_MSG_NOSIGNAL): Likewise.
5626         (__ASSUME_SENDFILE): Define unconditionally.
5627         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5628         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5629         conditional code.
5630         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5631         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5632         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5633         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5634         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5635         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5636         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5638         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5639         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5641         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5642         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5644         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5645         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5647         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5648         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5650         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5651         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5653         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5654         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5656         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5657         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5659         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5660         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5661         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5662         Remove conditional code.
5663         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5664         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5665         Remove conditional code.
5666         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5667         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5668         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5669         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5670         Remove conditional code.
5671         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5672         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5673         Remove conditional code.
5674         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5675         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5676         Remove conditional code.
5677         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5678         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5679         Remove conditional code.
5680         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5681         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5682         Remove conditional code.
5683         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5684         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5685         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5686         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5687         * sysdeps/unix/sysv/linux/sigaction.c
5688         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5689         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5690         * sysdeps/unix/sysv/linux/sigpending.c
5691         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5692         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5693         * sysdeps/unix/sysv/linux/sigprocmask.c
5694         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5695         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5696         * sysdeps/unix/sysv/linux/sigsuspend.c
5697         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5698         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5699         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5700         (__libc_missing_rt_sigs): Remove.
5701         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5702         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5703         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5704         Remove conditional code.
5705         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5706         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5707         return 1.
5708         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5709         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5710         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5711         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5712
5713 2012-05-14  Andreas Jaeger  <aj@suse.de>
5714
5715         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5716         it's not used in glibc.
5717         (__coshm1): Likewise.
5718         (__acosh1p): Likewise.
5719         (__sgn): Likewise.
5720
5721         * manual/string.texi (Copying and Concatenation): Add missing
5722         variable in concat example.
5723         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5724
5725 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5726
5727         [BZ #14103]
5728         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5729         __builtin_clzl with __builtin_clzll.
5730
5731 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5732
5733         [BZ #14104]
5734         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5735         libc_freeres_ptr.
5736
5737 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5738
5739         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5740         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5741         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5742         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5743
5744 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5745
5746         * NEWS: Update ia64 info.
5747
5748 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5749
5750         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5751         used as bcopy.
5752
5753 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5754
5755         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5756         * sysdeps/unix/syscalls.list (dup3): Likewise.
5757         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5758         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5759
5760 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5761
5762         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5763         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5764
5765 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5766
5767         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5768         thread pointer.
5769         (TLS_IE): Use mov/add instead of movq/addq to load thread
5770         pointer.
5771         (TLS_GD_PREFIX): New.
5772         (TLS_GD): Use it.
5773
5774 2012-05-11  David S. Miller  <davem@davemloft.net>
5775
5776         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5777         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5778         (_FPU_SETCW): Likewise.
5779
5780 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5781
5782         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5783         is 32-byte aligned.
5784
5785 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5786
5787         [BZ #11837]
5788         * iconvdata/gb18030.c: Update tables.
5789         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5790         characters specially.
5791         (BODY for TO_LOOP): Add encoding of missing ranges.
5792
5793 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5794
5795         [BZ #13673]
5796         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5797         * sysdeps/mach/hurd/dup3.c: Likewise.
5798         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5799         * sysdeps/powerpc/memmove.c:: Likewise.
5800
5801 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5802
5803         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5804         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5805
5806 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5807
5808         * elf/elf.h (R_X86_64_RELATIVE64): New.
5809         (R_X86_64_NUM): Updated.
5810         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5811         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5812         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5813         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5814         tst-quad1pie tst-quad2pie
5815         (modules-names): Add tst-quadmod1 tst-quadmod2.
5816         ($(objpfx)tst-quad1): New dependency.
5817         ($(objpfx)tst-quad2): Likewise.
5818         ($(objpfx)tst-quad1pie): Likewise.
5819         ($(objpfx)tst-quad2pie): Likewise.
5820         * sysdeps/x86_64/tst-quad1.c: New file.
5821         * sysdeps/x86_64/tst-quad1pie.c: New file.
5822         * sysdeps/x86_64/tst-quad2.c: Likewise.
5823         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5824         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5825         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5826         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5827         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5828
5829 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5830
5831         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5832         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5833         * streams/stropts.h (t_scalar_t): Define type.
5834
5835         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5836         (_PATH_PRESERVE): Set to "/var/lib".
5837         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5838
5839         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5840         instead of int.
5841
5842         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5843         if __dir_mkfile succeeded.
5844
5845         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5846         checking for _hurd_dtablesize.  Unlock it right after having
5847         finished _hurd_dtable allocation.
5848
5849 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5850
5851         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5852         * sysdeps/mach/hurd/configure: Regenerated.
5853         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5854         special-casing to...
5855         * sysdeps/gnu/configure.in: ... this new file.
5856         * sysdeps/unix/sysv/linux/configure: Regenerated.
5857         * sysdeps/gnu/configure: New generated file.
5858
5859         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5860         for Linux: use nsec instead of usec, as well as:
5861         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5862         members of type struct timespec.
5863         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5864         New macros.
5865         (struct stat64): Likewise.
5866         (_STATBUF_ST_NSEC): New macro.
5867         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5868
5869         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5870         __strtoul_internal rather than strtoul.
5871
5872 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5873
5874         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5875         and reject them.
5876
5877 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5878
5879         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5880         which preserves existing values.
5881         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5882
5883 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5884
5885         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5886         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5887         greater than FD_SETSIZE.
5888
5889 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5890
5891         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5892         allocated, call __vm_protect to finish enabling the existing space, and
5893         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5894         allocate the remainder.
5895
5896 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5897
5898         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5899         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5900
5901 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5902
5903         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5904         sysdeps/mach/hurd/readlink.c.
5905
5906         * posix/tst-sysconf.c (posix_options): Only use
5907         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5908         _POSIX_SYNCHRONIZED_IO when they are defined
5909         * sysdeps/mach/hurd/bits/posix_opt.h:
5910         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5911         (_XOPEN_REALTIME): Undefine macro.
5912         (_XOPEN_REALTIME_THREADS): Undefine macro.
5913         (_XOPEN_SHM): Undefine macro.
5914         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5915         macro to -1.
5916         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5917         macro to -1.
5918         (_POSIX_ASYNC_IO): Undefine macro.
5919         (_POSIX_PRIORITIZED_IO): Undefine macro.
5920         (_POSIX_SPIN_LOCKS): Define macro to -1.
5921
5922         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5923         SA_NODEFER, SA_RESETHAND.
5924         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
5925         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
5926         F_DUPFD_CLOEXEC.
5927
5928 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5929
5930         * elf/Makefile (pldd-modules): Define unconditionally.
5931
5932 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5933
5934         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
5935
5936 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5937
5938         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5939         Return ENOENT when name is empty.
5940         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
5941
5942 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5943
5944         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
5945
5946         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
5947
5948 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5949
5950         Fix mlock in all cases except non-readable pages.
5951         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
5952         instead of VM_PROT_ALL as parameter to __vm_wire function.
5953
5954         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
5955         (__mkdir): When path is `/', just fail with EEXIST.
5956         * sysdeps/mach/hurd/mkdirat.c: Likewise.
5957
5958 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5959
5960         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
5961         <sys/uio.h> (for writev).
5962         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
5963         and <sys/param.h> (for MIN).
5964
5965 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5966
5967         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
5968         REQUESTED_TIME.  Properly set the remaining time and return EINTR
5969         if interrupted.
5970
5971 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5972
5973         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
5974         Depend on against $(link-rpcuserlibs).
5975
5976 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5977
5978         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
5979         (__libc_stack_end): Do not use attribute_relro.
5980         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
5981         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
5982         to libthread-provided value.
5983         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
5984         attribute_relro.
5985
5986 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5987
5988         [BZ #3748]
5989         * bits/libc-lock.h (__libc_once_get): New macro.
5990         * sysdeps/mach/bits/libc-lock.h: Likewise.
5991         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
5992         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
5993         instead of using implementation details.
5994
5995         * libio/fileops.c: Unconditionally include <kernel-features.h>.
5996         * libio/freopen.c: Likewise.
5997         * libio/freopen64.c: Likewise.
5998         * misc/syslog.c: Likewise.
5999         * nscd/connections.c: Likewise.
6000         * nscd/netgroupcache.c: Likewise.
6001         * sysdeps/posix/getcwd.c: Likewise.
6002
6003 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6004
6005         * math/w_ilogbf.c: Add #include <limits.h>.
6006
6007 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6008
6009         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6010         path instead of returning without unlocking.
6011
6012         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6013         immediate-write ioctls.
6014         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6015
6016 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6017
6018         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6019         __builtin_frame_address instead of making assumptions about the
6020         location of the return address relative to DATA.  Force early load of
6021         the return address.
6022         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6023         __builtin_frame_address.
6024
6025         dup3 for GNU Hurd.
6026         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6027         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6028         implement dup3 and do some further code clean-ups.
6029         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6030         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6031
6032 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6033
6034         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6035
6036         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6037         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6038         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6039         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6040         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6041         d->port.lock.
6042
6043         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6044         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6045         when handler == SIG_ERR, not when handler != SIG_ERR.
6046
6047 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6048
6049         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6050         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6051         definitions.
6052
6053         accept4 for GNU Hurd.
6054         * include/sys/socket.h (__libc_accept4): New prototype.
6055         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6056         to implement __libc_accept4.
6057         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6058         __libc_accept4.
6059         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6060
6061         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6062         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6063         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6064         signal-defines.sym.
6065
6066 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6067
6068         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6069
6070 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6071
6072         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6073         assertion on O_CLOEXEC flag.
6074         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6075         * hurd/intern-fd.c: Likewise.
6076         * hurd/port2fd.c: Likewise.
6077
6078 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6079
6080         [BZ #3906]
6081         * bits/in.h (IPV6_PKTINFO): Define new macro.
6082         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6083
6084 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6085
6086         [BZ #13954]
6087         [BZ #13955]
6088         [BZ #13956]
6089         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6090         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6091         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6092         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6093         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6094         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6095         * math/libm-test.inc (logb_test) : Additional logb tests.
6096
6097 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6098             Andreas Jaeger  <aj@suse.de>
6099
6100         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6101         * configure: Regenerated.
6102         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6103         * config.make.in (link-obsolete-rpc): New substituted variable.
6104         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6105         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6106         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6107         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6108         so that libc.a contains the symbols.
6109         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6110         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6111         * sunrpc/auth_none.c: Likewise.
6112         * sunrpc/auth_unix.c: Likewise.
6113         * sunrpc/authdes_prot.c: Likewise.
6114         * sunrpc/authuxprot.c: Likewise.
6115         * sunrpc/clnt_gen.c: Likewise.
6116         * sunrpc/clnt_perr.c: Likewise.
6117         * sunrpc/clnt_raw.c: Likewise.
6118         * sunrpc/clnt_simp.c: Likewise.
6119         * sunrpc/clnt_tcp.c: Likewise.
6120         * sunrpc/clnt_udp.c: Likewise.
6121         * sunrpc/clnt_unix.c: Likewise.
6122         * sunrpc/des_crypt.c: Likewise.
6123         * sunrpc/des_soft.c: Likewise.
6124         * sunrpc/get_myaddr.c: Likewise.
6125         * sunrpc/key_call.c: Likewise.
6126         * sunrpc/key_prot.c: Likewise.
6127         * sunrpc/netname.c: Likewise.
6128         * sunrpc/pm_getmaps.c: Likewise.
6129         * sunrpc/pm_getport.c: Likewise.
6130         * sunrpc/pmap_clnt.c: Likewise.
6131         * sunrpc/pmap_prot.c: Likewise.
6132         * sunrpc/pmap_prot2.c: Likewise.
6133         * sunrpc/pmap_rmt.c: Likewise.
6134         * sunrpc/publickey.c: Likewise.
6135         * sunrpc/rpc_cmsg.c: Likewise.
6136         * sunrpc/rpc_common.c: Likewise.
6137         * sunrpc/rpc_dtable.c: Likewise.
6138         * sunrpc/rpc_prot.c: Likewise.
6139         * sunrpc/rpc_thread.c: Likewise.
6140         * sunrpc/rtime.c: Likewise.
6141         * sunrpc/svc.c: Likewise.
6142         * sunrpc/svc_auth.c: Likewise.
6143         * sunrpc/svc_raw.c: Likewise.
6144         * sunrpc/svc_run.c: Likewise.
6145         * sunrpc/svc_tcp.c: Likewise.
6146         * sunrpc/svc_udp.c: Likewise.
6147         * sunrpc/svc_unix.c: Likewise.
6148         * sunrpc/svcauth_des.c: Likewise.
6149         * sunrpc/xcrypt.c: Likewise.
6150         * sunrpc/xdr.c: Likewise.
6151         * sunrpc/xdr_array.c: Likewise.
6152         * sunrpc/xdr_float.c: Likewise.
6153         * sunrpc/xdr_intXX_t.c: Likewise.
6154         * sunrpc/xdr_mem.c: Likewise.
6155         * sunrpc/xdr_rec.c: Likewise.
6156         * sunrpc/xdr_ref.c: Likewise.
6157         * sunrpc/xdr_sizeof.c: Likewise.
6158         * sunrpc/xdr_stdio.c: Likewise.
6159
6160 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6161
6162         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6163         change.  Update copyright years.
6164
6165 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6166
6167         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6168
6169 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6170             Joseph Myers  <joseph@codesourcery.com>
6171             Paul Pluzhnikov  <ppluzhnikov@google.com>
6172
6173         [BZ #14012]
6174         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6175         requiring rpcgen.
6176         [cross-compiling] (extra-libs): Likewise.
6177         [cross-compiling] (extra-libs-others): Likewise.
6178         [cross-compiling] (librpcsvc-routines): Likewise.
6179         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6180         [cross-compiling] (omit-deps): Likewise.
6181         (sunrpc-CPPFLAGS): New variable.
6182         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6183         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6184         (cross-rpcgen-objs): New variable.
6185         (extra-objs): Append $(cross-rpcgen-objs).
6186         ($(cross-rpcgen-objs)): New rule.
6187         ($(objpfx)cross-rpcgen): Likewise.
6188         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6189         comment.
6190         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6191         ($(objpfx)x%.stmp): Likewise.
6192         * sunrpc/proto.h [IS_IN_build] (_): Define.
6193         [IS_IN_build] (_libc_intl_domainname): Likewise.
6194
6195 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6196
6197         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6198         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6199         and R_X86_64_TPOFF64.
6200
6201 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6202
6203         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6204         sysdeps/unix/sysv/syscalls.list.
6205         (stime): Likewise.
6206         (utime): Likewise.
6207         * sysdeps/unix/sysv/syscalls.list: Remove file.
6208
6209 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6210
6211         [BZ #3440]
6212         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6213         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6214         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6215         (__LC_IDENTIFICATION): Make these macros useful in #if
6216         expressions, as required by C99.
6217
6218 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6219
6220         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6221         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6222         after this.
6223
6224 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6225
6226         * stdlib/longlong.h: Updated from GCC.
6227
6228 2012-05-09  Andreas Jaeger  <aj@suse.de>
6229
6230         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6231         default is first entry.
6232         (run_mode): Set type.
6233         (main): Remove informal message about syslog.
6234         (options): Fix typo.
6235
6236         [BZ #14053]
6237         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6238         to asm.
6239         (lrint): Likewise.
6240         (llrintf): Likewise.
6241         (llrint): Likewise.
6242         (rint): Likewise.
6243         (rintf): Likewise.
6244         (nearbyint): Likewise.
6245         (nearbyintf): Likewise.
6246
6247 2012-05-09  Andreas Jaeger  <aj@suse.de>
6248             Pedro Alves  <palves@redhat.com>
6249
6250         * nscd/nscd.c (run_mode): Use enum.
6251         (main): Cleanup coding style issue.
6252
6253 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6254             Andreas Jaeger  <aj@suse.de>
6255
6256         * nscd/nscd.c (go_background): Replaced with...
6257         (run_mode): ... this.
6258         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6259         (options): Add -F --foreground.
6260         (main): Implement it.
6261         (parse_opt): Parse it.
6262
6263 2012-05-09  Andreas Jaeger  <aj@suse.de>
6264
6265         [BZ #14083]
6266         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6267         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6268         -Wconversion warning.
6269         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6270         Likewise.
6271
6272 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6273
6274         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6275         == 0.
6276         (LC_ALL): Use macro-int-constant.
6277         (LC_COLLATE): Likewise.
6278         (LC_CTYPE): Likewise.
6279         (LC_MESSAGES): Likewise.
6280         (LC_MONETARY): Likewise.
6281         (LC_NUMERIC): Likewise.
6282         (LC_TIME): Likewise.
6283         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6284         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6285         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6286         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6287         Specify type.
6288         [C99-based standards] (float_t): Expect type.
6289         [C99-based standards] (double_t): Expect type.
6290         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6291         type.
6292         [C99-based standards] (HUGE_VALL): Likewise.
6293         [C99-based standards] (INFINITY): Likewise.
6294         [C99-based standards] (NAN): Likewise.
6295         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6296         [C99-based standards] (FP_NAN): Likewise.
6297         [C99-based standards] (FP_NORMAL): Likewise.
6298         [C99-based standards] (FP_SUBNORMAL): Likewise.
6299         [C99-based standards] (FP_ZERO): Likewise.
6300         [C99-based standards] (FP_FAST_FMA): Use
6301         optional-macro-int-constant.  Specify type.  Require == 1.
6302         [C99-based standards] (FP_FAST_FMAF): Likewise.
6303         [C99-based standards] (FP_FAST_FMAL): Likewise.
6304         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6305         [C99-based standards] (FP_ILOGBNAN): Likewise.
6306         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6307         Specify type.
6308         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6309         [C99-based standards] (math_errhandling): Specify type.
6310         [ISO99 || ISO11] (signgam): Do not allow.
6311         [non-C99-based standards] (copysignf): Do not allow.
6312         [non-C99-based standards] (exp2f): Likewise.
6313         [non-C99-based standards] (log2f): Likewise.
6314         [non-C99-based standards] (modff): Allow.
6315         [non-C99-based standards] (erff): Do not allow.
6316         [non-C99-based standards] (erfcf): Likewise.
6317         [non-C99-based standards] (gammaf): Likewise.
6318         [non-C99-based standards] (hypotf): Likewise.
6319         [non-C99-based standards] (j0f): Likewise.
6320         [non-C99-based standards] (j1f): Likewise.
6321         [non-C99-based standards] (jnf): Likewise.
6322         [non-C99-based standards] (lgammaf): Likewise.
6323         [non-C99-based standards] (tgammaf): Likewise.
6324         [non-C99-based standards] (y0f): Likewise.
6325         [non-C99-based standards] (y1f): Likewise.
6326         [non-C99-based standards] (ynf): Likewise.
6327         [non-C99-based standards] (isnanf): Likewise.
6328         [non-C99-based standards] (acoshf): Likewise.
6329         [non-C99-based standards] (asinhf): Likewise.
6330         [non-C99-based standards] (atanhf): Likewise.
6331         [non-C99-based standards] (cbrtf): Likewise.
6332         [non-C99-based standards] (expm1f): Likewise.
6333         [non-C99-based standards] (ilogbf): Likewise.
6334         [non-C99-based standards] (log1pf): Likewise.
6335         [non-C99-based standards] (logbf): Likewise.
6336         [non-C99-based standards] (nextafterf): Likewise.
6337         [non-C99-based standards] (remainderf): Likewise.
6338         [non-C99-based standards] (rintf): Likewise.
6339         [non-C99-based standards] (scalbf): Likewise.
6340         [non-C99-based standards] (copysignl): Likewise.
6341         [non-C99-based standards] (exp2l): Likewise.
6342         [non-C99-based standards] (log2l): Likewise.
6343         [non-C99-based standards] (modfl): Allow.
6344         [non-C99-based standards] (erfl): Do not allow.
6345         [non-C99-based standards] (erfcl): Likewise.
6346         [non-C99-based standards] (gammal): Likewise.
6347         [non-C99-based standards] (hypotl): Likewise.
6348         [non-C99-based standards] (j0l): Likewise.
6349         [non-C99-based standards] (j1l): Likewise.
6350         [non-C99-based standards] (jnl): Likewise.
6351         [non-C99-based standards] (lgammal): Likewise.
6352         [non-C99-based standards] (tgammal): Likewise.
6353         [non-C99-based standards] (y0l): Likewise.
6354         [non-C99-based standards] (y1l): Likewise.
6355         [non-C99-based standards] (ynl): Likewise.
6356         [non-C99-based standards] (isnanl): Likewise.
6357         [non-C99-based standards] (acoshl): Likewise.
6358         [non-C99-based standards] (asinhl): Likewise.
6359         [non-C99-based standards] (atanhl): Likewise.
6360         [non-C99-based standards] (cbrtl): Likewise.
6361         [non-C99-based standards] (expm1l): Likewise.
6362         [non-C99-based standards] (ilogbl): Likewise.
6363         [non-C99-based standards] (log1pl): Likewise.
6364         [non-C99-based standards] (logbl): Likewise.
6365         [non-C99-based standards] (nextafterl): Likewise.
6366         [non-C99-based standards] (remainderl): Likewise.
6367         [non-C99-based standards] (rintl): Likewise.
6368         [non-C99-based standards] (scalbl): Likewise.
6369         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6370         [non-C99-based standards] (FP_*): Do not allow.
6371         [C99-based standards] (FP_*): Change to
6372         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6373         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6374         allow.
6375         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6376         (SIG_ERR): Likewise.
6377         [X/Open-based standards] (SIG_HOLD): Likewise.
6378         (SIG_IGN): Likewise.
6379         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6380         positive value.
6381         (SIGFPE): Likewise.
6382         (SIGILL): Likewise.
6383         (SIGINT): Likewise.
6384         (SIGSEGV): Likewise.
6385         (SIGTER): Likewise.
6386         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6387         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6388         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6389         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6390         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6391         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6392         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6393         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6394         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6395         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6396         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6397         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6398         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6399         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6400         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6401         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6402         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6403         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6404         [X/Open-based standards] (SIGTRAP): Likewise.
6405         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6406         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6407         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6408         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6409         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6410         allow.
6411
6412 2012-05-08  Ian Wienand  <ianw@vmware.com>
6413
6414         [BZ #14080]
6415         * time/tzset.c (__tzset_parse_tz): Update default rules for
6416         daylight time changes in the Energy Policy Act of 2005.
6417
6418 2012-05-09  Andreas Jaeger  <aj@suse.de>
6419
6420         [BZ #13983]
6421         * elf/ldconfig.c (parse_conf): Change string to make clear that
6422         ldconfig only issued a warning if ld.so.conf does not exist.
6423
6424 2012-05-08  David S. Miller  <davem@davemloft.net>
6425
6426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6427         movxtod instead of popping the value on the stack.
6428
6429         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6430
6431 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6432
6433         * config.h.in: Add HAVE_ARM_PCS_VFP.
6434
6435 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6436
6437         [BZ #13979]
6438         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6439         checking but the checks are disabled for any reason.
6440
6441 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6442
6443         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6444         and ELF64_R_TYPE with ELFW(R_TYPE).
6445
6446 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6447
6448         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6449         (ulimit): Likewise.
6450
6451         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6452         (settimeofday): Likewise.
6453
6454 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6455
6456         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6457         a struct th_u2 inside the union, and move tu_block/tu_code into
6458         a new th_u3 union of tu_block/tu_code inside of that.  Move
6459         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6460         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6461         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6462         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6463         (th_stuff): Change to th_u1.tu_stuff.
6464         (th_data): Define.
6465         (th_msg): Change to th_u1.th_u2.tu_data.
6466
6467 2012-05-07  David S. Miller  <davem@davemloft.net>
6468
6469         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6470
6471         [BZ #14074]
6472         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6473         (SETUP_PIC_REG): Use it.
6474         (SETUP_PIC_REG_LEAF): Use it.
6475
6476 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6477
6478         [BZ #13885]
6479         [BZ #13923]
6480         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6481         USE_AS_EXPM1L.
6482         (EXPL_FINITE): Likewise.
6483         (FLDLOG): Likewise.
6484         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6485         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6486         e_expl.S.
6487         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6488         USE_AS_EXPM1L.
6489         (EXPL_FINITE): Likewise.
6490         (FLDLOG): Likewise.
6491         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6492         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6493         e_expl.S.
6494         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6495         test of -max_value argument for long double.
6496         * sysdeps/i386/fpu/libm-test-ulps: Update.
6497         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6498
6499 2012-05-06  David S. Miller  <davem@davemloft.net>
6500
6501         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6502         quad soft-float symbols whose references which are compiler
6503         generated.
6504         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6505
6506 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6507
6508         [BZ #13884]
6509         [BZ #13914]
6510         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6511         USE_AS_EXP10L.
6512         (EXPL_FINITE): Likewise.
6513         (FLDLOG): Likewise.
6514         (c0): Likewise.
6515         (c1): Likewise.
6516         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6517         Adjust comments for base varying.
6518         (__expl_finite): Change alias to EXPL_FINITE.
6519         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6520         e_expl.S.
6521         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6522         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6523         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6524         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6525         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6526         USE_AS_EXP10L.
6527         (EXPL_FINITE): Likewise.
6528         (FLDLOG): Likewise.
6529         (c0): Likewise.
6530         (c1): Likewise.
6531         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6532         Adjust comments for base varying.
6533         (__expl_finite): Change alias to EXPL_FINITE.
6534         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6535         tests for bugs.
6536         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6537
6538         [BZ #14064]
6539         * math/libm-test.inc (check_float_internal): Correct ulp
6540         calculation for subnormal expected results.
6541
6542 2012-05-06  Andreas Jaeger  <aj@suse.de>
6543
6544         * Makeconfig (+math-flags): New, set to -frounding-math.
6545         (+cflags): Add +math-flags so that all of glibc gets compiled with
6546         it.
6547
6548         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6549
6550 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6551
6552         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6553         Disable one test.
6554
6555         [BZ #13787]
6556         [BZ #13922]
6557         [BZ #14036]
6558         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6559         (__ieee754_expl): Allow for and saturate large arguments.
6560         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6561         (u_threshold): Likewise.
6562         (__exp): Call __ieee754_exp before checking for overflow and
6563         underflow.
6564         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6565         (u_threshold): Likewise.
6566         (__expf): Call __ieee754_expf before checking for overflow and
6567         underflow.
6568         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6569         (u_threshold): Likewise.
6570         (__expl): Call __ieee754_expl before checking for overflow and
6571         underflow.
6572         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6573         (__ieee754_expl): Allow for and saturate large arguments.
6574         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6575         missing overflow exception on overflow.
6576         (expm1_test): Do not allow missing overflow exception on overflow.
6577
6578         * sysdeps/i386/fpu/e_expl.c: Move to ...
6579         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6580         rather than using inline asm.
6581         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6582         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6583         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6584
6585         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6586         (nice): Likewise.
6587         (poll): Likewise.
6588         (signal): Likewise.
6589         (time): Likewise.
6590         (times): Likewise.
6591
6592 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6593
6594         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6595         sysdeps/unix/common/syscalls.list.
6596         (fchmod): Likewise.
6597         (fchown): Likewise.
6598         (ftruncate): Likewise.
6599         (getrusage): Likewise.
6600         (gettimeofday): Likewise.
6601         (setpgid): Likewise.
6602         (setregid): Likewise.
6603         (setreuid): Likewise.
6604         (sigaction): Likewise.
6605         (truncate): Likewise.
6606         (vhangup): Likewise.
6607         * sysdeps/unix/common/syscalls.list: Remove file.
6608         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6609         * sysdeps/unix/sysv/linux/Implies: Likewise.
6610
6611 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6612
6613         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6614         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6615         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6616         Moved to ...
6617         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6618         Here.
6619         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6620         to ...
6621         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6622         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6623         to ...
6624         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6625         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6626         to ...
6627         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6628         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6629         to ...
6630         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6631         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6632         to ...
6633         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6634         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6635         to ...
6636         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6637         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6638         to ...
6639         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6640         Here.
6641         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6642         to ...
6643         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6644         Here.
6645         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6646         to ...
6647         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6648         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6649         Moved to ...
6650         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6651         Here.
6652         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6653         to ...
6654         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6655
6656 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6657
6658         * sysdeps/unix/common/bits/dirent.h: Remove file.
6659         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6660
6661         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6662         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6663         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6664         * sysdeps/unix/bsd/isatty.c: Likewise.
6665         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6666         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6667         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6668
6669 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6670
6671         [BZ #13563]
6672         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6673         long double comparison inaccuracies.
6674         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6675         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6676
6677 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6678
6679         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6680         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6681
6682 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6683
6684         [BZ #14049]
6685         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6686         nonzero digits before rounding a hex value.
6687         * stdlib/tst-strtod.c (tests): Add another test.
6688
6689 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6690
6691         * sysdeps/s390/fpu/libm-test-ulps: Update.
6692
6693 2012-05-03  Andreas Jaeger  <aj@suse.de>
6694
6695         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6696         does not get optimized out.
6697         (malloc_opt_barrier): New.
6698
6699 2012-05-03  Andreas Jaeger  <aj@suse.de>
6700             Roland McGrath  <roland@hack.frob.com>
6701
6702         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6703         intermediate file deletion.
6704         (generated): Add .symlist files.
6705
6706 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6707
6708         [BZ #13775]
6709         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6710         Redirect under this condition.
6711         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6712         [__USE_GNU] (__dprintf_chk): Not under this condition.
6713         [__USE_GNU] (__vdprintf_chk): Likewise.
6714         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6715         under this condition.
6716         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6717         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6718         [__USE_XOPEN2K8] (vdprintf): Likewise.
6719         [__USE_GNU] (__dprintf_chk): Not under this condition.
6720         [__USE_GNU] (__vdprintf_chk): Likewise.
6721         [__USE_GNU] (dprintf): Likewise.
6722         [__USE_GNU] (vdprintf): Likewise.
6723
6724 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6725
6726         * elf/Makefile (common-generated): Set this instead of generated for
6727         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6728         $(all-built-dso)-derived lists.
6729
6730 2012-05-03  Andreas Jaeger  <aj@suse.de>
6731
6732         * sysdeps/i386/fpu/libm-test-ulps: Update.
6733
6734         * FAQ: Removed.
6735         * FAQ.in: Likewise.
6736         * scripts/gen-FAQ.pl: Likewise.
6737         * manual/install.texi (Installation): Point to online location of
6738         FAQ.
6739         * Makefile (files-for-dist): Remove FAQ.
6740         (FAQ): Remove.
6741
6742 2012-05-02  Allan McRae  <allan@archlinux.org>
6743
6744         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6745         (LDFLAGS-reldepmod5.so): Likewise.
6746         (LDFLAGS-reldep6mod1.so): Likewise.
6747         (LDFLAGS-reldep6mod4.so): Likewise.
6748         (LDFLAGS-reldep8mod3.so): Likewise.
6749         (LDFLAGS-unload4mod1.so): Likewise.
6750         (LDFLAGS-unload4mod2.so): Likewise.
6751         (LDFLAGS-tst-initorder): Likewise.
6752         (LDFLAGS-tst-initordera2.so): Likewise.
6753         (LDFLAGS-tst-initordera3.so): Likewise.
6754         (LDFLAGS-tst-initordera4.so): Likewise.
6755         (LDFLAGS-tst-initorderb2.so): Likewise.
6756         (LDFLAGS-noload): Likewise.
6757         (LDFLAGS-next): Likewise.
6758         (LDFLAGS-order2mod1.so): Likewise.
6759         (LDFLAGS-order2mod2.so): Likewise.
6760         (LDFLAGS-tst-initorder2): Likewise.
6761         (LDFLAGS-tst-initorder2a.so): Likewise.
6762         (LDFLAGS-tst-initorder2b.so): Likewise.
6763         (LDFLAGS-tst-initorder2c.so): Likewise.
6764         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6765
6766 2012-05-02  David S. Miller  <davem@davemloft.net>
6767
6768         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6769
6770 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6771
6772         [BZ #14055]
6773         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6774
6775 2012-05-02  Andreas Jaeger  <aj@suse.de>
6776
6777         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6778         since we manipulate rounding mode.
6779         (CPPFLAGS-test-idouble.c): Likewise.
6780         (CPPFLAGS-test-ifloat.c): Likewise.
6781         (CFLAGS-test-ldouble.c): Likewise.
6782         (CFLAGS-test-double.c): Likewise.
6783         (CFLAGS-test-float.c): Likewise.
6784         (CFLAGS-test-misc.c): Likewise.
6785         (CFLAGS-test-test-fenv.c): Likewise.
6786
6787 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6788
6789         [BZ #2550]
6790         [BZ #2570]
6791         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6792         comparisons to determine direction to adjust input.
6793
6794 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6795
6796         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6797         output to the target.
6798
6799         * scripts/localplt.awk: New file.
6800         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6801         (check-localplt-CFLAGS): Variable removed.
6802         ($(all-built-dso:=.jmprel)): New static pattern rule.
6803         (generated): Add those targets.
6804         (localplt-built-dso): New variable.
6805         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6806
6807         * elf/check-localplt.c: File removed.
6808
6809         * scripts/check-execstack.awk: New file.
6810         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6811         (check-execstack-CFLAGS): Variable removed.
6812         ($(objpfx)check-execstack.h): Target removed.
6813         ($(objpfx)execstack-default): New target.
6814         (generated): Add that instead of check-execstack.h.
6815         ($(all-built-dso:=.phdr)): New static pattern rule.
6816         (generated): Add those targets.
6817         * elf/check-execstack.c: File removed.
6818
6819         * scripts/check-textrel.awk: New file.
6820         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6821         (check-textrel-CFLAGS): Variable removed.
6822         (all-built-dso): Use := to define.o
6823         ($(all-built-dso:=.dyn)): New static pattern rule.
6824         (generated): Add those targets.
6825         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6826         * config.make.in (READELF): New substituted variable.
6827         * elf/check-textrel.c: File removed.
6828
6829 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6830
6831         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6832         allow.
6833         * conform/data/ctype.h-data [C99-based standards] (isblank):
6834         Expect function.
6835         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6836         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6837         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6838         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6839         Specify type.  Require positive value.
6840         (EILSEQ): Likewise.
6841         (ERANGE): Likewise.
6842         [ISO || POSIX] (EILSEQ): Do not expect.
6843         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6844         Specify type.  Require positive value.
6845         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6846         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6847         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6848         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6849         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6850         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6851         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6852         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6853         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6854         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6855         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6856         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6857         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6858         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6859         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6860         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6861         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6862         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6863         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6864         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6865         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6866         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6867         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6868         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6869         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6870         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6871         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6872         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6873         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6874         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6875         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6876         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6877         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6878         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6879         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6880         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6881         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6882         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6883         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6884         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6885         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6886         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6887         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6888         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6889         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6890         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6891         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6892         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6893         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6894         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6895         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6896         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6897         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6898         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6899         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6900         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6901         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6902         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6903         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6904         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6905         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6906         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6907         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6908         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6909         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6910         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6911         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6912         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6913         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6914         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6915         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6916         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6917         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6918         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6919         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6920         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6921         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6922         Require >= 2.
6923         (FLT_ROUNDS): Expect as macro, not constant.
6924         (FLT_MANT_DIG): Use macro-int-constant.
6925         (DBL_MANT_DIG): Likewise.
6926         (LDBL_MANT_DIG): Likewise.
6927         (FLT_DIG): Likewise.
6928         (DBL_DIG): Likewise.
6929         (LDBL_DIG): Likewise.
6930         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
6931         (DBL_MIN_EXP): Likewise.
6932         (LDBL_MIN_EXP): Likewise.
6933         (FLT_MAX_EXP): Use macro-int-constant.
6934         (DBL_MAX_EXP): Likewise.
6935         (LDBL_MAX_EXP): Likewise.
6936         (FLT_MAX_10_EXP): Likewise.
6937         (DBL_MAX_10_EXP): Likewise.
6938         (LDBL_MAX_10_EXP): Likewise.
6939         (FLT_MAX): Use macro-constant.
6940         (DBL_MAX): Likewise.
6941         (LDBL_MAX): Likewise.
6942         (FLT_EPSILON): Use macro-constant.  Give upper bound.
6943         (DBL_EPSILON): Likewise.
6944         (LDBL_EPSILON): Likewise.
6945         (FLT_MIN): Likewise.
6946         (DBL_MIN): Likewise.
6947         (LDBL_MIN): Likewise.
6948         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
6949         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
6950         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
6951         [ISO11] (FLT_HAS_SUBNORM): Likewise.
6952         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
6953         [ISO11] (DBL_DECIMAL_DIG): Likewise.
6954         [ISO11] (FLT_DECIMAL_DIG): Likewise.
6955         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
6956         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
6957         [ISO11] (FLT_TRUE_MIN): Likewise.
6958         [ISO11] (LDBL_TRUE_MIN): Likewise.
6959         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6960         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
6961         (SCHAR_MIN): Use macro-int-constant.  Specify type.
6962         (SCHAR_MAX): Likewise.
6963         (UCHAR_MAX): Likewise.
6964         (CHAR_MIN): Likewise.
6965         (CHAR_MAX): Likewise.
6966         (MB_LEN_MAX): Use macro-int-constant.
6967         (SHRT_MIN): Use macro-int-constant.  Specify type.
6968         (SHRT_MAX): Likewise.
6969         (USHRT_MAX): Likewise.
6970         (INT_MAX): Likewise.
6971         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
6972         bound negative.
6973         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6974         bound with "U".
6975         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6976         bound with "L".
6977         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
6978         bound negative.  Suffix upper bound with "L".
6979         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6980         bound with "UL".
6981         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
6982         Specify type.
6983         [C99-based standards] (LLONG_MAX): Likewise.
6984         [C99-based standards] (ULLONG_MAX): Likewise.
6985         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
6986         == 0.
6987         [ISO11] (max_align_t): Require type.
6988         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6989
6990         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
6991         from $CFLAGS, without defining away __attribute__ calls.
6992         (checknamespace): Use $CFLAGS_namespace.
6993
6994         * conform/conformtest.pl (@keywords): Only include C99 keywords
6995         for standards based on C99 or C11.
6996
6997         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
6998         Disable tests.
6999         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7000         UNIX98]: Likewise.
7001
7002         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7003         usability of symbols in #if.
7004
7005         * conform/conformtest.pl: If macro or constant types start
7006         "promoted:", expect the symbol to be of the following type
7007         promoted by the integer promotions.
7008
7009         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7010         in one place.  Also handle "macro-constant".
7011
7012         * conform/conformtest.pl: Only accept expected macro values with
7013         "==".  Parse all "macro" lines in one place.
7014         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7015
7016         * conform/conformtest.pl: Handle braced types on "constant" lines
7017         instead of handling "typed-constant".
7018         * conform/data/signal.h-data: Use "constant" instead of
7019         "typed-constant".
7020
7021         * conform/conformtest.pl: Handle "optional-" at start of lines in
7022         one place rather than duplicating several cases.  Handle each
7023         format of "macro" line with initial "optional-".
7024
7025         * conform/conformtest.pl: Only accept expected constant or
7026         optional-constant values with "==".  Parse all "constant" lines in
7027         one place.  Parse all "optional-constant" lines in one place.
7028         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7029         * conform/data/fmtmsg.h-data: Likewise.
7030         * conform/data/netinet/in.h-data: Likewise.
7031         * conform/data/tar.h-data: Likewise.
7032         * conform/data/limits.h-data: Use "==" form on "constant" and
7033         "optional-constant" lines.
7034
7035         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7036         Use -std=c99 for XOPEN2K.
7037         (@knownproblems): Remove.
7038         (newtoken): Don't check %isknown.
7039
7040         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7041         Do not expect macro.
7042         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7043         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7044         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7045         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7046         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7047         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7048         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7049         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7050         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7051         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7052         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7053         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7054         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7055         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7056         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7057         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7058         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7059         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7060         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7061         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7062         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7063         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7064         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7065         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7066         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7067         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7068         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7069         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7070         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7071         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7072         [XPG3] (acosh): Likewise.
7073         [XPG3] (asinh): Likewise.
7074         [XPG3] (atanh): Likewise.
7075         [XPG3] (cbrt): Likewise.
7076         [XPG3] (expm1): Likewise.
7077         [XPG3] (ilogb): Likewise.
7078         [XPG3] (log1p): Likewise.
7079         [XPG3] (logb): Likewise.
7080         [XPG3] (nextafter): Likewise.
7081         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7082         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7083         [XPG3] (remainder): Likewise.
7084         [XPG3] (rint): Likewise.
7085         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7086         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7087         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7088         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7089         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7090         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7091         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7092         [UNIX98 || XOPEN2K] (scalb): Expect.
7093         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7094         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7095         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7096         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7097         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7098         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7099         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7100         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7101         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7102         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7103         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7104         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7105         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7106         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7107         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7108         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7109         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7110         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7111         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7112         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7113         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7114         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7115         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7116         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7117         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7118         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7119         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7120         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7121         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7122         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7123         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7124         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7125         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7126         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7127         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7128         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7129         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7130         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7131         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7132         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7133         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7134         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7135         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7136         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7137         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7138         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7139         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7140         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7141         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7142         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7143         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7144         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7145         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7146         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7147         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7148         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7149         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7150         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7151         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7152         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7153         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7154         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7155         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7156         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7157         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7158         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7159         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7160         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7161         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7162         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7163         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7164         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7165         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7166         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7167         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7168         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7169         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7170         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7171         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7172         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7173         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7174         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7175         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7176         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7177         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7178         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7179         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7180         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7181         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7182         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7183         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7184         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7185         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7186         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7187         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7188         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7189         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7190         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7191         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7192         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7193         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7194         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7195         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7196         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7197         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7198         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7199         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7200         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7201         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7202         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7203         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7204         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7205         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7206         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7207         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7208         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7209         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7210         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7211         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7212         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7213         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7214         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7215         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7216         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7217         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7218         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7219         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7220         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7221         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7222         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7223         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7224         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7225         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7226         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7227         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7228         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7229         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7230
7231         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7232         _XOPEN_SOURCE_EXTENDED for XPG4.
7233
7234         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7235
7236         * Makeconfig (localtime): Remove variable.
7237         (inst_localtime-file): Likewise.
7238
7239 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7240
7241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7242         Update.
7243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7244         Update.
7245         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7246         Update.
7247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7248         Update.
7249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7250         Update.
7251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7252         Update.
7253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7254         Update.
7255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7256         Update.
7257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7258         Update.
7259
7260 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7261
7262         [BZ #2550]
7263         [BZ #2570]
7264         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7265         comparisons to determine direction to adjust input.
7266         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7267         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7268         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7269         Likewise.
7270         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7271         Likewise.
7272         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7273         Likewise.
7274         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7275         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7276         Likewise.
7277         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7278         Likewise.
7279         * math/libm-test.inc (nexttoward_test): Add more tests.
7280
7281 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7282
7283         [BZ #14040]
7284         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7285         in version GLIBC_2.1, not GLIBC_2.0.
7286         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7287         Likewise.
7288
7289 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7290
7291         [BZ #13942]
7292         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7293         (1 - x) * (1 + x).
7294         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7295         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7296         * math/libm-test.inc (acos_test): Add more tests.
7297         (asin_test): Likewise.
7298         * sysdeps/i386/fpu/libm-test-ulps: Update.
7299         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7300
7301         [BZ #14034]
7302         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7303         of square root.
7304         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7305         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7306         * math/libm-test.inc (acos_test_tonearest): New function.
7307         (acos_test_towardzero): Likewise.
7308         (acos_test_downward): Likewise.
7309         (acos_test_upward): Likewise.
7310         (asin_test_tonearest): Likewise.
7311         (asin_test_towardzero): Likewise.
7312         (asin_test_downward): Likewise.
7313         (asin_test_upward): Likewise.
7314         (main): Call the new functions.
7315         * sysdeps/i386/fpu/libm-test-ulps: Update.
7316         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7317
7318         [BZ #13884]
7319         [BZ #13924]
7320         * math/e_exp10.c: Include <float.h>.
7321         (__ieee754_exp10): Handle underflow here rather than multiplying
7322         large negative argument by M_LN10.
7323         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7324         of __ieee754_expf.
7325         * math/e_exp10l.c: Include <float.h>.
7326         (__ieee754_exp10l): Handle underflow here rather than multiplying
7327         large negative argument by M_LN10l.
7328         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7329         spurious overflow exception on underflow.
7330
7331 2012-04-29  Marek Polacek  <polacek@redhat.com>
7332
7333         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7334         (__fortify_function): New macro.
7335         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7336         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7337         __extern_always_inline.
7338         * libio/bits/stdio2.h: Likewise.
7339         * libio/bits/stdio.h: Likewise.
7340         * string/string.h: Likewise.
7341         * string/bits/string3.h: Likewise.
7342         * include/stdio.h: Likewise.
7343         * stdlib/bits/stdlib.h: Likewise.
7344         * stdlib/stdlib.h: Likewise.
7345         * rt/bits/mqueue2.h: Likewise.
7346         * rt/mqueue.h: Likewise.
7347         * posix/bits/unistd.h: Likewise.
7348         * posix/unistd.h: Likewise.
7349         * io/bits/poll2.h: Likewise.
7350         * io/bits/fcntl2.h: Likewise.
7351         * io/fcntl.h: Likewise.
7352         * io/sys/poll.h: Likewise.
7353         * misc/bits/syslog.h: Likewise.
7354         * misc/bits/syslog-ldbl.h: Likewise.
7355         * misc/sys/syslog.h: Likewise.
7356         * socket/bits/socket2.h: Likewise.
7357         * socket/sys/socket.h: Likewise.
7358         * debug/tst-chk1.c: Likewise.
7359         * wcsmbs/bits/wchar2.h: Likewise.
7360         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7361         * wcsmbs/wchar.h: Likewise.
7362
7363 2012-04-29  Andreas Jaeger  <aj@suse.de>
7364
7365         * Makerules (tests): Remove enable-check-abi protection.
7366         (check-abi-warn): Remove.
7367         (check-abi-%): Remove check-abi-warn usage.
7368
7369         * configure.in: Remove check-abi configure option.
7370         * configure: Regenerated.
7371         * config.make.in (enable-check-abi): Remove.
7372
7373 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7374
7375         [BZ #14033]
7376         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7377         double functions to double *_finite functions.
7378
7379         [BZ #13941]
7380         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7381         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7382         LDBL_MIN_EXP.
7383         * stdio-common/Makefile (tests): Add tst-sprintf3.
7384         * stdio-common/tst-sprintf3.c: New file.
7385
7386         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7387         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7388
7389 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7390
7391         * conform/conformtest.pl: Remove duplicate typed-constant
7392         handling.
7393
7394 2012-04-28  David S. Miller  <davem@davemloft.net>
7395
7396         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7397         (check-abi-%): Remove AWK script prerequisite and explicit
7398         abilist directory.
7399         (check-abi): Rewrite to just diff the symlist with the abilist.
7400         (config-tls, config-abi-config): Delete, no longer used.
7401         (update-abi-%): Remove AWK script and explicit abilist directory.
7402         (update-abi): Rewrite to simply compare and conditionally copy the
7403         symlist and the sysdep abilist file.  Remove update-abi-config
7404         checks.
7405         * abilist/ld.abilist: Remove.
7406         * abilist/libBrokenLocale.abilist: Remove.
7407         * abilist/libanl.abilist: Remove.
7408         * abilist/libcrypt.abilist: Remove.
7409         * abilist/libdl.abilist: Remove.
7410         * abilist/librt.abilist: Remove.
7411         * abilist/libthread_db.abilist: Remove.
7412         * abilist/libutil.abilist: Remove.
7413         * scripts/extract-abilist.awk: Remove.
7414         * scripts/merge-abilist.awk: Remove.
7415         * sysdeps/generic/libcidn.abilist: New file.
7416         * sysdeps/generic/libnss_compat.abilist: New file.
7417         * sysdeps/generic/libnss_db.abilist: New file.
7418         * sysdeps/generic/libnss_dns.abilist: New file.
7419         * sysdeps/generic/libnss_files.abilist: New file.
7420         * sysdeps/generic/libnss_hesiod.abilist: New file.
7421         * sysdeps/generic/libnss_nis.abilist: New file.
7422         * sysdeps/generic/libnss_nisplus.abilist: New file.
7423         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7424         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7425         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7426         file.
7427         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7428         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7429         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7430         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7431         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7432         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7433         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7434         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7435         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7436         file.
7437         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7438         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7439         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7440         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7441         file.
7442         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7443         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7444         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7445         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7446         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7447         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7448         file.
7449         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7450         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7451         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7452         file.
7453         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7454         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7455         New file.
7456         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7457         New file.
7458         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7459         New file.
7460         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7461         New file.
7462         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7463         New file.
7464         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7465         New file.
7466         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7467         New file.
7468         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7469         New file.
7470         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7471         New file.
7472         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7473         New file.
7474         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7475         New file.
7476         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7477         New file.
7478         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7479         New file.
7480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7481         file.
7482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7483         New file.
7484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7485         New file.
7486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7487         file.
7488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7489         New file.
7490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7491         New file.
7492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7493         file.
7494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7495         New file.
7496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7497         New file.
7498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7499         New file.
7500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7501         New file.
7502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7503         New file.
7504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7505         New file.
7506         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7507         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7508         file.
7509         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7510         New file.
7511         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7512         file.
7513         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7514         file.
7515         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7516         file.
7517         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7518         file.
7519         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7520         file.
7521         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7522         New file.
7523         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7524         file.
7525         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7526         file.
7527         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7528         New file.
7529         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7530         file.
7531         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7532         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7533         file.
7534         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7535         New file.
7536         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7537         file.
7538         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7539         file.
7540         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7541         file.
7542         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7543         file.
7544         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7545         file.
7546         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7547         New file.
7548         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7549         file.
7550         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7551         file.
7552         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7553         New file.
7554         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7555         file.
7556         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7557         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7558         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7559         file.
7560         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7561         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7562         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7563         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7564         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7565         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7566         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7567         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7568         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7569         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7570         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7571         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7572         file.
7573         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7574         New file.
7575         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7576         file.
7577         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7578         file.
7579         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7580         file.
7581         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7582         file.
7583         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7584         file.
7585         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7586         New file.
7587         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7588         New file.
7589         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7590         file.
7591         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7592         New file.
7593         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7594         file.
7595         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7596         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7597         file.
7598         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7599         New file.
7600         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7601         file.
7602         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7603         file.
7604         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7605         file.
7606         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7607         file.
7608         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7609         file.
7610         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7611         New file.
7612         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7613         New file.
7614         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7615         file.
7616         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7617         New file.
7618         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7619         file.
7620
7621 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7622
7623         * conform/conformtest.pl: Fix typo in handling typed-constant from
7624         allow-header.
7625
7626 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7627
7628         * README: Cut down references to pre-2.6 Linux kernels and
7629         Linuxthreads.  Update lists of configurations in libc and ports
7630         and sort alphabetically.  Say "or newer" with Linux kernel version
7631         requirements.
7632
7633         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7634
7635 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7636
7637         [BZ #887]
7638         * math/libm-test.inc (logb_test_downward): New test to expose
7639         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7640         rounding mode.
7641
7642 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7643
7644         [BZ #14027]
7645         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7646         to be done.
7647         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7648         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7649
7650 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7651
7652         * sysdeps/unix/i386/brk.S: Remove file.
7653         * sysdeps/unix/i386/dl-brk.S: Likewise.
7654         * sysdeps/unix/i386/pipe.S: Likewise.
7655         * sysdeps/unix/i386/sigreturn.S: Likewise.
7656         * sysdeps/unix/i386/syscall.S: Likewise.
7657         * sysdeps/unix/i386/vfork.S: Likewise.
7658         * sysdeps/unix/i386/wait.S: Likewise.
7659
7660         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7661         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7662
7663         * configure.in (arm*-none*): Do not allow without
7664         --enable-hacker-mode.
7665         (netbsd*): Remove case setting base_os.
7666         (386bsd*): Likewise.
7667         (freebsd*): Likewise.
7668         (bsdi*): Likewise.
7669         (osf*): Likewise.
7670         (sunos*): Likewise.
7671         (ultrix*): Likewise.
7672         (newsos*): Likewise.
7673         (dynix*): Likewise.
7674         (*bsd*): Likewise.
7675         (sysv*): Likewise.
7676         (isc*): Likewise.
7677         (esix*): Likewise.
7678         (sco*): Likewise.
7679         (minix*): Likewise.
7680         (irix4*): Likewise.
7681         (irix6*): Likewise.
7682         (solaris[2-9]*): Likewise.
7683         (none): Likewise.
7684         * configure: Regenerated.
7685
7686 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7687
7688         [BZ #11521]
7689         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7690         overflow or cancellation in calculating denominator.
7691         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7692         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7693         down expression to avoid unexpected rounding in newer GCCs.
7694         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7695
7696 2012-04-26  David S. Miller  <davem@davemloft.net>
7697
7698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7699         long-double compat symbols.
7700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7705         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7706         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7707         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7708         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7709         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7710         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7711         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7712         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7713
7714 2012-04-25  David S. Miller  <davem@davemloft.net>
7715
7716         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7717         HWCAP_* values only after the memory barriers have been defined.
7718         (atomic_full_barrier): Define.
7719         (atomic_read_barrier): Define.
7720         (atomic_write_barrier): Define.
7721
7722 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7723
7724         * shlib-versions: Add libgcc_s version information.
7725         * sysdeps/generic/libgcc_s.h: Remove.
7726         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7727         libgcc_s.h.
7728         * sysdeps/gnu/unwind-resume.c: Likewise.
7729         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7730
7731 2012-04-25  David S. Miller  <davem@davemloft.net>
7732
7733         * sysdeps/unix/sparc/brk.S: Delete.
7734         * sysdeps/unix/sparc/dl-brk.S: Delete.
7735         * sysdeps/unix/sparc/pipe.S: Delete.
7736         * sysdeps/unix/sparc/sysdep.S: Delete.
7737         * sysdeps/unix/sparc/sysdep.h: Delete.
7738         * sysdeps/unix/sparc/vfork.S: Delete.
7739         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7740         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7741         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7742         ret_ERRVAL, r0, r1, MOVE): Define.
7743         (JUMPTARGET): Remove.
7744         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7745         sysdeps/unix/sparc/sysdep.h
7746         (ENTRY, END): Remove.
7747         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7748
7749 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7750
7751         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7752         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7753         -DIS_IN_build.
7754
7755         * timezone/README: Update upstream location and email address for
7756         tzcode and tzdata.
7757         * timezone/zdump.c: Update from tzcode 2012b.
7758         * timezone/zic.c: Likewise.
7759
7760         * configure.in (libc_cv_as_needed): Remove test.
7761         * configure: Regenerated.
7762         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7763         conditional definition.
7764         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7765         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7766         * config.make.in (have-as-needed): Remove variable.
7767
7768 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7769             Paul Pluzhnikov  <ppluzhnikov@google.com>
7770
7771         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7772         strings correctly.
7773
7774 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7775
7776         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7777         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7778         * sysdeps/sh/strlen.S: Likewise.
7779
7780 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7781
7782         * sysdeps/unix/fork.S: Remove file.
7783         * sysdeps/unix/i386/fork.S: Likewise.
7784         * sysdeps/unix/sparc/fork.S: Likewise.
7785
7786         * sysdeps/unix/system.c: Remove file.
7787         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7788
7789         * sysdeps/unix/getegid.S: Remove file.
7790         * sysdeps/unix/geteuid.S: Likewise.
7791
7792 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7793
7794         * scripts/check-localplt.awk: New file.
7795         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7796         of diff.
7797         * scripts/data/localplt-generic.data: Add a comment.
7798
7799         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7800         NODE when __dir_mkfile failed.
7801         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7802         Reported by Ludovic Courtès <ludo@gnu.org>.
7803
7804 2012-04-24  Andreas Jaeger  <aj@suse.de>
7805
7806         * Makerules (common-clean): Also remove gen-as-const-headers
7807         files.
7808
7809 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7810
7811         * Makerules (native-compile): Do not change working directory for
7812         build.  Use $(OUTPUT_OPTION) in command.
7813         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7814
7815 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7816
7817         [BZ #13886]
7818         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7819         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7820         * math/libm-test.inc (floor_test): Add more tests.
7821         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7822
7823 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7824
7825         * sysdeps/unix/getdents.c: Remove file.
7826         * sysdeps/unix/sysv/getdents.c: Likewise.
7827         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7828
7829         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7830         sysdeps/unix/mman/syscalls.list.
7831         (mmap): Likewise.
7832         (mprotect): Likewise.
7833         (msync): Likewise.
7834         (munmap): Likewise.
7835         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7836         * sysdeps/unix/mman/syscalls.list: Remove.
7837         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7838
7839         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7840         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7841         * configure: Regenerated.
7842         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7843         $(libgcc_s_suffix).
7844         * config.make.in (libgcc_s_suffix): Remove variable.
7845
7846 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7847
7848         * sysdeps/unix/sysv/gethostname.c: Move to ...
7849         * sysdeps/posix/gethostname.c: ... here.
7850
7851         * sysdeps/unix/execve.S: Remove file.
7852
7853         * sysdeps/unix/_exit.S: Remove file.
7854
7855 2012-04-23  Andreas Jaeger  <aj@suse.de>
7856
7857         [BZ #13739]
7858         * manual/Makefile: Remove make dist support, there's no
7859         need for a stand-alone documentation tar ball.
7860         (TEXI2DVI): Define always, it's not in Makeconfig.
7861         (dist): Removed.
7862         (tar-it): Removed.
7863         (edition): Removed.
7864         (glibc-doc-$(edition).tar): Removed
7865         (%.Z): Removed.
7866         (%.gz): Removed.
7867         (%.uu): Removed.
7868         (ETAGS): Remove, it's in Makeconfig.
7869         (move-if-change): Remove, it's in Makeconfig.
7870
7871 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7872
7873         [BZ #13970]
7874         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7875         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7876         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7877         (strtod_l, strtof_l, strtold_l): Remove __wur.
7878         It is not necessarily an error to ignore strtol's return value.
7879         One can reliably look at the stored endptr to decide whether
7880         the number had valid syntax.
7881
7882 2012-04-21  Andreas Jaeger  <aj@suse.de>
7883
7884         [BZ #13739]
7885         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7886
7887 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7888
7889         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7890         * sysdeps/unix/sysv/Versions: Remove file.
7891
7892 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7893
7894         [BZ #13927]
7895         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7896
7897 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7898
7899         [BZ #7064]
7900         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7901         version from __vm86.
7902
7903 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7904
7905         * sysdeps/unix/common/lxstat.c: Remove file.
7906         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7907
7908         * sysdeps/unix/sysv/Makefile: Remove file.
7909
7910         * sysdeps/unix/sysv/direct.h: Remove file.
7911
7912         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7913         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7914         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7915         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7916         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7917         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7918         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7919
7920         * sysdeps/unix/sysv/setrlimit.c: Remove file.
7921
7922         * sysdeps/unix/xmknod.c: Remove file.
7923         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7924
7925         * sysdeps/unix/sysv/settimeofday.c: Remove file.
7926
7927         * sysdeps/unix/sysv/i386/time.S: Remove file.
7928
7929         * sysdeps/unix/fxstat.c: Remove file.
7930         * sysdeps/unix/xstat.c: Likewise.
7931         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
7932
7933         * sysdeps/unix/sysv/sigaction.c: Remove file.
7934
7935         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
7936         (sysdep_headers): Remove variable.
7937         [termio.h not in sysdep_headers] (generated): Likewise.
7938         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
7939         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
7940         * sysdeps/unix/sysv/tcdrain.c: Likewise.
7941         * sysdeps/unix/sysv/tcflow.c: Likewise.
7942         * sysdeps/unix/sysv/tcflush.c: Likewise.
7943         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
7944         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
7945         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
7946         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
7947         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
7948
7949         * sysdeps/unix/siglist.c: Remove file.
7950
7951         * sysdeps/unix/getppid.S: Remove file.
7952
7953         * sysdeps/unix/mkdir.c: Remove file.
7954         * sysdeps/unix/rmdir.c: Likewise.
7955
7956 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7957
7958         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
7959         ERR_MAX value.
7960         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
7961         errlist-compat value.
7962
7963 2012-04-18  David S. Miller  <davem@davemloft.net>
7964
7965         * sysdeps/generic/memcopy.h (reg_char): Delete.
7966         * debug/strcat_chk.c: Use char, not reg_char.
7967         * debug/strcpy_chk.c: Likewise.
7968         * debug/strncat_chk.c: Likewise.
7969         * debug/strncpy_chk.c: Likewise.
7970         * string/memchr.c: Likewise.
7971         * string/memrchr.c: Likewise.
7972         * string/rawmemchr.c: Likewise.
7973         * string/strcat.c: Likewise.
7974         * string/strchr.c: Likewise.
7975         * string/strchrnul.c: Likewise.
7976         * string/strcmp.c: Likewise.
7977         * string/strcpy.c: Likewise.
7978         * string/strncat.c: Likewise.
7979         * string/strncmp.c: Likewise.
7980         * string/strncpy.c: Likewise.
7981
7982 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7983
7984         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
7985         __builtin_memcopy is called when src and dest ranges are known to not
7986         overlap.
7987
7988 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7989
7990         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
7991         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
7992         fwd_align_merge macro call.
7993         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
7994         bwd_align_merge macro call.
7995         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7996
7997 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7998
7999         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8000         bwd_align_merge macros.
8001         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8002         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8003         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8004
8005 2012-04-18  David S. Miller  <davem@davemloft.net>
8006
8007         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8008
8009 2012-04-18  Andreas Jaeger  <aj@suse.de>
8010
8011         [BZ# 6794]
8012         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8013         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8014         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8015
8016         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8017         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8018         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8019
8020         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8021         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8022         Adjust for changed ldbl-128 files.
8023
8024         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8025         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8026         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8027
8028 2012-04-17  David S. Miller  <davem@davemloft.net>
8029
8030         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8031
8032 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8033
8034         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8035         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8036         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8037         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8038         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8039         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8040
8041 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8042
8043         [BZ #6794]
8044         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8045         * math/libm-test.inc: Add ilogb errno and exception tests.
8046         * math/w_ilogb.c: New file: ilogb wrapper.
8047         * math/w_ilogbf.c: New file: ilogbf wrapper.
8048         * math/w_ilogbl.c: New file: ilogbl wrapper.
8049         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8050         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8051         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8052         exception being thrown with 0.0 as argument.
8053         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8054         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8055         exception being thrown with 0.0 as argument.
8056         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8057         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8058         exception being thrown with 0.0 as argument.
8059         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8060         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8061         exception being thrown with 0.0 as argument.
8062         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8063         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8064         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8065         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8066         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8067         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8068         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8069         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8070         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8071
8072 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8073
8074         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8075         with altivec.
8076
8077 2012-04-16  Marek Polacek  <polacek@redhat.com>
8078
8079         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8080
8081 2012-04-16  Marek Polacek  <polacek@redhat.com>
8082
8083         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8084         operands of fdivp instruction.
8085
8086 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8087
8088         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8089         * elf/tst-auditmod3b.c: Likewise.
8090         * elf/tst-auditmod4b.c: Likewise.
8091         * elf/tst-auditmod5b.c: Likewise.
8092         * elf/tst-auditmod6b.c: Likewise.
8093         * elf/tst-auditmod6c.c: Likewise.
8094         * elf/tst-auditmod7b.c: Likewise.
8095         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8096         * sysdeps/x86_64/preconfigure.in: Likewise.
8097         * sysdeps/x86_64/preconfigure: Regenerated.
8098
8099 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8100
8101         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8102         __ILP32__.
8103
8104 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8105
8106         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8107         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8108
8109 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8110
8111         [BZ #13973]
8112         * locale/iso-639.def: Fix gl language name. Spotted by
8113         Yaron Shahrabani.
8114
8115 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8116
8117         [BZ #2074]
8118         * libio/libio.h (__io_write_fn): Update comment.
8119
8120 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8121
8122         [BZ #2074]
8123         * stdio.texi (Hook Functions): The user provided writer function
8124         is not allowed to return -1.
8125
8126 2012-04-11  David S. Miller  <davem@davemloft.net>
8127
8128         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8129
8130 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8131
8132         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8133         Add a leading slash to rtkaio.
8134
8135 2012-04-11  Jim Meyering  <meyering@redhat.com>
8136
8137         [BZ #11959]
8138         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8139         It is not necessarily an error to ignore fwrite's return
8140         value.  One can reliably use ferror to test for errors after
8141         the fact.
8142
8143 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8144
8145         * bits/types.h (__snseconds_t): New type.
8146         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8147
8148         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8149         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8150         (__SNSECONDS_T_TYPE): Likewise.
8151         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8152         (__SNSECONDS_T_TYPE): Likewise.
8153         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8154         (__SNSECONDS_T_TYPE): Likewise.
8155
8156 2012-04-10  Andreas Jaeger  <aj@suse.de>
8157
8158         [BZ #2636]
8159         * manual/time.texi (Processor Time): Return type of times is
8160         elapsed real time since an arbitrary point in the past.
8161         (CPU Time): Move CLK_TCK from here...
8162         (Processor Time): ...to here.  Correct description.
8163         * manual/conf.texi (Constants for Sysconf): Correct description of
8164         _SC_CLK_TCK.
8165
8166 2012-04-10  David S. Miller  <davem@davemloft.net>
8167
8168         [BZ #13967]
8169         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8170         where the is a gap between DT_REL(A) and DT_JMPREL.
8171
8172 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8173
8174         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8175         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8176         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8177
8178 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8179
8180         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8181         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8182         (dl_main): Handle --inhibit-cache.
8183         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8184         _dl_inhibit_cache.
8185         * elf/dl-load.c (_dl_map_object): Use it.
8186         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8187
8188 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8189
8190         [BZ #13872]
8191         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8192         (__ieee754_powl): Saturate large exponents rather than testing for
8193         overflow of y*log2(x).
8194         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8195         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8196         exceptions.
8197
8198         [BZ #11521]
8199         * math/s_ctan.c: Include <float.h>.
8200         (__ctan): Avoid internal overflow or cancellation in calculating
8201         denominator.
8202         * math/s_ctanf.c: Likewise.
8203         * math/s_ctanl.c: Likewise.
8204         * math/s_ctanh.c: Likewise.
8205         * math/s_ctanhf.c: Likewise.
8206         * math/s_ctanhl.c: Likewise.
8207         * math/libm-test.inc (ctan_test): Add more tests.
8208         (ctanh_test): Likewise.
8209         * sysdeps/i386/fpu/libm-test-ulps: Update.
8210         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8211
8212 2012-04-09  Andreas Jaeger  <aj@suse.de>
8213
8214         [BZ #6894]
8215         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8216         is an optional BSD extension.
8217
8218         [BZ #10254]
8219         * manual/stdio.texi (Opening Streams): Document additional fopen
8220         parameters.
8221
8222 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8223
8224         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8225         %eax without telling the compiler.
8226
8227 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8228
8229         [BZ # 13963]
8230         * manual/install.texi: Use sourceware.org.
8231
8232 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8233
8234         [BZ #13873]
8235         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8236         (__ieee754_pow): Generate overflow and underflow using huge*huge
8237         and tiny*tiny rather than just returning constant infinity or zero
8238         for large exponents.
8239         * math/libm-test.inc (pow_test): Require overflow exceptions for
8240         applicable cases of large exponents.
8241
8242         [BZ #706]
8243         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8244         (__ieee754_pow): Use iterative multiplication algorithm only for
8245         integer exponents with absolute value below 1024.  Check for odd
8246         integer exponents when using algorithm for real exponents.
8247         * math/libm-test.inc (pow_test): Add more tests.
8248         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8249
8250 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8251
8252         [BZ #13705]
8253         * math/libm-test.inc (exp_test): Do not allow overflow exception
8254         on underflow test.
8255
8256 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8257
8258         [BZ #13705]
8259         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8260         instead of __kernel_standard_f.
8261
8262 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8263
8264         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8265         * sysdeps/x86_64/memset_chk.S: Likewise.
8266
8267 2012-04-08  Andreas Jaeger  <aj@suse.de>
8268
8269         [BZ #10153]
8270         * manual/startup.texi (Environment Access): Describe return value
8271         for putenv and setenv.
8272
8273         [BZ #6895]
8274         * manual/filesys.texi (Directory Entries): Add description for
8275         DT_LNK.
8276
8277         [BZ #6890]
8278         * manual/filesys.texi (Directory Entries): Clarify that it's file
8279         system not operating system in the description of DT_UNKNOWN.
8280
8281         [BZ #6578]
8282         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8283
8284 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8285
8286         [BZ #6649]
8287         * manual/llio.texi (Opening and Closing Files): Add cross
8288         reference to explain mode argument.
8289
8290 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8291
8292         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8293         * sysdeps/x86_64/memset_chk.S: Likewise.
8294
8295 2012-04-07  David S. Miller  <davem@davemloft.net>
8296
8297         * elf/elf.h (R_SPARC_WDISP10): Define.
8298         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8299         R_SPARC_SIZE32.
8300         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8301         R_SPARC_SIZE64 and R_SPARC_H34.
8302
8303 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8304
8305         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8306         conditions and remove no longer applicable assertion.
8307
8308 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8309
8310         * bits/byteswap.h: Include <features.h>.
8311         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8312         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8313
8314 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8315
8316         * bits/byteswap.h (__bswap_16): Removed.
8317         Include <bits/byteswap-16.h> to get __bswap_16.
8318         * sysdeps/i386/bits/byteswap.h: Likewise.
8319         * sysdeps/s390/bits/byteswap.h: Likewise.
8320         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8321         * bits/byteswap-16.h: New file.
8322         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8323         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8324         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8325         * string/Makefile (headers): Add bits/byteswap-16.h.
8326
8327 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8328
8329         [BZ #13895]
8330         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8331         extra indirection.
8332         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8333         * nss/tst-nss-static.c: New.
8334
8335 2012-04-06  Robert Millan  <rmh@gnu.org>
8336
8337         [BZ #6486]
8338         * manual/llio.texi (File Position Primitive): lseek
8339         refers to WHENCE when it really means OFFSET.
8340
8341 2012-04-06  Andreas Jaeger  <aj@suse.de>
8342
8343         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8344         strncmp declarations.
8345
8346         * abilist/libc.abilist: Add __poll and __ppoll.
8347
8348 2012-04-05  David S. Miller  <davem@davemloft.net>
8349
8350         * scripts/check-local-headers.sh: Accept a host triplet in the
8351         path matched by the exclude regexp.
8352
8353         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8354         definition.
8355         * sysdeps/powerpc/powerpc32/dl-machine.h
8356         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8357         * sysdeps/s390/s390-32/dl-machine.h
8358         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8359         * sysdeps/sparc/sparc32/dl-machine.h
8360         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8361         * sysdeps/sparc/sparc64/dl-machine.h
8362         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8363
8364         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8365         lazy binding.
8366         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8367         undefined symbol errors.
8368
8369         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8370         DT_NEEDED entries.
8371
8372 2012-04-05  Michael Matz  <matz@suse.de>
8373
8374         [BZ #13592]
8375         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8376
8377 2012-04-05  Andreas Jaeger  <aj@suse.de>
8378
8379         [BZ #13908]
8380         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8381         comment.
8382
8383 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8384
8385         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8386         which ROUND is no valid rounding mode.
8387
8388 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8389
8390         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8391         read again.
8392         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8393
8394 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8395
8396         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8397         an exception using FPU order intentionally.
8398
8399 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8400
8401         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8402         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8403         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8404         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8405
8406 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8407
8408         [BZ #12340]
8409         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8410         EINVAL when BUFLEN is too smal.
8411
8412 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8413
8414         [BZ #13553]
8415         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8416         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8417
8418 2012-04-03  Andreas Jaeger  <aj@suse.de>
8419
8420         [BZ #13938]
8421         * manual/setjmp.texi (System V contexts): Fix sentence.
8422
8423         [BZ #13926]
8424         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8425         New macro for this case.
8426         [!__GNUC__] (__bswap_64): New inline function for this case.
8427         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8428         * bits/byteswap.h: Likewise.
8429         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8430         ull, guard with __GLIBC_HAVE_LONG_LONG.
8431
8432         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8433         __GLIBC_HAVE_LONG_LONG.
8434
8435         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8436         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8437
8438 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8439
8440         [BZ #13691]
8441         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8442         inptr and inend, rather than using last_ch.
8443
8444 2012-04-02  David S. Miller  <davem@davemloft.net>
8445
8446         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8447         * stdio-common/printf-parse.h (read_int): Change return type to
8448         'int', return -1 on INT_MAX overflow.
8449         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8450         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8451         overflows INT_MAX.  Check for overflow of in-format-string precision
8452         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8453         SIZE_MAX not INT_MAX for integer overflow test.
8454         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8455         skip the construct in the format string but do not record anything.
8456         * stdio-common/bug22.c: Adjust to test both width/prevision
8457         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8458         explicitly for proper errno values.
8459
8460 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8461
8462         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8463         CHAR_MAX.
8464         * string/test-strcmp.c [! WIDE]: Likewise.
8465         * time/tst-mktime2.c: Likewise for INT_MAX.
8466         * string/test-string.h: #include <sys/param.h> for MIN.
8467
8468         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8469         * sysdeps/i386/init-first.c (init): Likewise.
8470         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8471         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8472         * sysdeps/sh/init-first.c (init): Likewise.
8473
8474 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8475
8476         * po/ru.po: Update from translation team.
8477         * po/vi.po: Likewise.
8478
8479 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8480
8481         * resolv/nss_dns/dns-host.c: Merge copyright years.
8482
8483 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8484
8485         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8486         Optimize memcpy with prefetch if
8487         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8488         src, dst pointers have unequal 16 byte alignments.
8489
8490 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8491
8492         [BZ #13928]
8493         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8494         from a CNAME entry and return the minimum ttl for the query.
8495         (gaih_getanswer_slice): Likewise.
8496
8497 2012-03-30  Jeff Law  <law@redhat.com>
8498
8499         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8500         due to long keys.
8501         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8502         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8503
8504         * resolv/nss_dns/dns-host.c: Update copyright year.
8505
8506 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8507
8508         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8509         requests to save a system call.  Fix check that all bytes are sent.
8510
8511         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8512         comments for sendmmsg.
8513
8514 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8515
8516         [BZ #13691]
8517         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8518         with only 1 character between 0x0041 and 0x01b0.
8519         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8520         * wcsmbs/tst-mbsnrtowcs.c: New file.
8521
8522 2012-03-29  David S. Miller  <davem@davemloft.net>
8523
8524         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8525         small copies by hand.
8526
8527 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8528
8529         [BZ #13761]
8530         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8531         _nss_compat_initgroups_dyn): Fall back to malloc/free
8532         for large group memberships.
8533
8534 2012-03-28  David S. Miller  <davem@davemloft.net>
8535
8536         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8537         that branches into memcpy.
8538         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8539         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8540         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8541         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8542         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8543         bits.
8544         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8545         implementation too.
8546         * sysdeps/sparc/mempcpy.S: New file.
8547
8548         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8549         the IFUNC routine in the libc case.
8550         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8551
8552         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8553         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8554         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8555         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8556         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8557         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8558         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8559         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8560
8561         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8562         loop to 256 bytes instead of 64 bytes and fix test signedness.
8563
8564         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8565         * sysdeps/sparc/sparc32/Makefile: rather than here...
8566         * sysdeps/sparc/sparc64/Makefile: and here.
8567
8568 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8569
8570         * malloc/mallocbug.c: Avoid warnings about unused variables.
8571
8572 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8573
8574         [BZ #13760]
8575         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8576         in the right place. Discard and retry query if response is
8577         larger than input buffer size.
8578
8579 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8580
8581         [BZ #369]
8582         [BZ #2678]
8583         [BZ #3866]
8584         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8585         x for large integer exponent.
8586         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8587         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8588         sign of result as needed afterwards.
8589         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8590         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8591         result for underflowing pow the same as for overflow.
8592         (__kernel_standard_l): Handle powl overflow and underflow here
8593         rather than calling __kernel_standard.
8594         * math/libm-test.inc (pow_test): Add more tests.
8595
8596         [BZ #3868]
8597         [BZ #13879]
8598         [BZ #13910]
8599         [BZ #13911]
8600         [BZ #13912]
8601         [BZ #13913]
8602         [BZ #13915]
8603         [BZ #13916]
8604         [BZ #13917]
8605         [BZ #13918]
8606         [BZ #13919]
8607         [BZ #13920]
8608         [BZ #13921]
8609         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8610         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8611         (__kernel_standard_l): New function.
8612         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8613         __kernel_standard.
8614         * math/w_acosl.c (__acosl): Likewise.
8615         * math/w_asinl.c (__asinl): Likewise.
8616         * math/w_atan2l.c (__atan2l): Likewise.
8617         * math/w_atanhl.c (__atanhl): Likewise.
8618         * math/w_coshl.c (__coshl): Likewise.
8619         * math/w_exp10l.c (__exp10l): Likewise.
8620         * math/w_exp2l.c (__exp2l): Likewise.
8621         * math/w_fmodl.c (__fmodl): Likewise.
8622         * math/w_hypotl.c (__hypotl): Likewise.
8623         * math/w_j0l.c (__j0l, __y0l): Likewise.
8624         * math/w_j1l.c (__j1l, __y1l): Likewise.
8625         * math/w_jnl.c (__jnl, __ynl): Likewise.
8626         * math/w_lgammal.c (__lgammal): Likewise.
8627         * math/w_log10l.c (__log10l): Likewise.
8628         * math/w_log2l.c (__log2l): Likewise.
8629         * math/w_logl.c (__logl): Likewise.
8630         * math/w_powl.c (__powl): Likewise.
8631         * math/w_remainderl.c (__remainderl): Likewise.
8632         * math/w_scalbl.c (sysv_scalbl): Likewise.
8633         * math/w_sinhl.c (__sinhl): Likewise.
8634         * math/w_sqrtl.c (__sqrtl): Likewise.
8635         * math/w_tgammal.c (__tgammal): Likewise.
8636         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8637         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8638         * math/libm-test.inc (acos_test): Add more tests.
8639         (acosh_test): Likewise.
8640         (asin_test): Likewise.
8641         (atanh_test): Likewise.
8642         (exp_test): Likewise.
8643         (exp10_test): Likewise.
8644         (exp2_test): Likewise.
8645         (expm1_test): Likewise.
8646         (lgamma_test): Likewise.
8647         (log_test): Likewise.
8648         (log10_test): Likewise.
8649         (log1p_test): Likewise.
8650         (log2_test): Likewise.
8651         (pow_test): Do not allow some spurious overflow exceptions.
8652         (sqrt_test): Add more tests.
8653         (tgamma_test): Likewise.
8654         (y0_test): Likewise.
8655         (y1_test): Likewise.
8656         (yn_test): Likewise.
8657
8658 2012-03-27  Anton Blanchard  <anton@samba.org>
8659
8660         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8661         MAP_HUGETLB.
8662         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8663         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8664         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8665
8666 2012-03-27  David S. Miller  <davem@davemloft.net>
8667
8668         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8669
8670         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8671         have-as-vis3 check.
8672
8673 2012-03-27  Andreas Jaeger  <aj@suse.de>
8674
8675         * sysdeps/x86_64/elf/configure.in: Moved to ...
8676         * sysdeps/x86_64/configure.in: ... here.
8677         * sysdeps/x86_64/elf/start.S: Moved to ...
8678         * sysdeps/x86_64/start.S: ... here.
8679         * sysdeps/x86_64/elf/configure: Delete.
8680
8681         * sysdeps/x86_64/configure.in: Merge contents from
8682         sysdeps/i386/configure.in (without i686 check).
8683
8684         * sysdeps/i386/elf/Versions: Merge into ...
8685         * sysdeps/i386/Versions: ... this.
8686         * sysdeps/i386/elf/Versions: Delete file.
8687         * sysdeps/i386/elf/start.S: Moved to ...
8688         * sysdeps/i386/start.S: ...here.
8689         * sysdeps/i386/elf/configure.in: Merge into...
8690         * sysdeps/i386/configure.in: ...here.
8691         * sysdeps/i386/elf/configure.in: Delete file.
8692         * sysdeps/i386/elf/configure: Delete file.
8693
8694         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8695         * debug/backtracesyms.c: ... here.
8696         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8697         * debug/backtracesymsfd.c: ... here.
8698         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8699         * sysdeps/generic/ifunc-sel.h: ... here.
8700
8701         * sysdeps/unix/i386/start.c: Delete file.
8702         * sysdeps/unix/sparc/start.c: Delete file.
8703         * sysdeps/unix/start.c: Delete file.
8704
8705         * sysdeps/sh/elf/configure.in: Moved to ...
8706         * sysdeps/sh/configure.in: ... here.
8707         * sysdeps/sh/elf/start.S: Moved to ...
8708         * sysdeps/sh/start.S: ... here.
8709         * sysdeps/sh/elf/configure: Delete file.
8710
8711         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8712         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8713         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8714         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8715         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8716         * sysdeps/powerpc/powerpc64/start.S: here.
8717         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8718         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8719         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8720         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8721         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8722
8723         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8724         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8725         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8726         * sysdeps/powerpc/powerpc32/start.S: ... here.
8727         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8728         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8729         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8730
8731         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8732         * sysdeps/powerpc/ifunc-sel.h: ... here.
8733         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8734         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8735
8736         * sysdeps/sparc/elf/configure.in: Moved to ...
8737         * sysdeps/sparc/configure.in: ... here.
8738         * sysdeps/sparc/elf/configure: Delete file.
8739         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8740         * sysdeps/sparc/sparc32/start.S: ... here.
8741         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8742         * sysdeps/sparc/sparc64/start.S: ... here.
8743         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8744         * sysdeps/sparc/sparc32/Makefile: ... this.
8745         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8746         * sysdeps/sparc/sparc64/Makefile: ... this.
8747
8748         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8749         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8750         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8751         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8752         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8753         * sysdeps/s390/s390-32/setjmp.S: ... here.
8754         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8755         * sysdeps/s390/s390-32/configure.in: ... here.
8756         * sysdeps/s390/s390-32/elf/configure: Delete file.
8757         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8758         * sysdeps/s390/s390-32/start.S: ... here.
8759
8760         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8761         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8762         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8763         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8764         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8765         * sysdeps/s390/s390-64/setjmp.S: ... here.
8766         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8767         * sysdeps/s390/s390-64/configure.in: ... here
8768         * sysdeps/s390/s390-64/elf/configure: Delete file.
8769         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8770         * sysdeps/s390/s390-64/start.S: ... here.
8771         * sysdeps/s390/s390-64/elf/configure: Delete.
8772
8773         * configure.in: Remove support for elf directories in sysdeps.
8774
8775         * configure: Regenerated.
8776         * sysdeps/i386/configure: Regenerated.
8777         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8778         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8779         * sysdeps/s390/s390-32/configure: Regenerated.
8780         * sysdeps/s390/s390-64/configure: Regenerated.
8781         * sysdeps/sh/configure: Regenerated.
8782         * sysdeps/sparc/configure: Regenerated.
8783         * sysdeps/x86_64/configure: Regenerated.
8784
8785 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8786
8787         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8788
8789         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8790         denormal result into account.
8791
8792 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8793
8794         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8795         Reported by Allan McRae <allan@archlinux.org>.
8796
8797 2012-03-23  Jeff Law  <law@redhat.com>
8798
8799         * nss/getnssent.c (__nss_getent): Fix typo.
8800
8801 2012-03-23  David S. Miller  <davem@davemloft.net>
8802
8803         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8804
8805 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8806
8807         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8808         to pad to uint64_t for each field.
8809         (dl_tls_index): Replace unsigned long with uint64_t.
8810
8811 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8812         Paul Pluzhnikov  <ppluzhnikov@google.com>
8813
8814         [BZ #6528]
8815         * grp/Makefile (otherlibs): Don't set it.
8816         * inet/Makefile (otherlibs): Likewise.
8817         * login/Makefile (otherlibs): Likewise.
8818         * nscd/Makefile (otherlibs): Likewise.
8819         * posix/Makefile (otherlibs): Likewise.
8820         * pwd/Makefile (otherlibs): Likewise.
8821         * rt/Makefile (otherlibs): Likewise.
8822         * sunrpc/Makefile (otherlibs): Likewise.
8823         * nss/Makefile (otherlibs): Likewise.
8824         Add libnss_files to routines and static-only-routines.
8825         ($(objpfx)getent): Remove rule.
8826         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8827         static-only-routines.
8828
8829 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8830
8831         [BZ #13892]
8832         * math/s_cexp.c: Include <float.h>.
8833         (__cexp): Handle exp result overflowing not necessarily
8834         overflowing both real and imaginary parts of result.
8835         * math/s_cexpf.c: Likewise.
8836         * math/s_cexpl.c: Likewise.
8837         * math/libm-test.inc (cexp_test): Add more tests.
8838         * sysdeps/i386/fpu/libm-test-ulps: Update.
8839         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8840
8841 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8842
8843         * include/link.h (ELFW): New macro.
8844         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8845         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8846
8847 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8848
8849         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8850         with uint64_t.
8851
8852 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8853
8854         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8855         declaration.
8856         (struct La_x32_retval): Likewise.
8857
8858 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8859
8860         * sysdeps/x86_64/preconfigure.in: New file.
8861         * sysdeps/x86_64/preconfigure: New generated file.
8862
8863 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8864
8865         [BZ #13824]
8866         * math/e_exp2l.c: Include <float.h>.
8867         (__ieee754_exp2l): Handle overflow and underflow cases
8868         separately.  Only pass fractional part of argument to
8869         __ieee754_expl.
8870         * math/libm-test.inc (exp2_test): Add more tests.
8871
8872         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8873         negating x to take absolute value.
8874         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8875         Likewise.
8876         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8877         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8878         Likewise.
8879         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8880         computing low part if x was negated.
8881         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8882
8883 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8884
8885         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8886         la_x32_gnu_pltexit.
8887         (pltexit): Cast int_retval to ptrdiff_t.
8888         * elf/tst-auditmod3b.c: Likewise.
8889         * elf/tst-auditmod4b.c: Likewise.
8890         * elf/tst-auditmod5b.c: Likewise.
8891         * elf/tst-auditmod6b.c: Likewise.
8892         * elf/tst-auditmod6c.c: Likewise.
8893         * elf/tst-auditmod7b.c: Likewise.
8894
8895         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8896         and x32_gnu_pltexit.
8897
8898         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8899         __ELF_NATIVE_CLASS.
8900         (La_x32_regs): New macro.
8901         (La_x32_retval): Likewise.
8902         (la_x32_gnu_pltenter): New function prototype.
8903         (la_x32_gnu_pltexit): Likewise.
8904
8905 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8906
8907         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8908         exponent.
8909
8910         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8911
8912         * configure.in (libc_cv_cc_nofma): Check for option to disable
8913         generation of FMA instructions.
8914         * configure: Regenerate.
8915         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8916         * sysdeps/ieee754/dbl-64/Makefile: New file.
8917         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8918         Remove brandred-fma4.
8919         (CFLAGS-brandred-fma4.c): Remove.
8920         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8921         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8922         define.
8923         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8924         define.
8925
8926 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8927
8928         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8929         LLONG_MAX != LONG_MAX.
8930         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8931         (_fitoa_word): Likewise.
8932         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
8933         LLONG_MAX != LONG_MAX.
8934         * stdio-common/_itowa.h: Include <_itoa.h>.
8935         (_itowa_word): Use _ITOA_WORD_TYPE on value.
8936         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
8937         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
8938         only if not defined.
8939         (_ITOA_WORD_TYPE): Likewise.
8940         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8941         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
8942
8943 2012-03-21  David S. Miller  <davem@davemloft.net>
8944
8945         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8946
8947 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8948
8949         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
8950         of x86_64 when setting libc_cv_slibdir, libdir and
8951         libc_cv_localedir.
8952         * sysdeps/unix/sysv/linux/configure: Regenerated.
8953
8954 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8955
8956         * manual/lang.texi (Old Varargs): Remove section.
8957         (How Variadic): Update menu.
8958         (va_start): Do not mention varargs.h.
8959
8960 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8961             Joseph Myers  <joseph@codesourcery.com>
8962
8963         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
8964         link test.
8965         * configure: Regenerated.
8966
8967 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8968
8969         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
8970         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
8971         conformtest.pl
8972
8973 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8974
8975         * NOTES: Remove.
8976         * Makefile (files-for-dist): Remove NOTES.
8977         (NOTES): Remove rule.
8978         * README: Don't refer to NOTES.
8979         * manual/creature.texi: Don't include macros.texi.
8980         * manual/intro.texi (creature.texi): Remove comment referring to
8981         NOTES.
8982
8983         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
8984         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
8985         * configure: Regenerated.
8986         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
8987         LIBC_TRY_CC_OPTION.
8988         (libc_cv_as_i686): Likewise.
8989         (libc_cv_cc_avx): Likewise.
8990         (libc_cv_cc_sse2avx): Likewise.
8991         (libc_cv_cc_fma4): Likewise.
8992         (libc_cv_cc_novzeroupper): Likewise.
8993         * sysdeps/i386/configure: Regenerated.
8994
8995         [BZ #13883]
8996         * sysdeps/i386/fpu/s_cexp.S: Remove.
8997         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8998         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8999         * math/libm-test.inc (cexp_test): Add more tests.
9000         * sysdeps/i386/fpu/libm-test-ulps: Update.
9001         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9002
9003 2012-03-21  Allan McRae  <allan@archlinux.org>
9004
9005         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9006
9007 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9008
9009         [BZ #13871]
9010         * math/w_exp2.c: Do not include <float.h>.
9011         (o_threshold, u_threshold): Remove.
9012         (__exp2): Calculate result before checking finiteness and calling
9013         __kernel_standard.
9014         * math/w_exp2f.c: Likewise.
9015         * math/w_exp2l.c: Likewise.
9016         * math/libm-test.inc (exp2_test): Require overflow exception for
9017         1e6 input.
9018
9019         [BZ #3866]
9020         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9021         range of signed 64-bit integers before using fistpll.  Remove
9022         checks for whether integers fit in mantissa bits.
9023         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9024         the range of signed 32-bit integers before using fistpl.  Remove
9025         checks for whether integers fit in mantissa bits.
9026         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9027         (__ieee754_powl): Test for y outside the range of signed 64-bit
9028         integers before using fistpll.  Reduce 64-bit values to 63-bit
9029         ones as needed.
9030         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9031         divide-by-zero is raised for zero to large negative powers.
9032         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9033         (__ieee754_powl): Test for y outside the range of signed 64-bit
9034         integers before using fistpll.  Reduce 64-bit values to 63-bit
9035         ones as needed.
9036         * math/libm-test.inc (pow_test): Add more tests.
9037
9038 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9039
9040         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9041         <stdio-common/_itoa.h>.
9042         * debug/segfault.c: Likewise.
9043         * elf/dl-cache.c: Likewise.
9044         * elf/dl-minimal.c: Likewise.
9045         * elf/dl-misc.c: Likewise.
9046         * elf/dl-sysdep.c: Likewise.
9047         * elf/dl-version.c: Likewise.
9048         * elf/rtld.c: Likewise.
9049         * hurd/hurdsock.c: Likewise.
9050         * hurd/lookup-retry.c: Likewise.
9051         * malloc/malloc.c: Likewise.
9052         * malloc/mtrace.c: Likewise.
9053         * nscd/nscd_getgr_r.c: Likewise.
9054         * nscd/nscd_getpw_r.c: Likewise.
9055         * nscd/nscd_getserv_r.c: Likewise.
9056         * posix/getopt_init.c: Likewise.
9057         * posix/wordexp.c: Likewise.
9058         * stdio-common/_itoa.c: Likewise.
9059         * stdio-common/printf_fphex.c: Likewise.
9060         * stdio-common/vfprintf.c: Likewise.
9061         * string/_strerror.c: Likewise.
9062         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9063         * sysdeps/i386/i686/hp-timing.h: Likewise.
9064         * sysdeps/mach/_strerror.c: Likewise.
9065         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9066         * sysdeps/mach/hurd/sethostid.c: Likewise.
9067         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9068         * sysdeps/mach/xpg-strerror.c: Likewise.
9069         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9070         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9071         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9072         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9073         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9074         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9075         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9076         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9077         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9078         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9079         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9080         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9081         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9082         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9083         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9084         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9085         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9086         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9087         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9088         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9089         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9090
9091         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9092
9093         * stdio-common/_itoa.h: Moved to ...
9094         * sysdeps/generic/_itoa.h: Here.
9095
9096         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9097
9098         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9099         instead of "_itoa.h" and "_itowa.h".
9100         * stdio-common/vfprintf.: Likewise.
9101
9102 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9103
9104         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9105         <bits/wordsize.h>.
9106         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9107         (__signbit): Likwise.
9108         (llrintf): Likwise.
9109         (llrint): Likwise.
9110
9111 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9112
9113         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9114         __WORDSIZE != 64.
9115
9116 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9117
9118         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9119         OVERFLOW_EXCEPTION_OK.
9120         * math/libm-test.inc ("Philosophy"): Update comment about
9121         exception testing.
9122         (OVERFLOW_EXCEPTION): Define.
9123         (OVERFLOW_EXCEPTION_OK): Likewise.
9124         (INVALID_EXCEPTION_OK): Renumber.
9125         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9126         (IGNORE_ZERO_INF_SIGN): Likewise.
9127         (test_exceptions): Handle FE_OVERFLOW.
9128         (exp10_test): Expect overflow exceptions.
9129         (exp2_test): Likewise.
9130         (expm1_test): Likewise.
9131         (nextafter_test): Likewise.
9132         (pow_test): Likewise.
9133         (scalbn_test): Likewise.
9134         (scalbln_test): Likewise.
9135
9136 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9137
9138         * sysdeps/x86_64/bits/atomic.h
9139         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9140         64bit integer.
9141         (atomic_exchange_acq): Likewise.
9142         (__arch_exchange_and_add_body): Likewise.
9143         (__arch_add_body): Likewise.
9144         (atomic_add_negative): Likewise.
9145         (atomic_add_zero): Likewise.
9146
9147 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9148
9149         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9150         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9151
9152 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9153
9154         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9155         Check __x86_64__ instead of __WORDSIZE.
9156
9157 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9158
9159         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9160
9161 2012-03-19  David S. Miller  <davem@davemloft.net>
9162
9163         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9164
9165         * sysdeps/sparc/fpu/fenv_private.h: New file.
9166         * sysdeps/sparc/fpu/math_private.h: Use it.
9167         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9168         Remove.
9169         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9170         (libc_feholdexcept_setroundl): Remove.
9171         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9172         Remove.
9173         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9174         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9175
9176 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9177
9178         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9179         int64_t instead of long int.
9180         (INSERT_WORDS64): Likwise.
9181
9182 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9183
9184         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9185         _Unwind_GetCFA return to _Unwind_Ptr first.
9186
9187 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9188
9189         [BZ #13629]
9190         * math/s_clog.c: Include <float.h>.
9191         (__clog): Scale large or subnormal inputs.
9192         * math/s_clogf.c: Likewise.
9193         * math/s_clogl.c: Likewise.
9194         * math/s_clog10.c: Include <float.h>.
9195         (M_LOG10_2): Define.
9196         (__clog10): Scale large or subnormal inputs.
9197         * math/s_clog10f.c: Likewise.
9198         * math/s_clog10l.c: Likewise.
9199         * math/libm-test.inc (clog_test): Add more tests.
9200         (clog10_test): Likewise.
9201         * sysdeps/i386/fpu/libm-test-ulps: Update.
9202         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9203
9204         [BZ #11451]
9205         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9206         x and y.
9207         * math/libm-test.inc (atan2_test): Add another test.
9208
9209         * Makerules (common-objdir-compile): Remove.
9210         * sysdeps/unix/Makefile (config-generated): Do not add
9211         $(unix-generated) to variable.
9212         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9213         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9214         Remove rule.
9215         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9216         Likewise.
9217         [generic bits/local_lim.h] (before-compile): Do not append to
9218         variable.
9219         [generic bits/local_lim.h] (common-generated): Likewise.
9220         [generic sys/param.h] (before-compile): Do not append to variable.
9221         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9222         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9223         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9224         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9225         include.
9226         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9227         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9228         [generic sys/param.h] ($(addprefix
9229         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9230         [generic sys/param.h] (common-generated): Do not append to
9231         variable.
9232         [generic sys/param.h] (sysdep_headers): Likewise.
9233         [generic bits/errno.h] (before-compile): Do not append to
9234         variable.
9235         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9236         rule.
9237         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9238         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9239         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9240         [generic bits/errno.h] (common-generated): Do not append to
9241         variable.
9242         [generic bits/ioctls.h] (before-compile): Do not append to
9243         variable.
9244         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9245         rule.
9246         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9247         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9248         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9249         rule.
9250         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9251         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9252         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9253         [generic bits/ioctls.h] (common-generated): Do not append to
9254         variable.
9255         [generic sys/syscall.h] (syscall.h): Remove variable.
9256         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9257         rule.
9258         [generic sys/syscall.h] (before-compile): Do not append to
9259         variable.
9260         [generic sys/syscall.h] (common-generated): Likewise.
9261         * sysdeps/unix/errnos-tmpl.c: Remove file.
9262         * sysdeps/unix/errnos.awk: Likewise.
9263         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9264         * sysdeps/unix/ioctls.awk: Likewise.
9265         * sysdeps/unix/mk-local_lim.c: Likewise.
9266         * sysdeps/unix/snarf-ioctls: Likewise.
9267
9268 2012-03-19  Richard Henderson  <rth@twiddle.net>
9269
9270         * sysdeps/i386/fpu/fenv_private.h: New file.
9271         * sysdeps/i386/fpu/math_private.h: Use it.
9272         (math_opt_barrier, math_force_eval): Remove.
9273         (libc_feholdexcept_setround_53bit): Remove.
9274         (libc_feupdateenv_53bit): Remove.
9275         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9276         (math_opt_barrier, math_force_eval): Remove.
9277         (libc_feholdexcept): Remove.
9278         (libc_feholdexcept_setround): Remove.
9279         (libc_fetestexcept, libc_fesetenv): Remove.
9280         (libc_feupdateenv_test): Remove.
9281         (libc_feupdateenv, libc_feholdsetround): Remove.
9282         (libc_feresetround): Remove.
9283
9284         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9285         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9286
9287         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9288         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9289         (libc_feupdateenv_testl): New.
9290         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9291         (libc_feupdateenv_testf): New.
9292         (libc_feupdateenv): Use libc_feupdateenv_test.
9293         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9294         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9295
9296         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9297         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9298         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9299         (libc_feresetround_noex): New.
9300         (libc_feresetround_noexf): New.
9301         (libc_feresetround_noexl): New.
9302         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9303         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9304         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9305         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9306         SET_RESTORE_ROUND.
9307         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9308         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9309         (__cos): Likewise.
9310         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9311         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9312         SET_RESTORE_ROUND_NOEX.
9313         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9314         SET_RESTORE_ROUND_NOEXF.
9315         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9316         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9317         (libc_feholdsetroundf): New.
9318         (libc_feresetround, libc_feresetroundf): New.
9319
9320         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9321         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9322         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9323
9324         * sysdeps/generic/math_private.h: Include <fenv.h>.
9325         (default_libc_feholdexcept): New.
9326         (default_libc_feholdexcept_setround): New.
9327         (default_libc_fesetenv, default_libc_feupdateenv): New.
9328         (libc_feholdexcept): Only define if undefined.
9329         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9330         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9331         (libc_feholdexcept_setroundl): Likewise.
9332         (libc_feholdexcept_setround_53bit): Likewise.
9333         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9334         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9335         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9336         (libc_feupdateenv_53bit): Likewise.
9337         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9338         (libc_feholdexcept): Convert from macro to inline function.
9339         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9340         (libc_fesetenv, libc_feupdateenv): Likewise.
9341
9342         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9343         not previously defined.
9344         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9345         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9346         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9347         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9348         * sysdeps/ieee754/flt-32/math_private.h: New file.
9349         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9350         math_private.h below SET_FLOAT_WORD.
9351         (__isnan, __isinf_ns, __finite): Remove.
9352         (__isnanf, __isinf_nsf, __finitef): Remove.
9353
9354 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9355
9356         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9357
9358 2012-03-17  David S. Miller  <davem@davemloft.net>
9359
9360         [BZ #6471]
9361         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9362         for 2.16.
9363
9364 2012-03-16  David S. Miller  <davem@davemloft.net>
9365
9366         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9367         warnings.
9368
9369         [BZ #6471]
9370         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9371         properly.
9372         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9373         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9374         sysdep_routines when subdir is sysvipc.
9375         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9376         __getshmlba helper.
9377
9378         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9379
9380 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9381
9382         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9383         [__LP64__].
9384
9385 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9386
9387         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9388         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9389         (__lround): Renamed to ...
9390         (__llround): This.  Replace long int with long long int.
9391         Define lround functions as aliases of llround functions.
9392         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9393
9394 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9395
9396         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9397         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9398         adresses to uintptr_t.  Replace "long int" and "unsigned long
9399         int" with "greg_t" on va_arg.
9400
9401 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9402
9403         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9404         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9405
9406         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9407         Move e_machine check before EI_CLASS check.  Handle x32
9408         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9409         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9410         SKIP_EM_IA_64 and include
9411         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9412
9413         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9414         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9415         (add_system_dir): New macro.
9416
9417         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9418         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9419
9420 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9421
9422         [BZ #2551]
9423         [BZ #2552]
9424         [BZ #2553]
9425         [BZ #2554]
9426         [BZ #2562]
9427         [BZ #2563]
9428         [BZ #2565]
9429         [BZ #2566]
9430         [BZ #2576]
9431         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9432         (y0): Likewise.
9433         * math/w_j0f.c (j0f): Likewise.
9434         (y0f): Likewise.
9435         * math/w_j0l.c (__j0l): Likewise.
9436         (__y0l): Likewise.
9437         * math/w_j1.c (j1): Likewise.
9438         (y1): Likewise.
9439         * math/w_j1f.c (j1f): Likewise.
9440         (y1f): Likewise.
9441         * math/w_j1l.c (__j1l): Likewise.
9442         (__y1l): Likewise.
9443         * math/w_jn.c (jn): Likewise.
9444         (yn): Likewise.
9445         * math/w_jnf.c (jnf): Likewise.
9446         (ynf): Likewise.
9447         * math/w_jnl.c (__jnl): Likewise.
9448         (__ynl): Likewise.
9449         * math/libm-test.inc (j0_test): Add more tests.
9450         (j1_test): Likewise.
9451         (jn_test): Likewise.  Add trailing semicolon to existing test.
9452         (y0_test): Likewise.
9453         (y1_test): Likewise.
9454         * sysdeps/i386/fpu/libm-test-ulps: Update.
9455         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9456
9457         [BZ #13851]
9458         [BZ #13854]
9459         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9460         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9461         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9462         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9463         (__tanl): Set errno for infinite argument.
9464         * sysdeps/i386/fpu/mptan.c: Remove.
9465         * sysdeps/i386/fpu/s_tan.S: Likewise.
9466         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9467         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9468         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9469         * math/libm-test.inc (tan_test): Add more tests and enable more
9470         tests for double and long double.
9471         * sysdeps/i386/fpu/libm-test-ulps: Update.
9472         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9473
9474 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9475
9476         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9477         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9478
9479 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9480
9481         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9482         * configure.in: Use it for both main tree and add-ons.
9483         * configure: Regenerated.
9484
9485 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9486
9487         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9488
9489 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9490
9491         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9492         in comment.
9493
9494         [BZ #13851]
9495         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9496         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9497         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9498         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9499         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9500         infinite argument.
9501         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9502         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9503         != 0 for prec == 2.
9504         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9505         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9506         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9507         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9508         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9509         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9510         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9511         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9512         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9513         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9514         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9515         * math/libm-test.inc (cos_test): Add more tests and enable more
9516         tests for long double.
9517         (sin_test): Likewise.
9518         (sincos_test): Likewise.
9519         * sysdeps/i386/fpu/libm-test-ulps: Update.
9520         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9521
9522 2012-03-16  David S. Miller  <davem@davemloft.net>
9523
9524         * sysdeps/sparc/fpu/math_private.h: New file.
9525
9526 2012-03-15  David S. Miller  <davem@davemloft.net>
9527
9528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9529         file.
9530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9532         file.
9533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9534         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9535         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9536         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9537         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9538         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9539         sysdep routines.
9540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9541
9542         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9543         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9544
9545         * sysdeps/sparc/sparc-ifunc.h: New file.
9546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9547         sparc-ifunc.h
9548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9550         Likewise.
9551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9552         Likewise.
9553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9557         Likewise.
9558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9563         Likewise.
9564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9565         Likewise.
9566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9570         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9571         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9572         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9573         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9574         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9575         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9576         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9577         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9578         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9579         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9580         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9581         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9582         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9583         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9584         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9585         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9586         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9587         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9588         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9589         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9590
9591 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9592
9593         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9594         scaling.
9595         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9596
9597 2012-03-15  Andreas Jaeger  <aj@suse.de>
9598
9599         [BZ #13852]
9600         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9601         ieee754/flt-32 implementation for sin, cos and sincos.
9602         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9603         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9604         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9605         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9606         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9607         ieee754/flt-32 implementation for tan.
9608
9609         * math/libm-test.inc (cos_test): Enable some large input tests for
9610         float as well
9611         (sin_test): Likewise.
9612         (sincos_test): Likewise.
9613         (tan_test): Add tests for large input.
9614
9615         * sysdeps/i386/fpu/libm-test-ulps: Update.
9616
9617 2012-03-15  Andreas Jaeger  <aj@suse.de>
9618
9619         [BZ #13658]
9620         * math/libm-test.inc (cos_test): Add more test cases.
9621         (sin_test): Likewise.
9622         (sincos_test): Likewise.
9623
9624 2012-03-15  Andreas Jaeger  <aj@suse.de>
9625
9626         [BZ #13837]
9627         * math/libm-test.inc (cos_test): Add a test case for large input
9628         value.
9629         (sin_test): Likewise.
9630         (sincos_test): Likewise.
9631
9632 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9633         Joseph Myers  <joseph@codesourcery.com>
9634
9635         [BZ #13658]
9636         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9637         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9638         * sysdeps/i386/fpu/branred.c: Likewise.
9639         * sysdeps/i386/fpu/dosincos.c: Likewise.
9640         * sysdeps/i386/fpu/mpa.c: Likewise.
9641         * sysdeps/i386/fpu/s_cos.S: Likewise.
9642         * sysdeps/i386/fpu/s_sin.S: Likewise.
9643         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9644         * sysdeps/i386/fpu/sincos32.c: Likewise.
9645
9646         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9647         Define.
9648         (libc_feupdateenv_53bit): Define.
9649         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9650         Define.
9651         (libc_feupdateenv_53bit): Define.
9652
9653         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9654         53 bit (without extend i386 double precision).
9655
9656         * math/libm-test.inc (sincos_test): Add tests for large input.
9657         (sin): Likewise.
9658         (cos): Likewise.
9659
9660         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9661
9662 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9663
9664         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9665
9666 2012-03-15  David S. Miller  <davem@davemloft.net>
9667
9668         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9669         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9670         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9671         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9672         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9673         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9674         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9675         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9676         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9677         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9678         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9679         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9680         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9681         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9682         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9684         file.
9685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9687         file.
9688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9690         file.
9691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9693         file.
9694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9695         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9696         fmin/fmax sysdep routines.
9697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9698
9699 2012-03-14  David S. Miller  <davem@davemloft.net>
9700
9701         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9702         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9703         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9704         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9705         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9706         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9707         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9708         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9709         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9710         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9711         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9712         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9713         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9714         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9715         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9716         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9717         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9718         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9719         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9720         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9721         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9722         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9723         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9724         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9725         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9726         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9727         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9728         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9729         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9730         routines.
9731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9732         file.
9733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9735         file.
9736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9738         file.
9739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9741         file.
9742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9744         file.
9745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9747         file.
9748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9749         file.
9750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9751         file.
9752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9753         file.
9754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9755         New file.
9756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9757         file.
9758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9759         file.
9760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9762         file.
9763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9765         file.
9766         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9768         file.
9769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9771         VIS3 routines.
9772
9773         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9774         New file.
9775
9776         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9777
9778         * sysdeps/sparc/configure.in: New file.
9779         * sysdeps/sparc/configure: Generate.
9780         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9781         * configure: Regenerate.
9782         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9783         * config.make.in (have-as-vis3): New.
9784         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9785         available use -Av9d instead of -Av9a.
9786         * sysdeps/sparc/sparc64/Makefile: Likewise.
9787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9789         New file.
9790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9791         file.
9792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9793         New file.
9794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9795         file.
9796         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9797         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9798         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9799         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9800         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9801
9802         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9803         fzeros/fnegs to load 0x80000000 into a float register instead of
9804         using the stack.
9805         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9806
9807 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9808
9809         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9810         bits/syscall.h.
9811         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9812         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9813         ($(inst_includedir)/bits/syscall.h): Remove rule.
9814         ($(objpfx)bits/syscall.d): Include instead of
9815         $(objpfx)syscall-list.d.
9816         (generated): Change syscall-list.h and syscall-list.d to
9817         bits/syscall.h and bits/syscall.d.
9818
9819 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9820
9821         [BZ #13846]
9822         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9823
9824 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9825
9826         [BZ #13841]
9827         * math/s_csqrt.c: Include <float.h>.
9828         (__csqrt): Scale large or subnormal inputs.
9829         * math/s_csqrtf.c: Likewise.
9830         * math/s_csqrtl.c: Likewise.
9831         * math/libm-test.inc (csqrt_test): Add more tests.
9832         * sysdeps/i386/fpu/libm-test-ulps: Update.
9833         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9834
9835         [BZ #13840]
9836         * math/libm-test.inc (hypot_test): Add more tests.
9837
9838 2012-03-13  David S. Miller  <davem@davemloft.net>
9839
9840         [BZ #13840]
9841         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9842         double-precision for the calculation instead of scaling.
9843
9844 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9845
9846         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9847         manipulate bits before adding and subtracting TWO52[sx].
9848         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9849         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9850         Likewise.
9851         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9852
9853 2012-03-13  David S. Miller  <davem@davemloft.net>
9854
9855         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9856         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9857         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9858         rtld-global-offsets.h
9859         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9860
9861         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9862         large parameters.
9863
9864         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9865
9866         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9867         'err' in the ifdef scope in which it is actually used.
9868
9869         * nss/nss_db/db-init.c: Include string.h
9870
9871 2012-03-12  David S. Miller  <davem@davemloft.net>
9872
9873         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9874         masking out of the most significant byte of random value used.
9875         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9876         Fix coding style in previous change.
9877
9878         * sysdeps/unix/sysv/linux/kernel-features.h
9879         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9880         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9881         expression.
9882         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9883         later.
9884
9885 2012-03-11  David S. Miller  <davem@davemloft.net>
9886
9887         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9888         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9889         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9890         for 'resultvar' otherwise things get truncated on 64-bit.
9891
9892         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9893         Fix masking out of the most significant byte of random value used.
9894
9895         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9896
9897 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9898
9899         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9900
9901 2012-03-09  David S. Miller  <davem@davemloft.net>
9902
9903         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9904         variables with appropriate CPP guards.
9905         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9906         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9907         on resulting framesize and the management of the outregs buffer for pltexit.
9908         Preserve floating point return values across _dl_call_pltexit call.
9909         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9910         framesize and the management of the outregs buffer for pltexit.
9911         Preserve floating point return values across _dl_call_pltexit
9912         call.
9913         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9914         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9915         (print_exit): Fix format string for return register value.
9916
9917 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
9918
9919         * sunrpc/Makefile (others): Add rpcgen.
9920         ($(objpfx)rpcgen): Remove special build rule and dependency on
9921         libc.
9922         * sunrpc/rpcgen.c: New file.
9923
9924 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
9925
9926         [BZ #13673]
9927         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
9928         * stdio-common/bug-vfprintf-nargs.c: Likewise.
9929         * sysdeps/i386/crti.S: Likewise.
9930         * sysdeps/i386/crtn.S: Likewise.
9931         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
9932         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
9933         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
9934         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
9935         * sysdeps/sh/crti.S: Likewise.
9936         * sysdeps/sh/crtn.S: Likewise.
9937         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9938
9939         [BZ #13673]
9940         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
9941         with URL.
9942         * locale/programs/locfile-kw.gperf: Likewise.
9943         * locale/programs/charmap-kw.h: Regenerated.
9944         * locale/programs/locfile-kw.h: Likewise.
9945
9946         [BZ #13673]
9947         * intl/plural.y: Replace FSF snail mail address with URL.
9948         * intl/plural.c: Regenerated.
9949
9950 2012-03-09  Richard Henderson  <rth@twiddle.net>
9951
9952         * include/math_private.h: Remove file.
9953         * math/math_private.h: Move file ...
9954         * sysdeps/generic/math_private.h: ... here.
9955
9956         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
9957         * sysdeps/powerpc/fpu/math_private.h: Likewise.
9958         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9959
9960         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
9961         and <math_private.h>.
9962         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9963         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9964         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9965         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9966         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9967         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
9968         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9969         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9970         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9971         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9972         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9973         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9974         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9975         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9976         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9977         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9978         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9979         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9980         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9981         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9982         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9983         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9984         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9985         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9986         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9987         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9988         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9989         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9990         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9991         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9992         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9993         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9994         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9995         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9996         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9997         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9998         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9999         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10000         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10001         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10002         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10003         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10004         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10005         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10006         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10007         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10008         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10009         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10010         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10011         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10012         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10013         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10014         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10015         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10016         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10017         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10018         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10019         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10020         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10021         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10022         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10023         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10024         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10025         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10026         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10027         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10028         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10029         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10030         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10031         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10032         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10033         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10034         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10035         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10036         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10037         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10038         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10039         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10040         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10041         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10042         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10043         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10044         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10045         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10046         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10047         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10048         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10049         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10050         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10051         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10052         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10053         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10054         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10055         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10056         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10057         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10058         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10059         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10060         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10061         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10062         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10063         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10064         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10065         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10066         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10067         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10068         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10069         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10070         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10071         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10072         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10073         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10074         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10075         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10076         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10077         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10078         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10079         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10080         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10081         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10082         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10083         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10084         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10085         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10086         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10087         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10088         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10089         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10090         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10091         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10092         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10093         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10094         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10095         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10096         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10097         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10098         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10099         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10100         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10101         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10102         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10103         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10104         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10105         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10106         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10107         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10108         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10109         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10110         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10111         * sysdeps/ieee754/k_standard.c: Likewise.
10112         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10113         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10114         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10115         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10116         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10117         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10118         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10119         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10120         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10121         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10122         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10123         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10124         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10125         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10126         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10127         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10128         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10129         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10130         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10131         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10132         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10133         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10134         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10135         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10136         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10137         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10138         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10139         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10140         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10141         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10142         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10143         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10144         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10145         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10146         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10147         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10148         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10149         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10150         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10151         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10152         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10153         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10154         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10155         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10156         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10157         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10158         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10159         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10160         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10161         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10162         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10163         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10164         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10165         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10166         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10167         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10168         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10169         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10170         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10171         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10172         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10173         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10174         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10175         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10176         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10177         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10178         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10179         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10180         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10181         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10182         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10183         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10184         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10185         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10186         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10187         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10188         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10189         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10190         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10191         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10192         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10193         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10194         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10195         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10196         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10197         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10198         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10199         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10200         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10201         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10202         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10203         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10204         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10205         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10206         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10207         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10208         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10209         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10210         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10211         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10212         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10213         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10214         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10215         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10216         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10217         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10218         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10219         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10220         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10221         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10222         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10223         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10224         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10225         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10226         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10227         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10228         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10229         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10230         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10231         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10232         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10233         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10234         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10235         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10236         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10237         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10238         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10239         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10240         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10241         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10242         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10243         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10244         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10245         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10246         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10247         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10248         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10249         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10250         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10251         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10252         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10253         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10254         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10255         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10256         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10257         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10258         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10259         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10260         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10261         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10262         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10263         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10264         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10265         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10266         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10267         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10268         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10269         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10270         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10271         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10272         * sysdeps/ieee754/s_lib_version.c: Likewise.
10273         * sysdeps/ieee754/s_matherr.c: Likewise.
10274         * sysdeps/ieee754/s_signgam.c: Likewise.
10275         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10276         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10277         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10278         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10279         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10280         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10281         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10282         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10283         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10284         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10285         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10286         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10287         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10288         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10289         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10290         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10291         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10292         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10293         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10294         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10295         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10296
10297 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10298
10299         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10300         * sunrpc/rpc_main.c: Likewise.
10301         * sunrpc/rpc_svcout.c: Likewise.
10302
10303 2012-03-09  David S. Miller  <davem@davemloft.net>
10304
10305         * include/math_private.h: New file.
10306
10307 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10308
10309         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10310         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10311         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10312         from <bits/socket_type.h>.
10313         (enum __socket_type): Don't define here.
10314         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10315         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10316         bits/socket_type.h.
10317
10318         [BZ #13566]
10319         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10320         checking __USE_GNU.
10321
10322         * Makerules ($(inst_includedir)/%.h): New rule.
10323         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10324         (install-others): Remove variable setting.
10325         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10326
10327 2012-03-08  Richard Henderson  <rth@twiddle.net>
10328
10329         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10330         from macro to inline function; merge with the
10331         !__LIBC_INTERNAL_MATH_INLINES version.
10332         (__ieee754_sqrtf): Likewise.
10333
10334         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10335         to inline function.
10336         (__rintf, __floor, __floorf): Likewise.
10337
10338         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10339         macro to inline function.
10340         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10341
10342         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10343         not <math/math_private.h>.
10344
10345 2012-03-08  David S. Miller  <davem@davemloft.net>
10346
10347         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10348         copyright year.
10349         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10350
10351 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10352
10353         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10354         normalization.
10355         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10356         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10357
10358 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10359
10360         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10361         be defined individually, they must be defined as a block.  Define
10362         S for printing a string instead of hidint the different by using a
10363         macro for adding the 'l'.
10364         * stdio-common/tst-fphex-wide.c: Adjust.
10365
10366 2012-03-07  Marek Polacek  <polacek@redhat.com>
10367
10368         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10369
10370 2012-03-08  Marek Polacek  <polacek@redhat.com>
10371
10372         [BZ #13806]
10373         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10374         * stdio-common/tst-fphex.c: Define a few macros to make the
10375         test reusable.  Use them.
10376         * stdio-common/tst-fphex-wide.c: New file.
10377
10378 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10379
10380         [BZ #6911]
10381         * manual/macros.texi (gnusystems): New macro.
10382         (nongnusystems): Likewise.
10383         (gnulinuxhurdsystems): Likewise.
10384         (gnuhurdsystems): Likewise..
10385         (gnulinuxsystems): Likewise.
10386         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10387         variants of the GNU system, not "GNU system".
10388         * manual/conf.texi: Likewise.
10389         * manual/errno.texi: Likewise.  Update example of errno macro
10390         expansion.
10391         * manual/filesys.texi: Likewise.
10392         (getumask): Document as specific to GNU/Hurd.
10393         * manual/install.texi: Likewise.  Reword some references to
10394         GNU/Linux.
10395         * manual/intro.texi: Likewise.
10396         * manual/io.texi: Likewise.
10397         (File Name Portability): Detail which constraints are inapplicable
10398         to all GNU systems and which are only inapplicable to GNU/Hurd.
10399         * manual/job.texi: Likewise.
10400         * manual/llio.texi: Likewise.
10401         (O_NOCTTY): Document as present on GNU/Linux.
10402         * manual/maint.texi: Likewise.
10403         * manual/memory.texi: Likewise.
10404         * manual/pattern.texi: Likewise.
10405         * manual/pipe.texi: Likewise.
10406         * manual/process.texi: Likewise.
10407         * manual/resource.texi: Likewise.
10408         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10409         child on GNU/Hurd.
10410         * manual/setjmp.texi: Likewise.
10411         * manual/signal.texi: Likewise.
10412         * manual/startup.texi: Likewise.
10413         * manual/stdio.texi: Likewise.
10414         * manual/terminal.texi: Likewise.
10415         (ONLCR): Document as POSIX.
10416         (OXTABS): Document availability on GNU/Linux as XTABS.
10417         (ONOEOT): Document availability separately from other bits.
10418         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10419         * manual/time.texi: Likewise.
10420         * manual/users.texi: Likewise.
10421         * INSTALL: Regenerated.
10422         * sysdeps/gnu/errlist.c: Regenerated.
10423
10424         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10425         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10426         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10427         puts.
10428         * configure: Regenerated.
10429
10430 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10431
10432         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10433         default includes instead of AC_HEADER_CHECK.
10434         * sysdeps/i386/configure: Regenerated.
10435
10436         [BZ #10716]
10437         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10438         * math/s_cacoshf.c (__cacoshf): Likewise.
10439         * math/s_cacoshl.c (__cacoshl): Likewise.
10440         * math/s_casinh.c (__casinh): Set signs of result from argument.
10441         * math/s_casinhf.c (__casinhf): Likewise.
10442         * math/s_casinhl.c (__casinhl): Likewise.
10443         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10444         (casinh_test): Add more tests.
10445         * sysdeps/i386/fpu/libm-test-ulps: Update.
10446         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10447
10448 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10449
10450         * po/zh_TW.po: Update from translation team.
10451
10452         * login/Makefile (distribute): Remove variable.
10453         * catgets/Makefile: Likewise.
10454         * mach/Makefile: Likewise.
10455         * malloc/Makefile: Likewise.
10456         * misc/Makefile: Likewise.
10457         * iconv/Makefile: Likewise.
10458         * nscd/Makefile: Likewise.
10459         * hurd/Makefile: Likewise.
10460         * manual/Makefile: Likewise.
10461         * locale/Makefile: Likewise.
10462         * intl/Makefile: Likewise.
10463         * conform/Makefile: Likewise.
10464         * nss/Makefile: Likewise.
10465         * time/Makefile: Likewise.
10466         * soft-fp/Makefile: Likewise.
10467         * dirent/Makefile: Likewise.
10468         * gmon/Makefile: Likewise.
10469         * po/Makefile: Likewise.
10470         * rt/Makefile: Likewise.
10471         * socket/Makefile: Likewise.
10472         * math/Makefile: Likewise.
10473         * signal/Makefile: Likewise.
10474         * debug/Makefile: Likewise.
10475         * elf/Makefile: Likewise.
10476         * timezone/Makefile: Likewise.
10477         * stdlib/Makefile: Likewise.
10478         * iconvdata/Makefile: Likewise.
10479         * sunrpc/Makefile: Likewise.
10480         * io/Makefile: Likewise.
10481         * argp/Makefile: Likewise.
10482         * inet/Makefile: Likewise.
10483         * hesiod/Makefile: Likewise.
10484         * grp/Makefile: Likewise.
10485         * csu/Makefile: Likewise.
10486         * wctype/Makefile: Likewise.
10487         * crypt/Makefile: Likewise.
10488         * libio/Makefile: Likewise.
10489         * string/Makefile: Likewise.
10490         * nis/Makefile: Likewise.
10491         * resolv/Makefile: Likewise.
10492         * stdio-common/Makefile: Likewise.
10493         * wcsmbs/Makefile: Likewise.
10494         * dlfcn/Makefile: Likewise.
10495         * posix/Makefile: Likewise.
10496
10497         [BZ #6959]
10498         * timezone/Makefile: Don't install timezone files, just the programs
10499         and scripts.
10500
10501 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10502
10503         * nss/databases.def: Add missing gshadow entry.
10504
10505         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10506
10507 2012-03-06  Marek Polacek  <polacek@redhat.com>
10508
10509         [BZ #13726]
10510         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10511         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10512         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10513         * stdio-common/tst-long-dbl-fphex.c: New file.
10514
10515 2012-03-06  David S. Miller  <davem@davemloft.net>
10516
10517         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10518         (set_obp_int): New function.
10519         (get_obp_int): New function.
10520         (__get_clockfreq_via_dev_openprom): Likewise.
10521         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10522         Avoid unused variable warnings on 'val' and use builtin_expect.
10523         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10524         __builtin_expect.
10525         (INLINE_CLONE_SYSCALL): Likewise.
10526
10527 2012-03-05  David S. Miller  <davem@davemloft.net>
10528
10529         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10530
10531 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10532
10533         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10534
10535         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10536         only for |x| >= 40.
10537         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10538
10539 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10540
10541         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10542         Replace gettimeofday with __vdso_gettimeofday.
10543
10544         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10545         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10546         __vdso_clock_gettime and __vdso_getcpu.
10547
10548         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10549         time with __vdso_time.
10550
10551 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10552
10553         * manual/lang.texi (size_t): Note types to which size_t may be
10554         equivalent with the GNU C Library, but do not describe when
10555         differences between them are significant.
10556
10557 2012-03-05  Andreas Jaeger  <aj@suse.de>
10558
10559         * sysdeps/i386/fpu/libm-test-ulps: Update.
10560
10561 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10562
10563         [BZ #3976]
10564         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10565         (__ieee754_pow): Save and restore rounding mode and use
10566         round-to-nearest for main computations.
10567         * math/libm-test.inc (pow_test_tonearest): New function.
10568         (pow_test_towardzero): Likewise.
10569         (pow_test_downward): Likewise.
10570         (pow_test_upward): Likewise.
10571         (main): Call the new functions.
10572         * sysdeps/i386/fpu/libm-test-ulps: Update.
10573         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10574
10575         [BZ #3976]
10576         * math/libm-test.inc (cosh_test_tonearest): New function.
10577         (cosh_test_towardzero): Likewise.
10578         (cosh_test_downward): Likewise.
10579         (cosh_test_upward): Likewise.
10580         (sinh_test_tonearest): Likewise.
10581         (sinh_test_towardzero): Likewise.
10582         (sinh_test_downward): Likewise.
10583         (sinh_test_upward): Likewise.
10584         (main): Call the new functions.
10585         * sysdeps/i386/fpu/libm-test-ulps: Update.
10586         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10587
10588 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10589
10590         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10591         default stack guard is set in last bytes.
10592         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10593
10594 2012-03-05  Kees Cook  <keescook@chromium.org>
10595
10596         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10597
10598         [BZ #13656]
10599         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10600         possibly allocate from heap instead of stack.
10601         * stdio-common/bug-vfprintf-nargs.c: New file.
10602         * stdio-common/Makefile (tests): Add nargs overflow test.
10603
10604 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10605
10606         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10607
10608 2012-03-03  Marek Polacek  <polacek@redhat.com>
10609
10610         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10611         * math/math_private.h: Likewise.
10612         * stdlib/tst-strtod.c: Likewise.
10613         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10614         * sysdeps/x86_64/bits/atomic.h: Likewise.
10615
10616 2012-03-02  David S. Miller  <davem@davemloft.net>
10617
10618         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10619         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10620         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10621         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10622         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10623         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10624         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10625         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10626
10627 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10628
10629         [BZ #13792]
10630         * manual/examples/README: New file, says the example source files
10631         can be used under GPL>=2.
10632         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10633         line containing just "*/".
10634         * manual/examples/add.c: Add copyright header (GPL>=2).
10635         * manual/examples/argp-ex1.c: Likewise.
10636         * manual/examples/argp-ex2.c: Likewise.
10637         * manual/examples/argp-ex3.c: Likewise.
10638         * manual/examples/argp-ex4.c: Likewise.
10639         * manual/examples/atexit.c: Likewise.
10640         * manual/examples/db.c: Likewise.
10641         * manual/examples/dir.c: Likewise.
10642         * manual/examples/dir2.c: Likewise.
10643         * manual/examples/execinfo.c: Likewise.
10644         * manual/examples/filecli.c: Likewise.
10645         * manual/examples/filesrv.c: Likewise.
10646         * manual/examples/fmtmsgexpl.c: Likewise.
10647         * manual/examples/genpass.c: Likewise.
10648         * manual/examples/inetcli.c: Likewise.
10649         * manual/examples/inetsrv.c: Likewise.
10650         * manual/examples/isockad.c: Likewise.
10651         * manual/examples/longopt.c: Likewise.
10652         * manual/examples/memopen.c: Likewise.
10653         * manual/examples/memstrm.c: Likewise.
10654         * manual/examples/mkfsock.c: Likewise.
10655         * manual/examples/mkisock.c: Likewise.
10656         * manual/examples/mygetpass.c: Likewise.
10657         * manual/examples/pipe.c: Likewise.
10658         * manual/examples/popen.c: Likewise.
10659         * manual/examples/rprintf.c: Likewise.
10660         * manual/examples/search.c: Likewise.
10661         * manual/examples/select.c: Likewise.
10662         * manual/examples/setjmp.c: Likewise.
10663         * manual/examples/sigh1.c: Likewise.
10664         * manual/examples/sigusr.c: Likewise.
10665         * manual/examples/stpcpy.c: Likewise.
10666         * manual/examples/strdupa.c: Likewise.
10667         * manual/examples/strftim.c: Likewise.
10668         * manual/examples/strncat.c: Likewise.
10669         * manual/examples/subopt.c: Likewise.
10670         * manual/examples/swapcontext.c: Likewise.
10671         * manual/examples/termios.c: Likewise.
10672         * manual/examples/testopt.c: Likewise.
10673         * manual/examples/testpass.c: Likewise.
10674         * manual/examples/timeval_subtract.c: Likewise.
10675
10676         [BZ #13792]
10677         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10678         function to ...
10679         * manual/timeval_subtract.c.texi: ... here, new file.
10680
10681 2012-03-02  David S. Miller  <davem@davemloft.net>
10682
10683         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10684
10685 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10686
10687         [BZ #3976]
10688         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10689         (__sin): Save and restore rounding mode and use round-to-nearest
10690         for all computations.
10691         (__cos): Save and restore rounding mode and use round-to-nearest
10692         for all computations.
10693         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10694         <fenv.h>.
10695         (tan): Save and restore rounding mode and use round-to-nearest for
10696         all computations.
10697         * math/libm-test.inc (cos_test_tonearest): New function.
10698         (cos_test_towardzero): Likewise.
10699         (cos_test_downward): Likewise.
10700         (cos_test_upward): Likewise.
10701         (sin_test_tonearest): Likewise.
10702         (sin_test_towardzero): Likewise.
10703         (sin_test_downward): Likewise.
10704         (sin_test_upward): Likewise.
10705         (tan_test_tonearest): Likewise.
10706         (tan_test_towardzero): Likewise.
10707         (tan_test_downward): Likewise.
10708         (tan_test_upward): Likewise.
10709         (main): Call the new functions.
10710         * sysdeps/i386/fpu/libm-test-ulps: Update.
10711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10712
10713         [BZ #10135]
10714         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10715         small n, then large n, before computing and testing k+n.
10716         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10717         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10718         Likewise.
10719         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10720         Likewise.
10721         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10722         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10723         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10724         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10725         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10726         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10727         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10728         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10729         * math/libm-test.inc (scalbn_test): Add more tests.
10730         (scalbln_test): Likewise.
10731
10732         * manual/filesys.texi (mode_t): Describe constraints on size and
10733         signedness, not exact equivalence to a particular type.
10734         (ino_t): Likewise.
10735         (ino64_t): Likewise.
10736         (dev_t): Likewise.
10737         (nlink_t): Likewise.
10738         (blkcnt_t): Likewise.
10739         (blkcnt64_t): Likewise.
10740         * manual/llio.texi (off_t): Likewise.
10741
10742         [BZ #3976]
10743         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10744         (__ieee754_exp): Save and restore rounding mode and use
10745         round-to-nearest for all computations.
10746         * math/libm-test.inc (exp_test_tonearest): New function.
10747         (exp_test_towardzero): Likewise.
10748         (exp_test_downward): Likewise.
10749         (exp_test_upward): Likewise.
10750         (main): Call the new functions.
10751         * sysdeps/i386/fpu/libm-test-ulps: Update.
10752         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10753
10754 2012-03-01  Chris Demetriou  <cgd@google.com>
10755
10756         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10757         have predictable order.
10758
10759 2012-03-01  David S. Miller  <davem@davemloft.net>
10760
10761         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10762
10763         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10764         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10765         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10766         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10767
10768         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10769         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10770         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10771         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10772         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10773         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10774         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10775         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10776         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10777
10778         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10779
10780         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10781         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10782         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10783
10784         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10785         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10786         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10787         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10788         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10789         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10790         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10791         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10792         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10793         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10794         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10795         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10796         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10797         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10798         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10799         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10800         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10801         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10802         * sysdeps/sparc/elf/configure: Regenerated.
10803
10804 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10805
10806         * configure.in (AS, LD): Require binutils 2.20 or later.
10807         * configure: Regenerated.
10808         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10809         as required minimum version.
10810         * INSTALL: Regenerated.
10811
10812         [BZ #2541]
10813         [BZ #4108]
10814         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10815         before squaring exponent.
10816         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10817         bottom long double and 27 bits of top long double before squaring
10818         exponent.
10819         * math/libm-test.inc (erfc_test): Add more tests.
10820         * sysdeps/i386/fpu/libm-test-ulps: Update.
10821         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10822         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10823
10824 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10825
10826         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10827         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10828         containing bit-fields.
10829         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10830         * soft-fp/single.h (_FP_UNION_S): Likewise.
10831         * soft-fp/double.h (_FP_UNION_D): Likewise.
10832
10833 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10834
10835         [BZ #13786]
10836         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10837         not include ../strcmp.S.
10838         [USE_AS_STRNCASECMP_L]: Likewise.
10839         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10840         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10841         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10842         (__strncasecmp_l_ia32): Define as alias to
10843         __strncasecmp_l_nonascii.
10844
10845         [BZ #5794]
10846         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10847         * sysdeps/i386/fpu/libm-test-ulps: Update.
10848         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10849
10850         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10851         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10852
10853 2012-02-29  Jeff Law  <law@redhat.com>
10854
10855         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10856         out of bounds read.
10857
10858 2012-02-29  Marek Polacek  <polacek@redhat.com>
10859
10860         [BZ #13706]
10861         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10862         * elf/Makefile: Add rules to run tst-unused-dep.out.
10863
10864 2012-02-28  David S. Miller  <davem@davemloft.net>
10865
10866         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10867         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10868         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10869         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10870         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10871         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10872
10873 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10874
10875         * math/libm-test.inc (llround_test): Move one test from
10876         lround_test.  Use TEST_f_L in moved test.
10877         (lround_test): Move misplaced test to llround_test.  Add testcase
10878         from bug 2561.
10879
10880 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10881
10882         * sysdeps/x86_64/fpu/e_expf.S: New file.
10883         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10884
10885 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10886
10887         [BZ #13637]
10888         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10889         of remain_len that may cause incomplete multi-byte character and
10890         false match.
10891         * posix/bug-regex33.c: New file.
10892         * posix/Makefile (tests): Add bug-regex33.
10893
10894 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10895
10896         * manual/macros.texi: New file.
10897         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10898         * manual/libc.texinfo: Include macros.texi.
10899         * manual/creatute.texi: Likewise.
10900         * manual/install.texi: Likewise.
10901         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10902         @glibcadj{} in references to the GNU C Library.
10903         * manual/charset.texi: Likewise.
10904         * manual/conf.texi: Likewise.
10905         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10906         when not using those macros.
10907         * manual/creature.texi: Likewise.
10908         * manual/crypt.texi: Likewise.
10909         * manual/errno.texi: Likewise.
10910         * manual/filesys.texi: Likewise.
10911         * manual/header.texi: Likewise.
10912         * manual/install.texi: Likewise.
10913         * manual/intro.texi: Likewise.
10914         * manual/io.texi: Likewise.
10915         * manual/job.texi: Likewise.
10916         * manual/lang.texi: Likewise.
10917         * manual/libc.texiinfo: Likewise.
10918         * manual/llio.texi: Likewise.
10919         * manual/locale.texi: Likewise.
10920         * manual/maint.texi: Likewise.
10921         * manual/math.texi: Likewise.
10922         * manual/memory.texi: Likewise.
10923         * manual/message.texi: Likewise.
10924         * manual/nss.texi: Likewise.
10925         * manual/pattern.texi: Likewise.
10926         * manual/process.texi: Likewise.
10927         * manual/resource.texi: Likewise.
10928         * manual/search.texi: Likewise.
10929         * manual/setjmp.texi: Likewise.
10930         * manual/signal.texi: Likewise.
10931         * manual/socket.texi: Likewise.
10932         * manual/startup.texi: Likewise.
10933         * manual/stdio.texi: Likewise.
10934         * manual/string.texi: Likewise.
10935         * manual/sysinfo.texi: Likewise.
10936         * manual/syslog.texi: Likewise.
10937         * manual/terminal.texi: Likewise.
10938         * manual/time.texi: Likewise.
10939         * manual/users.texi: Likewise.
10940         * INSTALL: Regenerated.
10941         * NOTES: Regenerated.
10942         * sysdeps/gnu/errlist.c: Regenerated.
10943
10944 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
10945
10946         * include/dirent.h: Include <dirstream.h> before
10947         <dirent/dirent.h>.
10948
10949 2012-02-28  David S. Miller  <davem@davemloft.net>
10950
10951         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
10952         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
10953         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
10954         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
10955
10956 2012-02-27  David S. Miller  <davem@davemloft.net>
10957
10958         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
10959         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
10960         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
10961         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
10962
10963         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
10964         frame pointer instead of stack pointer relative arg slot.
10965         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10966         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10967         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10968
10969 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
10970
10971         [BZ #3992]
10972         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
10973
10974 2012-02-27  David S. Miller  <davem@davemloft.net>
10975
10976         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
10977         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10978         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10979         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
10980         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10981         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10982         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
10983         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
10984
10985 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10986
10987         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
10988         later.  Allow versions 5-9.
10989         * configure: Regenerated.
10990         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
10991         required minimum version and 4.6 as recommended version.  Do not
10992         mention bugs in GCC 2.7 and 2.8.
10993         * INSTALL: Regenerated.
10994
10995 2012-02-27  David S. Miller  <davem@davemloft.net>
10996
10997         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
10998         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
10999         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11000         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11001         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11002         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11003         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11004         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11005
11006         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11007         manipulate bits before adding and subtracting TWO112[sx].
11008         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11009
11010 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11011
11012         [BZ #13775]
11013         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11014         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11015         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11016         being in POSIX, because they are in 1003.1-2008.
11017
11018         * rt/tst-aio.c: Include <fcntl.h>.
11019         * rt/tst-aio7.c: Likewise.
11020         * rt/tst-aio64.c: Likewise.
11021
11022         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11023
11024 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11025
11026         * manual/install.texi (--with-headers): Describe headers as
11027         interface headers, not private headers.
11028         (Specific advice for GNU/Linux systems): Describe use of headers
11029         from "make headers_install", not private headers from older
11030         kernels.
11031         * INSTALL: Regenerated.
11032         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11033         Change to 2.6.19.
11034         * sysdeps/unix/sysv/linux/configure: Regenerated.
11035
11036         * manual/llio.texi (fclean): Remove documentation.
11037
11038         * manual/Makefile (libc-texi-generated): New variable.  Include
11039         version.texi.
11040         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11041         $(libc-texi-generated), not duplicated list of files.
11042         (version.texi, stamp-version): New rules.
11043         (realclean): Remove $(libc-texi-generated), not individual files
11044         from that list.  Do not remove dir-add.texinfo.
11045         * manual/libc.texinfo: Comment out uses of edition numbers and
11046         references to printed manual.  Remove last-updated dates.
11047         (EDITION): Comment out.
11048         (ISBN): Likewise.
11049         (VERSION, UPDATED): Remove.
11050         (version.texi): Include.
11051
11052 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11053
11054         * sysdeps/posix/spawni.c: Include <signal.h>.
11055         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11056         * sysdeps/pthread/aio_fsync.c: Likewise.
11057
11058 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11059
11060         * conform/Makefile (tests): Run only when not cross-compiling and
11061         when fast-check is not defined.
11062
11063         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11064         * conform/data/limits.h-data: Fixes for POSIX2008.
11065         * conform/run-conformtest.sh: Run all tests.
11066         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11067         headers.
11068         * include/bits/dlfcn.h: Likewise.
11069         * include/langinfo.h: Likewise.
11070         * include/monetary.h: Likewise.
11071         * include/sys/poll.h: Likewise.
11072
11073         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11074         for __USE_GNU.
11075         * posix/spawn.h: Define __need_sigset_t.
11076         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11077         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11078         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11079         to get sigevent_t only.
11080         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11081         only for __USE_GNU.
11082         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11083         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11084         process_vm_writev only for __USE_GNU.
11085         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11086
11087         * conform/Makefile: For now ignore errors from run-conformtest.
11088         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11089         POSIX to avoid namespace pollution.  Don't prepend headers.
11090         * conform/data/aio.h-data: Fixes for POSIX testing.
11091         * conform/data/fcntl.h-data: Likewise.
11092         * conform/data/glob.h-data: Likewise.
11093         * conform/data/grp.h-data: Likewise.
11094         * conform/data/pthread.h-data: Likewise.
11095         * conform/data/pwd.h-data: Likewise.
11096         * conform/data/signal.h-data: Likewise.
11097         * conform/data/spawn.h-data: Likewise.
11098         * conform/data/stdio.h-data: Likewise.
11099         * conform/data/stdlib.h-data: Likewise.
11100         * conform/data/stropts.h-data: Likewise.
11101         * conform/data/sys/mman.h-data: Likewise.
11102         * conform/data/sys/stat.h-data: Likewise.
11103         * conform/data/sys/types.h-data: Likewise.
11104         * conform/data/sys/wait.h-data: Likewise.
11105         * conform/data/time.h-data: Likewise.
11106         * conform/data/unistd.h-data: Likewise.
11107         * conform/data/utime.h-data: Likewise.
11108
11109         * io/sys/stat.h: fchmod was always in POSIX.
11110         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11111         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11112         * rt/aio.h: Define __need_timespec before including <time.h>.
11113         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11114         struct.  Add forward declaration of pthread_attr_t and use it in
11115         sigevent.
11116         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11117         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11118         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11119         always remove CLK_TCK definition.
11120
11121 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11122
11123         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11124
11125 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11126
11127         * conform/run-conformtest.sh: New file.
11128         * conform/Makefile: Run run-conformtest for tests.
11129         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11130         support.
11131
11132         * conform/data/uchar.h-data: New file.
11133         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11134         * conform/data/arpa/inet.h-data: Likewise.
11135         * conform/data/assert.h-data: Likewise.
11136         * conform/data/complex.h-data: Likewise.
11137         * conform/data/cpio.h-data: Likewise.
11138         * conform/data/ctype.h-data: Likewise.
11139         * conform/data/dirent.h-data: Likewise.
11140         * conform/data/dlfcn.h-data: Likewise.
11141         * conform/data/errno.h-data: Likewise.
11142         * conform/data/fcntl.h-data: Likewise.
11143         * conform/data/float.h-data: Likewise.
11144         * conform/data/fmtmsg.h-data: Likewise.
11145         * conform/data/fnmatch.h-data: Likewise.
11146         * conform/data/ftw.h-data: Likewise.
11147         * conform/data/glob.h-data: Likewise.
11148         * conform/data/grp.h-data: Likewise.
11149         * conform/data/iconv.h-data: Likewise.
11150         * conform/data/inttypes.h-data: Likewise.
11151         * conform/data/langinfo.h-data: Likewise.
11152         * conform/data/libgen.h-data: Likewise.
11153         * conform/data/limits.h-data: Likewise.
11154         * conform/data/locale.h-data: Likewise.
11155         * conform/data/math.h-data: Likewise.
11156         * conform/data/monetary.h-data: Likewise.
11157         * conform/data/mqueue.h-data: Likewise.
11158         * conform/data/ndbm.h-data: Likewise.
11159         * conform/data/net/if.h-data: Likewise.
11160         * conform/data/netdb.h-data: Likewise.
11161         * conform/data/netinet/in.h-data: Likewise.
11162         * conform/data/nl_types.h-data: Likewise.
11163         * conform/data/poll.h-data: Likewise.
11164         * conform/data/pthread.h-data: Likewise.
11165         * conform/data/pwd.h-data: Likewise.
11166         * conform/data/regex.h-data: Likewise.
11167         * conform/data/sched.h-data: Likewise.
11168         * conform/data/search.h-data: Likewise.
11169         * conform/data/semaphore.h-data: Likewise.
11170         * conform/data/setjmp.h-data: Likewise.
11171         * conform/data/signal.h-data: Likewise.
11172         * conform/data/spawn.h-data: Likewise.
11173         * conform/data/stdarg.h-data: Likewise.
11174         * conform/data/stdio.h-data: Likewise.
11175         * conform/data/stdlib.h-data: Likewise.
11176         * conform/data/string.h-data: Likewise.
11177         * conform/data/strings.h-data: Likewise.
11178         * conform/data/stropts.h-data: Likewise.
11179         * conform/data/sys/ipc.h-data: Likewise.
11180         * conform/data/sys/mman.h-data: Likewise.
11181         * conform/data/sys/msg.h-data: Likewise.
11182         * conform/data/sys/resource.h-data: Likewise.
11183         * conform/data/sys/select.h-data: Likewise.
11184         * conform/data/sys/sem.h-data: Likewise.
11185         * conform/data/sys/shm.h-data: Likewise.
11186         * conform/data/sys/socket.h-data: Likewise.
11187         * conform/data/sys/stat.h-data: Likewise.
11188         * conform/data/sys/statvfs.h-data: Likewise.
11189         * conform/data/sys/time.h-data: Likewise.
11190         * conform/data/sys/timeb.h-data: Likewise.
11191         * conform/data/sys/times.h-data: Likewise.
11192         * conform/data/sys/types.h-data: Likewise.
11193         * conform/data/sys/uio.h-data: Likewise.
11194         * conform/data/sys/un.h-data: Likewise.
11195         * conform/data/sys/utsname.h-data: Likewise.
11196         * conform/data/sys/wait.h-data: Likewise.
11197         * conform/data/syslog.h-data: Likewise.
11198         * conform/data/tar.h-data: Likewise.
11199         * conform/data/termios.h-data: Likewise.
11200         * conform/data/utime.h-data: Likewise.
11201         * conform/data/utmpx.h-data: Likewise.
11202         * conform/data/varargs.h-data: Likewise.
11203         * conform/data/wchar.h-data: Likewise.
11204         * conform/data/wctype.h-data: Likewise.
11205         * conform/data/wordexp.h-data: Likewise.
11206
11207         * include/stropts.h: New file.
11208         * include/uchar.h: New file.
11209         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11210         * include/assert.h: Likewise.
11211         * include/ctype.h: Likewise.
11212         * include/dirent.h: Likewise.
11213         * include/dlfcn.h: Likewise.
11214         * include/fcntl.h: Likewise.
11215         * include/fnmatch.h: Likewise.
11216         * include/glob.h: Likewise.
11217         * include/grp.h: Likewise.
11218         * include/libio.h: Likewise.
11219         * include/locale.h: Likewise.
11220         * include/math.h: Likewise.
11221         * include/net/if.h: Likewise.
11222         * include/netdb.h: Likewise.
11223         * include/netinet/in.h: Likewise.
11224         * include/pthread.h: Likewise.
11225         * include/pwd.h: Likewise.
11226         * include/regex.h: Likewise.
11227         * include/sched.h: Likewise.
11228         * include/search.h: Likewise.
11229         * include/setjmp.h: Likewise.
11230         * include/signal.h: Likewise.
11231         * include/stdio.h: Likewise.
11232         * include/stdlib.h: Likewise.
11233         * include/string.h: Likewise.
11234         * include/sys/cdefs.h: Likewise.
11235         * include/sys/mman.h: Likewise.
11236         * include/sys/msg.h: Likewise.
11237         * include/sys/resource.h: Likewise.
11238         * include/sys/select.h: Likewise.
11239         * include/sys/socket.h: Likewise.
11240         * include/sys/stat.h: Likewise.
11241         * include/sys/statvfs.h: Likewise.
11242         * include/sys/time.h: Likewise.
11243         * include/sys/times.h: Likewise.
11244         * include/sys/uio.h: Likewise.
11245         * include/sys/utsname.h: Likewise.
11246         * include/sys/wait.h: Likewise.
11247         * include/termios.h: Likewise.
11248         * include/time.h: Likewise.
11249         * include/ulimit.h: Likewise.
11250         * include/unistd.h: Likewise.
11251         * include/utime.h: Likewise.
11252         * include/wchar.h: Likewise.
11253         * include/wctype.h: Likewise.
11254         * include/wordexp.h: Likewise.
11255
11256         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11257
11258         * time/time.h: TIME_UTC must be a macro.
11259         Make timespec_get available for ISO C11 only as well.
11260
11261 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11262
11263         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11264         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11265
11266 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11267
11268         * configure.in: Use -o not -a in test for unsupported multi-arch.
11269
11270 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11271
11272         * manual/texinfo.tex: Update to version 2012-01-19.16.
11273
11274 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11275
11276         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11277
11278 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11279
11280         [BZ #13738]
11281         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11282         * manual/fdl-1.3.texi: New file.
11283         * manual/fdl-1.1.texi: File removed.
11284
11285         [BZ #13738]
11286         * manual/libc.texinfo (FDL_VERSION): New @set.
11287         Use it for mention of FDL in cover text.
11288         (Documentation License): Use it in @include file name.
11289
11290 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11291             Roland McGrath  <roland@hack.frob.com>
11292
11293         [BZ #5461]
11294         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11295         not LONG_LONG_MAX and LONG_LONG_MIN.
11296         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11297         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11298         name.
11299         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11300
11301 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11302
11303         [BZ #2547]
11304         [BZ #11365]
11305         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11306         manipulate bits before adding and subtracting TWO23[sx].
11307         * math/libm-test.inc (nearbyint_test): Add more tests.
11308
11309 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11310
11311         [BZ #2548]
11312         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11313         bits before adding and subtracting TWO23[sx].
11314         * math/libm-test.inc (rint_test): Add more tests.
11315         (rint_test_tonearest): Likewise.
11316         (rint_test_towardzero): Likewise.
11317         (rint_test_downward): Likewise.
11318         (rint_test_upward: Likewise.
11319
11320 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11321
11322         [BZ #10110]
11323         * include/stdc-predef.h: New file.  Extracted from features.h.
11324         * include/features.h: Include stdc-predef.h.
11325         * Makefile (headers): Add stdc-predef.h.
11326         * CONFORMANCE (Compiler limitations): Update.
11327
11328 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11329
11330         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11331
11332 2012-02-21  David S. Miller  <davem@davemloft.net>
11333
11334         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11335         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11336
11337 2012-02-20  David S. Miller  <davem@davemloft.net>
11338
11339         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11340         using a normal save/restore sequence, rather than allocating a
11341         dummy stack frame just to store a frame pointer and restore.
11342         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11343
11344 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11345
11346         * manual/install.texi: Fix stray word in line-wrapped comment.
11347
11348 2012-02-20  David S. Miller  <davem@davemloft.net>
11349
11350         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11351         both binutils and gcc support GOTDATA.
11352
11353         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11354         "rd %pc" in the PIC register setup sequences.
11355
11356         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11357         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11358         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11359         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11360         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11361         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11362         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11363         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11364         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11365         (SYSCALL_ERROR_HANDLER): Likewise.
11366         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11367         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11368         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11369         (SYSCALL_ERROR_HANDLER): Likewise.
11370
11371         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11372         (HAVE_GCC_GOTDATA): New.
11373         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11374         relocation support in both binutils and gcc.
11375         * sysdeps/sparc/elf/configure: Regenerate.
11376
11377         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11378         * sysdeps/sparc/sparc32/elf/configure: Delete.
11379         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11380         * sysdeps/sparc/sparc64/elf/configure: Delete.
11381         * sysdeps/sparc/elf/configure.in: New file.
11382         * sysdeps/sparc/elf/configure: Generate.
11383
11384         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11385         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11386         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11387         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11388         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11389
11390 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11391
11392         * manual/install.texi: Do not mention specific glibc version
11393         numbers.
11394         * manual/libc.texinfo (VERSION, UPDATED): Update.
11395         (@copying): Use @copyright{} and range of years.
11396
11397 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11398
11399         [BZ #13695]
11400         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11401         [crti.S not in sysdirs] (generated): Do not append.
11402         [crti.S not in sysdirs] (omit-deps): Likewise.
11403         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11404         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11405         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11406         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11407         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11408         Likewise.
11409         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11410         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11411         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11412         * csu/defs.awk: Remove file.
11413         * sysdeps/generic/initfini.c: Likewise.
11414         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11415         variable.
11416         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11417         Likewise.
11418
11419 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11420
11421         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11422         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11423         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11424         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11425         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11426         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11427         <bits/epoll.h>.
11428         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11429         (__EPOLL_PACKED): Define to empty if not defined by
11430         <bits/epoll.h>.
11431         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11432         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11433         bits/epoll.h.
11434
11435 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11436
11437         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11438         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11439         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11440         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11441         <bits/timerfd.h>.
11442         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11443         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11444         bits/timerfd.h.
11445
11446 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11447
11448         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11449         in C locale.
11450         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11451         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11452         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11453         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11454
11455 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11456
11457         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11458         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11459
11460 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11461
11462         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11463         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11464         defined.
11465         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11466         Likewise.
11467         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11468         entry for 2.16.
11469
11470 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11471
11472         * math/w_acos.c: Use non-signaling floating-point comparisons.
11473         * math/w_acosf.c: Likewise.
11474         * math/w_acosh.c: Likewise.
11475         * math/w_acoshf.c: Likewise.
11476         * math/w_acoshl.c: Likewise.
11477         * math/w_acosl.c: Likewise.
11478         * math/w_asin.c: Likewise.
11479         * math/w_asinf.c: Likewise.
11480         * math/w_asinl.c: Likewise.
11481         * math/w_atanh.c: Likewise.
11482         * math/w_atanhf.c: Likewise.
11483         * math/w_atanhl.c: Likewise.
11484         * math/w_exp2.c: Likewise.
11485         * math/w_exp2f.c: Likewise.
11486         * math/w_exp2l.c: Likewise.
11487         * math/w_j0.c: Likewise.
11488         * math/w_j0f.c: Likewise.
11489         * math/w_j0l.c: Likewise.
11490         * math/w_j1.c: Likewise.
11491         * math/w_j1f.c: Likewise.
11492         * math/w_j1l.c: Likewise.
11493         * math/w_jn.c: Likewise.
11494         * math/w_jnf.c: Likewise.
11495         * math/w_log.c: Likewise.
11496         * math/w_log10.c: Likewise.
11497         * math/w_log10f.c: Likewise.
11498         * math/w_log10l.c: Likewise.
11499         * math/w_log2.c: Likewise.
11500         * math/w_log2f.c: Likewise.
11501         * math/w_log2l.c: Likewise.
11502         * math/w_logf.c: Likewise.
11503         * math/w_logl.c: Likewise.
11504         * math/w_sqrt.c: Likewise.
11505         * math/w_sqrtf.c: Likewise.
11506         * math/w_sqrtl.c: Likewise.
11507         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11508         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11509         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11510         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11511         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11512
11513 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11514
11515         [BZ #9739]
11516         * manual/string.texi (strnlen): Use correct parameter name in
11517         equivalent expression.
11518
11519 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11520
11521         [BZ #11174]
11522         * manual/users.texi (seteuid): Consistently use neweuid for
11523         argument name.
11524
11525 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11526
11527         [BZ #13704]
11528         * manual/nss.texi (Services in the NSS configuration): Correct
11529         list of services in example configuration file.
11530
11531 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11532
11533         [BZ #11322]
11534         * manual/arith.texi: Remove statements about negative zero
11535         behaving identically to zero.
11536
11537 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11538
11539         [BZ #5993]
11540         * manual/install.texi: Do not document upgrading from libc5.
11541
11542 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11543
11544         [BZ #4596]
11545         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11546
11547 2012-02-18  David S. Miller  <davem@davemloft.net>
11548
11549         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11550         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11551         %o7 across the call.
11552         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11553         instead.
11554         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11555         SETUP_PIC_REG_LEAF.
11556         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11557         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11558         * sysdeps/sparc/crtn.S: Likewise.
11559
11560 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11561
11562         * aout/Makefile: Remove.
11563
11564 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11565
11566         [BZ #13058]
11567         * manual/examples/argp-ex1.c (main): Format definition in GNU
11568         style.
11569         * manual/examples/argp-ex2.c (main): Likewise.
11570         * manual/examples/argp-ex3.c (main): Likewise.
11571         * manual/examples/argp-ex4.c (main): Likewise.
11572         * manual/examples/longopt.c (main): Use new-style prototype
11573         definition.
11574         * manual/examples/strncat.c (main): Specify return type and use
11575         (void) for arguments.
11576         * manual/examples/subopt.c (main): Use char **argv argument.
11577
11578 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11579
11580         [BZ #5077]
11581         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11582         rounding modes.
11583
11584 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11585
11586         [BZ #6907]
11587         * manual/string.texi (strchr): Change when strchrnul is
11588         recommended.
11589
11590 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11591
11592         [BZ #174]
11593         * manual/locale.texi (setlocale): Document LOCPATH.
11594
11595 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11596
11597         [BZ #10210]
11598         * manual/process.texi (execle): Move @dots{} before last argument.
11599
11600 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11601
11602         [BZ #12047]
11603         * manual/charset.texi (Generic Charset Conversion): Fix typo
11604         (LC_TYPE -> LC_CTYPE).
11605
11606 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11607
11608         [BZ #5805]
11609         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11610         (scalbnf): Likewise.
11611         (scalbnl): Likewise.
11612         (scalbln): Likewise.
11613         (scalblnf): Likewise.
11614         (scalblnl): Likewise.
11615         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11616         (vwarnx): Likewise.
11617         (verr): Likewise.
11618         (verrx): Likewise.
11619         * manual/filesys.texi (telldir): Use braces around return type.
11620         * manual/llio.texi (mmap): Add space after comma.
11621         (mmap64): Likewise.
11622         * manual/math.texi (jn): Use @var{} on parameter names.
11623         (jnf): Likewise.
11624         (jnl): Likewise.
11625         (yn): Likewise.
11626         (ynf): Likewise.
11627         (ynl): Likewise.
11628         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11629         line.
11630         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11631         "...".
11632         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11633         (sched_get_priority_max): Likewise.
11634         * manual/signal.texi (sigvec): Add space after comma.
11635         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11636         names.
11637         (if_indextoname): Likewise.
11638         (if_freenameindex): Likewise.
11639         (sendto): Use ',' instead of '.' in prototype.
11640         * manual/startup.texi (syscall): Use @dots{} instead of literal
11641         "...".
11642         * manual/stdio.texi (__fpending): Separate initial words of
11643         paragraph from @deftypefun line.
11644         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11645         "...".
11646         (vsyslog): Use @var{} on parameter names.
11647         * manual/terminal.texi (stty): Use @var{} on parameter names.
11648         * manual/users.texi (getutmp): Use @var{} on parameter names.
11649         (getutmpx): Likewise.
11650
11651 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11652
11653         [BZ #6884]
11654         * manual/stdio.texi (fopen): Fix typos in description of
11655         ",ccs=STRING".
11656
11657 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11658
11659         [BZ #4026]
11660         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11661         get clock_id definition.
11662
11663 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11664
11665         [BZ #4822]
11666         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11667         (madvise): Cast every argument to void on its own.
11668
11669 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11670
11671         [BZ #9902]
11672         * manual/startup.texi (Exit Status): Fix typo.
11673
11674 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11675
11676         [BZ #10140]
11677         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11678         * manual/examples/argp-ex2.c: Likewise.
11679         * manual/examples/argp-ex3.c: Likewise.
11680
11681 2012-02-16  Richard Henderson  <rth@redhat.com>
11682
11683         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11684         * sysdeps/s390/s390-32/initfini.c: Remove.
11685         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11686         * sysdeps/s390/s390-64/initfini.c: Remove.
11687
11688 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11689
11690         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11691         compiler output for sysdeps/generic/initfini.c.
11692         * sysdeps/sh/elf/initfini.c: Remove file.
11693
11694 2012-02-16  David S. Miller  <davem@davemloft.net>
11695
11696         [BZ #11494]
11697         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11698
11699         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11700         * sysdeps/sparc/crti.S: New file.
11701         * sysdeps/sparc/crtn.S: New file.
11702         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11703         * sysdeps/sparc/sparc64/Makefile: Likewise.
11704
11705 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11706
11707         [BZ #3335]
11708         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11709
11710 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11711
11712         [BZ #4822]
11713         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11714
11715         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11716         (write, read, close): Likewise.
11717         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11718
11719 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11720
11721         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11722         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11723         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11724         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11725         <bits/signalfd.h>.
11726         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11727         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11728         bits/signalfd.h.
11729
11730 2012-02-14  Marek Polacek  <polacek@redhat.com>
11731
11732         * sysdeps/x86_64/crti.S: New file.
11733         * sysdeps/x86_64/crtn.S: New file.
11734         * sysdeps/x86_64/elf/initfini.c: Remove file.
11735
11736 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11737
11738         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11739         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11740         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11741         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11742         <bits/inotify.h>.
11743         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11744         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11745         bits/inotify.h.
11746
11747 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11748
11749         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11750         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11751         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11752         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11753         <bits/eventfd.h>.
11754         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11755         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11756         bits/eventfd.h.
11757
11758 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11759
11760         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11761         __feraiseexcept instead of feraiseexcept.
11762
11763         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11764         nanosleep invocations.
11765         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11766         strings, and add error checking for a nanosleep invocations.
11767
11768 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11769
11770         Replace FSF snail mail address with URLs, as per GNU coding standards.
11771         Most of the snail mail addresses were wrong anyway, and omitting
11772         them makes the source code easier to maintain.  Almost all of the
11773         changes are to license notices and to locale LC_IDENTIFICATION
11774         addresses, except for this one:
11775         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11776         not its snail mail address.
11777
11778 2012-02-09  Richard Henderson  <rth@twiddle.net>
11779
11780         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11781         of kernel-features.h.
11782
11783         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11784
11785 2012-02-08  Marek Polacek  <polacek@redhat.com>
11786
11787         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11788         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11789         * sysdeps/gnu/_G_config.h: Likewise.
11790         * sysdeps/generic/_G_config.h: Likewise.
11791
11792 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11793
11794         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11795         tests.
11796         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11797
11798         * sysdeps/powerpc/powerpc32/crti.S: New file.
11799         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11800         * sysdeps/powerpc/powerpc64/crti.S: New file.
11801         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11802
11803         * Makeconfig (have-initfini): Don't set.
11804         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11805         * configure.in (nopic_initfini): Don't substitute.
11806         * config.h.in (HAVE_INITFINI): Don't #undef.
11807         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11808         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11809
11810 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11811
11812         Support crti.S and crtn.S provided directly by architectures.
11813         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11814         [crti.S in sysdirs] (omit-deps): Likewise.
11815         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11816         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11817         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11818         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11819         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11820         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11821         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11822         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11823         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11824         compiler output for sysdeps/generic/initfini.c.
11825         * sysdeps/i386/elf/Makefile: Remove file.
11826         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11827
11828 2012-02-07  Marek Polacek  <polacek@redhat.com>
11829
11830         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11831         * sysdeps/gnu/_G_config.h: Likewise.
11832         * sysdeps/mach/hurd/_G_config.h: Likewise.
11833
11834 2012-02-07  Marek Polacek  <polacek@redhat.com>
11835
11836         * math/Makefile (tests): Add tst-CMPLX2.
11837         * math/tst-CMPLX2.c: New file.
11838
11839 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11840
11841         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11842
11843         * math/libm-test.inc (jn_test): Add missing L suffix.
11844
11845 2012-02-06  Marek Polacek  <polacek@redhat.com>
11846
11847         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11848         * sysdeps/i386/fpu/e_powf.S: Likewise.
11849         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11850         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11851         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11852         * sysdeps/i386/fpu/e_pow.S: Likewise.
11853         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11854         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11855         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11856         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11857         * sysdeps/i386/fpu/e_log2.S: Likewise.
11858         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11859         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11860         * sysdeps/i386/fpu/e_powl.S: Likewise.
11861         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11862         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11863         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11864         * sysdeps/i386/fpu/e_logl.S: Likewise.
11865         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11866         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11867         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11868         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11869         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11870         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11871         * sysdeps/i386/fpu/e_log.S: Likewise.
11872         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11873         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11874         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11875         * sysdeps/i386/fpu/e_logf.S: Likewise.
11876         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11877         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11878         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11879         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11880         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11881         * sysdeps/i386/fpu/e_log10.S: Likewise.
11882         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11883         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11884         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11885         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11886         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11887         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11888         * sysdeps/i386/asm-syntax.h: Likewise.
11889         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11890         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11891         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11892         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11893         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11894         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11895         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11896         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11897         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11898         * sysdeps/powerpc/sysdep.h: Likewise.
11899         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11900         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11901
11902 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11903
11904         [BZ #411]
11905         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11906
11907 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11908
11909         * sysdeps/i386/sysdep.h: Include <features.h>.
11910         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11911         version.
11912
11913 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11914
11915         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11916         Define.
11917         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11918         LOAD_PIC_REG_STR.
11919
11920 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11921
11922         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11923         (SETUP_PIC_REG): Use GET_PC_THUNK.
11924         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
11925         macro.
11926
11927 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11928
11929         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
11930         for non-PIC compilation.
11931         (SETUP_PIC_REG): Add .p2align directive.
11932         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
11933         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
11934         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
11935         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
11936         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
11937         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
11938         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11939         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11940         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
11941         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
11942         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
11943         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
11944         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
11945         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
11946         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
11947         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11948         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11949         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
11950         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
11951         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
11952         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
11953         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11954         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
11955         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
11956         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
11957         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
11958         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11959         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11960         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
11961         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
11962         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
11963         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11964         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
11965         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
11966         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
11967         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
11968         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
11969         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
11970         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
11971         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
11972         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
11973
11974 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11975
11976         * math/tst-CMPLX.c: Include <stdio.h>.
11977
11978 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
11979
11980         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
11981         float.
11982         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11983         * sysdeps/sparc/bits/mathdef.h: Likewise.
11984
11985 2012-01-31  Marek Polacek  <polacek@redhat.com>
11986
11987         * libio/libio.h: Don't define _PARAMS.
11988         * locale/programs/config.h: Don't define PARAMS.
11989         * stdlib/strtol_l.c: Likewise.
11990         (__strtol_l): Remove PARAMS from the prototype.
11991
11992 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
11993
11994         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
11995         names.  Just use the correct names.  Remove unnecessary wrapper
11996         functions.
11997         * malloc/arena.c: Likewise.
11998         * malloc/hooks.c: Likewise.
11999
12000         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12001         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12002         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12003
12004 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12005
12006         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12007         into tail calls.
12008         (update_get_addr): New function.
12009         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12010         GET_ADDR_MODULE parameter.
12011
12012 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12013
12014         * crypt/cert.c: Remove __STDC__ conditionals.
12015         * crypt/crypt-entry.c: Likewise.
12016         * crypt/crypt_util.c: Likewise.
12017         * libio/filedoalloc.c: Likewise.
12018         * libio/fileops.c: Likewise.
12019         * libio/genops.c: Likewise.
12020         * libio/iofclose.c: Likewise.
12021         * libio/iofdopen.c: Likewise.
12022         * libio/iofopen.c: Likewise.
12023         * libio/iofopen64.c: Likewise.
12024         * libio/iogetdelim.c: Likewise.
12025         * libio/iopopen.c: Likewise.
12026         * libio/obprintf.c: Likewise.
12027         * libio/oldfileops.c: Likewise.
12028         * libio/oldiofclose.c: Likewise.
12029         * libio/oldiofdopen.c: Likewise.
12030         * libio/oldiofopen.c: Likewise.
12031         * libio/oldiopopen.c: Likewise.
12032         * libio/wfiledoalloc.c: Likewise.
12033         * libio/wgenops.c: Likewise.
12034         * locale/programs/xmalloc.c: Likewise.
12035         * misc/syslog.c: Likewise.
12036         * stdio-common/xbug.c: Likewise.
12037         * string/memchr.c: Likewise.
12038         * string/memcmp.c: Likewise.
12039         * string/memrchr.c: Likewise.
12040         * string/rawmemchr.c: Likewise.
12041         * sysdeps/posix/getcwd.c: Likewise.
12042         * time/strftime_l.c: Likewise.
12043
12044 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12045
12046         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12047         * config.make.in (config-cflags-sse2avx): Define.
12048         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12049         Fix typo.
12050
12051 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12052
12053         * scripts/config.guess: Update from upstream config git repository.
12054         * scripts/config.sub: Likewise.
12055
12056 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12057
12058         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12059         (EM_NUM): Update.
12060         (R_TILEPRO_*, R_TILEGX_*): New macros.
12061
12062         * scripts/firstversions.awk: Fix bug in version range handling.
12063
12064         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12065
12066         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12067
12068         * include/sys/epoll.h: New file.
12069         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12070         libc_hidden_def.
12071
12072 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12073
12074         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12075         Avoid unnecessary __WORDSIZE == 64 test.
12076         (fmaxf): Use VEX format if possible.
12077         (fmax): Likewise.
12078         (fminf): Likewise.
12079         (fmin): Likewise.
12080
12081         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12082         * math/math_private.h: Remove libc_fegetround* and
12083         libc_fesetround*.
12084         * sysdeps/i386/configure.in: Check for -msse2avx.
12085         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12086         also if SSE2AVX is defined.
12087         Remove libc_fegetround* and libc_fesetround*.
12088         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12089         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12090         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12091         of HAS_YMM_USABLE.
12092         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12093         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12094         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12095         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12096         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12097
12098         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12099
12100 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12101
12102         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12103         size is not set.
12104         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12105
12106 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12107
12108         [BZ #13618]
12109         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12110         relocation.
12111         * Makeconfig (libm): Define.
12112         * elf/Makefile: Add rules to build and run tst-relsort1.
12113         * elf/tst-relsort1.c: New file.
12114         * elf/tst-relsort1mod1.c: New file.
12115         * elf/tst-relsort1mod2.c: New file.
12116
12117 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12118
12119         * math/s_ldexp.c: Remove __STDC__ conditionals.
12120         * math/s_ldexpf.c: Likewise.
12121         * math/s_ldexpl.c: Likewise.
12122         * math/s_nextafter.c: Likewise.
12123         * math/s_nexttowardf.c: Likewise.
12124         * math/s_significand.c: Likewise.
12125         * math/s_significandf.c: Likewise.
12126         * math/s_significandl.c: Likewise.
12127         * math/w_jnl.c: Likewise.
12128         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12129         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12130         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12131         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12132         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12133         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12134         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12135         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12136         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12137         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12138         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12139         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12140         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12141         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12142         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12143         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12144         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12145         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12146         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12147         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12148         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12149         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12150         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12151         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12152         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12153         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12154         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12155         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12156         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12157         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12158         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12159         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12160         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12161         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12162         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12163         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12164         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12165         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12166         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12167         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12168         * sysdeps/ieee754/k_standard.c: Likewise.
12169         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12170         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12171         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12172         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12173         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12174         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12175         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12176         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12177         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12178         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12179         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12180         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12181         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12182         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12183         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12184         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12185         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12186         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12187         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12188         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12189         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12190         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12191         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12192         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12193         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12194         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12195         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12196         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12197         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12198         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12199         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12200         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12201         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12202         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12203         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12204         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12205         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12206         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12207         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12208         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12209         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12210         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12211         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12212         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12213         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12214         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12215         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12216         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12217         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12218         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12219         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12220         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12221         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12222         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12223         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12224         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12225         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12226         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12227         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12228         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12229         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12230         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12231         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12232         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12233         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12234         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12235         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12236         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12237         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12238         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12239         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12240         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12241         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12242         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12243         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12244         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12245         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12246         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12247         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12248         * sysdeps/ieee754/s_matherr.c: Likewise.
12249         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12250         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12251         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12252         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12253
12254 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12255
12256         * crypt/md5.h: Remove __STDC__ conditionals.
12257         * libio/libioP.h: Likewise.
12258         * locale/programs/config.h: Likewise.
12259         * sysdeps/generic/sysdep.h: Likewise.
12260         * sysdeps/i386/asm-syntax.h: Likewise.
12261         * sysdeps/s390/asm-syntax.h: Likewise.
12262         * sysdeps/unix/sysdep.h: Likewise.
12263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12265
12266 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12267
12268         * libio/libio.h: Remove __STDC__ conditionals.
12269         * malloc/obstack.h: Likewise.
12270         * math/complex.h: Likewise.
12271         * math/math.h: Likewise.
12272         * sysdeps/generic/_G_config.h: Likewise.
12273         * sysdeps/gnu/_G_config.h: Likewise.
12274         * sysdeps/mach/hurd/_G_config.h: Likewise.
12275         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12276         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12277         * sysdeps/sparc/bits/mathdef.h: Likewise.
12278
12279 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12280
12281         [BZ #13583]
12282         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12283         Clean up HAS_* macros.
12284         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12285         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12286         possible.
12287         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12288         HAS_AVX.
12289         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12290         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12291         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12292         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12293         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12294
12295 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12296
12297         * elf/tst-unique3.cc (gets): Remove declaration.
12298         * elf/tst-unique3lib.cc (gets): Likewise.
12299         * elf/tst-unique3lib2.cc (gets): Likewise.
12300         * elf/tst-unique4.cc (gets): Likewise.
12301
12302 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12303
12304         * include/stdio.h: Add C++ protection.  Add gets declarations and
12305         definitions.
12306         * debug/tst-chk1.c: Don't declare gets here.
12307         * stdio-common/tst-gets.c: Likewise.
12308
12309 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12310
12311         * posix/glob: Remove directory.
12312
12313 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12314
12315         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12316
12317 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12318
12319         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12320         of the non-standard EPFNOSUPPORT.
12321
12322 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12323
12324         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12325         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12326         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12327
12328 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12329
12330         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12331
12332 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12333
12334         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12335         transient errors.
12336         * nscd/grpcache.c (cache_addgr): Likewise.
12337         * nscd/hstcache.c (cache_addhst): Likewise.
12338         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12339         * nscd/pwdcache.c (cache_addpw): Likewise.
12340         * nscd/servicescache.c (cache_addserv): Likewise.
12341
12342 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12343
12344         * malloc/malloc.c: Various cleanups.
12345         * malloc/hooks.c: Likewise.
12346
12347         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12348         * stdlib/bug-fmtmsg1.c: New file.
12349
12350         * stdlib/fmtmsg.c (init): Add missing unlock.
12351         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12352
12353 2012-01-12  Marek Polacek  <polacek@redhat.com>
12354
12355         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12356         and _GNU_SOURCE.
12357
12358 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12359
12360         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12361         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12362         macro to ensure uniqueness of label name.
12363         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12364         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12365
12366 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12367
12368         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12369
12370         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12371         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12372         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12373         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12374
12375 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12376
12377         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12378
12379         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12380         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12381         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12382
12383         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12384
12385         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12386         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12387         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12388         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12389
12390         * math/bits/math-finite.h: Add ldexp support.
12391
12392 2012-01-10  Marek Polacek  <polacek@redhat.com>
12393
12394         * locale/programs/localedef.h (show_archive_content): Add noreturn
12395         attribute.
12396
12397 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12398
12399         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12400
12401 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12402
12403         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12404
12405         * io/Makefile (headers): Add bits/poll2.h.
12406
12407 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12408
12409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12410         typo #include statement.
12411
12412 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12413
12414         * include/sys/cdefs.h: Define __attribute_alloc_size.
12415         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12416         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12417         * elf/pldd.c: Likewise.
12418         * iconv/iconv_charmap.c: Likewise.
12419         * iconv/iconvconfig.c: Likewise.
12420         * iconv/strtab.c: Likewise.
12421         * locale/programs/locale.c: Likewise.
12422         * locale/programs/localedef.h: Likewise.
12423         * locale/programs/simple-hash.c: Likewise.
12424         * nscd/nscd.h: Likewise.
12425         * nss/makedb.c: Likewise.
12426         * sysdeps/generic/ldconfig.h: Likewise.
12427         * locale/programs/localedef.c: Remove xmalloc prototype.
12428         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12429
12430 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12431
12432         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12433         appropriate.
12434
12435 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12436
12437         * math/Makefile (tests): Add tst-CMPLX.
12438         * math/tst-CMPLX.c: New file.
12439
12440         * math/complex.h (CMPLXL): Fix typo.
12441
12442         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12443         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12444         GLIBC_2.16.
12445         * debug/tst-chk1.c: Add poll and ppoll tests.
12446         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12447         * include/sys/poll.h: Add hidden proto for ppoll.
12448         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12449         * sysdeps/mach/hurd/ppoll.c: Likewise.
12450         * io/ppoll.c: Likewise.
12451         * debug/poll_chk.c: New file.
12452         * debug/ppoll_chk.c: New file.
12453         * include/bits/poll2.h: New file.
12454         * io/bits/poll2.h: New file.
12455
12456         [BZ #1350]
12457         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12458
12459         * configure.in: static is always set to yes.  Remove.
12460         * config.make.in: Don't set build-static.
12461         * Makeconfig: Remove use of build-static.
12462         * dlfcn/Makefile: Likewise.
12463         * elf/Makefile: Likewise.
12464         * math/Makefile: Likewise.
12465         * misc/Makefile: Likewise.
12466         * nptl/Makefile: Likewise.
12467         * sysdeps/mach/hurd/Makefile: Likewise.
12468
12469         * configure.in: PWD_P is not used anymore.
12470         * config.make.in: Remove PWD_P entry.
12471
12472         * configure.in: Remove last remnants of RANLIB.
12473         No need to check for signed size_t anymore.
12474         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12475         and IA-64.
12476         Remove __builtin_expect test because we require at least gcc 3.4.
12477         * aclocal.m4: Likewise.
12478
12479         * wcsmbs/mbrtoc16.c: Implement using towc function.
12480         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12481         * wcsmbs/wcsmbsload.c: Likewise.
12482         * iconv/gconv_simple.c: Likewise.
12483         * iconv/gconv_int.h: Likewise.
12484         * iconv/gconv_builtin.h: Likewise.
12485         * iconv/iconv_prog.c: Remove CHAR16 handling.
12486
12487         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12488
12489         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12490
12491         * configure.in: Remove --with-elf and --enable-bounded options.
12492         Dont set base_machine for ia64.  More non-ELF conditions removed.
12493         Remove testing and setting of leading underscore information.
12494         * config.make.in (build-bounded): Set to no.
12495         * config.h.in: Remove NO_UNDERSCORES entry.
12496         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12497         them.
12498         * csu/start.c: Remove !NO_UNDERSCORE code.
12499         * locale/localeinfo.h: Likewise.
12500         * sysdeps/generic/machine-gmon.h: Likewise.
12501         * sysdeps/generic/sysdep.h: Likewise.
12502         * sysdeps/i386/sysdep.h: Likewise.
12503         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12504         * sysdeps/mach/sysdep.h: Likewise.
12505         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12506         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12507         * sysdeps/sh/sysdep.h: Likewise.
12508         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12509         * sysdeps/unix/i386/sysdep.S: Likewise.
12510         * sysdeps/unix/sparc/start.c: Likewise.
12511         * sysdeps/unix/sparc/sysdep.S: Likewise.
12512         * sysdeps/unix/sparc/sysdep.h: Likewise.
12513         * sysdeps/unix/start.c: Likewise.
12514         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12515         * sysdeps/x86_64/sysdep.h: Likewise.
12516
12517 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12518
12519         [BZ #13553]
12520         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12521         for non-gcc.
12522         * argp/argp-fmtstream.h: Use const instead __const.
12523         * argp/argp.h: Likewise.
12524         * assert/assert.h: Likewise.
12525         * bits/fenv.h: Likewise.
12526         * bits/sched.h: Likewise.
12527         * bits/sigset.h: Likewise.
12528         * bits/sigthread.h: Likewise.
12529         * catgets/nl_types.h: Likewise.
12530         * conform/data/pthread.h-data: Likewise.
12531         * crypt/crypt-private.h: Likewise.
12532         * crypt/crypt.h: Likewise.
12533         * crypt/crypt_util.c: Likewise.
12534         * ctype/ctype.h: Likewise.
12535         * debug/execinfo.h: Likewise.
12536         * debug/mbsnrtowcs_chk.c: Likewise.
12537         * debug/mbsrtowcs_chk.c: Likewise.
12538         * debug/wcsnrtombs_chk.c: Likewise.
12539         * debug/wcsrtombs_chk.c: Likewise.
12540         * debug/wcstombs_chk.c: Likewise.
12541         * dirent/dirent.h: Likewise.
12542         * dlfcn/dlfcn.h: Likewise.
12543         * elf/neededtest4.c: Likewise.
12544         * grp/grp.h: Likewise.
12545         * gshadow/gshadow.h: Likewise.
12546         * iconv/gconv.h: Likewise.
12547         * iconv/gconv_int.h: Likewise.
12548         * iconv/gconv_simple.c: Likewise.
12549         * iconv/iconv.h: Likewise.
12550         * iconv/loop.c: Likewise.
12551         * iconv/skeleton.c: Likewise.
12552         * include/aio.h: Likewise.
12553         * include/aliases.h: Likewise.
12554         * include/argz.h: Likewise.
12555         * include/arpa/inet.h: Likewise.
12556         * include/assert.h: Likewise.
12557         * include/dirent.h: Likewise.
12558         * include/dlfcn.h: Likewise.
12559         * include/execinfo.h: Likewise.
12560         * include/fcntl.h: Likewise.
12561         * include/fenv.h: Likewise.
12562         * include/glob.h: Likewise.
12563         * include/grp.h: Likewise.
12564         * include/libintl.h: Likewise.
12565         * include/mntent.h: Likewise.
12566         * include/netdb.h: Likewise.
12567         * include/pwd.h: Likewise.
12568         * include/rpc/netdb.h: Likewise.
12569         * include/sched.h: Likewise.
12570         * include/search.h: Likewise.
12571         * include/shadow.h: Likewise.
12572         * include/signal.h: Likewise.
12573         * include/stdio.h: Likewise.
12574         * include/stdlib.h: Likewise.
12575         * include/string.h: Likewise.
12576         * include/sys/socket.h: Likewise.
12577         * include/sys/stat.h: Likewise.
12578         * include/sys/statfs.h: Likewise.
12579         * include/sys/statvfs.h: Likewise.
12580         * include/sys/syslog.h: Likewise.
12581         * include/sys/time.h: Likewise.
12582         * include/sys/uio.h: Likewise.
12583         * include/time.h: Likewise.
12584         * include/unistd.h: Likewise.
12585         * include/utmp.h: Likewise.
12586         * include/wchar.h: Likewise.
12587         * include/wctype.h: Likewise.
12588         * inet/aliases.h: Likewise.
12589         * inet/arpa/inet.h: Likewise.
12590         * inet/netinet/ether.h: Likewise.
12591         * inet/netinet/in.h: Likewise.
12592         * intl/libintl.h: Likewise.
12593         * io/bits/fcntl2.h: Likewise.
12594         * io/fcntl.h: Likewise.
12595         * io/ftw.h: Likewise.
12596         * io/sys/poll.h: Likewise.
12597         * io/sys/stat.h: Likewise.
12598         * io/sys/statfs.h: Likewise.
12599         * io/sys/statvfs.h: Likewise.
12600         * io/utime.h: Likewise.
12601         * libio/bits/stdio.h: Likewise.
12602         * libio/bits/stdio2.h: Likewise.
12603         * libio/libio.h: Likewise.
12604         * libio/libioP.h: Likewise.
12605         * libio/stdio.h: Likewise.
12606         * locale/lc-ctype.c: Likewise.
12607         * locale/locale.h: Likewise.
12608         * login/utmp.h: Likewise.
12609         * malloc/arena.c: Likewise.
12610         * malloc/malloc.c: Likewise.
12611         * malloc/malloc.h: Likewise.
12612         * malloc/mcheck.c: Likewise.
12613         * malloc/mtrace.c: Likewise.
12614         * math/bits/mathcalls.h: Likewise.
12615         * math/fenv.h: Likewise.
12616         * math/math_private.h: Likewise.
12617         * misc/bits/error.h: Likewise.
12618         * misc/bits/syslog.h: Likewise.
12619         * misc/err.h: Likewise.
12620         * misc/error.h: Likewise.
12621         * misc/fstab.h: Likewise.
12622         * misc/mntent.h: Likewise.
12623         * misc/regexp.h: Likewise.
12624         * misc/search.h: Likewise.
12625         * misc/sgtty.h: Likewise.
12626         * misc/sys/mman.h: Likewise.
12627         * misc/sys/syslog.h: Likewise.
12628         * misc/sys/uio.h: Likewise.
12629         * misc/sys/xattr.h: Likewise.
12630         * misc/ttyent.h: Likewise.
12631         * nis/rpcsvc/ypclnt.h: Likewise.
12632         * nss/nss.h: Likewise.
12633         * posix/bits/unistd.h: Likewise.
12634         * posix/fnmatch.h: Likewise.
12635         * posix/glob.h: Likewise.
12636         * posix/sched.h: Likewise.
12637         * posix/spawn.h: Likewise.
12638         * posix/sys/wait.h: Likewise.
12639         * posix/unistd.h: Likewise.
12640         * posix/wordexp.h: Likewise.
12641         * pwd/pwd.h: Likewise.
12642         * resolv/netdb.h: Likewise.
12643         * resource/sys/resource.h: Likewise.
12644         * rt/aio.h: Likewise.
12645         * rt/bits/mqueue2.h: Likewise.
12646         * rt/mqueue.h: Likewise.
12647         * shadow/shadow.h: Likewise.
12648         * signal/signal.h: Likewise.
12649         * socket/send.c: Likewise.
12650         * socket/sendto.c: Likewise.
12651         * socket/sys/socket.h: Likewise.
12652         * stdio-common/printf.h: Likewise.
12653         * stdlib/bits/stdlib.h: Likewise.
12654         * stdlib/fmtmsg.h: Likewise.
12655         * stdlib/monetary.h: Likewise.
12656         * stdlib/stdlib.h: Likewise.
12657         * stdlib/ucontext.h: Likewise.
12658         * streams/stropts.h: Likewise.
12659         * string/argz.h: Likewise.
12660         * string/bits/string2.h: Likewise.
12661         * string/string.h: Likewise.
12662         * string/strings.h: Likewise.
12663         * sunrpc/rpc/auth.h: Likewise.
12664         * sunrpc/rpc/auth_des.h: Likewise.
12665         * sunrpc/rpc/clnt.h: Likewise.
12666         * sunrpc/rpc/netdb.h: Likewise.
12667         * sunrpc/rpc/pmap_clnt.h: Likewise.
12668         * sunrpc/rpc/xdr.h: Likewise.
12669         * sysdeps/generic/inttypes.h: Likewise.
12670         * sysdeps/generic/net/if.h: Likewise.
12671         * sysdeps/generic/sys/swap.h: Likewise.
12672         * sysdeps/gnu/net/if.h: Likewise.
12673         * sysdeps/gnu/utmpx.h: Likewise.
12674         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12675         * sysdeps/i386/i486/bits/string.h: Likewise.
12676         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12677         * sysdeps/s390/bits/string.h: Likewise.
12678         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12679         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12680         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12681         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12682         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12683         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12684         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12685         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12686         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12687         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12688         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12689         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12690         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12691         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12692         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12693         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12694         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12695         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12696         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12697         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12698         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12699         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12700         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12701         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12702         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12703         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12704         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12705         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12706         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12707         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12708         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12709         * sysvipc/sys/ipc.h: Likewise.
12710         * sysvipc/sys/msg.h: Likewise.
12711         * sysvipc/sys/sem.h: Likewise.
12712         * sysvipc/sys/shm.h: Likewise.
12713         * termios/termios.h: Likewise.
12714         * time/sys/time.h: Likewise.
12715         * time/time.h: Likewise.
12716         * wcsmbs/bits/wchar2.h: Likewise.
12717         * wcsmbs/uchar.h: Likewise.
12718         * wcsmbs/wchar.h: Likewise.
12719         * wctype/wctype.h: Likewise.
12720
12721         [BZ #13551]
12722         * Makeconfig: Remove all but ELF support including AIX support.
12723         * Makerules: Likewise.
12724         * config.h.in: Likewise.
12725         * config.make.in: Likewise.
12726         * configure: Likewise.
12727         * configure.in: Likewise.
12728         * csu/Makefile: Likewise.
12729         * csu/version.c: Likewise.
12730         * debug/Makefile: Likewise.
12731         * dlfcn/Makefile: Likewise.
12732         * elf/Makefile: Likewise.
12733         * extra-lib.mk: Likewise.
12734         * iconv/Makefile: Likewise.
12735         * include/libc-symbols.h: Likewise.
12736         * include/shlib-compat.h: Likewise.
12737         * resolv/Makefile: Likewise.
12738         * resolv/res_libc.c: Likewise.
12739         * rt/Makefile: Likewise.
12740         * sysdeps/i386/asm-syntax.h: Likewise.
12741         * sysdeps/i386/sysdep.h: Likewise.
12742         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12743         * sysdeps/mach/sysdep.h: Likewise.
12744         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12745         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12746         * sysdeps/s390/asm-syntax.h: Likewise.
12747         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12748         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12749         * sysdeps/sh/sysdep.h: Likewise.
12750         * sysdeps/unix/sparc/sysdep.h: Likewise.
12751         * sysdeps/wordsize-32/divdi3.c: Likewise.
12752         * sysdeps/x86_64/sysdep.h: Likewise.
12753
12754         * argp/Versions: Remove _argp_unlock_xxx.
12755
12756         [BZ #13559]
12757         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12758         * abilist/libBrokenLocale.abilist: Likewise.
12759         * abilist/libanl.abilist: Likewise.
12760         * abilist/libc.abilist: Likewise.
12761         * abilist/libcrypt.abilist: Likewise.
12762         * abilist/libdl.abilist: Likewise.
12763         * abilist/libm.abilist: Likewise.
12764         * abilist/libnsl.abilist: Likewise.
12765         * abilist/libpthread.abilist: Likewise.
12766         * abilist/libresolv.abilist: Likewise.
12767         * abilist/librt.abilist: Likewise.
12768         * abilist/libthread_db.abilist: Likewise.
12769         * abilist/libutil.abilist: Likewise.
12770         * abilist/libnss_db.abilist: New file.
12771
12772         * scripts/abilist.awk: Add support for indirect functions.
12773
12774         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12775
12776         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12777
12778         * shlib-versions: Remove entries for ports architectures.
12779
12780         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12781         files in ports.
12782         * elf/stackguard-macros.h: Remove support for IA-64.
12783         * elf/tst-auditmod1.c: Likewise.
12784         * sysdeps/generic/ldsodefs.h: Likewise.
12785
12786         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12787         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12788         configure files.
12789
12790         [BZ #13552]
12791         * configure.in: Remove --enable-omitfp support.
12792         * FAQ.in: Adjust.
12793         * config.make.in: Likewise.
12794         * Makeconfig: Likewise.
12795         * manual/install.texi: Likewise.
12796
12797         In case anyone cares, the IA-64 architecture could move to ports.
12798         * sysdeps/ia64/*: Removed.
12799         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12800         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12801
12802         [BZ #13555]
12803         * configure.in: Remove entries for unsupported architectures.
12804
12805         [BZ #13533]
12806         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12807         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12808         routines.
12809         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12810         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12811         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12812         fall back to using wcrtomb.
12813         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12814         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12815         renaming.
12816         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12817         * wcsmbs/tst-c16c32-1.c: New file.
12818
12819         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12820         local variable.
12821
12822         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12823
12824         * elf/tst-unique3.cc: Add explicit declaration of gets.
12825         * elf/tst-unique3lib.cc: Likewise.
12826         * elf/tst-unique3lib2.cc: Likewise.
12827         * elf/tst-unique4.cc: Likewise.
12828
12829         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12830
12831 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12832
12833         [BZ #13566]
12834         * assert/assert.h (static_assert): Don't define for C++.
12835         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12836         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12837
12838 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12839
12840         * iconv/loop.c (single loop): Fix assertion in storing of
12841         remaining bytes.
12842
12843         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12844
12845 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12846
12847         * posix/getconf.c: Update copyright year.
12848         * nss/getent.c: Likewise.
12849         * nss/makedb.c: Likewise.
12850         * iconv/iconvconfig.c: Likewise.
12851         * iconv/iconv_prog.c: Likewise.
12852         * elf/ldconfig.c: Likewise.
12853         * elf/pldd.c: Likewise.
12854         * elf/sotruss.ksh: Likewise.
12855         * catgets/gencat.c: Likewise.
12856         * csu/version.c: Likewise.
12857         * elf/ldd.bash.in: Likewise.
12858         * elf/sprof.c (print_version): Likewise.
12859         * locale/programs/locale.c: Likewise.
12860         * locale/programs/localedef.c: Likewise.
12861         * login/programs/pt_chown.c: Likewise.
12862         * nscd/nscd.c (print_version): Likewise.
12863         * debug/xtrace.sh: Likewise.
12864         * malloc/memusage.sh: Likewise.
12865         * malloc/mtrace.pl: Likewise.
12866         * debug/catchsegv.sh: Likewise.
12867
12868 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12869
12870         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12871         pure attribute.
12872
12873 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12874
12875         [BZ #13533]
12876         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12877         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12878         transformations.
12879         * iconv/gconv_int.h: Likewise.
12880         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12881         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12882         from libc for GLIBC_2.16.
12883         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12884         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12885         * wcsmbs/uchar.h: Really define mbstate_t.
12886         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12887         * wcsmbs/c16rtomb.c: New file.
12888         * wcsmbs/mbrtoc16.c: New file.
12889         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12890         for C/POSIX locale.
12891         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12892         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12893
12894         * wcsmbs/wchar.h: Add missing __restrict.
12895
12896 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12897
12898         [BZ #13532]
12899         * time/Makefile (routines): Add timespec_get.
12900         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12901         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12902         timespec for ISO C11.
12903         * time/timespec_get.c: New file.
12904         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12905         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12906
12907         [BZ #13531]
12908         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12909         * stdlib/stdlib.h: Declare aligned_alloc.
12910         * Versions.def: Add GLIBC_2.16 for libc.
12911         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12912
12913         [BZ 13527]
12914         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12915         ISO C11.
12916
12917         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12918         code.
12919
12920         [BZ #13528]
12921         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12922
12923         [BZ #13529]
12924         * assert/assert.h (static_assert): Define.
12925
12926         * version.h: Update for 2.16 development version.
12927
12928         [BZ #13526]
12929         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
12930         _ISOC11_SOURCE.
12931
12932         * version.h (RELEASE): Bump for 2.15 release.
12933         * include/features.h (__GLIBC_MINOR__): Bump to 15.
12934
12935         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
12936         Patch by Marek Polacek <mpolacek@redhat.com>.
12937
12938         * bits/byteswap.h: Protect long long constants with __extension__.
12939         * sysdeps/i386/bits/byteswap.h: Likewise.
12940         * sysdeps/ia64/bits/byteswap.h: Likewise.
12941         * sysdeps/s390/bits/byteswap.h: Likewise.
12942         * sysdeps/x86_64/bits/byteswap.h: Likewise.
12943
12944 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12945
12946         [BZ #13540]
12947         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
12948         destination buffer.
12949         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
12950
12951 2011-12-23  Marek Polacek  <polacek@redhat.com>
12952
12953         * elf/dl-addr.c (determine_info): Add inline keyword.
12954         * elf/tst-auditmod4b.c (check_avx): Likewise.
12955         * elf/tst-auditmod6b.c (check_avx): Likewise.
12956         * elf/tst-auditmod6c.c (check_avx): Likewise.
12957         * elf/tst-auditmod7b.c (check_avx): Likewise.
12958
12959 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12960
12961         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
12962         !__SSE_MATH__.
12963
12964 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12965
12966         [BZ #13540]
12967         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
12968         processing for last bytes.
12969
12970 2011-08-06  Bruno Haible  <bruno@clisp.org>
12971
12972         [BZ #13061]
12973         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
12974         U+0385, not to U+1FEE.
12975
12976         [BZ #13062]
12977         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
12978         entry for U+00A5 U+0301.
12979
12980 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12981
12982         [BZ #13166]
12983         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
12984         buffer for the output is too small.
12985
12986         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
12987         optimization.
12988
12989         [BZ #13185]
12990         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
12991         SSE flags if possible.
12992
12993 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12994
12995         [BZ #13540]
12996         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
12997         processing for last bytes.
12998
12999 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13000
13001         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13002         (syscall-list-default-options, syscall-list-default-condition)
13003         (syscall-list-includes): Define.
13004         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13005         list of ABIs and options and #if conditions for each ABI.  Do not
13006         handle common syscalls between ABIs specially.
13007         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13008         Remove.
13009         (syscall-list-variants, syscall-list-32bit-options)
13010         (syscall-list-32bit-condition, syscall-list-64bit-options)
13011         (syscall-list-64bit-condition): Define.
13012         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13013         (syscall-list-variants, syscall-list-32bit-options)
13014         (syscall-list-32bit-condition, syscall-list-64bit-options)
13015         (syscall-list-64bit-condition): Define.
13016         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13017         Remove.
13018         (syscall-list-variants, syscall-list-32bit-options)
13019         (syscall-list-32bit-condition, syscall-list-64bit-options)
13020         (syscall-list-64bit-condition): Define.
13021         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13022         Remove.
13023         (syscall-list-variants, syscall-list-32bit-options)
13024         (syscall-list-32bit-condition, syscall-list-64bit-options)
13025         (syscall-list-64bit-condition): Define.
13026
13027 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13028
13029         * locale/iso-639.def: Add brx entry.
13030
13031         [BZ #13328]
13032         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13033         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13034
13035         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13036         __feraiseexcept_renamed.
13037
13038 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13039
13040         [BZ #13538]
13041         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13042         EPOLLET with unsigned values.
13043         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13044         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13045
13046         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13047         to large cancellation.
13048         * math/s_cacoshf.c: Likewise.
13049         * math/s_cacoshl.c: Likewise.
13050
13051 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13052
13053         [BZ #13305]
13054         [BZ #12786]
13055         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13056         * math/s_cacoshf.c: Likewise.
13057         * math/s_cacoshl.c: Likewise.
13058
13059 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13060
13061         [BZ #13439]
13062         * iconv/gconv.h: Define __GCONV_SWAP.
13063         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13064         * iconvdata/utf-16.c: Likewise.
13065         * iconvdata/utf-32.c: Likewise.
13066
13067 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13068
13069         [BZ #13524]
13070         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13071         numerator after shifting it by one limb.
13072
13073 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13074
13075         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13076         under [__USE_EXTERN_INLINES].
13077
13078 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13079
13080         [BZ #13446]
13081         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13082
13083 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13084
13085         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13086         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13087         optimized code.
13088         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13089         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13090         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13091         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13092         for strncasecmp/strncasecmp_l compilation.
13093         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13094         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13095
13096 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13097
13098         [BZ #13484]
13099         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13100         of __asm__.
13101
13102 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13103
13104         [BZ #13506]
13105         * time/tzfile.c (__tzfile_read): Check values from file header.
13106
13107 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13108
13109         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13110         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13111         * powerpc/powerpc32/dl-start.S: Likewise.
13112         * powerpc/powerpc32/elf/start.S: Likewise.
13113         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13114         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13115         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13116         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13117         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13118         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13119         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13120         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13121         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13122         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13123         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13124         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13125         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13126         * powerpc/powerpc32/memset.S: Likewise.
13127         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13128         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13129         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13130         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13131         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13132         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13133         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13134         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13135         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13136         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13137         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13138         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13139         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13140
13141 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13142
13143         * math/libm-test.inc: Added more nearbyint tests.
13144         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13145         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13146         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13147         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13148
13149 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13150
13151         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13152         FD_CLOEXEC.
13153
13154 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13155
13156         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13157         Add wcscpy-ssse3 wcscpy-c.
13158         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13159         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13160         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13161         * sysdeps/x86_64/wcschr.S: New file.
13162         * sysdeps/x86_64/wcsrchr.S: New file.
13163         * string/test-strcmp.c: Remove checking of wcscmp function for
13164         wrong alignments.
13165         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13166         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13167         wcsrchr-sse2 wcsrchr-c.
13168         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13169         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13170         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13171         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13172         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13173         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13174         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13175         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13176         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13177         * wcsmbc/wcschr.c (WCSCHR): New macro.
13178
13179 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13180
13181         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13182         * wcsmbs/test-wcsrchr.c: New file.
13183         * string/test-strrchr.c: Add wcsrchr support.
13184         (WIDE): New macro.
13185         * wcsmbs/test-wcscpy.c: New file.
13186         * string/test-strcpy.c: Add wcscpy support.
13187         (WIDE): New macro.
13188
13189 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13190
13191         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13192         the inner loop.
13193
13194 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13195
13196         [BZ #13472]
13197         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13198
13199 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13200
13201         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13202         Minor optimizations.
13203
13204         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13205         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13206         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13207
13208 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13209
13210         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13211         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13212         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13213         for gcc to avoid warnings.
13214         * inet/Makefile (tests): Add tst-checks.
13215         * inet/tst-checks.c: New file.
13216
13217         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13218         warning.
13219
13220         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13221         __wmemcmp_sse2.
13222
13223         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13224         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13225
13226         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13227
13228 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13229
13230         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13231         problem.
13232
13233         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13234
13235 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13236
13237         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13238         conditional on GCC version.
13239         (__arch_compare_and_exchange_val_8_acq)
13240         (__arch_compare_and_exchange_val_16_acq)
13241         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13242         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13243         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13244
13245 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13246
13247         * sysdeps/sh/backtrace.c: New file.
13248
13249 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13250
13251         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13252         parenthesis.
13253
13254 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13255
13256         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13257         falling back to utime.
13258
13259 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13260
13261         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13262         expectations for float.
13263
13264 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13265
13266         * locale/weight.h (findidx): Add parameter len.
13267         * locale/weightwc.h (findidx): Likewise.
13268         * posix/fnmatch_loop.c (FCT): Adjust caller.
13269         * posix/regcomp.c (build_equiv_class): Likewise.
13270         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13271         * posix/regexec.c (check_node_accept_bytes): Likewise.
13272         * string/strcoll_l.c (STRCOLL): Likewise.
13273         * string/strxfrm_l.c (STRXFRM): Likewise.
13274
13275 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13276
13277         * Makefile.in: Remove CVSOPT handling.
13278         * configure.in: Remove use of AC_REVISION.
13279         * iconvdata/Makefile (distribute): No need to filter out CVS.
13280         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13281         handling.
13282
13283 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13284
13285         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13286         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13287         [USE_AS_STRNCASECMP_L]: Likewise.
13288         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13289         NO_TLS_DIRECT_SEG_REFS.
13290         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13291         Fix argument offsets for non-PIC.
13292         [USE_AS_STRNCASECMP_L]: Likewise.
13293         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13294         NO_TLS_DIRECT_SEG_REFS.
13295
13296 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13297
13298         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13299         O_CLOEXEC.
13300         * locale/loadlocale.c (_nl_load_locale): Likewise.
13301
13302 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13303
13304         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13305         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13306         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13307         (SYSCALL_GETTIME): Set errno on error.
13308
13309         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13310         count references to noai6ai_cached.
13311
13312 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13313
13314         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13315
13316         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13317         FD_CLOEXEC for /proc/self/maps.
13318
13319         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13320         FD_CLOEXEC for /proc/meminfo.
13321
13322         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13323         gai.conf.
13324
13325         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13326         FD_CLOEXEC for given file.
13327
13328         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13329
13330         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13331         FD_CLOEXEC for /etc/hosts.
13332         (_gethtent): Likewise.
13333
13334         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13335
13336         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13337         cancellation and set FD_CLOEXEC for /etc/netgroup.
13338
13339         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13340         reading /etc/publickey.
13341
13342         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13343         allow cancellation when reading /etc/group.
13344
13345         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13346         cancellation.
13347         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13348
13349         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13350         when using data file.
13351
13352         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13353
13354         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13355         (write_nis_obj): Use "c" and "e" in fopen.
13356
13357         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13358
13359         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13360
13361         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13362
13363         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13364
13365         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13366         locale.alias.
13367
13368         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13369
13370         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13371
13372         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13373
13374         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13375         file parsing and set FD_CLOEXEC.
13376
13377 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13378
13379         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13380
13381 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13382
13383         * malloc/arena.c (arena_get2): Don't call reused_arena when
13384         _int_new_arena failed.
13385
13386 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13387
13388         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13389         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13390         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13391         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13392         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13393         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13394         to compile strcasecmp and strncasecmp.
13395         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13396         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13397
13398         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13399
13400 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13401
13402         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13403         locale-defines.sym to gen-as-const-headers.
13404         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13405         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13406         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13407         to compile strcasecmp and strncasecmp.
13408         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13409         strcasecmp_l and strncasecmp_l.
13410         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13411         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13412         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13413         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13414         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13415         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13416         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13417         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13418         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13419         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13420         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13421
13422 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13423
13424         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13425         result of SYSDEP_GETTIME_CPU to retval.
13426         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13427         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13428
13429         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13430         variable.
13431
13432         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13433         mantissa words.
13434         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13435
13436         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13437         from unused variable.
13438
13439         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13440         DWARF definitions.
13441         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13442         for assembling.
13443
13444         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13445         over namespaces.
13446
13447         * sunrpc/rpc_prot.c (rejected): Fix case value.
13448
13449         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13450         unsigned long long int to avoid warnings in shift.
13451
13452         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13453         of use of trans.
13454         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13455         variable tmp.
13456
13457         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13458         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13459         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13460
13461         * nis/nis_table.c (nis_list): Use variable of correct type for
13462         result of __follow_path call.
13463
13464 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13465
13466         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13467         of math functions ceil, trunc, floor, round, and sqrt, when
13468         avaliable on the platform.
13469         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13470         name clash.
13471         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13472         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13473         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13474
13475 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13476
13477         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13478         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13479
13480 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13481
13482         * include/unistd.h: Fix __readlink return type.
13483         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13484
13485 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13486
13487         * stdlib/ucontext.h: Undo last change for makecontext.
13488
13489 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13490
13491         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13492
13493         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13494         * setjmp/setjmp.h: Mark functions as non-leaf.
13495         * setjmp/bits/setjmp2.h: Likewise.
13496         * stdlib/ucontext.h: Likewise.
13497
13498 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13499
13500         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13501         (reused_arena): Don't check arena limit.
13502         (arena_get2): Atomically check arena limit.
13503
13504 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13505
13506         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13507         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13508
13509         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13510         instructions.
13511
13512 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13513
13514         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13515         handler when locking.
13516
13517         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13518         Fix size of allocated buffer.
13519
13520 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13521
13522         [BZ #10103]
13523         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13524         declarations for long double functions.
13525         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13526
13527         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13528
13529 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13530
13531         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13532         installed.
13533
13534         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13535         is disabled.
13536
13537 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13538
13539         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13540
13541 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13542
13543         * include/alloca.h (stackinfo_alloca_round): Define.
13544         (extend_alloca): Use it.
13545         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13546         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13547         here.
13548
13549         * scripts/check-local-headers.sh: Ignore libaudit.h.
13550
13551         * nscd/Makefile (extra-objs): Make recursively expanded.
13552
13553 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13554
13555         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13556         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13557
13558         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13559         * posix/tst-rfc3484-2.c: Likewise.
13560         * posix/tst-rfc3484-3.c: Likewise.
13561
13562         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13563         process_vm_writev.
13564         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13565         process_vm_writev.
13566         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13567         process_vm_writev from libc using GLIBC_2.15 version.
13568
13569         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13570
13571 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13572
13573         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13574         stack usage.
13575
13576 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13577
13578         [BZ #13367]
13579         * nss/getent.c (initgroups_keys): Show error message in case no group
13580         names are given.
13581
13582         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13583         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13584         __bump_nl_timestamp.
13585         * nscd/connections (nscd_init): When host database is served open
13586         netlink socket and request notification about configuration changes.
13587         (main_loop_poll): Track netlink file descriptor and bump timestamp
13588         in case data becomes available.
13589         (main_loop_epoll): Likewise.
13590         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13591         (database_pers_head): Add extra_data fileds.
13592         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13593         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13594         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13595         Adjust caller.
13596         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13597         in6ai data, call __free_in6ai.
13598         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13599         Add -DHAVE_NETLINK.
13600         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13601         interface information.  Reuse previous data if netlink timestamp
13602         is not changed.
13603         (__bump_nl_timestamp): New function.
13604         (__free_in6ai): New function.
13605
13606 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13607
13608         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13609         close_not_cancel_no_status here.
13610         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13611
13612 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13613
13614         [BZ #13276]
13615         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13616         return value.
13617
13618         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13619         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13620         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13621
13622 2011-07-03  Andreas Jaeger  <aj@suse.de>
13623
13624         [BZ #10709]
13625         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13626         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13627         * math/libm-test.inc (sin_test): Add test case.
13628
13629 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13630
13631         [BZ #13337]
13632         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13633         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13634
13635         * elf/chroot_canon.c (chroot_canon): Cleanups.
13636
13637         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13638
13639         [BZ #13335]
13640         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13641         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13642
13643         * string/test-strchr.c: Make usable for strchrnul testing.
13644         * string/test-strchrnul.c: New file.
13645         * string/Makefile (strop-tests): Add strchrnul.
13646
13647         * po/it.po: Update from translation team.
13648         * po/es.po: Likewise.
13649
13650 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13651
13652         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13653         the three constants needed as parameters.  Drop the others.
13654         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13655         __m128i_strloadu_tolower.
13656         Create and initialize variable zero and use it in all the places
13657         where _mm_setzero_si128 was used.
13658
13659         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13660         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13661         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13662         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13663         anymore.
13664         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13665         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13666         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13667         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13668         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13669         __mpranred, __mptan.
13670         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13671         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13672         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13673         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13674         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13675         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13676         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13677         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13678         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13679
13680 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13681
13682         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13683         redefine if SHARED.
13684         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13685
13686         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13687         wide char related routines to wcsmbs subdir.
13688
13689 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13690
13691         [BZ #13344]
13692         * misc/sys/cdefs.h (__THROWNL): Define.
13693         * posix/unistd.h: Use __THREADNL instead of __THREAD
13694         for memory synchronization functions.
13695
13696 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13697
13698         [BZ #13349]
13699         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13700         doesn't exist.
13701         * manual/stdio.texi (Obstack Streams): Node removed.
13702
13703 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13704
13705         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13706         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13707         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13708
13709         * math/math_private.h (math_force_eval): Allow non-addressable
13710         arguments.
13711         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13712
13713 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13714
13715         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13716         file is not needed.
13717
13718         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13719         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13720         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13721         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13722         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13723         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13724         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13725         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13726         Add AVX variants.
13727         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13728         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13729         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13730         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13731         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13732         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13733         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13734         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13735         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13736         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13737         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13738         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13739         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13740         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13741         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13742         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13743         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13744         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13745         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13746
13747         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13748         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13749
13750         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13751         place.  Use VEX encoding when compiling for AVX.
13752
13753 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13754
13755         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13756         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13757
13758         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13759
13760 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13761
13762         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13763         useless if() expression.
13764         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13765         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13766         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13767         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13768         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13769         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13770         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13771         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13772         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13773         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13774         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13775         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13776         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13777         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13778         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13779         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13780         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13781         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13782         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13783
13784         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13785
13786 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13787
13788         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13789         condition.
13790         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13791
13792 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13793
13794         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13795         .text section.  Avoid duplicate constants.
13796         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13797         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13798         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13799         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13800         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13801         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13802         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13803         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13804         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13805         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13806         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13807         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13808         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13809         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13810         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13811         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13812         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13813         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13814         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13815         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13816         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13817         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13818         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13819         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13820         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13821         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13822         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13823         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13824         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13825         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13826         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13827         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13828         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13829         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13830         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13831         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13832         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13833         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13834         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13835         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13836         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13837         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13838         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13839         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13840         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13841
13842 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13843
13844         * sysdeps/x86_64/dla.h: Move to ...
13845         * sysdeps/x86_64/fpu/dla.h: ...here.
13846         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13847         situations.  Use __builtin_fma only for gcc 4.6 and up.
13848
13849         * config.make.in: Add have-mfma4 entry.
13850         * configure.in: Substitute libc_cv_cc_fma4.
13851         * math/Makefile (dbl-only-routines): Add sincostab.
13852         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13853         Use __sincostab not sincos.
13854         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13855         name is a macro.
13856         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13857         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13858         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13859         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13860         using __copysign.
13861         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13862         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13863         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13864         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13865         and __inv.
13866         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13867         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13868         __copysign.
13869         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13870         define aliases when function name is a macro.
13871         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13872         sysdeps/ieee754/dbl-64/sincos.tbl.
13873         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13874         fma4-enabled routines.
13875         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13876         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13877         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13878         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13879         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13880         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13881         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13882         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13883         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13884         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13885         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13886         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13887         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13888         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13889         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13890         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13891         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13892         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13893         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13894         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13895         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13896         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13897         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13898         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13899         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13900         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13901         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13902         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13903         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13904         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13905
13906         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13907         rename.
13908         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13909         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13910         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13911         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13912         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13913         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13914         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13915         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13916
13917 2011-10-24  Andreas Schwab  <schwab@redhat.com>
13918
13919         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13920
13921 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13922
13923         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13924
13925         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
13926         prediction.
13927         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
13928
13929         * string/strnlen.c: Don't define STRNLEN, reverse logic.
13930         Remove unused variable magic_bits.
13931         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
13932
13933         * string/strnlen.c: Define and use STRNLEN macro.
13934         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
13935         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
13936         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
13937         * wcsmbs/wcslen.c: Define and use WCSLEN.
13938         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
13939         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
13940         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
13941         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
13942         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
13943         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
13944         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13945
13946 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13947
13948         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13949         strnlen-sse2-no-bsf.
13950         Rename strlen-no-bsf to strlen-sse2-no-bsf.
13951         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
13952         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
13953         Add strnlen support.
13954         (USE_AS_STRNLEN): New macro.
13955         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
13956         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
13957         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
13958         * sysdeps/x86_64/wcslen.S: New file.
13959
13960 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
13961
13962         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
13963         XMM-moves are used for copying on small sizes.
13964
13965 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13966
13967         * wcsmbs/Makefile (strop-tests): Add wcschr.
13968         * wcsmbs/test-wcschr.c: New file.
13969         * string/test-strchr.c: Update.
13970         Add wcschr support.
13971         (WIDE): New macro.
13972
13973 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13974
13975         * wcsmbs/Makefile (strop-tests): Add wcslen.
13976         * wcsmbs/test-wcslen.c: New file.
13977         * string/test-strlen.c: Update.
13978         Add wcslen support.
13979         (WIDE): New macro.
13980
13981 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13982
13983         * po/it.po: Update from translation team.
13984
13985 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13986
13987         * sysdeps/x86_64/wcscmp.S: Update.
13988         Fix wrong comparison semantics.
13989         wcscmp shall use signed comparison not unsigned.
13990         Don't use substraction to avoid overflow bug.
13991         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
13992         * wcsmbc/wcscmp.c: Likewise.
13993         * string/test-strcmp.c: Likewise.
13994         Add new tests to check cases with negative values.
13995
13996 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13997
13998         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
13999         * sysdeps/x86_64/dla.h: ...here.  New file.
14000         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14001         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14002         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14003         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14004         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14005         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14006         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14007         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14008         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14009
14010 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14011
14012         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14013         __ynl_finite aliases.
14014
14015 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14016
14017         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14018
14019         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14020         define DLA_FMA.
14021         [DLA_FMA] (EMULV): Use DLA_FMA.
14022         [DLA_FMA] (MUL12): Use EMULV.
14023         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14024         that are not needed.
14025         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14026         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14027         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14028         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14029         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14030         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14031         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14032
14033 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14034
14035         * math/s_nan.c: Undef __nan.
14036         * math/s_nanf.c: Undef __nanf.
14037         * math/s_nanl.c: Undef __nanl.
14038         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14039         "math_private.h".
14040
14041 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14042
14043         * math/s_catan.c: Add branch predictions.
14044         * math/s_catanf.c: Likewise.
14045         * math/s_catanh.c: Likewise.
14046         * math/s_catanhf.c: Likewise.
14047         * math/s_catanhl.c: Likewise.
14048         * math/s_catanl.c: Likewise.
14049         * math/s_cexp.c: Likewise.
14050         * math/s_cexpf.c: Likewise.
14051         * math/s_cexpl.c: Likewise.
14052         * math/s_clog.c: Likewise.
14053         * math/s_clog10.c: Likewise.
14054         * math/s_clog10f.c: Likewise.
14055         * math/s_clog10l.c: Likewise.
14056         * math/s_clogf.c: Likewise.
14057         * math/s_clogl.c: Likewise.
14058         * math/s_csqrt.c: Likewise.
14059         * math/s_csqrtf.c: Likewise.
14060         * math/s_csqrtl.c: Likewise.
14061         * math/s_ctanf.c: Likewise.
14062         * math/s_ctanh.c: Likewise.
14063         * math/s_ctanhf.c: Likewise.
14064         * math/s_ctanhl.c: Likewise.
14065         * math/s_ctanl.c: Likewise.
14066
14067         * math/math_private.h: Define __nan, __nanf, __nanl.
14068         * math/s_cacosh.c: Include <math_private.h>.
14069         * math/s_cacoshl.c: Likewise.
14070         * math/s_casinh.c: Likewise.
14071         * math/s_casinhf.c: Likewise.
14072         * math/s_casinhl.c: Likewise.
14073         * math/s_ccos.c: Rely entire on ccosh.
14074         * math/s_ccosf.c: Rely entire on ccoshf.
14075         * math/s_ccosl.c: Rely entirely on ccoshl.
14076         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14077         Remove tests for FE_INVALID.
14078         * math/s_ccoshf.c: Likewise.
14079         * math/s_ccoshl.c: Likewise.
14080         * math/s_csin.c: Likewise.
14081         * math/s_csinf.c: Likewise.
14082         * math/s_csinh.c Likewise.
14083         * math/s_csinhf.c: Likewise.
14084         * math/s_csinhl.c: Likewise.
14085         * math/s_csinl.c: Likewise.
14086         * math/s_ctan.c: Likewise.
14087         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14088         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14089         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14090
14091 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14092
14093         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14094         compilation problems.
14095
14096         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14097         __builtin_expect.
14098
14099 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14100
14101         * sysdeps/i386/configure.in: Test for -mfma4 option.
14102         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14103         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14104         COMMON_CPUID_INDEX_80000001.
14105         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14106         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14107         use it if FMA3 is not supported.
14108         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14109
14110         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14111         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14112
14113 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14114
14115         [BZ #12892]
14116         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14117         it would create a cycle with a link time dependency.
14118
14119 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14120
14121         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14122         instruction.
14123         * string/Makefile (strop-tests): Add rawmemchr.
14124         * string/test-rawmemchr.c: New file.
14125
14126         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14127         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14128         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14129         when compiling str{,n}casecmp and when AVX is available.  Hook up
14130         new optimized code in initializers.
14131
14132 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14133
14134         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14135         __feraiseexcept instead of feraiseexcept.
14136
14137 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14138
14139         * math/math_private.h: Define defaults for libc_fetestexcept and
14140         libc_feupdateenv.
14141         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14142         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14143         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14144         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14145         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14146         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14147         libc_fetestexcept and libc_feupdateenv.
14148
14149         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14150         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14151         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14152         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14153         libc_feholdexcept_setround.
14154
14155         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14156         Add s_nearbyint-c and s_nearbyintf-c.
14157         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14158         nearbyintf inlines.
14159         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14160         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14161         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14162         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14163
14164         * math/math_private.h: Define defaults for libc_fegetround,
14165         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14166         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14167         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14168         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14169         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14170         standard functions.
14171         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14172         Remove comments and hacks for old compiler versions.
14173         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14174         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14175         libc_feholdexceptl.
14176
14177 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14178
14179         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14180         (__feraiseexcept_renamed): Add __NTH.
14181         (feraiseexcept): Add __NTH.  Rename local variables to fix
14182         namespace violations.
14183
14184 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14185
14186         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14187
14188         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14189
14190         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14191         recently added interfaces.
14192         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14193
14194         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14195         about macro parameter expansion.
14196
14197         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14198         __NO_MATH_INLINES is defined.  Cleanups.
14199
14200         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14201         and __floorf is target has SSE4.1.
14202         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14203         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14204         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14205         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14206
14207         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14208         name.
14209         (floorf): Likewise.
14210
14211         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14212
14213 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14214
14215         * misc/sys/cdefs.h: Fix last change.
14216
14217         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14218         database lookup.
14219
14220 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14221
14222         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14223
14224         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14225         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14226         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14227         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14228         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14229         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14230         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14231         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14232         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14233         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14234         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14235         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14236         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14237         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14238         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14239         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14240         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14241         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14242         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14243         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14244         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14245         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14246
14247         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14248         ceil, ceilf, floor, floorf.
14249
14250         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14251         Perform IRELATIVE relocations last.
14252
14253         * elf/do-rel.h: Add another parameter nrelative, replacing the
14254         local variable with the same name.  Change name of the function
14255         to end in Rel or Rela (uppercase).
14256         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14257         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14258         elf_dynamic_do_##reloc function.
14259
14260 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14261
14262         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14263         is sufficient, at least on modern CPUs.
14264
14265         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14266
14267         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14268         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14269
14270         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14271         __expl_finite.
14272         * math/bits/math-finite.h: Add entries for exp.
14273         * math/e_expl.c: Add __*_finite alias.
14274         * sysdeps/i386/fpu/e_exp.S: Likewise.
14275         * sysdeps/i386/fpu/e_expf.S: Likewise.
14276         * sysdeps/i386/fpu/e_expl.c: Likewise.
14277         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14278         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14279         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14280         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14281         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14282         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14283         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14284
14285         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14286         is sufficient, at least on modern CPUs.
14287
14288         * ctype/ctype-info.c (__ctype_init): Define.
14289         * include/ctype.h (__ctype_init): Declare.
14290         (__ctype_b_loc): The variable is always initialized.
14291         (__ctype_toupper_loc): Likewise.
14292         (__ctype_tolower_loc): Likewise.
14293         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14294         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14295
14296 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14297
14298         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14299
14300         * configure.in: Also look in $cxxmachine/include for C++ system
14301         headers.
14302
14303 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14304
14305         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14306         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14307         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14308         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14309         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14310         (USE_AS_WMEMCMP): New macro.
14311         Fixing indents.
14312         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14313         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14314         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14315         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14316         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14317         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14318         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14319         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14320         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14321         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14322         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14323         (USE_AS_WMEMCMP): New macro.
14324         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14325         * sysdeps/string/test-memcmp.c: Update.
14326         Fix simple_wmemcmp.
14327         Add new tests.
14328         * wcsmbs/wmemcmp.c: Update.
14329         (WMEMCMP): New macro.
14330         Fix overflow bug.
14331
14332 2011-10-12  Andreas Jaeger  <aj@suse.de>
14333
14334         [BZ #13268]
14335         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14336
14337 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14338
14339         * libio/iofwide.c (do_length): Avoid warning.
14340
14341         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14342
14343 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14344
14345         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14346
14347         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14348         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14349         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14350         * sysdeps/i386/i686/fpu/e_log.S: New file.
14351         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14352         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14353
14354         * ctype/ctype.h: Add support for inlined isXXX functions when
14355         compiling C++ code.
14356
14357 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14358
14359         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14360
14361         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14362
14363 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14364
14365         [BZ #13291]
14366         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14367
14368 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14369
14370         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14371         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14372         feraiseexcept.
14373
14374         * sysdeps/x86_64/memrchr.S: Check for zero size.
14375
14376         * string/stratcliff.c: Add memrchr tests.
14377
14378 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14379
14380         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14381         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14382         rawmemchr-sse2 rawmemchr-sse2-bsf.
14383         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14384         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14385         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14386         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14387         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14388         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14389         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14390         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14391         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14392         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14393         * string/memrchr.c (MEMRCHR): New macro.
14394
14395 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14396
14397         Add integration with gcc's -ffinite-math-only and optimize wrapper
14398         functions in libm.
14399         * Versions.def: Define GLIBC_2.15 version for libm.
14400         * math/Makefile (headers): Add bits/math-finite.h.
14401         * math/bits/math-finite.h: New file.
14402         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14403         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14404         * math/e_acoshl.c: Add __*_finite alias.
14405         * math/e_acosl.c: Likewise.
14406         * math/e_asinl.c: Likewise.
14407         * math/e_atan2l.c: Likewise.
14408         * math/e_atanhl.c: Likewise.
14409         * math/e_coshl.c: Likewise.
14410         * math/e_exp10.c: Likewise.
14411         * math/e_exp10f.c: Likewise.
14412         * math/e_exp10l.c: Likewise.
14413         * math/e_exp2l.c: Likewise.
14414         * math/e_fmodl.c: Likewise.
14415         * math/e_gammal_r.c: Likewise.
14416         * math/e_hypotl.c: Likewise.
14417         * math/e_j0l.c: Likewise.
14418         * math/e_j1l.c: Likewise.
14419         * math/e_jnl.c: Likewise.
14420         * math/e_lgammal_r.c: Likewise.
14421         * math/e_log10l.c: Likewise.
14422         * math/e_log2l.c: Likewise.
14423         * math/e_logl.c: Likewise.
14424         * math/e_powl.c: Likewise.
14425         * math/e_sinhl.c: Likewise.
14426         * math/e_sqrtl.c: Likewise.
14427         * math/e_scalb.c: Completely rewritten and optimized.
14428         * math/e_scalbf.c: Likewise.
14429         * math/e_scalbl.c: Likewise.
14430         * math/w_acos.c: Likewise.
14431         * math/w_acosf.c: Likewise.
14432         * math/w_acosl.c: Likewise.
14433         * math/w_acosh.c: Likewise.
14434         * math/w_acoshf.c: Likewise.
14435         * math/w_acoshl.c: Likewise.
14436         * math/w_asin.c: Likewise.
14437         * math/w_asinf.c: Likewise.
14438         * math/w_asinl.c: Likewise.
14439         * math/w_atan2.c: Likewise.
14440         * math/w_atan2f.c: Likewise.
14441         * math/w_atan2l.c: Likewise.
14442         * math/w_atanh.c: Likewise.
14443         * math/w_atanhf.c: Likewise.
14444         * math/w_atanhl.c: Likewise.
14445         * math/w_exp10.c: Likewise.
14446         * math/w_exp10f.c: Likewise.
14447         * math/w_exp10l.c: Likewise.
14448         * math/w_fmod.c: Likewise.
14449         * math/w_fmodf.c: Likewise.
14450         * math/w_fmodl.c: Likewise.
14451         * math/w_j0.c: Likewise.
14452         * math/w_j0f.c: Likewise.
14453         * math/w_j0l.c: Likewise.
14454         * math/w_j1.c: Likewise.
14455         * math/w_j1f.c: Likewise.
14456         * math/w_j1l.c: Likewise.
14457         * math/w_jn.c: Likewise.
14458         * math/w_jnf.c: Likewise.
14459         * math/w_log.c: Likewise.
14460         * math/w_logf.c: Likewise.
14461         * math/w_logl.c: Likewise.
14462         * math/w_log10.c: Likewise.
14463         * math/w_log10f.c: Likewise.
14464         * math/w_log10l.c: Likewise.
14465         * math/w_log2.c: Likewise.
14466         * math/w_log2f.c: Likewise.
14467         * math/w_log2l.c: Likewise.
14468         * math/w_pow.c: Likewise.
14469         * math/w_powf.c: Likewise.
14470         * math/w_powl.c: Likewise.
14471         * math/w_remainder.c: Likewise.
14472         * math/w_remainderf.c: Likewise.
14473         * math/w_remainderl.c: Likewise.
14474         * math/w_scalb.c: Likewise.
14475         * math/w_scalbf.c: Likewise.
14476         * math/w_scalbl.c: Likewise.
14477         * math/w_sqrt.c: Likewise.
14478         * math/w_sqrtf.c: Likewise.
14479         * math/w_sqrtl.c: Likewise.
14480         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14481         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14482         used.
14483         * math/math_private.h: Declare __kernel_standard_f.
14484         * math/w_cosh.c: Remove cruft and optimize a bit.
14485         * math/w_coshf.c: Likewise.
14486         * math/w_coshl.c: Likewise.
14487         * math/w_exp2.c: Likewise.
14488         * math/w_exp2f.c: Likewise.
14489         * math/w_exp2l.c: Likewise.
14490         * math/w_hypot.c: Likewise.
14491         * math/w_hypotf.c: Likewise.
14492         * math/w_hypotl.c: Likewise.
14493         * math/w_lgamma.c: Likewise.
14494         * math/w_lgamma_r.c: Likewise.
14495         * math/w_lgammaf.c: Likewise.
14496         * math/w_lgammaf_r.c: Likewise.
14497         * math/w_lgammal.c: Likewise.
14498         * math/w_lgammal_r.c: Likewise.
14499         * math/w_sinh.c: Likewise.
14500         * math/w_sinhf.c: Likewise.
14501         * math/w_sinhl.c: Likewise.
14502         * math/w_tgamma.c: Likewise.
14503         * math/w_tgammaf.c: Likewise.
14504         * math/w_tgammal.c: Likewise.
14505         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14506         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14507         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14508         Minor optimizations.  Pretty printing.  Remove cruft.
14509         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14510         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14511         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14512         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14513         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14514         * sysdeps/i386/fpu/e_asin.S: Likewise.
14515         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14516         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14517         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14518         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14519         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14520         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14521         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14522         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14523         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14524         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14525         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14526         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14527         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14528         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14529         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14530         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14531         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14532         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14533         * sysdeps/i386/fpu/e_log.S: Likewise.
14534         * sysdeps/i386/fpu/e_log10.S: Likewise.
14535         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14536         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14537         * sysdeps/i386/fpu/e_log2.S: Likewise.
14538         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14539         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14540         * sysdeps/i386/fpu/e_logf.S: Likewise.
14541         * sysdeps/i386/fpu/e_logl.S: Likewise.
14542         * sysdeps/i386/fpu/e_pow.S: Likewise.
14543         * sysdeps/i386/fpu/e_powf.S: Likewise.
14544         * sysdeps/i386/fpu/e_powl.S: Likewise.
14545         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14546         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14547         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14548         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14549         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14550         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14551         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14552         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14553         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14554         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14555         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14556         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14557         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14558         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14559         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14560         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14561         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14562         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14563         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14564         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14565         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14566         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14567         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14568         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14569         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14570         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14571         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14572         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14573         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14574         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14575         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14576         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14577         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14578         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14579         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14580         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14581         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14582         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14583         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14584         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14585         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14586         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14587         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14588         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14589         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14590         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14591         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14592         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14593         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14594         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14595         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14596         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14597         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14598         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14599         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14600         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14601         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14602         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14603         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14604         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14605         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14606         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14607         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14608         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14609         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14610         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14611         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14612         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14613         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14614         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14615         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14616         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14617         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14618         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14619         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14620         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14621         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14622         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14623         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14624         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14625         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14626         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14627         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14628         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14629         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14630         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14631         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14632         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14633         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14634         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14635         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14636         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14637         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14638         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14639         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14640         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14641         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14642         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14643         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14644         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14645         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14646         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14647         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14648         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14649         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14650         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14651         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14652         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14653         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14654         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14655         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14656         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14657         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14658         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14659         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14660         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14661         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14662         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14663         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14664         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14665         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14666         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14667         (__isnanf): Likewise.
14668         (__isinf_ns): Likewise.
14669         (__isinf_nsf): Likewise.
14670         (__finite): Likewise.
14671         (__finitef): Likewise.
14672         (__ieee754_sqrt): Define as macro.
14673         (__ieee754_sqrtf): Define as macro.
14674         (__ieee754_sqrtl): Define as macro.
14675         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14676         inlined copy.
14677         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14678         __FINITE_MATH_ONLY__ consistent.
14679         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14680
14681 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14682
14683         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14684         of rawmemchr.
14685
14686         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14687
14688 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14689
14690         * po/ja.po: Update from translation team.
14691
14692 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14693
14694         * locale/programs/locarchive.c (prepare_address_space): New function.
14695         (create_archive, enlarge_archive, open_archive): Use it.
14696
14697         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14698         inside [SHARED], where it is used.
14699
14700         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14701
14702         * nss/getent.c (netgroup_keys): Remove unused variable.
14703         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14704
14705 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14706
14707         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14708         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14709         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14710         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14711         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14712         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14713         * math/Makefile (libm-calls): Add s_isinf_ns.
14714         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14715         * math/multc3.c: Likewise.
14716         * math/s_casin.c: Likewise.
14717         * math/s_casinf.c: Likewise.
14718         * math/s_casinl.c: Likewise.
14719         * math/s_ccos.c: Likewise.
14720         * math/s_ccosf.c: Likewise.
14721         * math/s_ccosl.c: Likewise.
14722         * math/s_ctan.c: Likewise.
14723         * math/s_ctanf.c: Likewise.
14724         * math/s_ctanh.c: Likewise.
14725         * math/s_ctanhf.c: Likewise.
14726         * math/s_ctanhl.c: Likewise.
14727         * math/s_ctanl.c: Likewise.
14728         * math/w_fmod.c: Likewise.
14729         * math/w_fmodf.c: Likewise.
14730         * math/w_fmodl.c: Likewise.
14731         * math/w_remainder.c: Likewise.
14732         * math/w_remainderf.c: Likewise.
14733         * math/w_remainderl.c: Likewise.
14734         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14735         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14736         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14737         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14738         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14739         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14740         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14741         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14742
14743         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14744         of the number.
14745         * stdio-common/printf_fphex.c: Likewise.
14746         * stdio-common/printf_size.c: Likewise.
14747
14748         * math/e_exp10.c: Include math_private.h using <...> not "...".
14749         * math/e_exp10f.c: Likewise.
14750         * math/e_exp10l.c: Likewise.
14751         * math/e_exp2l.c: Likewise.
14752         * math/e_j0l.c: Likewise.
14753         * math/e_j1l.c: Likewise.
14754         * math/e_jnl.c: Likewise.
14755         * math/e_lgammal_r.c: Likewise.
14756         * math/e_rem_pio2l.c: Likewise.
14757         * math/e_scalb.c: Likewise.
14758         * math/e_scalbf.c: Likewise.
14759         * math/e_scalbl.c: Likewise.
14760         * math/k_cosl.c: Likewise.
14761         * math/k_sinl.c: Likewise.
14762         * math/k_tanl.c: Likewise.
14763         * math/s_cacoshf.c: Likewise.
14764         * math/s_catan.c: Likewise.
14765         * math/s_catanf.c: Likewise.
14766         * math/s_catanh.c: Likewise.
14767         * math/s_catanhf.c: Likewise.
14768         * math/s_catanhl.c: Likewise.
14769         * math/s_catanl.c: Likewise.
14770         * math/s_ccosh.c: Likewise.
14771         * math/s_ccoshf.c: Likewise.
14772         * math/s_ccoshl.c: Likewise.
14773         * math/s_cexp.c: Likewise.
14774         * math/s_cexpf.c: Likewise.
14775         * math/s_cexpl.c: Likewise.
14776         * math/s_clog.c: Likewise.
14777         * math/s_clog10.c: Likewise.
14778         * math/s_clog10f.c: Likewise.
14779         * math/s_clog10l.c: Likewise.
14780         * math/s_clogf.c: Likewise.
14781         * math/s_clogl.c: Likewise.
14782         * math/s_csin.c: Likewise.
14783         * math/s_csinf.c: Likewise.
14784         * math/s_csinh.c: Likewise.
14785         * math/s_csinhf.c: Likewise.
14786         * math/s_csinhl.c: Likewise.
14787         * math/s_csinl.c: Likewise.
14788         * math/s_csqrt.c: Likewise.
14789         * math/s_csqrtf.c: Likewise.
14790         * math/s_csqrtl.c: Likewise.
14791         * math/s_ctan.c: Likewise.
14792         * math/s_ctanf.c: Likewise.
14793         * math/s_ctanh.c: Likewise.
14794         * math/s_ctanhf.c: Likewise.
14795         * math/s_ctanhl.c: Likewise.
14796         * math/s_ctanl.c: Likewise.
14797         * math/s_ldexp.c: Likewise.
14798         * math/s_ldexpf.c: Likewise.
14799         * math/s_ldexpl.c: Likewise.
14800         * math/s_significand.c: Likewise.
14801         * math/s_significandf.c: Likewise.
14802         * math/s_significandl.c: Likewise.
14803         * math/w_acos.c: Likewise.
14804         * math/w_acosf.c: Likewise.
14805         * math/w_acosh.c: Likewise.
14806         * math/w_acoshf.c: Likewise.
14807         * math/w_acoshl.c: Likewise.
14808         * math/w_acosl.c: Likewise.
14809         * math/w_asin.c: Likewise.
14810         * math/w_asinf.c: Likewise.
14811         * math/w_asinl.c: Likewise.
14812         * math/w_atan2.c: Likewise.
14813         * math/w_atan2f.c: Likewise.
14814         * math/w_atan2l.c: Likewise.
14815         * math/w_atanh.c: Likewise.
14816         * math/w_atanhf.c: Likewise.
14817         * math/w_atanhl.c: Likewise.
14818         * math/w_cosh.c: Likewise.
14819         * math/w_coshf.c: Likewise.
14820         * math/w_coshl.c: Likewise.
14821         * math/w_dremf.c: Likewise.
14822         * math/w_exp10.c: Likewise.
14823         * math/w_exp10f.c: Likewise.
14824         * math/w_exp10l.c: Likewise.
14825         * math/w_exp2.c: Likewise.
14826         * math/w_exp2f.c: Likewise.
14827         * math/w_fmod.c: Likewise.
14828         * math/w_fmodf.c: Likewise.
14829         * math/w_fmodl.c: Likewise.
14830         * math/w_hypot.c: Likewise.
14831         * math/w_hypotf.c: Likewise.
14832         * math/w_hypotl.c: Likewise.
14833         * math/w_j0.c: Likewise.
14834         * math/w_j0f.c: Likewise.
14835         * math/w_j0l.c: Likewise.
14836         * math/w_j1.c: Likewise.
14837         * math/w_j1f.c: Likewise.
14838         * math/w_j1l.c: Likewise.
14839         * math/w_jn.c: Likewise.
14840         * math/w_jnf.c: Likewise.
14841         * math/w_jnl.c: Likewise.
14842         * math/w_lgamma.c: Likewise.
14843         * math/w_lgamma_r.c: Likewise.
14844         * math/w_lgammaf.c: Likewise.
14845         * math/w_lgammaf_r.c: Likewise.
14846         * math/w_lgammal.c: Likewise.
14847         * math/w_lgammal_r.c: Likewise.
14848         * math/w_log.c: Likewise.
14849         * math/w_log10.c: Likewise.
14850         * math/w_log10f.c: Likewise.
14851         * math/w_log10l.c: Likewise.
14852         * math/w_log2.c: Likewise.
14853         * math/w_log2f.c: Likewise.
14854         * math/w_log2l.c: Likewise.
14855         * math/w_logf.c: Likewise.
14856         * math/w_logl.c: Likewise.
14857         * math/w_pow.c: Likewise.
14858         * math/w_powf.c: Likewise.
14859         * math/w_powl.c: Likewise.
14860         * math/w_remainder.c: Likewise.
14861         * math/w_remainderf.c: Likewise.
14862         * math/w_remainderl.c: Likewise.
14863         * math/w_scalb.c: Likewise.
14864         * math/w_scalbf.c: Likewise.
14865         * math/w_scalbl.c: Likewise.
14866         * math/w_sinh.c: Likewise.
14867         * math/w_sinhf.c: Likewise.
14868         * math/w_sinhl.c: Likewise.
14869         * math/w_sqrt.c: Likewise.
14870         * math/w_sqrtf.c: Likewise.
14871         * math/w_sqrtl.c: Likewise.
14872         * math/w_tgamma.c: Likewise.
14873         * math/w_tgammaf.c: Likewise.
14874         * math/w_tgammal.c: Likewise.
14875
14876         * po/ja.po: Update from translation team.
14877
14878 2011-09-29  Andreas Jaeger  <aj@suse.de>
14879
14880         [BZ #13179]
14881         * sunrpc/netname.c (netname2host): Fix logic.
14882
14883         [BZ #6779]
14884         [BZ #6783]
14885         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14886         correctly.
14887         * math/w_remainder.c (__remainder): Likewise.
14888         * math/w_remainderf.c (__remainderf): Likewise.
14889         * math/libm-test.inc (remainder_test): Add test cases.
14890
14891 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14892
14893         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14894         sdiv_qrnnd.
14895
14896 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14897
14898         * string/test-memcmp.c: Avoid unncessary #defines.
14899         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14900
14901 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14902
14903         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14904         Use new sse2 version for core i3 - i7 as it's faster
14905         than sse42 version.
14906         (bit_Prefer_PMINUB_for_stringop): New.
14907         * sysdeps/x86_64/rawmemchr.S: Update.
14908         Replace with faster SSE2 version.
14909         * sysdeps/x86_64/memrchr.S: New file.
14910         * sysdeps/x86_64/memchr.S: Update.
14911         Replace with faster SSE2 version.
14912
14913 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14914
14915         * elf/dl-load.c (lose): Add cast to avoid warning.
14916
14917 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14918
14919         * po/ca.po: Update from translation team.
14920
14921         * inet/getnetgrent_r.c: Hook up nscd.
14922         * nscd/Makefile (routines): Add nscd_netgroup.
14923         (nscd-modules): Add netgroupcache.
14924         (CFLAGS-netgroupcache.c): Define.
14925         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
14926         (cache_search): Add const to second parameter.
14927         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
14928         INNETGR.
14929         (dbs): Add netgrdb entry.
14930         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
14931         (verify_persistent_db): Handle netgrdb.
14932         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
14933         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
14934         GETFDNETGR.
14935         (netgroup_response_header): Define.
14936         (innetgroup_response_header): Define.
14937         (datahead): Add netgroup_response_header and innetgroup_response_header
14938         elements.
14939         * nscd/nscd.conf: Add entries for netgroup cache.
14940         * nscd/nscd.h (dbtype): Add netgrdb.
14941         (_PATH_NSCD_NETGROUP_DB): Define.
14942         (netgroup_iov_disabled): Declare.
14943         (xmalloc, xcalloc, xrealloc): Move declarations here.
14944         (cache_search): Adjust prototype.
14945         Add netgroup-related prototypes.
14946         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
14947         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
14948         (__nscd_innetgr): Declare.
14949         * nscd/selinux.c (perms): Use access_vector_t as element type and
14950         add netgroup-related initializers.
14951         * nscd/netgroupcache.c: New file.
14952         * nscd/nscd_netgroup.c: New file.
14953         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
14954         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
14955         For four parameters use innetgr.
14956         * nss/nss_files/files-init.c: Add definition and callback for netgr.
14957         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
14958         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
14959         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
14960
14961         * nscd/connections.c (register_traced_file): Don't register file
14962         for disabled databases.
14963
14964 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
14965
14966         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
14967
14968         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
14969         from tree and freeing node.
14970
14971 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
14972
14973         * nss/nsswitch.c (__nss_database_lookup): Handle
14974         nss_parse_service_list out of memory case.
14975
14976 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
14977
14978         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
14979         out of memory case.
14980
14981 2011-10-04  Andreas Schwab  <schwab@redhat.com>
14982
14983         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
14984         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
14985         pass it down.
14986         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
14987         elf_machine_rela, elf_machine_lazy_rel.
14988         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
14989         (ELF_DYNAMIC_DO_REL): Likewise.
14990         (ELF_DYNAMIC_DO_RELA): Likewise.
14991         (ELF_DYNAMIC_RELOCATE): Likewise.
14992         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
14993         to ELF_DYNAMIC_DO_REL.
14994         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
14995         (dl_main): In trace mode always set __RTLD_NOIFUNC.
14996         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
14997         elf_machine_rela.
14998         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
14999         skip_ifunc, don't call ifunc function if non-zero.
15000         (elf_machine_rela): Likewise.
15001         (elf_machine_lazy_rel): Likewise.
15002         (elf_machine_lazy_rela): Likewise.
15003         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15004         (elf_machine_lazy_rel): Likewise.
15005         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15006         Likewise.
15007         (elf_machine_lazy_rel): Likewise.
15008         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15009         Likewise.
15010         (elf_machine_lazy_rel): Likewise.
15011         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15012         (elf_machine_lazy_rel): Likewise.
15013         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15014         (elf_machine_lazy_rel): Likewise.
15015         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15016         (elf_machine_lazy_rel): Likewise.
15017         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15018         (elf_machine_lazy_rel): Likewise.
15019         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15020         (elf_machine_lazy_rel): Likewise.
15021         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15022         (elf_machine_lazy_rel): Likewise.
15023
15024 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15025
15026         * nss/nss_files/files-init.c (_nss_files_init): Use static
15027         initialization for all the *_traced_file variables.
15028
15029 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15030
15031         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15032
15033 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15034
15035         [BZ #13226]
15036         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15037
15038 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15039
15040         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15041         Reread the line before reparsing it.
15042
15043 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15044
15045         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15046
15047 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15048             Maxim Kuvyrkov  <maxim@codesourcery.com>
15049             Joseph Myers  <joseph@codesourcery.com>
15050
15051         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15052         if needed for __stack_chk_guard.
15053
15054 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15055
15056         * sysdeps/posix/spawni.c (script_execute): Always define it.
15057         It will be optimized away if unused.
15058         (maybe_script_execute): New function.
15059         (__spawni): Call it.
15060
15061         * Makerules: Don't include tls.make.
15062         (config-tls): Always set to thread.
15063         * tls.make.c: File removed.
15064
15065 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15066
15067         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15068         * config.make.in (CPPFLAGS-config): New substituted variable.
15069
15070 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15071
15072         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15073
15074         [BZ #13192]
15075         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15076         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15077
15078 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15079
15080         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15081         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15082         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15083         (CALL_FAIL): Likewise.
15084         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15085         (CALL_FAIL): Macro removed.
15086         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15087
15088 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15089
15090         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15091         for __FINITE_MATH_ONLY__ == 1.
15092
15093 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15094
15095         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15096         __ieee754_sqrt instead of sqrt.
15097         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15098         __ieee754_sqrtf instead of sqrtf.
15099         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15100         __floorf instead of floorf.
15101         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15102         __floorf, __truncf instead of floorf, truncf.
15103
15104 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15105
15106         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15107
15108         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15109         __extern_always_inline.
15110         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15111         32-bit.
15112
15113 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15114
15115         * elf/rtld.c (dl_main): Also relocate in dependency order when
15116         doing symbol dependency testing.
15117
15118 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15119
15120         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15121         Always define `refsym'.
15122
15123 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15124
15125         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15126         (__FD_ELT): Renamed from __FDELT.
15127         * misc/bits/select2.h (__FD_ELT): Likewise.
15128         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15129         __FD_MASK instead of __FDELT, __FDMASK.
15130         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15131         Likewise.
15132         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15133         Likewise.
15134
15135         * elf/Makefile (gen-ldd): Fix pattern.
15136
15137         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15138         (init_tls): Likewise.
15139
15140 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15141
15142         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15143
15144 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15145
15146         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15147         `struct cmsghdr *' instead of `void *'.
15148         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15149         Likewise.
15150
15151 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15152
15153         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15154         if non-absolute.
15155         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15156         ldd_rewrite_script.
15157
15158 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15159
15160         * configure.in: Remove --with-tls option.
15161         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15162         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15163         out in case it is missing.
15164         * sysdeps/ia64/elf/configure.in: Likewise.
15165         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15166         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15167         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15168         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15169         * sysdeps/sh/elf/configure.in: Likewise.
15170         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15171         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15172         * sysdeps/x86_64/elf/configure.in: Likewise.
15173         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15174         * sysdeps/mach/hurd/tls.h: Likewise.
15175
15176         [BZ #13067]
15177         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15178
15179         [BZ #13090]
15180         * configure.in: Fix use of AC_INIT.
15181
15182         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15183
15184 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15185
15186         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15187         __set_errno.
15188         * malloc/hooks.c: Likewise.
15189
15190         [BZ #11929]
15191         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15192         variables statically.
15193         (narenas): Initialize.
15194         (list_lock): Initialize.
15195         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15196         initializtion of main_arena and list_lock.  Small cleanups.
15197         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15198         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15199         Add initializers to main_arena and mp_.
15200         (malloc_state): Remove pagesize member.  Change all users to use
15201         GLRO(dl_pagesize).
15202
15203         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15204         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15205         is always initialized.
15206
15207         * malloc/malloc.c: Removed unused configurations and dead code.
15208         * malloc/arena.c: Likewise.
15209         * malloc/hooks.c: Likewise.
15210         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15211
15212         * include/tls.h: Removed.  USE___THREAD must always be defined.
15213         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15214         * elf/dl-libc.c: Likewise.
15215         * elf/dl-tsd.c: Likewise.
15216         * include/errno.h: Likewise.
15217         * include/netdb.h: Likewise.
15218         * include/resolv.h: Likewise.
15219         * inet/herrno-loc.c: Likewise.
15220         * inet/herrno.c: Likewise.
15221         * malloc/arena.c: Likewise.
15222         * malloc/hooks.c: Likewise.
15223         * malloc/malloc.c: Likewise.
15224         * resolv/res-state.c: Likewise.
15225         * resolv/res_libc.c: Likewise.
15226         * sysdeps/i386/dl-machine.h: Likewise.
15227         * sysdeps/ia64/dl-machine.h: Likewise.
15228         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15229         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15230         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15231         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15232         * sysdeps/sh/dl-machine.h: Likewise.
15233         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15234         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15235         * sysdeps/unix/i386/sysdep.S: Likewise.
15236         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15237         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15238         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15239         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15240         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15241         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15242         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15243         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15244         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15245         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15246         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15247         * sysdeps/x86_64/dl-machine.h: Likewise.
15248         * tls.make.c: Likewise.
15249
15250         * configure.in: Remove --with-__thread option.  Make tests for
15251         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15252         tls_model attribute fail if no support is available.  Remove
15253         USE_IN_LIBIO.
15254         * Makeconfig: Adjust for dropped configure option.  All features are
15255         now mandatory.
15256         * Makerules: Likewise.
15257         * Versions.def: Likewise.
15258         * argp/argp-fmtstream.c: Likewise.
15259         * argp/argp-fmtstream.h: Likewise.
15260         * argp/argp-help.c: Likewise.
15261         * assert/assert.c: Likewise.
15262         * config.h.in: Likewise.
15263         * config.make.in: Likewise.
15264         * configure: Likewise.
15265         * configure.in: Likewise.
15266         * csu/Versions: Likewise.
15267         * csu/init.c: Likewise.
15268         * elf/tst-audit2.c: Likewise.
15269         * elf/tst-tls10.c: Likewise.
15270         * elf/tst-tls10.h: Likewise.
15271         * elf/tst-tls11.c: Likewise.
15272         * elf/tst-tls12.c: Likewise.
15273         * elf/tst-tls14.c: Likewise.
15274         * elf/tst-tlsmod11.c: Likewise.
15275         * elf/tst-tlsmod12.c: Likewise.
15276         * elf/tst-tlsmod13.c: Likewise.
15277         * elf/tst-tlsmod13a.c: Likewise.
15278         * elf/tst-tlsmod14a.c: Likewise.
15279         * elf/tst-tlsmod15b.c: Likewise.
15280         * elf/tst-tlsmod16a.c: Likewise.
15281         * elf/tst-tlsmod16b.c: Likewise.
15282         * elf/tst-tlsmod7.c: Likewise.
15283         * elf/tst-tlsmod8.c: Likewise.
15284         * elf/tst-tlsmod9.c: Likewise.
15285         * gmon/gmon.c: Likewise.
15286         * grp/fgetgrent_r.c: Likewise.
15287         * grp/putgrent.c: Likewise.
15288         * hurd/fopenport.c: Likewise.
15289         * include/libc-symbols.h: Likewise.
15290         * include/tls.h: Likewise.
15291         * intl/gettextP.h: Likewise.
15292         * intl/loadinfo.h: Likewise.
15293         * locale/global-locale.c: Likewise.
15294         * locale/localeinfo.h: Likewise.
15295         * mach/devstream.c: Likewise.
15296         * malloc/arena.c: Likewise.
15297         * malloc/set-freeres.c: Likewise.
15298         * misc/err.c: Likewise.
15299         * misc/getttyent.c: Likewise.
15300         * misc/mntent_r.c: Likewise.
15301         * posix/getopt.c: Likewise.
15302         * posix/wordexp.c: Likewise.
15303         * pwd/fgetpwent_r.c: Likewise.
15304         * resolv/Versions: Likewise.
15305         * resolv/res_hconf.c: Likewise.
15306         * shadow/fgetspent_r.c: Likewise.
15307         * shadow/putspent.c: Likewise.
15308         * stdio-common/printf_fphex.c: Likewise.
15309         * stdio-common/tmpfile.c: Likewise.
15310         * stdlib/abort.c: Likewise.
15311         * stdlib/fmtmsg.c: Likewise.
15312         * sunrpc/auth_unix.c: Likewise.
15313         * sunrpc/clnt_perr.c: Likewise.
15314         * sunrpc/clnt_tcp.c: Likewise.
15315         * sunrpc/clnt_udp.c: Likewise.
15316         * sunrpc/clnt_unix.c: Likewise.
15317         * sunrpc/openchild.c: Likewise.
15318         * sunrpc/svc_simple.c: Likewise.
15319         * sunrpc/svc_tcp.c: Likewise.
15320         * sunrpc/svc_udp.c: Likewise.
15321         * sunrpc/svc_unix.c: Likewise.
15322         * sunrpc/xdr.c: Likewise.
15323         * sunrpc/xdr_array.c: Likewise.
15324         * sunrpc/xdr_rec.c: Likewise.
15325         * sunrpc/xdr_ref.c: Likewise.
15326         * sunrpc/xdr_stdio.c: Likewise.
15327
15328 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15329
15330         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15331
15332 2011-07-03  Andreas Jaeger  <aj@suse.de>
15333
15334         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15335         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15336         regenerate with gen-libm-tests.pl.
15337
15338 2010-05-12  Petr Baudis  <pasky@suse.cz>
15339
15340         [BZ #11589]
15341         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15342         around j0() zero points by switching to j1().
15343         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15344         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15345         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15346         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15347
15348 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15349
15350         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15351         instead of 0.
15352         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15353         instead of 0.                              .
15354         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15355         Patch in part by Pavel Roskin <proski@gnu.org>.
15356
15357         [BZ #13138]
15358         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15359         realloc.
15360         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15361         Free memory block if necessary.
15362
15363         [BZ #12847]
15364         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15365         be NULL.  Don't lock in this case.
15366
15367 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15368
15369         * elf/elf.h (ELFOSABI_GNU): New macro.
15370         (ELFOSABI_LINUX): Define to that.
15371
15372 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15373
15374         * string/strncat.c (strncat): Undef the symbol in case it has been
15375         defined in bits/string.h.
15376
15377 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15378
15379         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15380
15381         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15382         link map.
15383
15384 2011-08-17  Andreas Jaeger  <aj@suse.de>
15385
15386         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15387
15388 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15389             Ian Lance Taylor  <iant@google.com>
15390
15391         * math/libm-test.inc (lround_test): New testcase.
15392         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15393
15394 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15395
15396         * Makefile: Remove support for automatic cvs check-ins.
15397         * Makerules: Likewise.
15398         * config.make.in: Likewise.
15399         * configure.in: Likewise.
15400         * intl/Makefile: Likewise.
15401         * locale/Makefile: Likewise.
15402         * po/Makefile: Likewise.
15403         * posix/Makefile: Likewise.
15404         * sysdeps/gnu/Makefile: Likewise.
15405         * sysdeps/mach/hurd/Makefile: Likewise.
15406         * sysdeps/sparc/sparc32/Makefile: Likewise.
15407
15408         [BZ #13118]
15409         * posix/Makefile (bug-regex32-ENV): Define.
15410         Patch by John Stanley <jpsinthemix@verizon.net>.
15411
15412         * misc/Makefile (headers): Add bits/select2.h.
15413         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15414         * misc/bits/select2.h: New file.
15415         * include/bits/select2.h: New file.
15416         * debug/Makefile (routines): Add fdelt_chk.
15417         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15418         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15419         FD_ISSET.
15420         * debug/fdelt_chk.c: New file.
15421
15422         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15423         * wcsmbs/test-wmemcmp.c: Likewise.
15424         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15425         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15426
15427 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15428
15429         * string/Makefile (strop-tests): Add memcmp.
15430         * string/test-wmemcmp.c: New file.
15431         * string/test-memcmp.c: Add wmemcmp support.
15432
15433 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15434
15435         [BZ #13153]
15436         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15437         2011-07-19 change.
15438
15439         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15440         garbage value in a __mach_port_mod_refs call in the cases of the
15441         task-self and thread-self ports.
15442
15443 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15444
15445         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15446
15447 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15448
15449         * elf/dl-load.c (lose): Check for non-null L.
15450
15451 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15452
15453         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15454
15455         * elf/dl-libc.c (dlerror_run): Pass back error code from
15456         dl_catch_error.
15457
15458         [BZ #13123]
15459         * elf/dl-load.c (lose): Free l_origin if it is valid.
15460
15461         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15462         names.
15463         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15464         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15465         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15466         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15467         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15468         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15469
15470 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15471
15472         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15473         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15474         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15475         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15476         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15477         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15478         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15479         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15480         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15481         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15482
15483 2011-08-15  Alan Modra  <amodra@gmail.com>
15484
15485         [BZ #13092]
15486         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15487         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15488         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15489         ppc_mcount to static-only-routines.
15490         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15491         __mcount_internal.
15492         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15493         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15494
15495 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15496
15497         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15498         for finite and infinity parameters.
15499
15500 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15501
15502         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15503         and add nop instructions for throughput optimization.
15504         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15505
15506 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15507
15508         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15509         aligned copy for power7 with vector-scalar instructions.
15510         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15511
15512 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15513
15514         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15515         AVX check.
15516
15517 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15518
15519         [BZ #13144]
15520         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15521         last change.
15522
15523 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15524
15525         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15526         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15527         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15528         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15529         clock_gettime.
15530
15531 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15532
15533         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15534         Forgot to demangle the pointer.
15535
15536         * sysdeps/i386/sysdep.h: Define atom_text_section.
15537         * sysdeps/x86_64/sysdep.h: Likewise.
15538         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15539         section with atom_text_section.
15540         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15541         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15542         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15543         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15544         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15545
15546         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15547         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15548         already be defined.  Change to take two parameters and don't assign
15549         result to variable.  Adjust all users.
15550         Define INTERNAL_GETTIME if not already defined.
15551         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15552         call.
15553         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15554         HAVE_CLOCK_GETTIME_VSYSCALL.
15555         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15556
15557         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15558         gettimeofday vsyscall, just use time.
15559
15560 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15561
15562         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15563         <errno.h>.
15564
15565 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15566
15567         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15568         syscall on x86-64.
15569         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15570         syscall.
15571         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15572         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15573         syscall if possible.
15574
15575 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15576
15577         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15578         e_ident.  Don't pass to find_mapsXX.
15579         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15580
15581 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15582
15583         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15584         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15585         * sysdeps/x86_64/multiarch/strchr.S: Update.
15586         Check bit_slow_BSF bit.
15587         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15588         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15589         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15590
15591 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15592
15593         [BZ #13134]
15594         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15595         before glibc 2.15.
15596         (tryshell): Define.
15597         (__spawni): Change last parameter to be flag.  Test
15598         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15599         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15600         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15601         * posix/spawni.c: Likewise.
15602         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15603         * posix/spawnp.c: Likewise.  Change normal version to use
15604         SPAWN_XFLAGS_USE_PATH.
15605         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15606         SPAWN_XFLAGS_TRY_SHELL.
15607
15608         [BZ #13150]
15609         * posix/glob.h: Remove gcc 1.x support.
15610
15611         [BZ #13068]
15612         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15613
15614 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15615
15616         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15617         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15618         strrchr-sse2-bsf
15619         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15620         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15621         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15622         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15623         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15624         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15625
15626 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15627
15628         * sysdeps/x86_64/wcscmp.S: New file.
15629
15630         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15631         wcscmp-c wcscmp-sse2
15632         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15633         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15634         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15635         * wcsmbs/wcscmp.c: Allow renaming.
15636
15637 2011-09-05  David S. Miller  <davem@davemloft.net>
15638
15639         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15640         stack slot, rather than the struct return pointer slot.
15641         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15642         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15643         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15644         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15645
15646 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15647
15648         * po/ja.po: Update from translation team.
15649
15650         [BZ #13144]
15651         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15652         kernel in 64-bit binaries.
15653
15654 2011-09-01  David S. Miller  <davem@davemloft.net>
15655
15656         * elf/elf.h (HWCAP_SPARC_*): Move to..
15657         * sysdeps/sparc/sysdep.h: this new file and add new values.
15658         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15659         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15660         _DL_HWCAP_COUNT to 24.
15661         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15662         entries.
15663         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15664         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15665         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15666         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15667         instead of magic constants.
15668         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15669
15670 2011-08-31  David S. Miller  <davem@davemloft.net>
15671
15672         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15673         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15674         Reimplement to do errno handling inline.
15675         (SYSCALL_ERROR_HANDLER): New macro.
15676         (__SYSCALL_STRING): Do not do errno handling in asm.
15677         (__CLONE_SYSCALL_STRING): Delete.
15678         (__INTERNAL_SYSCALL_STRING): Delete.
15679         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15680         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15681         (PSEUDO): Reimplement to do errno handling inline.
15682         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15683         (SYSCALL_ERROR_HANDLER): New macro.
15684         (__SYSCALL_STRING): Do not do errno handling in asm.
15685         (__CLONE_SYSCALL_STRING): Delete.
15686         (__INTERNAL_SYSCALL_STRING): Delete.
15687         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15688         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15689         i386.
15690         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15691         (inline_syscall*): Add 'err' argument.
15692         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15693         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15694         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15695         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15696
15697         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15698         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15699
15700 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15701
15702         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15703
15704 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15705
15706         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15707         directive.
15708
15709 2011-08-24  David S. Miller  <davem@davemloft.net>
15710
15711         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15712
15713 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15714
15715         * elf/Makefile: Add rules to build and run unload8 test.
15716         * elf/unload8.c: New file.
15717         * elf/unload8mod1.c: New file.
15718         * elf/unload8mod1x.c: New file.
15719         * elf/unload8mod2.c: New file.
15720         * elf/unload8mod3.c: New file.
15721
15722         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15723         it wasn't used.
15724
15725 2011-08-23  David S. Miller  <davem@davemloft.net>
15726
15727         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15728         subtract stack bias.
15729         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15730         %sp not %fp in calculations.
15731         (_JMPBUF_UNWINDS_ADJ): Likewise.
15732
15733         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15734         (aio_suspend): Call it to force an exception region around the
15735         AIO_MISC_WAIT() invocation.
15736
15737 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15738
15739         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15740         backslash.
15741
15742 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15743
15744         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15745         protection macro.
15746         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15747         and <dl-machine.h>.
15748         (Elf64_FuncDesc): Remove.
15749
15750 2011-08-22  David S. Miller  <davem@davemloft.net>
15751
15752         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15753         sigaltstack check, add missing cfi directives.
15754         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15755         missing cfi directives, and sigaltstack handling.
15756
15757 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15758
15759         [BZ #11724]
15760         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15761         object is seen twice.
15762         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15763
15764         * elf/Makefile (distribute): Add tst-initorder2.c.
15765         (tests): Add tst-initorder2.
15766         (modules-names): Add tst-initorder2a tst-initorder2b
15767         tst-initorder2c tst-initorder2d.  Add rules to build them.
15768         ($(objpfx)tst-initorder2.out): New rule.
15769         * elf/tst-initorder2.c: New file.
15770         * elf/tst-initorder2.exp: New file.
15771
15772 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15773
15774         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15775
15776         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15777         dependencies back to end of function.
15778
15779         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15780         $(elfobjdir)/ld.so.
15781
15782 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15783
15784         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15785         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15786         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15787         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15788         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15789         of __vdso_gettimeofday.
15790         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15791         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15792         attribute_hidden.
15793         (_libc_vdso_platform_setup): Remove initialization of
15794         __vdso_gettimeofday and __vdso_time.
15795
15796 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15797
15798         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15799         and fgetc_unlocked.
15800         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15801         getc_unlocked.
15802
15803         * elf/dl-open.c (add_to_global): Report additions to the global scope
15804         for LD_DEBUG=scopes.
15805         (dl_open_worker): Also print scope of newly loaded dependencies.
15806         (_dl_show_scope): Indicate if there is no scope.
15807
15808         [BZ #13114]
15809         * stdio-common/Makefile (tests): Add bug24.
15810         * stdio-common/bug24.c: New file.
15811
15812 2011-08-19  Andreas Jaeger  <aj@suse.de>
15813
15814         [BZ #13114]
15815         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15816         non-existant file when using close-on-exec mode.
15817
15818 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15819
15820         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15821         the very first instruction.
15822
15823         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15824         the CFI state in the end.
15825         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15826         inclusion of dl-trampoline.h.
15827         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15828
15829 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15830
15831         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15832         expectations for long double.
15833
15834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15835         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15836
15837 2011-08-14  David S. Miller  <davem@davemloft.net>
15838
15839         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15840         artificual limit depends upon the system page size.
15841
15842 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15843
15844         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15845         * resolv/Makefile: Define CFLAGS-libresolv.
15846
15847 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15848
15849         * nss/makedb.c (compute_tables): Make variables used in nested
15850         function static.
15851
15852 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15853
15854         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15855         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15856         if buffer was too small.
15857
15858         * elf/pldd.c (main): Attach to all threads in the process.
15859         Rewrite /proc handling to use *at functions.
15860
15861 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15862
15863         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15864         specifies first scope to show.
15865         (dl_open_worker): Update callers.  Move printing scope of new
15866         object to before the relocation.
15867         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15868         * sysdeps/generic/ldsodefs.h: Update declaration.
15869
15870         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15871         string for the scope number.
15872
15873 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15874
15875         * nscd/servicescache.c (cache_addserv): Make sure written is always
15876         initialized.
15877
15878 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15879
15880         * sysdeps/i386/i486/bits/atomic.h
15881         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15882         statement expression, so as to suppress "set but not used" warning.
15883         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15884
15885         * string/strncat.c (STRNCAT): Use prototype definition.
15886
15887         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15888         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15889         -Iprograms here.
15890         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15891         (localedef-modules): Add localedef.
15892         (locale-modules): Add locale.
15893
15894         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15895         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15896         to avoid a warning.
15897
15898 2011-08-14  David S. Miller  <davem@davemloft.net>
15899
15900         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15901         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15902
15903 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15904
15905         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15906         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15907         * elf/rtld.c (dl_main): Set l_name of vDSO.
15908         Call _dl_show_scope when DL_DEBUG_SCOPES.
15909         (process_dl_debug): Recognize scopes flag and also set it for all.
15910         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15911         Declare _dl_show_scope.
15912
15913         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15914         (do_dlopen): Pass caller_dlopen to dl_open.
15915         (__libc_dlopen_mode): Initialize caller_dlopen.
15916
15917         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15918         of libc.  Make tolower call locale-independent.  Optimize a bit by
15919         using isdigit instead of isalnum.
15920         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15921
15922 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
15923
15924         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
15925         was a dependency or dynamically loaded.
15926
15927 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
15928
15929         * intl/l10nflist.c: Allow architecture-specific pop function.
15930         * sysdeps/x86_64/l10nflist.c: New file.
15931
15932         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
15933         classification.
15934
15935 2011-08-10  Andreas Schwab  <schwab@redhat.com>
15936
15937         * include/dirent.h: Add libc_hidden_proto for scandirat and
15938         scandirat64.  Don't declare __scandirat64.
15939         * dirent/scandirat.c: Add libc_hidden_def.
15940         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
15941         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
15942
15943 2011-08-10  David S. Miller  <davem@davemloft.net>
15944
15945         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
15946         enum.
15947         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15948         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15949         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15950
15951 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
15952
15953         * Versions.def [libc]: Add GLIBC_2.15.
15954         * dirent/Makefile (routines): Add scandirat and scandirat64.
15955         * dirent/Versions [libc]: Export scandirat and scandirat64 for
15956         GLIBC_2.15.
15957         * dirent/dirent.h: Declare scandirat and scandirat64.
15958         * dirent/scandirat.c: New file.
15959         * dirent/scandirat64.c: New file.
15960         * sysdeps/wordsize-64/scandirat.c: New file.
15961         * sysdeps/wordsize-64/scandirat64.c: New file.
15962         * dirent/opendir.c: Define opendirat.
15963         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
15964         using scandirat.
15965         * dirent/scandir64.c: Adjust for scandir.c change.
15966         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
15967         __scandirat64, and __scandir_cancel_handler.
15968         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
15969         additional parameter and use openat instead of open (outside of ld.so).
15970         Add new __opendir as wrapper around __opendirat.
15971         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
15972         here without requiring old scandirat implementation.
15973
15974 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
15975
15976         * dirent/scandir.c (cancel_handler): Renamed to
15977         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
15978         defined.  Adjust users.
15979         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
15980         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15981
15982 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
15983
15984         * string/test-string.h (IMPL): Use __STRING to expand name and then
15985         stringify it.
15986
15987         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
15988         of cleanups.
15989
15990 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15991
15992         * string/Makefile: Update.
15993         (strop-tests): Append strncat.
15994         * string/test-wcscmp.c: New file.
15995         New comprehensive test for wcscmp.
15996         * string/test-strcmp.c: Update.
15997         (WIDE): New define.
15998
15999 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16000
16001         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16002         line.
16003
16004 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16005
16006         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16007         encoding to ACE if AI_IDN.
16008
16009 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16010
16011         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16012         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16013
16014 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16015
16016         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16017         Fix overflow bug in strncat.
16018         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16019
16020         * string/test-strncat.c: Update.
16021         Add new tests for checking overflow bugs.
16022
16023 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16024
16025         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16026         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16027         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16028         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16029         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16030         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16031         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16032         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16033         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16034
16035         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16036         (USE_AS_STRCAT): Define.
16037         Add strcat and strncat support.
16038         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16039
16040 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16041
16042         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16043         __n bigger than INT_MAX+1.
16044         (__strncmp_g): Likewise.
16045
16046 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16047
16048         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16049         * libio/stido.h: Likewise.
16050
16051         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16052         (AF_NFC): Define.
16053         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16054         (AF_NFC): Define.
16055
16056         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16057         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16058         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16059         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16060         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16061
16062         [BZ #13021]
16063         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16064         installed.
16065
16066         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16067         typo.
16068         (_dl_x86_64_save_sse): Likewise.
16069
16070 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16071
16072         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16073         OSXSAVE.
16074         (_dl_x86_64_save_sse): Likewise.
16075
16076         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16077
16078         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16079
16080 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16081
16082         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16083         change.
16084         (_dl_x86_64_save_sse): Use correct AVX check.
16085
16086 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16087
16088         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16089         bug in strncpy/strncat.
16090         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16091
16092 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16093
16094         * string/tester.c (test_strcat): Add tests for different alignments
16095         of source and destination.
16096         (test_strncat): Likewise.
16097
16098 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16099
16100         [BZ #12852]
16101         * posix/glob.c (glob): Check passed in values before using them in
16102         expressions to avoid some overflows.
16103         (glob_in_dir): Likewise.
16104
16105         [BZ #13007]
16106         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16107         check for AVX enablement so that we don't crash with old kernels and
16108         new hardware.
16109         * elf/tst-audit4.c: Add same checks here.
16110         * elf/tst-audit6.c: Likewise.
16111
16112         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16113
16114 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16115
16116         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16117
16118 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16119
16120         * po/cs.po: Update from translation team.
16121         * po/bg.po: Likewise.
16122
16123 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16124
16125         * misc/sys/cdefs.h: Add support for const attribute.
16126         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16127         to gnu_dev_{major,minor,makedev} functions.
16128
16129 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16130
16131         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16132
16133 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16134
16135         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16136         strlen results.
16137
16138 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16139
16140         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16141         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16142         register in order to avoid conflicts with the soft frame pointer
16143         being held in r11 when necessary.
16144         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16145         (INTERNAL_VSYSCALL_NCS): Likewise.
16146
16147 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16148
16149         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16150         * elf/dl-fini.c (_dl_fini): Adjust caller.
16151         * elf/dl-close.c (_dl_close_worker): Likewise.
16152         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16153
16154 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16155
16156         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16157         "aux_cache->nlibs < 0".
16158
16159         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16160         in the reload-count case.
16161
16162 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16163
16164         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16165         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16166         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16167         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16168         * sysdeps/x86_64/multiarch/strcat.S: New file.
16169         * sysdeps/x86_64/multiarch/strncat.S: New file.
16170         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16171         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16172         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16173         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16174         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16175         (USE_AS_STRCAT): Define.
16176         Add strcat and strncat support.
16177         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16178         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16179         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16180         * string/strncat.c: Update.
16181         (USE_AS_STRNCAT): Define.
16182         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16183         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16184         and i7.
16185         * sysdeps/x86_64/multiarch/init-arch.h
16186         (bit_Prefer_PMINUB_for_stringop): New.
16187         (index_Prefer_PMINUB_for_stringop): Likewise.
16188         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16189         bit_Prefer_PMINUB_for_stringop.
16190
16191 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16192
16193         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16194         buffer64.
16195         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16196         of casting of buffer.
16197         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16198         buffer32 and buffer64.
16199         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16200         writes instead of casting of buffer.
16201         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16202         buffer32.
16203         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16204         casting of buffer.
16205
16206 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16207
16208         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16209
16210 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16211
16212         * nscd/nscd.c (termination_handler): Don't do anything for a database
16213         if it has not yet been initialized.
16214
16215 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16216
16217         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16218
16219 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16220
16221         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16222
16223 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16224
16225         * po/nl.po: Update from translation team.
16226         * po/sv.po: Likewise.
16227
16228 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16229
16230         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16231         now disallowed by GCC.
16232
16233         * configure.in (use-default-link): Default to yes if a test -shared
16234         link meets our qualifications.
16235         * configure: Regenerated.
16236
16237         * config.make.in (output-format): New variable.
16238         * configure.in: Check for ld --print-output-format support.
16239         * configure: Regenerated.
16240         * Makerules ($(common-objpfx)format.lds)
16241         [$(output-format) != unknown]: Just use $(output-format),
16242         instead of the linker-script munging.
16243
16244 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16245
16246         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16247         of $(common-objpfx)shlib.lds.
16248         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16249
16250         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16251         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16252
16253         * configure.in (-z relro check): Adjust test code to add a large
16254         writable data section after it.
16255         * configure: Regenerated.
16256
16257 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16258
16259         * configure.in (-z relro check): Fix test code to make the variable
16260         truly const.
16261         * configure: Regenerated.
16262
16263 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16264
16265         * nscd/nscd.h (struct traced_file): Define.
16266         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16267         elements.  Add traced_files.
16268         (inotify_fd): Declare.
16269         (register_traced_file): Declare.
16270         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16271         (inotify_fd): Export.
16272         (resolv_conf_descr): Remove.
16273         (nscd_init): Move inotify descriptor creation to main.
16274         Don't register files for notification here.
16275         (register_traced_file): New function.
16276         (invalidate_cache): Don't use reset_res to determine whether to call
16277         res_init, go through the list of registered files.
16278         (main_loop_poll): The inotify descriptors are now stored in the
16279         structures for the traced files.
16280         (main_loop_epoll): Likewise
16281         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16282         to __nss_disable_nscd.
16283         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16284         for a database anymore.  Check the records for all the registered
16285         files instead.
16286         * nss/Makefile (libnss_files-routines): Add files-init.
16287         (libnss_db-routines): Add db-init.
16288         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16289         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16290         * nss/nss_db/db-init.c: New file.
16291         * nss/nss_files/files-init.c: New file.
16292         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16293         __nss_lookup_function.
16294         (__nss_lookup_function): Call nss_load_library.
16295         (nss_load_all_libraries): New function.
16296         (__nss_disable_nscd): Take parameter with callback function for files
16297         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16298         used for the cached services.
16299         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16300         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16301         options for features to all the files in nscd.
16302
16303         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16304
16305 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16306
16307         * csu/elf-init.c (__libc_csu_init): Comment typo.
16308
16309 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16310
16311         * po/pl.po: Update from translation team.
16312         * po/ja.po: Likewise.
16313         * po/ru.po: Likewise.
16314         * po/ko.po: Likewise.
16315         * po/fr.po: Likewise.
16316
16317 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16318
16319         * configure.in (.ctors/.dtors header and trailer check):
16320         Use an empirical test on a built program.
16321         * configure: Regenerated.
16322
16323         * configure.in (-z relro check): Use an empirical test on a built DSO.
16324         Detect, but do not require, on ia64.
16325         * configure: Regenerated.
16326
16327         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16328         Update tests that use readelf to use $READELF instead.
16329         * configure: Regenerated.
16330
16331 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16332
16333         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16334         if the result is not used.
16335
16336 2011-07-05  Andreas Jaeger  <aj@suse.de>
16337
16338         [BZ#9696]
16339         * stdlib/tst-strtod.c: Add testcase.
16340
16341 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16342
16343         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16344         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16345         The latter has a higher limit.  Take additional parameter to pass to
16346         the new function.
16347         (__pathconf): Pass file to __statfs_link_max.
16348         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16349         __statfs_link_max.
16350         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16351         __statfs_link_max.
16352
16353         [BZ #12868]
16354         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16355         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16356         Handle Lustre.
16357         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16358         (__statfs_filesize_max): Likewise.
16359         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16360
16361 2011-07-05  Andreas Jaeger  <aj@suse.de>
16362
16363         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16364
16365 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16366
16367         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16368         `status' variable.
16369         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16370         Likewise.
16371
16372 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16373
16374         * Makefile (strop-tests): Add strncat.
16375         * string/test-strncat.c: New file.
16376
16377 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16378
16379         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16380
16381 2011-06-21  Andreas Jaeger  <aj@suse.de>
16382
16383         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16384         Copy rule from iconvdata/Makefile.
16385
16386 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16387
16388         [BZ #12922]
16389         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16390         but no long options are defined, just return 'W'.
16391
16392 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16393
16394         [BZ #9696]
16395         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16396
16397 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16398
16399         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16400         netgroups to read.
16401         (innetgr): Likewise.
16402
16403 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16404
16405         * config.make.in (install_root): Default to $(DESTDIR).
16406
16407 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16408
16409         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16410
16411 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16412
16413         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16414
16415         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16416         containing directory rather than embedding absolute directory names.
16417
16418         * scripts/check-local-headers.sh: Rewritten using awk.
16419         Match by word, not by line.  Print error messages for matches.
16420         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16421
16422         * Makerules [shlib-lds-flags empty]:
16423         ($(common-objpfx)libc_pic.opts): New target.
16424         ($(common-objpfx)libc_pic.os.clean): New target.
16425         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16426
16427         * config.make.in (OBJCOPY): New variable.
16428         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16429         * configure: Regenerated.
16430
16431         * config.make.in (use-default-link): New variable.
16432         * configure.in (use_default_link): Grok --with-default-link to set it.
16433         * configure: Regenerated.
16434         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16435         (shlib-lds, shlib-lds-flags): Define to empty.
16436
16437         * Makerules (shlib-lds): New variable.
16438         (shlib-lds-flags): New variable.
16439         (build-shlib, build-moduile, build-module-asneeded): Use it.
16440         ($(common-objpfx)libc.so): Use $(shlib-lds).
16441         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16442         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16443
16444         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16445         DT_FLAGS/DT_FLAGS_1 with zero flags.
16446
16447         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16448         linker script munging.
16449
16450 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16451
16452         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16453         as 128-bit value.
16454         * crypt/sha512.c (sha512_process_block): Perform total addition using
16455         128-bit if possible.
16456         (__sha512_finish_ctx): Likewise.
16457         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16458         as 64-bit value.
16459         * crypt/sha256.c (SWAP64): Define.
16460         (sha256_process_block): Perform total addition using 64-bit if
16461         possible.
16462         (__sha256_finish_ctx): Likewise.
16463
16464 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16465
16466         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16467         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16468         * nscd/hstcache.c (cache_addhst): Likewise.
16469         * nscd/grpcache.c (cache_addgr): Likewise.
16470         * nscd/aicache.c (addhstaiX): Likewise
16471         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16472
16473 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16474
16475         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16476         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16477         * nscd/hstcache.c (cache_addhst): Likewise.
16478         * nscd/grpcache.c (cache_addgr): Likewise.
16479         * nscd/aicache.c (addhstaiX): Likewise
16480
16481 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16482
16483         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16484         domain only when needed.
16485
16486 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16487
16488         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16489         is always restored.
16490
16491 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16492
16493         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16494         are re-adding the entry.
16495         * nscd/servicescache.c (cache_addserv): Likewise.
16496
16497 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16498
16499         * sysdeps/generic/dl-irel.h: fix protection against multiple
16500         inclusions.
16501         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16502
16503 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16504
16505         [BZ #12935]
16506         * malloc/memusage.sh: Fix quoting in message.
16507         * debug/xtrace.sh: Likewise.
16508
16509         * configure.in: Remove support for --experimental-malloc option, make
16510         it the default.
16511         * config.make.in: Likewise.
16512         * malloc/Makefile: Likewise.
16513
16514 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16515
16516         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16517         two-byte characters.
16518
16519 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16520
16521         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16522         AC_CACHE_CHECK invocation.
16523         * configure: Regenerated.
16524
16525         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16526
16527 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16528
16529         [BZ #12350]
16530         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16531         bit from old_res_options.
16532
16533         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16534
16535         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16536         value type for setfct.
16537
16538 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16539
16540         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16541         __gettimeofday instead of gettimeofday.
16542
16543 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16544
16545         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16546
16547 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16548
16549         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16550
16551         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16552         info.
16553
16554 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16555
16556         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16557         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16558         strcpy-sse2-unaligned strncpy-sse2-unaligned
16559         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16560         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16561         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16562         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16563         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16564         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16565         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16566         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16567         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16568         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16569         (STRCPY): Support SSE2 and SSSE3 versions.
16570
16571 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16572
16573         [BZ #12874]
16574         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16575         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16576         kernels which artificially limit size of requests.
16577
16578 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16579
16580         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16581         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16582         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16583         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16584         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16585         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16586         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16587         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16588         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16589         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16590         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16591         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16592         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16593         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16594         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16595         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16596         Enable unaligned load optimization for Intel Core i3, i5 and i7
16597         processors.
16598         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16599         Define.
16600         (index_Fast_Unaligned_Load): Define.
16601         (HAS_FAST_UNALIGNED_LOAD): Define.
16602
16603 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16604
16605         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16606
16607 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16608
16609         [BZ #12907]
16610         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16611         until it is clear that the information is realy needed.
16612         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16613
16614 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16615
16616         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16617
16618 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16619
16620         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16621         /sys/devices/system/cpu/online if it is usable.
16622
16623         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16624         reading the information from the /proc filesystem to once a second.
16625
16626 2011-06-21  Andreas Jaeger  <aj@suse.de>
16627
16628         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16629         NULL after inclusion of kernel headers.
16630
16631 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16632
16633         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16634         calls to internal_setent.
16635
16636         [BZ #12885]
16637         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16638         addresses using gethostbyname4_r ignore IPv4 addresses.
16639
16640         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16641         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16642
16643         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16644
16645 2011-06-20  David S. Miller  <davem@davemloft.net>
16646
16647         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16648         inclusions.
16649         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16650
16651         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16652         (elf_irel): Use it.
16653         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16654         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16655         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16656         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16657         * sysdeps/x86_64/dl-irel.h: Likewise.
16658
16659         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16660         * elf/dl-sym.c: Likewise.
16661
16662 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16663
16664         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16665         need to dereference resplen2.
16666
16667 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16668
16669         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16670
16671 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16672
16673         * Makeconfig: Define vardbdir and inst_vardbdir.
16674         * nss/Makefile: Add rules to install db-Makefile.
16675
16676         * nss/nss_db/db-XXX.c: Cleanup.
16677
16678         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16679         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16680         GLIBC_PRIVATE.
16681         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16682         * nss/makedb.c: Implement -g option to specify that value strings
16683         are generated and should not be added to table iterated over for
16684         get*ent calls.
16685         * nss/nss_db/db-initgroups.c: New file.
16686
16687         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16688         interface.
16689
16690         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16691         (internal_getgrouplist): Adjust to name change.
16692         Update use_initgroups_entry if this is not the first call.
16693         * nss/databases.def: Add initgroups entry.
16694
16695         * nss/makedb.c (compute_tables): Check result of multiple hash table
16696         sizes to minimize maximum chain length.
16697
16698 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16699
16700         * Versions.def: Add entry for libnss_db.
16701         * shlib-versions: Likewise.
16702         * nss/Makefile: Add rules to build libnss_db.
16703         * nss/Versions: Add libnss_db information.  Organize libnss_files
16704         entries better.
16705         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16706         makedb progra.  Some minor improvements to generate smaller files.
16707         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16708         here from...
16709         * nss/makedb.c: ...here.
16710         Improve database format to be smaller and require less memory at
16711         runtime.
16712         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16713         db anymore.
16714         * nss/nss_db/db-netgrp.c: Likewise.
16715         * nss/nss_db/db-open.c: Likewise.
16716         * nss/nss_files/flies-XXX.x: Adjust comments.
16717         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16718         * nss/nss_files/files-grp.c: Likewise.
16719         * nss/nss_files/files-hosts.c: Likewise.
16720         * nss/nss_files/files-network.c: Likewise.
16721         * nss/nss_files/files-proto.c: Likewise.
16722         * nss/nss_files/files-pwd.c: Likewise.
16723         * nss/nss_files/files-rpc.c: Likewise.
16724         * nss/nss_files/files-service.c: Likewise.
16725         * nss/nss_files/files-sgrp.c: Likewise.
16726         * nss/nss_files/files-spwd.c: Likewise.
16727         * nss/nss_db/db-alias.c: Removed.
16728         * nss/nss_db/dummy-db.h: Removed.
16729
16730 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16731
16732         * nss/makedb.c: Rewritten to not use database library.
16733         * nss/Makefile: Update to build new makedb program.
16734
16735 2011-06-14  Andreas Jaeger  <aj@suse.de>
16736
16737         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16738         memset declaration.
16739
16740 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16741
16742         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16743         tmpbuf.
16744
16745 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16746
16747         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16748         * elf/Makefile ($(objpfx)ld.so): Likewise.
16749
16750         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16751         Don't list ld.so twice in dependencies.
16752
16753         * posix/bug-regex31.c: Include <stdlib.h>.
16754
16755         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16756
16757         * nis/nss_compat/compat-spwd.c
16758         (getspent_next_nss_netgr): Remove unused variable.
16759         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16760
16761         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16762         nonmembers" output to use the right array.
16763
16764         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16765
16766         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16767
16768         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16769         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16770         * catgets/gencat.c (read_input_file): Likewise.
16771         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16772
16773         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16774         variable definition inside #if's controlling its use.
16775
16776         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16777
16778         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16779
16780         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16781
16782         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16783         unreachable code.
16784
16785         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16786
16787         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16788         * configure: Regenerated.
16789
16790         * Makerules: Revert last change.
16791         * elf/Makefile: Likewise.
16792
16793 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16794
16795         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16796         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16797         (reloc-link): Likewise.
16798
16799 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16800
16801         * elf/Makefile: Add rules to build pldd.
16802         * elf/pldd.c: New file.
16803         * elf/pldd-xx.c: New file.
16804
16805 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16806
16807         * version.h: Update for 2.15 development version.
16808
16809 2011-06-07  David S. Miller  <davem@davemloft.net>
16810
16811         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16812         ifuncs.
16813         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16814         elf_machine_lazy_rel): Likewise.
16815         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16816         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16817         elf_machine_lazy_rel): Likewise.
16818         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16819         dl_hwcap via passed in argument.
16820         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16821         Likewise.
16822
16823 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16824
16825         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16826
16827 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16828
16829         [BZ #12849]
16830         * manual/fdl-1.1.texi: New file, verbatim from:
16831         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16832         * manual/lgpl-2.1.texi: New file, verbatim from:
16833         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16834         * manual/Makefile (licenses): New variable, list those new file names.
16835         (texis): Use it.
16836         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16837
16838         * manual/fdl.texi: File removed.
16839         * manual/lesser.texi: File removed.
16840         * manual/libc.texinfo (Copying, Documentation License):
16841         Use new @include file names, put @appendix directive before @include.
16842
16843 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16844
16845         [BZ #12841]
16846         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16847         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16848         (mq_open): Add __NTH.
16849
16850 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16851
16852         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16853         Assume Intel Core i3/i5/i7 processor if AVX is available.
16854
16855 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16856
16857         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16858         typo.
16859
16860 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16861
16862         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16863         memory.  Use alloca_account.  Fix memory leak when retrying.
16864
16865 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16866
16867         * version.h (RELEASE): Bump for 2.14 release.
16868         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16869
16870         * config.make.in (RANLIB): Remove entry.
16871
16872 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16873
16874         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16875         (libc.pot): Work around missing support for .ksh extension in xgettext.
16876
16877         [BZ #12684]
16878         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16879         if both request failed.
16880         (send_dg): In case of server errors clear resplen or *resplen2.
16881
16882         [BZ #12454]
16883         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16884         when there are multiple maps.
16885         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16886         (_dl_fini): Remove test here.
16887
16888         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16889
16890 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16891
16892         [BZ #12350]
16893         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16894         bit from old_res_options.
16895         (gaih_inet): Likewise.
16896
16897         [BZ #11099]
16898         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16899         as signed.
16900
16901         * resolv/res_init.c (res_setoptions): Make the code more compact.
16902
16903         [BZ #11558]
16904         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16905         set RES_USEVC.
16906
16907         [BZ #11634]
16908         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16909
16910         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16911
16912         [BZ #11781]
16913         * malloc/malloc.h: Declare malloc hook variables as volatile.
16914
16915         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16916         in last patch.
16917
16918         [BZ #11799]
16919         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16920         raise in the comment.
16921         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16922         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16923         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16924
16925 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
16926
16927         [BZ #12811]
16928         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
16929         grow the buffers more if it already has to be sufficient.
16930         (build_wcs_upper_buffer): Likewise.
16931         * posix/regexec.c (check_matching): Likewise.
16932         (clean_state_log_if_needed): Likewise.
16933         (extend_buffers): Don't enlarge buffers beyond size of the input
16934         buffer.
16935         Patches mostly by Emil Wojak <emil@wojak.eu>.
16936         * posix/bug-regex32.c: New file.
16937         * posix/Makefile (tests): Add bug-regex32.
16938
16939         * locale/findlocale.c (_nl_find_locale): Return right away if
16940         _nl_explode_name failed.
16941         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
16942
16943         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
16944
16945         * debug/xtrace.sh: Unify messages.
16946         * malloc/memusage.sh: Likewise.
16947
16948         [BZ #12813]
16949         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
16950         time symbol from vDSO.  Substitute with vsyscall if not available.
16951         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
16952         __vdso_time.
16953
16954         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
16955         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
16956         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
16957         Add sendmmsg and internal_sendmmsg.
16958         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
16959         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
16960         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
16961
16962         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
16963         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
16964         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
16965
16966 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
16967
16968         [BZ #12813]
16969         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
16970         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
16971         available.
16972         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
16973         __vdso_getcpu.
16974
16975         [BZ #12814]
16976         * iconvdata/Makefile (tests): Add bug-iconv9.
16977         * iconvdata/bug-iconv9.c: New file.
16978
16979 2011-05-27  Andreas Schwab  <schwab@redhat.com>
16980
16981         [BZ #12814]
16982         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
16983
16984 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16985
16986         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16987         (struct user_regs_struct): Change intcs field back to cs.
16988
16989 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
16990
16991         * po/ja.po: Update from translation team.
16992
16993 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
16994
16995         [BZ #12795]
16996         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
16997         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
16998
16999 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17000
17001         * stdlib/longlong.h: Update from GCC.
17002
17003 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17004
17005         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17006         parameter name.
17007         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17008         Add parameter name.
17009         (__sysconf): Pass it down.
17010
17011 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17012
17013         [BZ #12671]
17014         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17015         some situations.
17016         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17017         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17018         add in in __libc_use_alloca calls.  Adjust callers.
17019         (glob): Use malloc in some situations.
17020
17021         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17022         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17023         pltexit.
17024
17025 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17026
17027         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17028         and CLOCK_BOOTTIME_ALARM.
17029
17030         [BZ #12782]
17031         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17032         is returned.
17033
17034         * string/_strerror.c (__strerror_r): Print negative errors as signed
17035         numbers.
17036
17037         [BZ #12777]
17038         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17039         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17040         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17041
17042         * configure.in: Fix typo in redirection and correct removal of test
17043         files in two cases.
17044
17045         [BZ #12788]
17046         * locale/setlocale.c (new_composite_name): Fix test to check for
17047         identical name of all categories.
17048
17049         [BZ #12792]
17050         * libio/filedoalloc.c (local_isatty): New function.
17051         (_IO_file_doallocate): Use local_isatty.
17052         * stdio-common/perror.c (perror): In case a new stream is used
17053         forward the stream error.
17054         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17055         error flag.
17056
17057 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17058
17059         [BZ #11869]
17060         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17061         alloca.
17062         * include/alloca.h (extend_alloca_account): Define.
17063
17064         [BZ #11857]
17065         * posix/regex.h: Fix comments with documentation of user-accessible
17066         fields after compilation and describe correct free'ing of pattern
17067         after re_compile_pattern.
17068         Patch by Reuben Thomas <rrt@sc3d.org>.
17069
17070 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17071
17072         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17073         and -mno-altivec to prevent the compiler from using Altivec and/or
17074         VSX instructions when the corresponding registers are not available.
17075
17076 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17077
17078         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17079
17080 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17081
17082         * libio/freopen.c (freopen): Use __dup2, not dup2.
17083         * libio/freopen64.c (freopen64): Likewise.
17084
17085 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17086
17087         [BZ #12775]
17088         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17089         * math/Makefile (tests): Add test-powl.
17090         (CFLAGS-test-powl.c): Define.
17091         * math/test-powl.c: New file.
17092
17093 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17094
17095         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17096
17097 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17098
17099         [BZ #11837]
17100         * iconvdata/gb18030.c: Update to GB18020-2005.
17101
17102 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17103
17104         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17105         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17106         Patch by Aharon Robbins <arnold@skeeve.com>.
17107
17108         [BZ #11892]
17109         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17110         on the stack.
17111
17112         [BZ #11895]
17113         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17114         through underflows.
17115
17116         [BZ #12766]
17117         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17118         point to strings before performing equality test for error_one_per_line
17119         mode.
17120
17121         [BZ #11697]
17122         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17123
17124         [BZ #11820]
17125         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17126         (struct user_fpregs_struct): Avoid __uint*_t types.
17127
17128         [BZ #6420]
17129         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17130         symbol info.  Use it instead of calling _dl_addr locally.
17131         (lock_and_info): New function.
17132         (tr_freehook): Call lock_and_info and pass symbol info as additional
17133         parameter to tr_where.
17134         (tr_mallochook): Likewise.
17135         (tr_reallochook): Likewise.
17136         (tr_memalignhook): Likewise.
17137
17138         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17139         used and couldn't be at all thread-safe.
17140
17141 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17142
17143         * libio/freopen.c (freopen): Don't close old file descriptor
17144         before the new one is opened.  Instead dup the new file descriptor
17145         to the old one after the new stream is created.
17146         * libio/freopen64.c (freopen64): Likewise.
17147         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17148         * libio/fileops.c (_IO_new_file_close_it): Handle new
17149         _IO_FLAGS2_NOCLOSE flag.
17150         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17151         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17152         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17153         _IO_FLAGS2_NOCLOSE flag.
17154         * include/unistd.h: Add hidden_proto for dup3.
17155         Define __have_dup3.
17156         * io/dup3.c: Define hidden symbol.
17157         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17158
17159         [BZ #7101]
17160         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17161         when an incomplete long option is used.
17162         * posix/tst-getopt_long1.c: New file.
17163         * posix/Makefile (tests): Add tst-getopt_long1.
17164
17165         [BZ #10138]
17166         * scripts/config.guess: Update from autoconf-2.68.
17167         * scripts/config.sub: Likewise.
17168
17169         [BZ #10157]
17170         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17171         tests into ...
17172         (has_cpuclock): ...this.  New function.
17173         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17174         macro here based on has_cpuclock code.
17175
17176         [BZ #10149]
17177         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17178         First byte (not low byte) is now always NUL.
17179         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17180
17181         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17182         Use non-cancelable interfaces.
17183
17184         [BZ #9809]
17185         * locale/iso-639.def: Add entry for Sorani.
17186
17187         [BZ #11901]
17188         * include/stdlib.h: Move include protection to the right place.
17189         Define abort_msg_s.  Declare __abort_msg with it.
17190         * stdlib/abort.c (__abort_msg): Adjust type.
17191         * assert/assert.c (__assert_fail_base): New function.  Majority
17192         of code from __assert_fail.  Allocate memory for __abort_msg with
17193         mmap.
17194         (__assert_fail): Now call __assert_fail_base.
17195         * assert/assert-perr.c: Remove bulk of implementation.  Use
17196         __assert_fail_base.
17197         * include/assert.hL Declare __assert_fail_base.
17198         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17199         mmap.
17200         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17201
17202 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17203
17204         [BZ #11952]
17205         [BZ #12453]
17206         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17207         until all modules are registered in the DTV.
17208         * elf/Makefile: Add rules to build and run tst-tls19.
17209         * elf/tst-tls19.c: New file.
17210         * elf/tst-tls19mod1.c: New file.
17211         * elf/tst-tls19mod2.c: New file.
17212         * elf/tst-tls19mod3.c: New file.
17213         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17214
17215         [BZ #12083]
17216         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17217         correctly.
17218
17219         [BZ #12601]
17220         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17221         two-byte sequence errors.
17222         * iconvdata/Makefile (tests): Add bug-iconv8.
17223         * iconvdata/bug-iconv8.c: New file.
17224
17225         [BZ #12626]
17226         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17227         buf2 definition.
17228
17229         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17230
17231         [BZ #12432]
17232         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17233         (dummy_getcfa): New function.
17234         (init): Get _Unwind_GetCFA address, use dummy if not found.
17235         (backtrace_helper): In recursion check, also check whether CFA changes.
17236         (__backtrace): Completely initialize arg.
17237
17238         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17239         storing incomplete byte sequence in state object.  Avoid testing for
17240         guaranteed too small input if we know there is enough data available.
17241
17242 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17243
17244         * Makeconfig (+link-pie): Indent.
17245         * Rules (binaries-pie): Define if $(have-fpie) and
17246         $(build-shared).
17247         (binaries-shared): Also filter out $(binaries-pie).
17248         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17249         * nscd/Makefile (others-pie): Add nscd.
17250         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17251         ($(objpfx)nscd): Remove command override.
17252         * login/Makefile (others-pie): Add pt_chown.
17253         ($(objpfx)pt_chown): Remove command override.
17254         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17255         remove command overrides.
17256
17257 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17258
17259         * libio/tst_putwc.c: Fix error messages.
17260
17261         [BZ #12724]
17262         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17263         currently writing and seek to current position when not.
17264         * libio/Makefile (tests): Add bug-fclose1.
17265         * libio/bug-fclose1.c: New file.
17266
17267 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17268
17269         [BZ #12511]
17270         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17271         don't set DF_1_NODELETE here.
17272         (do_lookup_x): When entering new entry test for copy relocation
17273         and if necessary set DF_1_NODELETE flag.
17274         * elf/tst-unique4.cc: New file.
17275         * elf/tst-unique4.h: New file.
17276         * elf/tst-unique4lib.cc: New file.
17277         * elf/Makefile: Add rules to build and run tst-unique4.
17278         Patch by Piotr Bury <pbury@goahead.com>.
17279
17280 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17281
17282         [BZ #12052]
17283         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17284
17285         [BZ #12625]
17286         * misc/mntent_r.c (addmntent): Flush the stream after the output
17287
17288         [BZ #12393]
17289         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17290         (is_trusted_path_normalize): Skip initial colon.  Append slash
17291         to empty buffer.  Duplicate is_trusted_path code but allow
17292         constructed patch to be prefix.
17293         (is_dst): Allow $ORIGIN followed by /.
17294         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17295         Correct testing of result of is_trusted_path_normalize
17296         (decompose_rpath): Fix warning.
17297
17298 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17299
17300         [BZ #11257]
17301         * grp/initgroups.c (internal_getgrouplist): When we found the service
17302         list through the initgroups entry in nsswitch.conf do not always
17303         continue on a successful lookup.  Don't always use the
17304         __nss_group_database value if it is set.
17305         * nss/nsswitch.conf (initgroups): Change action for successful db
17306         lookup to continue for compatibility.
17307
17308 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17309
17310         [BZ #11532]
17311         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17312         and CP774 modules.
17313         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17314         and CP774 modules.
17315         * iconvdata/tst-tables.sh: Likewise.
17316         * iconvdata/cp770.c: New file.
17317         * iconvdata/cp771.c: New file.
17318         * iconvdata/cp772.c: New file.
17319         * iconvdata/cp773.c: New file.
17320         * iconvdata/cp774.c: New file.
17321         * iconvdata/testdata/CP770: New file.
17322         * iconvdata/testdata/CP770..UTF8: New file.
17323         * iconvdata/testdata/CP771: New file.
17324         * iconvdata/testdata/CP771..UTF8: New file.
17325         * iconvdata/testdata/CP772: New file.
17326         * iconvdata/testdata/CP772..UTF8: New file.
17327         * iconvdata/testdata/CP773: New file.
17328         * iconvdata/testdata/CP773..UTF8: New file.
17329         * iconvdata/testdata/CP774: New file.
17330         * iconvdata/testdata/CP774..UTF8: New file.
17331
17332         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17333         END CHARMAP line.
17334         * iconvdata/gen-8bit-gap.sh: Likewise.
17335         * iconvdata/gen-8bit.sh: Likewise.
17336
17337         * locale/iso-639.def: Add ary entry.
17338
17339         [BZ #11258]
17340         * locale/C-translit.h.in: Add U20A1 transliteration.
17341
17342         [BZ #12178]
17343         * locale/iso-639.def: Add wae entry.
17344         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17345
17346         [BZ #12545]
17347         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17348         for n.
17349
17350         [BZ #12711]
17351         * locale/C-translit.h.in: Add entry for U20B9.
17352         Patch by pravin.d.s@gmail.com.
17353
17354 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17355
17356         [BZ #12713]
17357         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17358         ENAMETOOLONG use generic getcwd.
17359         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17360         in rtld.  Use *stat64.
17361         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17362         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17363         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17364         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17365         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17366         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17367         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17368         __fstatat64 macros.
17369         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17370         * dirent/rewinddir.c: Add libc_hidden_def.
17371         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17372         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17373
17374         * include/dirent.h (__alloc_dir): Add flags parameter.
17375         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17376         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17377         __alloc_dir.
17378         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17379         from fdopendir if O_CLOEXEC is already set.
17380
17381 2011-03-15  Alan Modra  <amodra@gmail.com>
17382
17383         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17384         l_tls_firstbyte_offset non-zero.  Save padding offset in
17385         l_tls_firstbyte_offset for later use.
17386         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17387         freeing static tls block.
17388
17389 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17390
17391         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17392         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17393         being defined by the kernel headers.
17394
17395 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17396
17397         [BZ #12734]
17398         * resolv/resolv.h: Define RES_NOTLDQUERY.
17399         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17400         no-tld-query and set RES_NOTLDQUERY.
17401         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17402         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17403         modern BIND to search name as TLD unless forbidden.
17404
17405 2011-05-07  Petr Baudis  <pasky@suse.cz>
17406             Ulrich Drepper  <drepper@gmail.com>
17407
17408         [BZ #12393]
17409         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17410         (is_trusted_path): ...to here.
17411         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17412         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17413         using is_trusted_path_normalize() in setuid scripts.
17414
17415 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17416
17417         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17418         __BEGIN/__END_DECLS.
17419
17420 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17421
17422         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17423         NSS_STATUS_NOTFOUND if no record was found.
17424
17425 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17426
17427         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17428         (headers-not-in-tirpc): Remove rpc/netdb.h
17429         * resolv/netdb.h: Revert last change.
17430
17431 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17432
17433         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17434         circular dependency between libgcc.a and libc.a.
17435
17436 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17437
17438         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17439         * nis/Makefile: Don't install rpcsvc/*.
17440         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17441         instead of <rpc/types.h>.
17442         (MAXHOSTNAMELEN): Define.
17443
17444 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17445
17446         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17447
17448 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17449
17450         [BZ #12714]
17451         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17452         gethostbyname4_r when IPv6 results are possible.
17453
17454 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17455
17456         [BZ #12723]
17457         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17458         _PC_PIPE_BUF handling.
17459
17460 2011-04-30  Bruno Haible  <bruno@clisp.org>
17461
17462         [BZ #12717]
17463         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17464         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17465         to 'int'.
17466         * inet/getnameinfo.c (getnameinfo): Likewise.
17467
17468 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17469
17470         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17471         to groups setting in database lookup.
17472         * nss/nsswitch.conf: Add initgroups entry.
17473
17474 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17475
17476         [BZ #12685]
17477         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17478         mode string.
17479         Patch by Eric Blake <eblake@redhat.com>.
17480
17481 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17482
17483         * sunrpc/Makefile (need-export-routines): Add svc_run.
17484         (routines): Remove svc_run.
17485         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17486         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17487         * sunrpc/svc_run.c (svc_run): Likewise.
17488         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17489
17490 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17491
17492         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17493         problem in reallocation in last patch.
17494
17495 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17496
17497         * sunrpc/Makefile: Move inclusion of Rules.
17498
17499 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17500
17501         * nss/nss_files/files-initgroups.c: New file.
17502         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17503         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17504         _nss_files_initgroups_dyn.
17505
17506 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17507
17508         * elf/elf.h (R_ARM_IRELATIVE): Define.
17509
17510 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17511
17512         * po/ru.po: Update from translation team.
17513
17514 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17515
17516         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17517         dependencies.
17518
17519 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17520
17521         [BZ #12653]
17522         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17523         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17524         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17525         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17526         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17527
17528 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17529
17530         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17531         differing bytes.
17532         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17533         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17534         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17535
17536 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17537
17538         [BZ #12420]
17539         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17540         storing it.
17541         * stdlib/bug-getcontext.c: New file.
17542         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17543
17544 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17545
17546         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17547         instructions into .machine "z9-109".
17548         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17549         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17550
17551 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17552
17553         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17554         between environment variables and auxiliary vector.
17555
17556 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17557
17558         * Makefile: Add rules to build linkobj/libc.so.
17559         * include/libc-symbols.h: Define libc_hidden_nolink.
17560         * include/rpc/auth.h: Mark functions which are to be hidden.
17561         * include/rpc/auth_des.h: Likewise.
17562         * include/rpc/auth_unix.h: Likewise.
17563         * include/rpc/clnt.h: Likewise.
17564         * include/rpc/des_crypt.h: Likewise.
17565         * include/rpc/key_prot.h: Likewise.
17566         * include/rpc/pmap_clnt.h: Likewise.
17567         * include/rpc/pmap_prot.h: Likewise.
17568         * include/rpc/pmap_rmt.h: Likewise.
17569         * include/rpc/rpc_msg.h: Likewise.
17570         * include/rpc/svc.h: Likewise.
17571         * include/rpc/svc_auth.h: Likewise.
17572         * include/rpc/xdr.h: Likewise.
17573         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17574         * nss/Makefile: Likewise.
17575         * sunrpc/Makefile: Don't install headers.  Build library with normal
17576         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17577         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17578         for the compat linking library.  Remove use of INTDEF/INTUSE.
17579         * sunrpc/auth_none.c: Likewise.
17580         * sunrpc/auth_unix.c: Likewise.
17581         * sunrpc/authdes_prot.c: Likewise.
17582         * sunrpc/authuxprot.c: Likewise.
17583         * sunrpc/clnt_gen.c: Likewise.
17584         * sunrpc/clnt_perr.c: Likewise.
17585         * sunrpc/clnt_raw.c: Likewise.
17586         * sunrpc/clnt_simp.c: Likewise.
17587         * sunrpc/clnt_tcp.c: Likewise.
17588         * sunrpc/clnt_udp.c: Likewise.
17589         * sunrpc/clnt_unix.c: Likewise.
17590         * sunrpc/des_crypt.c: Likewise.
17591         * sunrpc/des_soft.c: Likewise.
17592         * sunrpc/get_myaddr.c: Likewise.
17593         * sunrpc/key_call.c: Likewise.
17594         * sunrpc/key_prot.c: Likewise.
17595         * sunrpc/netname.c: Likewise.
17596         * sunrpc/pm_getmaps.c: Likewise.
17597         * sunrpc/pm_getport.c: Likewise.
17598         * sunrpc/pmap_clnt.c: Likewise.
17599         * sunrpc/pmap_prot.c: Likewise.
17600         * sunrpc/pmap_prot2.c: Likewise.
17601         * sunrpc/pmap_rmt.c: Likewise.
17602         * sunrpc/publickey.c: Likewise.
17603         * sunrpc/rpc_cmsg.c: Likewise.
17604         * sunrpc/rpc_common.c: Likewise.
17605         * sunrpc/rpc_dtable.c: Likewise.
17606         * sunrpc/rpc_prot.c: Likewise.
17607         * sunrpc/rpc_thread.c: Likewise.
17608         * sunrpc/rtime.c: Likewise.
17609         * sunrpc/svc.c: Likewise.
17610         * sunrpc/svc_auth.c: Likewise.
17611         * sunrpc/svc_authux.c: Likewise.
17612         * sunrpc/svc_raw.c: Likewise.
17613         * sunrpc/svc_run.c: Likewise.
17614         * sunrpc/svc_simple.c: Likewise.
17615         * sunrpc/svc_tcp.c: Likewise.
17616         * sunrpc/svc_udp.c: Likewise.
17617         * sunrpc/svc_unix.c: Likewise.
17618         * sunrpc/svcauth_des.c: Likewise.
17619         * sunrpc/xcrypt.c: Likewise.
17620         * sunrpc/xdr.c: Likewise.
17621         * sunrpc/xdr_array.c: Likewise.
17622         * sunrpc/xdr_float.c: Likewise.
17623         * sunrpc/xdr_intXX_t.c: Likewise.
17624         * sunrpc/xdr_mem.c: Likewise.
17625         * sunrpc/xdr_rec.c: Likewise.
17626         * sunrpc/xdr_ref.c: Likewise.
17627         * sunrpc/xdr_sizeof.c: Likewise.
17628         * sunrpc/xdr_stdio.c: Likewise.
17629
17630 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17631
17632         [BZ #12650]
17633         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17634         * sysdeps/ia64/dl-tls.h: Likewise.
17635         * sysdeps/powerpc/dl-tls.h: Likewise.
17636         * sysdeps/s390/dl-tls.h: Likewise.
17637         * sysdeps/sh/dl-tls.h: Likewise.
17638         * sysdeps/sparc/dl-tls.h: Likewise.
17639         * sysdeps/x86_64/dl-tls.h: Likewise.
17640         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17641
17642 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17643
17644         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17645         rpath element also skip the following colon.
17646         (expand_dynamic_string_token): Add is_path parameter and pass
17647         down to DL_DST_REQUIRED and _dl_dst_substitute.
17648         (decompose_rpath): Call expand_dynamic_string_token with
17649         non-zero is_path.  Ignore empty rpaths.
17650         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17651         with zero is_path.
17652
17653 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17654
17655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17656         Make cancelable.
17657
17658 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17659
17660         [BZ #12655]
17661         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17662         Patch by Filipe David Manana <fdmanana@apache.org>.
17663
17664 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17665
17666         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17667         Maintain aligned stack.
17668         (CHECK_RSP): Remove unused macro.
17669
17670 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17671
17672         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17673         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17674
17675 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17676
17677         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17678
17679         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17680
17681 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17682
17683         [BZ #12518]
17684         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17685         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17686         * sysdeps/x86_64/memmove.c: New file.
17687         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17688         (memcpy): Renamed to ...
17689         (__new_memcpy): This.
17690         (memcpy): Provide GLIBC_2_14 memcpy.
17691         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17692         (memcpy): Provide GLIBC_2_2_5 memcpy.
17693
17694 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17695
17696         [BZ #12631]
17697         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17698
17699 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17700
17701         * misc/syncfs.c: New file.
17702         * misc/Makefile (routines): Add syncfs.
17703         * posix/unistd.h: Declare syncfs.
17704         * sysdeps/unix/syscalls.list: Add syncfs.
17705
17706 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17707
17708         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17709         open_by_handle_at.
17710         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17711         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17712         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17713         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17714         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17715         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17716         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17717
17718 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17719
17720         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17721         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17722         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17723         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17724         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17725         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17726         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17727
17728         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17729         sync_file_range.c with -fexceptions.
17730         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17731         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17732         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17733         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17734         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17735         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17736         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17737         sync_file_range as cancellation point
17738         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17739         now a wrapper around __call_sync_file_range with cancellation handling.
17740         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17741         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17742         function name to __call_sync_file_range.
17743         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17744         Add call_sync_file_range.
17745
17746 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17747
17748         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17749         bits/timex.h.
17750
17751 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17752
17753         * iconv/iconv.h: Fix typo in comment.
17754         * io/fcntl.h: Likewise.
17755         * libio/stdio.h: Likewise.
17756         * posix/spawn.h: Likewise.
17757         * posix/unistd.h: Likewise.
17758         * stdlib/stdlib.h: Likewise.
17759         * time/time.h: Likewise.
17760         * wcsmbs/wchar.h: Likewise.
17761
17762         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17763         open_by_handle): Add.
17764         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17765         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17766         Augment a few comments.
17767         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17768         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17769         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17770         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17771         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17772         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17773         open_by_handle.
17774
17775         * io/fcntl.h (AT_EMPTY_PATH): Define.
17776
17777 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17778
17779         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17780         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17781         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17782         to...
17783         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17784         * Versions.def: Add GLIBC_2.14.
17785         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17786         Export.
17787
17788 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17789
17790         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17791         round counter.
17792         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17793
17794 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17795
17796         [BZ #12597]
17797         * string/test-strncmp.c (do_page_test): New function.
17798         (check2): Likewise.
17799         (test_main): Call check2.
17800         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17801
17802 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17803
17804         [BZ #12587]
17805         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17806         Handle cache information in CPU leaf 4.
17807         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17808
17809 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17810
17811         [BZ #12583]
17812         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17813         character representation.
17814         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17815
17816 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17817
17818         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17819         END(__isnan) to END(__isnanf) to match function entry point/label
17820         EALIGN(__isnanf,...).
17821
17822 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17823
17824         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17825
17826 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17827
17828         [BZ #12510]
17829         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17830         copy from the symbol referenced in the relocation to initialize the
17831         used variable.
17832         Patch by Piotr Bury <pbury@goahead.com>.
17833         * elf/Makefile: Add rules to build and tst-unique3.
17834         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17835         * elf/tst-unique3.cc: New file.
17836         * elf/tst-unique3.h: New file.
17837         * elf/tst-unique3lib.cc: New file.
17838         * elf/tst-unique3lib2.cc: New file.
17839
17840         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17841
17842 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17843
17844         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17845         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17846         to _start.
17847
17848 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17849
17850         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17851         to-be-loaded object along a path to loader is ld.so.
17852
17853 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17854             Ulrich Drepper  <drepper@gmail.com>
17855
17856         * sysdeps/x86_64/memset.S: After aligning destination, code
17857         branches to different locations depending on the value of
17858         misalignment, when multiarch is enabled. Fix this.
17859
17860 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17861
17862         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17863         Set _x86_64_preferred_memory_instruction for AMD processsors.
17864         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17865         Set bit_Prefer_SSE_for_memop for AMD processors.
17866
17867 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17868
17869         * libio/fmemopen.c (fmemopen): Optimize a bit.
17870
17871 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17872
17873         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17874
17875 2011-03-03  Roland McGrath  <roland@redhat.com>
17876
17877         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17878
17879 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17880
17881         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17882         __bzero_ultra1 instead of __memset_ultra1.
17883
17884 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17885             Ulrich Drepper  <drepper@gmail.com>
17886
17887         [BZ #12509]
17888         * include/link.h (struct link_map): Add l_orig_initfini.
17889         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17890         returning unsuccessfully.
17891         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17892         close of a file loaded at startup, restore the original l_initfini
17893         list.
17894         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17895         list, store the pointer.
17896         * elf/Makefile ($(objpfx)noload-mem): New rule.
17897         (noload-ENV): Define.
17898         (tests): Add $(objpfx)noload-mem.
17899         * elf/noload.c: Include <memcheck.h>.
17900         (main): Call mtrace.  Close all opened handles.
17901
17902 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17903
17904         [BZ #12454]
17905         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17906         dependencies are missing.
17907
17908 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17909
17910         Fix __if_freereq crash: Unlike the generic version which uses free,
17911         Hurd needs munmap.
17912         * sysdeps/mach/hurd/ifreq.h: New file.
17913
17914 2011-01-27  Petr Baudis  <pasky@suse.cz>
17915             Ulrich Drepper  <drepper@gmail.com>
17916
17917         [BZ 12445]#
17918         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17919         to extend_alloca().
17920         * stdio-common/bug23.c: New file.
17921         * stdio-common/Makefile (tests): Add bug23.
17922
17923 2010-09-28  Andreas Schwab  <schwab@redhat.com>
17924             Ulrich Drepper  <drepper@gmail.com>
17925
17926         [BZ #12489]
17927         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
17928         before performing relro protection.  At old place add assertion
17929         to make sure nothing changed.
17930
17931 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
17932             Glauber de Oliveira Costa  <glommer@gmail.com>
17933
17934         * elf/elf.h: Add new ARM TLS relocs.
17935
17936 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
17937
17938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17939         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
17940         cast from r3.
17941         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
17942         'tests' variable.
17943         * sysdeps/wordsize-64/tst-writev.c: New file.
17944
17945 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
17946
17947         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
17948         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
17949         insns in _dl_start to prevent a TOC reference before relocs are
17950         resolved.
17951
17952 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
17953
17954         [BZ #12469]
17955         * Makeconfig: Remove RANLIB definition.
17956         * Makerules: Don't use RANLIB.
17957         * aclocal.m4: Remove ranlib test.
17958         * configure.in: No need to check for ranlib.
17959         * elf/rtld-Rules: Don't use RANLIB.
17960
17961 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17962
17963         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
17964         protection macro.
17965         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
17966         inclusion protection macro.
17967
17968         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
17969         SIGRTMIN and SIGRTMAX and print information in that case only when
17970         SIGRTMIN is defined.
17971
17972 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
17973
17974         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
17975         arginfo fn returning -1.
17976
17977         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
17978         and thousands string is zero terminated.
17979
17980 2011-02-03  Andreas Schwab  <schwab@redhat.com>
17981
17982         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
17983         sysdeps/unix/sysv/linux/bits/socket.h.
17984
17985 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17986
17987         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
17988         (__CPU_COUNT): Remove old macros.
17989         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
17990         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
17991         (__CPU_ALLOC, __CPU_FREE): Add macros.
17992         (__sched_cpualloc, __sched_cpufree): Add declarations.
17993
17994 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
17995
17996         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
17997         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
17998         * nscd/aicache.c (addhstaiX): Return timeout of added value.
17999         (readdhstai): Return value of addhstaiX call.
18000         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18001         (addgrbyX): Return value returned by cache_addgr.
18002         (readdgrbyname): Return value returned by addgrbyX.
18003         (readdgrbygid): Likewise.
18004         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18005         (addpwbyX): Return value returned by cache_addpw.
18006         (readdpwbyname): Return value returned by addhstbyX.
18007         (readdpwbyuid): Likewise.
18008         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18009         (addservbyX): Return value returned by cache_addserv.
18010         (readdservbyname): Return value returned by addservbyX:
18011         (readdservbyport): Likewise.
18012         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18013         (addhstbyX): Return value returned by cache_addhst.
18014         (readdhstbyname): Return value returned by addhstbyX.
18015         (readdhstbyaddr): Likewise.
18016         (readdhstbynamev6): Likewise.
18017         (readdhstbyaddrv6): Likewise.
18018         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18019         (readdinitgroups): Return value returned by addinitgroupsX.
18020         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18021         (prune_cache): Keep track of timeout value of re-added entries.
18022         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18023         * nscd/nscd.h: Adjust prototypes of readd* functions.
18024
18025 2011-02-04  Roland McGrath  <roland@redhat.com>
18026
18027         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18028         (nis_stats): Likewise.
18029         * nis/nis_modify.c (nis_modify): Likewise.
18030         * nis/nis_remove.c (nis_remove): Likewise.
18031         * nis/nis_add.c (nis_add): Likewise.
18032
18033         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18034
18035         * posix/fnmatch_loop.c: Add some consts.
18036
18037         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18038
18039 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18040
18041         [BZ #12460]
18042         * config.make.in (config-cflags-novzeroupper): Define.
18043         * configure.in: Substitute libc_cv_cc_novzeroupper.
18044         * elf/Makefile (AVX-CFLAGS): Define.
18045         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18046         (CFLAGS-tst-auditmod4a.c): Likewise.
18047         (CFLAGS-tst-auditmod4b.c): Likewise.
18048         (CFLAGS-tst-auditmod6b.c): Likewise.
18049         (CFLAGS-tst-auditmod6c.c): Likewise.
18050         (CFLAGS-tst-auditmod7b.c): Likewise.
18051         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18052
18053 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18054
18055         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18056         function to the callback.
18057         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18058
18059 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18060
18061         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18062         of errno.
18063
18064 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18065
18066         [BZ #11724]
18067         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18068         of constructors.
18069         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18070         of destructors.
18071         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18072
18073         [BZ #11724]
18074         * elf/Makefile: Add rules to build and run new test.
18075         * elf/tst-initorder.c: New file.
18076         * elf/tst-initorder.exp: New file.
18077         * elf/tst-initordera1.c: New file.
18078         * elf/tst-initordera2.c: New file.
18079         * elf/tst-initordera3.c: New file.
18080         * elf/tst-initordera4.c: New file.
18081         * elf/tst-initorderb1.c: New file.
18082         * elf/tst-initorderb2.c: New file.
18083         * elf/tst-order-a1.c: New file.
18084         * elf/tst-order-a2.c: New file.
18085         * elf/tst-order-a3.c: New file.
18086         * elf/tst-order-a4.c: New file.
18087         * elf/tst-order-b1.c: New file.
18088         * elf/tst-order-b2.c: New file.
18089         * elf/tst-order-main.c: New file.
18090         New test case by George Gensure <werkt0@gmail.com>.
18091
18092 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18093
18094         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18095         decoding ACE if AI_CANONIDN.
18096
18097 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18098
18099         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18100
18101 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18102
18103         * version.h (RELEASE): Bump for 2.13 release.
18104         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18105
18106         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18107
18108         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18109         MADV_NOHUGEPAGE.
18110         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18111         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18112         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18113         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18114         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18115         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18116
18117         * posix/getconf.c: Update copyright year.
18118         * catgets/gencat.c: Likewise.
18119         * csu/version.c: Likewise.
18120         * debug/catchsegv.sh: Likewise.
18121         * debug/xtrace.sh: Likewise.
18122         * elf/ldconfig.c: Likewise.
18123         * elf/ldd.bash.in: Likewise.
18124         * elf/sprof.c (print_version): Likewise.
18125         * iconv/iconv_prog.c: Likewise.
18126         * iconv/iconvconfig.c: Likewise.
18127         * locale/programs/locale.c: Likewise.
18128         * locale/programs/localedef.c: Likewise.
18129         * malloc/memusage.sh: Likewise.
18130         * malloc/mtrace.pl: Likewise.
18131         * nscd/nscd.c (print_version): Likewise.
18132         * nss/getent.c: Likewise.
18133
18134         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18135         PF_CAIF, and PF_ALG.
18136         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18137
18138 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18139
18140         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18141         (modules-names): Use them.
18142         (ifunc-test-modules, ifunc-pie-tests): Define.
18143         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18144         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18145         (test-extras): Likewise.
18146         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18147         $(compile-command.c).
18148         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18149         (all-built-dso): Define.
18150         (check-textrel.out, check-execstack.out): Depend on it.
18151
18152         * configure.in: Don't override --enable-multi-arch.
18153
18154 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18155
18156         [BZ #6812]
18157         * nscd/hstcache.c (tryagain): Define.
18158         (cache_addhst): Return tryagain not notfound for temporary errors.
18159         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18160         failed.
18161
18162 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18163
18164         [BZ #10563]
18165         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18166         to make the syscall.
18167         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18168
18169         [BZ #12378]
18170         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18171         and fall back to matching as normal character if the string ends before
18172         the matching ']' is found.  This is what POSIX requires.
18173         * posix/testfnm.c: Adjust test result.
18174         * posix/globtest.sh: Adjust test result.  Add new test.
18175         * posix/tst-fnmatch.input: Likewise.
18176         * posix/tst-fnmatch2.c: Add new test.
18177
18178 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18179
18180         * elf/Makefile (check-execstack): Revert last change.  Depend on
18181         check-execstack.h.
18182         (check-execstack.h): New target.
18183         (generated): Add check-execstack.h.
18184         * elf/check-execstack.c: Include "check-execstack.h".
18185         (main): Revert last change.
18186         (handle_file): Return zero if GNU_STACK is absent and
18187         DEFAULT_STACK_PERMS doesn't include PF_X.
18188
18189 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18190
18191         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18192         in child fails because the descriptor is already closed.
18193         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18194         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18195         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18196
18197         [BZ #12397]
18198         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18199         syscall.
18200
18201         [BZ #10484]
18202         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18203         temporary buffer used to handle multi lookups locally.
18204         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18205
18206 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18207
18208         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18209         loader is ld.so.
18210
18211 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18212
18213         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18214         alignment for SSE2.
18215
18216 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18217
18218         [BZ #12394]
18219         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18220         characters.  When rounding increased number of integer digits recompute
18221         number of groups.
18222         * stdio-common/tst-grouping.c: New file.
18223         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18224
18225 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18226
18227         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18228         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18229
18230         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18231         void.
18232         * bits/select.h: Likewise.
18233
18234 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18235
18236         * po/ja.po: Update from translation team.
18237
18238 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18239
18240         [BZ #11155]
18241         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18242         implementation just like for lxstat, fxstatat, et al.
18243
18244 2010-12-27  Jim Meyering  <meyering@redhat.com>
18245
18246         [BZ #12348]
18247         * posix/regexec.c (build_trtable): Return failure indication upon
18248         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18249
18250 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18251
18252         [BZ #12201]
18253         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18254         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18255         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18256         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18257
18258         [BZ #12207]
18259         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18260
18261         [BZ #12204]
18262         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18263         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18264
18265 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18266
18267         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18268         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18269         script has SORT_BY_INIT_PRIORITY.
18270         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18271         NO_CTORS_DTORS_SECTIONS is defined.
18272         * elf/soinit.c: Likewise.
18273         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18274         NO_CTORS_DTORS_SECTIONS is defined.
18275         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18276         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18277         * sysdeps/sh/init-first.c: Likewise.
18278         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18279
18280 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18281
18282         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18283         always use the slow path.
18284
18285 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18286
18287         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18288         similar rule which adds the sysdep directories to the header search in
18289         order to pick up the correct platform stackinfo.h.
18290         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18291         perform test if it is, otherwise return successfully without testing.
18292         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18293         DEFAULT_STACK_PERMS define in stackinfo.h.
18294         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18295         defined in stackinfo.h.
18296         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18297         DEFAULT_STACK_PERMS defined in stackinfo.h.
18298         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18299         * sysdeps/ia64/stackinfo.h: Likewise.
18300         * sysdeps/s390/stackinfo.h: Likewise.
18301         * sysdeps/sh/stackinfo.h: Likewise.
18302         * sysdeps/sparc/stackinfo.h: Likewise.
18303         * sysdeps/x86_64/stackinfo.h: Likewise.
18304         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18305         PF_X for powerpc64.  Retain PF_X for powerpc32.
18306
18307 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18308
18309         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18310         accurately.
18311         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18312         GETDENTS_64BIT_ALIGNED.
18313
18314 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18315
18316         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18317
18318 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18319
18320         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18321         _GNU_SOURCE.
18322
18323         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18324         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18325         Remove __restrict.
18326         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18327         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18328
18329 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18330
18331         [BZ #11655]
18332         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18333         are initialized.
18334
18335 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18336
18337         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18338
18339 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18340
18341         * po/it.po: Update from translation team.
18342
18343 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18344
18345         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18346         unused codes.
18347
18348 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18349
18350         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18351
18352 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18353
18354         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18355         specially.
18356         (gaih_getanswer_slice): Likewise.
18357
18358 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18359
18360         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18361
18362 2010-05-31  Petr Baudis  <pasky@suse.cz>
18363
18364         [BZ #11149]
18365         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18366         silently even in the chroot mode.
18367
18368 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18369
18370         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18371         last patch a bit.  Pretty printing
18372
18373 2010-05-31  Petr Baudis <pasky@suse.cz>
18374
18375         [BZ #10085]
18376         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18377         initialization of skip_initgroups_dyn.
18378
18379 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18380
18381         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18382         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18383
18384 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18385
18386         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18387
18388 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18389
18390         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18391         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18392         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18393         ($(objpfx)tst-fnmatch-mem): New rule.
18394         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18395         * posix/tst-fnmatch.c (main): Call mtrace.
18396
18397 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18398
18399         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18400         Support Intel processor model 6 and model 0x2c.
18401
18402 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18403
18404         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18405           signed comparison.
18406
18407 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18408
18409         [BZ #12205]
18410         * string/test-strncasecmp.c (check_result): New function.
18411         (do_one_test): Use it.
18412         (check1): New function.
18413         (test_main): Use it.
18414         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18415         Support strcasecmp and strncasecmp.
18416
18417 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18418
18419         [BZ #12194]
18420         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18421         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18422
18423 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18424
18425         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18426         IFUNC support.
18427         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18428         memset-x86-64.
18429         * sysdeps/x86_64/multiarch/bzero.S: New file.
18430         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18431         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18432         * sysdeps/x86_64/multiarch/memset.S: New file.
18433         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18434         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18435         Set bit_Prefer_SSE_for_memop for Intel processors.
18436         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18437         Define.
18438         (index_Prefer_SSE_for_memop): Define.
18439         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18440
18441 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18442
18443         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18444         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18445
18446 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18447
18448         [BZ #12191]
18449         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18450         (__x86_64_raw_data_cache_size_half): Likewise.
18451         (__x86_64_raw_shared_cache_size): Likewise.
18452         (__x86_64_raw_shared_cache_size_half): Likewise.
18453
18454         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18455         (__x86_64_raw_data_cache_size_half): Likewise.
18456         (__x86_64_raw_shared_cache_size): Likewise.
18457         (__x86_64_raw_shared_cache_size_half): Likewise.
18458         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18459         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18460         and __x86_64_raw_shared_cache_size_half.  Round
18461         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18462         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18463         to multiple of 256 bytes.
18464
18465 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18466
18467         [BZ #12167]
18468         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18469         of inacessible symlinks.  Verify result of symlink before returning it.
18470         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18471         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18472
18473 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18474
18475         * math/math.h (isinf): Fix typo in comment.
18476
18477 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18478
18479         * po/da.po: Update from translation team.
18480
18481 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18482
18483         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18484         is added to the list.
18485
18486 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18487             Ulrich Drepper  <drepper@gmail.com>
18488
18489         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18490         the global list here.  Move code to...
18491         (_dl_add_to_namespace_list): ...here.  New function.
18492         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18493         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18494         * elf/dl-load.c (lose): Don't remove the element from the list.
18495         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18496         (_dl_map_object): Likewise.
18497
18498 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18499
18500         [BZ #12159]
18501         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18502         into all bytes of SSE register.
18503         Patch by Richard Li <richardpku@gmail.com>.
18504
18505 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18506
18507         [BZ #12140]
18508         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18509         perturbing.
18510
18511 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18512
18513         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18514         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18515         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18516         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18518         submachine.
18519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18520
18521 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18522
18523         * include/dlfcn.h (__RTLD_SECURE): Define.
18524         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18525         mode & __RTLD_SECURE instead.
18526         (open_path): Rename preloaded parameter to secure.
18527         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18528         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18529         * elf/dl-deps.c (openaux): Likewise.
18530         * elf/rtld.c (struct map_args): Remove is_preloaded.
18531         (map_doit): Don't use it.
18532         (dl_main): Likewise.
18533         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18534         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18535
18536 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18537
18538         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18539         (sysd-rules-targets): Remove duplicates.
18540         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18541         rtld-%.$o dependency.
18542
18543 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18544
18545         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18546         _dl_map_object do it.
18547
18548 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18549
18550         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18551         fast fma builtins, define the macros in the C99 standard.
18552         (FP_FAST_FMAF): Likewise.
18553         (FP_FAST_FMAL): Likewise.
18554         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18555
18556         * bits/mathdef.h: Update copyright year.
18557         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18558
18559 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18560
18561         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18562         builtins, define the macros in the C99 standard.
18563         (FP_FAST_FMAF): Likewise.
18564         (FP_FAST_FMAL): Likewise.
18565         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18566         multiply/add.
18567         (FP_FAST_FMAF): Likewise.
18568
18569 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18570
18571         [BZ #3268]
18572         * math/libm-test.inc (fma_test): Some new testcases.
18573         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18574         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18575         y and infinite z.  Do multiplication by C already in long double.
18576         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18577         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18578         y and infinite z.  Do bitwise or of inexact bit into u.d.
18579         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18580         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18581         * sysdeps/i386/fpu/s_fma.S: Removed.
18582         * sysdeps/i386/fpu/s_fmal.S: Removed.
18583
18584 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18585
18586         [BZ #3268]
18587         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18588         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18589         computation is not scheduled after fetestexcept.  Fix value
18590         of minimum denormal long double.
18591
18592 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18593
18594         [BZ #3268]
18595         * math/libm-test.inc (fma_test): Add some more tests.
18596         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18597         correctly.
18598
18599 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18600
18601         * scripts/data/localplt-s390-linux-gnu.data: New file.
18602         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18603
18604 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18605
18606         [BZ #3268]
18607         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18608         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18609         instead of dbl-64.
18610         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18611         inlines.
18612         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18613         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18614         if one of x and y is very large and the other is subnormal.
18615         * sysdeps/s390/fpu/s_fmaf.c: New file.
18616         * sysdeps/s390/fpu/s_fma.c: New file.
18617         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18618         * sysdeps/powerpc/fpu/s_fma.S: New file.
18619         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18620         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18621         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18622
18623 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18624
18625         [BZ #3268]
18626         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18627         fma tests.
18628         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18629         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18630         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18631         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18632         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18633         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18634         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18635
18636 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18637
18638         [BZ #12078]
18639         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18640         * posix/bug-regex31.input: Add test case.
18641
18642 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18643
18644         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18645         * posix/bug-regex31.input: New file.
18646
18647         [BZ #12078]
18648         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18649         (parse_sub_exp): Fix last change, use postorder.
18650
18651         * posix/bug-regex31.c: New file.
18652         * posix/Makefile: Add rules to build and run bug-regex31.
18653
18654         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18655
18656         [BZ #12078]
18657         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18658
18659         [BZ #12108]
18660         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18661         to have entries in sys_siglist.
18662
18663         [BZ #12093]
18664         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18665         be NULL.
18666
18667 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18668
18669         [BZ #3268]
18670         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18671         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18672         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18673         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18674         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18675         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18676         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18677         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18678         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18679         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18680         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18681         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18682         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18683         * math/ftestexcept.c (fetestexcept): Likewise.
18684         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18685         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18686         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18687         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18688         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18689         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18690         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18691
18692 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18693
18694         [BZ #12107]
18695         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18696         newline.
18697
18698 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18699
18700         * string/bug-strstr1.c: New file.
18701         * string/Makefile: Add rules to build and run bug-strstr1.
18702
18703 2010-10-05  Eric Blake  <eblake@redhat.com>
18704
18705         [BZ #12092]
18706         * string/str-two-way.h (two_way_long_needle): Always clear memory
18707         when skipping input due to the shift table.
18708
18709 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18710
18711         [BZ #12005]
18712         * malloc/mcheck.c: Handle large requests.
18713
18714         [BZ #12077]
18715         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18716         for strncmp and strncasecmp.
18717         * string/stratcliff.c: Add tests for strcmp and strncmp.
18718         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18719
18720 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18721
18722         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18723         __set_fpscr.
18724
18725 2010-09-30  Andreas Jaeger  <aj@suse.de>
18726
18727         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18728         (CGROUP_SUPER_MAGIC): Define.
18729         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18730         Handle btrfs and cgroup file systems.
18731         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18732         Likewise.
18733
18734 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18735
18736         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18737         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18738
18739 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18740
18741         [BZ #12067]
18742         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18743         trying to locate the ELF header.
18744
18745 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18746
18747         [BZ #11611]
18748         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18749         Mask out sign-bit copies when constructing f_fsid.
18750
18751 2010-09-24  Petr Baudis <pasky@suse.cz>
18752
18753         * debug/stack_chk_fail_local.c: Add missing licence exception.
18754         * debug/warning-nop.c: Likewise.
18755
18756 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18757
18758         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18759         implementing getdents64 using getdents syscall, set d_type if
18760         __ASSUME_GETDENTS32_D_TYPE.
18761
18762 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18763
18764         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18765         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18766
18767 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18768
18769         [BZ #12037]
18770         * posix/unistd.h: Undo change of feature selection for ftruncate from
18771         2010-01-11.
18772
18773 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18774
18775         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18776         detection.
18777
18778 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18779
18780         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18781         fanotify_mark.
18782         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18783
18784 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18785
18786         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18787         variables after CHECK_SP call.
18788         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18789
18790 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18791             Ulrich Drepper  <drepper@redhat.com>
18792
18793         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18794         re-relocationg ld.so.
18795         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18796         _dl_init_paths call.
18797         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18798         here anymore.
18799
18800 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18801
18802         * resolv/res_init.c (__res_vinit): Count the default server we added.
18803
18804 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18805             Ulrich Drepper  <drepper@redhat.com>
18806
18807         [BZ #11968]
18808         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18809         (____longjmp_chk): Use %ebx for saving value across system call.
18810         Add unwind info.
18811
18812 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18813
18814         * manual/Makefile: Don't mix pattern rules with normal rules.
18815
18816 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18817
18818         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18819         operation.
18820         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18821         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18822         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18823         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18824         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18825         Likewise.
18826
18827 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18828
18829         [BZ #11979]
18830         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18831         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18832
18833 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18834
18835         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18836         * sysdeps/x86_64/addmul_1.S: Likewise.
18837         * sysdeps/x86_64/lshift.S: Likewise.
18838         * sysdeps/x86_64/mul_1.S: Likewise.
18839         * sysdeps/x86_64/rshift.S: Likewise.
18840         * sysdeps/x86_64/sub_n.S: Likewise.
18841         * sysdeps/x86_64/submul_1.S: Likewise.
18842
18843 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18844
18845         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18846         Define __sched_param instead of SCHED_* and sched_param when
18847         <bits/sched.h> is included with __need_schedparam defined.
18848         * bits/sched.h [__need_schedparam]
18849         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18850         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18851         (__defined_schedparam): Define to 1.
18852         (__sched_param): New structure, identical to sched_param.
18853         (__need_schedparam): Undefine.
18854
18855 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18856
18857         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18858         (epoll_create1): Declare.
18859
18860         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18861
18862 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18863
18864         [BZ #7066]
18865         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18866         shifting retval into place.
18867
18868 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18869
18870         * nis/rpcsvc/nis.h: Update copyright notice.
18871         * nis/rpcsvc/nis.x: Likewise.
18872         * nis/rpcsvc/nis_callback.h: Likewise.
18873         * nis/rpcsvc/nis_callback.x: Likewise.
18874         * nis/rpcsvc/nis_object.x: Likewise.
18875         * nis/rpcsvc/nis_tags.h: Likewise.
18876         * nis/rpcsvc/yp.h: Likewise.
18877         * nis/rpcsvc/yp.x: Likewise.
18878         * nis/rpcsvc/ypupd.h: Likewise.
18879         * nis/yp_xdr.c: Likewise.
18880         * nis/ypupdate_xdr.c: Likewise.
18881
18882         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18883         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18884         (pmap_getport): Use __libc_rpc_getport.
18885         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18886         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18887         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18888
18889 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18890
18891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18892         fanotify_mark.
18893
18894 2010-08-27  Roland McGrath  <roland@redhat.com>
18895
18896         * sysdeps/i386/i686/multiarch/Makefile
18897         (CFLAGS-varshift.c): New variable.
18898
18899 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18900
18901         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18902         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18903
18904         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18905
18906         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18907
18908 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18909
18910         * sysdeps/x86_64/strlen.S: Unroll the loop.
18911         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18912         strlen-sse2 strlen-sse2-bsf.
18913         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18914         __strlen_no_bsf if bit_Slow_BSF is set.
18915         (__strlen_sse42): Removed.
18916         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18917         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18918
18919 2010-08-25  Roland McGrath  <roland@redhat.com>
18920
18921         * sysdeps/x86_64/multiarch/varshift.S: File removed.
18922         * sysdeps/x86_64/multiarch/varshift.c: New file.
18923         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18924         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
18925         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
18926         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18927
18928 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
18929
18930         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18931         strlen-sse2 strlen-sse2-bsf.
18932         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
18933         __strlen_sse2_bsf if bit_Slow_BSF is unset.
18934         (__strlen_sse2): Removed.
18935         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
18936         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
18937         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
18938         bit_Slow_BSF for Atom.
18939         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
18940         (index_Slow_BSF): Define.
18941         (HAS_SLOW_BSF): Define.
18942
18943 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
18944
18945         [BZ #10851]
18946         * resolv/res_init.c (__res_vinit): When no server address at all
18947         is given default to loopback.
18948
18949 2010-08-24  Roland McGrath  <roland@redhat.com>
18950
18951         * configure.in: Remove config-name.h generation.
18952         * configure: Regenerated.
18953         * config-name.in: File removed.
18954         * scripts/config-uname.sh: New file.
18955         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
18956         ($(objdir)config-name.h): New target.
18957
18958         * sunrpc/rpc_parse.h: Avoid nested comment.
18959
18960 2010-08-24  Richard Henderson  <rth@redhat.com>
18961             Ulrich Drepper  <drepper@redhat.com>
18962             H.J. Lu  <hongjiu.lu@intel.com>
18963
18964         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
18965         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
18966         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
18967         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
18968         _mm_alignr_epi8 with _mm_loadu_si128.
18969         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
18970         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
18971         (__m128i_shift_right): Removed.
18972         * sysdeps/i386/i686/multiarch/varshift.h: New file.
18973         * sysdeps/i386/i686/multiarch/varshift.S: New file.
18974         * sysdeps/x86_64/multiarch/varshift.h: New file.
18975         * sysdeps/x86_64/multiarch/varshift.S: New file.
18976
18977 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
18978
18979         * configure.in: Move assembler checks to before sysdep dir checking.
18980
18981 2010-08-20  Petr Baudis  <pasky@suse.cz>
18982
18983         * LICENSES: Sync the sunrpc license.
18984
18985 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
18986
18987         * sunrpc/auth_des.c: Update copyright notice once again.
18988         * sunrpc/auth_none.c: Likewise.
18989         * sunrpc/auth_unix.c: Likewise.
18990         * sunrpc/authdes_prot.c: Likewise.
18991         * sunrpc/authuxprot.c: Likewise.
18992         * sunrpc/bindrsvprt.c: Likewise.
18993         * sunrpc/clnt_gen.c: Likewise.
18994         * sunrpc/clnt_perr.c: Likewise.
18995         * sunrpc/clnt_raw.c: Likewise.
18996         * sunrpc/clnt_simp.c: Likewise.
18997         * sunrpc/clnt_tcp.c: Likewise.
18998         * sunrpc/clnt_udp.c: Likewise.
18999         * sunrpc/clnt_unix.c: Likewise.
19000         * sunrpc/des_crypt.c: Likewise.
19001         * sunrpc/des_soft.c: Likewise.
19002         * sunrpc/get_myaddr.c: Likewise.
19003         * sunrpc/getrpcport.c: Likewise.
19004         * sunrpc/key_call.c: Likewise.
19005         * sunrpc/key_prot.c: Likewise.
19006         * sunrpc/openchild.c: Likewise.
19007         * sunrpc/pm_getmaps.c: Likewise.
19008         * sunrpc/pm_getport.c: Likewise.
19009         * sunrpc/pmap_clnt.c: Likewise.
19010         * sunrpc/pmap_prot.c: Likewise.
19011         * sunrpc/pmap_prot2.c: Likewise.
19012         * sunrpc/pmap_rmt.c: Likewise.
19013         * sunrpc/rpc/auth.h: Likewise.
19014         * sunrpc/rpc/auth_unix.h: Likewise.
19015         * sunrpc/rpc/clnt.h: Likewise.
19016         * sunrpc/rpc/des_crypt.h: Likewise.
19017         * sunrpc/rpc/key_prot.h: Likewise.
19018         * sunrpc/rpc/netdb.h: Likewise.
19019         * sunrpc/rpc/pmap_clnt.h: Likewise.
19020         * sunrpc/rpc/pmap_prot.h: Likewise.
19021         * sunrpc/rpc/pmap_rmt.h: Likewise.
19022         * sunrpc/rpc/rpc.h: Likewise.
19023         * sunrpc/rpc/rpc_des.h: Likewise.
19024         * sunrpc/rpc/rpc_msg.h: Likewise.
19025         * sunrpc/rpc/svc.h: Likewise.
19026         * sunrpc/rpc/svc_auth.h: Likewise.
19027         * sunrpc/rpc/types.h: Likewise.
19028         * sunrpc/rpc/xdr.h: Likewise.
19029         * sunrpc/rpc_clntout.c: Likewise.
19030         * sunrpc/rpc_cmsg.c: Likewise.
19031         * sunrpc/rpc_common.c: Likewise.
19032         * sunrpc/rpc_cout.c: Likewise.
19033         * sunrpc/rpc_dtable.c: Likewise.
19034         * sunrpc/rpc_hout.c: Likewise.
19035         * sunrpc/rpc_main.c: Likewise.
19036         * sunrpc/rpc_parse.c: Likewise.
19037         * sunrpc/rpc_parse.h: Likewise.
19038         * sunrpc/rpc_prot.c: Likewise.
19039         * sunrpc/rpc_sample.c: Likewise.
19040         * sunrpc/rpc_scan.c: Likewise.
19041         * sunrpc/rpc_scan.h: Likewise.
19042         * sunrpc/rpc_svcout.c: Likewise.
19043         * sunrpc/rpc_tblout.c: Likewise.
19044         * sunrpc/rpc_util.c: Likewise.
19045         * sunrpc/rpc_util.h: Likewise.
19046         * sunrpc/rpcinfo.c: Likewise.
19047         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19048         * sunrpc/rpcsvc/key_prot.x: Likewise.
19049         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19050         * sunrpc/rpcsvc/mount.x: Likewise.
19051         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19052         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19053         * sunrpc/rpcsvc/rex.x: Likewise.
19054         * sunrpc/rpcsvc/rstat.x: Likewise.
19055         * sunrpc/rpcsvc/rusers.x: Likewise.
19056         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19057         * sunrpc/rpcsvc/spray.x: Likewise.
19058         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19059         * sunrpc/rtime.c: Likewise.
19060         * sunrpc/svc.c: Likewise.
19061         * sunrpc/svc_auth.c: Likewise.
19062         * sunrpc/svc_authux.c: Likewise.
19063         * sunrpc/svc_raw.c: Likewise.
19064         * sunrpc/svc_run.c: Likewise.
19065         * sunrpc/svc_simple.c: Likewise.
19066         * sunrpc/svc_tcp.c: Likewise.
19067         * sunrpc/svc_udp.c: Likewise.
19068         * sunrpc/svc_unix.c: Likewise.
19069         * sunrpc/svcauth_des.c: Likewise.
19070         * sunrpc/xcrypt.c: Likewise.
19071         * sunrpc/xdr.c: Likewise.
19072         * sunrpc/xdr_array.c: Likewise.
19073         * sunrpc/xdr_float.c: Likewise.
19074         * sunrpc/xdr_mem.c: Likewise.
19075         * sunrpc/xdr_rec.c: Likewise.
19076         * sunrpc/xdr_ref.c: Likewise.
19077         * sunrpc/xdr_sizeof.c: Likewise.
19078         * sunrpc/xdr_stdio.c: Likewise.
19079
19080         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19081         handling.
19082
19083 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19084
19085         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19086
19087 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19088
19089         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19090         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19091         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19092         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19093         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19094         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19095         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19096         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19097         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19098         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19099         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19100         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19101         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19102         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19103
19104 2010-07-26  Anton Blanchard  <anton@samba.org>
19105
19106         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19107         * malloc/arena.c (heap_trim): Likewise.
19108
19109 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19110
19111         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19112         here.  Not...
19113         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19114         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19115
19116 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19117
19118         * sysdeps/i386/elf/Makefile: New file.
19119
19120 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19121
19122         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19123         from fanotify_init.
19124         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19125         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19126
19127 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19128
19129         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19130         of strncasecmp_l.
19131         * sysdeps/multiarch/strcmp.S: Likewise.
19132
19133 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19134
19135         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19136         strncase_l-nonascii.
19137         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19138         Add strncase_l-ssse3.
19139         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19140         * sysdeps/x86_64/strcmp.S: Likewise.
19141         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19142         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19143         * sysdeps/x86_64/strncase.S: New file.
19144         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19145         * sysdeps/x86_64/strncase_l.S: New file.
19146         * string/Makefile (strop-tests): Add strncasecmp.
19147         * string/test-strncasecmp.c: New file.
19148
19149         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19150         warning.
19151
19152         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19153         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19154
19155 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19156
19157         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19158
19159 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19160
19161         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19162         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19163         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19164
19165 2010-05-01  Alan Modra  <amodra@gmail.com>
19166
19167         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19168         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19169         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19170         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19171         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19172         tidying.  Don't tail-call __sigjmp_save for static lib.
19173         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19174         save location.
19175         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19176         (CALL_MCOUNT): Add eh info, and nop after bl.
19177         (TAIL_CALL_SYSCALL_ERROR): New macro.
19178         (PSEUDO_RET): Use it.
19179         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19180         Correct save location of integer regs and cr.
19181         (_dl_profile_resolve): Correct cr save location.  Delete nops
19182         after bl when SHARED.  Reduce cfi size a little by better
19183         placement of cfi directives.
19184         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19185         make a stack frame.  Instead use parm save area as a temp.
19186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19187         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19189         Don't make a stack frame for parent, use parm save area.
19190         Increase child stack frame to 112 bytes.  Don't save unused reg,
19191         and adjust reg usage.  Set up cfi on error recovery and
19192         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19194         (__makecontext): Add dummy nop after jump to exit.
19195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19196         Use correct parm save area and cr save, reduce stack frame.
19197         Correct cfi for possible PSEUDO_RET frame setup.
19198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19199         Branch to local label emitted by PSEUDO_RET rather than
19200         __syscall_error.
19201
19202 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19203
19204         [BZ #11904]
19205         * locale/programs/locale.c (print_assignment): New function.
19206         (show_locale_vars): Use it.
19207
19208 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19209
19210         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19211         field.
19212         (struct statfs64): Likewise.
19213         (_STATFS_F_FLAGS): Define.
19214         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19215         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19216         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19217         (ST_VALID): Define locally.
19218         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19219         __statvfs_getflags, use the provided value.
19220         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19221         __ASSUME_STATFS_F_FLAGS.
19222
19223         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19224
19225         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19226         Add sys/fanotify.h.
19227         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19228         fanotify_mask for GLIBC_2.13.
19229         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19230         fanotify_init and fanotify_mark.
19231         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19232         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19233
19234         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19235         Add prlimit.
19236         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19237         prlimit64 for GLIBC_2.13.
19238         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19239         prlimit64.
19240         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19241         syscall.
19242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19243         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19244         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19245         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19246         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19247         add prlimit alias.
19248         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19249
19250         [BZ #11903]
19251         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19252         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19253
19254         * nss/Makefile: Add rules to build and run tst-nss-test1.
19255         * shlib-versions: Add entry for libnss_test1.
19256         * nss/nss_test1.c: New file.
19257         * nss/tst-nss-test1.c: New file.
19258
19259         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19260         (__nss_configure_lookup): Set appropriate entry in
19261         __nss_configure_lookup to true.
19262         * nss/nsswitch.h: Define enum with indeces of databases in
19263         databases and __nss_database_custom arrays.  Declare
19264         __nss_database_custom.
19265         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19266         to avoid using nscd when custom rules are installed.
19267         * nss/getXXbyYY_r.c: Likewise.
19268         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19269
19270         * nss/nss_files/files-parse.c: Whitespace fixes.
19271
19272 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19273
19274         [BZ #11883]
19275         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19276         * posix/fnmatch_loop.c: Likewise.
19277
19278 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19279
19280         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19281         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19282         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19283         * Versions.def [GLIBC_2.13]: Add.
19284
19285 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19286
19287         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19288         Also fail if tpwd after pwuid call is NULL.
19289
19290 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19291
19292         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19293         when converting to ms.
19294
19295 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19296
19297         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19298         EOPNOTSUPP errors with ENOTTY.
19299         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19300         EOPNOTSUPP errors with ENOTTY.
19301
19302 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19303
19304         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19305         Add strcasecmp_l-ssse3.
19306         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19307         strcasecmp.
19308         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19309         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19310         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19311
19312 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19313
19314         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19315
19316         * string/Makefile (strop-tests): Add strcasecmp.
19317         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19318         strcasecmp_l-nonascii.
19319         (gen-as-const-headers): Add locale-defines.sym.
19320         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19321         * sysdeps/x86_64/strcasecmp.S: New file.
19322         * sysdeps/x86_64/strcasecmp_l.S: New file.
19323         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19324         * sysdeps/x86_64/locale-defines.sym: New file.
19325         * string/test-strcasecmp.c: New file.
19326
19327         * string/test-strcasestr.c: Test both ends of the range of characters.
19328         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19329
19330 2010-07-29  Roland McGrath  <roland@redhat.com>
19331
19332         [BZ #11856]
19333         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19334
19335 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19336
19337         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19338         for ld.so.
19339
19340 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19341
19342         * manual/memory.texi (Malloc Tunable Parameters): Document
19343         M_PERTURB.
19344
19345 2010-07-26  Roland McGrath  <roland@redhat.com>
19346
19347         [BZ #11840]
19348         * configure.in (-fgnu89-inline check): Set and substitute
19349         gnu89_inline, not libc_cv_gnu89_inline.
19350         * configure: Regenerated.
19351         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19352
19353 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19354
19355         * string/test-strnlen.c: New file.
19356         * string/Makefile (strop-tests): Add strnlen.
19357         * string/tester.c (test_strnlen): Add a few more test cases.
19358         * string/tst-strlen.c: Better error reporting.
19359
19360         * sysdeps/x86_64/strnlen.S: New file.
19361
19362 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19363
19364         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19365         lower-latency instructions.
19366
19367 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19368
19369         * string/test-strcasestr.c: New file.
19370         * string/test-strstr.c: New file.
19371         * string/Makefile (strop-tests): Add strstr and strcasestr.
19372         * string/str-two-way.h: Don't undefine MAX.
19373         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19374
19375 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19376
19377         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19378         strcasestr-nonascii.
19379         (CFLAGS-strcasestr-nonascii.c): Define.
19380         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19381         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19382         Remove unused attribute.
19383
19384 2010-07-20  Roland McGrath  <roland@redhat.com>
19385
19386         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19387         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19388         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19389         like LD_HWCAP_MASK can disable hwcaps.
19390
19391 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19392
19393         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19394
19395 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19396
19397         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19398         call in strcasestr.
19399         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19400         __strcasestr_sse42_nonascii.
19401         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19402         strcasestr-nonascii.c.
19403         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19404
19405 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19406
19407         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19408         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19409         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19410         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19411
19412 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19413
19414         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19415         fcntl.
19416
19417 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19418
19419         [BZ #11577]
19420         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19421         dl_signal_cerror.
19422
19423 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19424
19425         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19426         _PC_PIPE_BUF using F_GETPIPE_SZ.
19427
19428 2010-07-05  Roland McGrath  <roland@redhat.com>
19429
19430         * manual/arith.texi (Rounding Functions): Fix rint description
19431         implicit in round description.
19432
19433 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19434
19435         * elf/Makefile: Fix linking for a few tests to make recent linker
19436         happy.
19437
19438 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19439
19440         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19441         $(common-objpfx)libc_nonshared.a.
19442
19443 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19444
19445         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19446         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19447         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19448         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19449         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19450         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19451         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19452         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19467         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19468         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19469         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19470         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19471         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19472         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19473         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19474         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19475         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19476         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19477         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19478         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19493
19494 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19495
19496         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19497         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19498         * string/memmove.c (memmove): Renamed to ...
19499         (MEMMOVE): ...this.  Default to memmove.
19500         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19501         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19502         (END_CHK): Define.
19503         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19504         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19505         mempcpy-ssse3-back memmove-ssse3-back.
19506         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19507         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19508         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19509         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19510         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19511         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19512         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19513         * sysdeps/x86_64/multiarch/memmove.c: New file.
19514         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19515         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19516         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19517         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19518         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19519         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19520         Define.
19521         (index_Fast_Copy_Backward): Define.
19522         (HAS_ARCH_FEATURE): Define.
19523         (HAS_FAST_REP_STRING): Define.
19524         (HAS_FAST_COPY_BACKWARD): Define.
19525
19526 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19527
19528         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19529         Restore proper fallback handling.
19530
19531 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19532
19533         [BZ #11701]
19534         * posix/group_member.c (__group_member): Correct checking loop.
19535
19536         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19537         OOM in getpwuid_r correctly.  Return error number when the caller
19538         should return, otherwise -1.
19539         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19540         call returning > 0 value.
19541         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19542
19543 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19544
19545         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19546         libc_nonshared.a from targets in modules-names.
19547
19548 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19549
19550         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19551         requires it.
19552
19553 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19554
19555         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19556         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19557         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19558         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19559
19560 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19561
19562         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19563
19564 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19565
19566         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19567         and F_GETPIPE_SZ.
19568         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19569         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19570         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19571         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19572         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19573         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19574
19575 2010-06-14  Roland McGrath  <roland@redhat.com>
19576
19577         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19578
19579 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19580
19581         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19582         __REDIRECT followed by __THROW.
19583         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19584         * posix/getopt.h (getopt): Likewise.
19585
19586 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19587
19588         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19589         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19590         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19591         in AT_FLAGS.
19592         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19593         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19594
19595 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19596
19597         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19598
19599 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19600
19601         [BZ #11640]
19602         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19603         Properly check family and model.
19604
19605 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19606
19607         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19608
19609 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19610
19611         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19612
19613 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19614
19615         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19616         symbol reference.
19617
19618 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19619
19620         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19621         symbol reference.
19622
19623 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19624
19625         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19626         and internal_recvmmsg.
19627         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19628         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19629         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19630         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19631
19632         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19633         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19634         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19635
19636 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19637
19638         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19639
19640 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19641
19642         POWER7 optimizations.
19643         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19644         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19645
19646 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19647
19648         * version.h: Update for 2.13 development version.
19649
19650 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19651
19652         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19653         exceptions.  Return 0.
19654
19655 2010-05-07  Roland McGrath  <roland@redhat.com>
19656
19657         * elf/ldconfig.c (main): Add a const.
19658
19659 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19660
19661         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19662         (args_options): Add no-idn option.
19663         (ahosts_keys_int): Add idn_flags to ai_flags.
19664         (parse_option): Handle 'i' option to clear idn_flags.
19665
19666         * malloc/malloc.c (_int_free): Possible race in the most recently
19667         added check.  Only act on the data if no current modification
19668         happened.
19669
19670 See ChangeLog.17 for earlier changes.