Adjust wide data buffer pointers during fseek and ftell
[platform/upstream/glibc.git] / ChangeLog
1 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2
3         [BZ #14543]
4         * libio/Makefile (tests): New test case tst-fseek.
5         * libio/tst-fseek.c: New test case to verify that fseek/ftell
6         combination works in wide mode.
7         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
8         state when the external buffer state changes.
9
10 2012-09-27  David S. Miller  <davem@davemloft.net>
11
12         [BZ #14376]
13         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
14         pass reloc->r_addend in as the 'high' argument to
15         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
16
17         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18
19 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
20
21         * rt/tst-aio2.c: Include <pthread.h>.
22         * rt/tst-aio3.c: Likewise.
23
24 2012-09-27  Steve Ellcey  <sellcey@mips.com>
25
26         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
27
28 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
29
30         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Empty if not in
31         libc.a.
32
33 2012-09-26  Marek Polacek  <polacek@redhat.com>
34
35         [BZ #14530]
36         [BZ #13741]
37         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
38         for C++ and GCC <4.3 as well as for non GCC compilers.
39
40 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
41
42         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
43
44 2012-09-25  Roland McGrath  <roland@hack.frob.com>
45
46         * Makefile.in (all, install): Declare with .PHONY.
47         Reported by Michael Hope <michael.hope@linaro.org>.
48
49 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
50
51         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
52         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
53         system header.
54         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
55         Likewise.
56         (sydep_routines): Add the new and the internal functions.
57         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
58         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
59         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
60         (GLIBC_2.17): Add the new function.
61         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
62         (GLIBC_2.17): Likewise.
63         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
64         (GLIBC_2.17): Likewise.
65         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
66         (GLIBC_2.17): Likewise.
67         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
68
69 2012-09-25  Alan Modra  <amodra@gmail.com>
70
71         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
72         Add release barrier before setting once_control to say
73         initialisation is done.  Add hints on lwarx.  Use macro in
74         place of isync.
75         (clear_once_control): Add release barrier.
76
77 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
78
79         [BZ #13629]
80         * math/s_clog.c (__clog): Handle more values close to |z| = 1
81         specially.
82         * math/s_clog10.c (__clog10): Likewise.
83         * math/s_clog10f.c (__clog10f): Likewise.
84         * math/s_clog10l.c (__clog10l): Likewise.
85         * math/s_clogf.c (__clogf): Likewise.
86         * math/s_clogl.c (__clogl): Likewise.
87         * math/Makefile (libm-calls): Add x2y2m1.
88         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
89         (__x2y2m1): Likewise.
90         (__x2y2m1l): Likewise.
91         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
92         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
93         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
94         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
95         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
96         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
97         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
98         * sysdeps/i386/fpu/libm-test-ulps: Update.
99         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
100
101         [BZ #14621]
102         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
103         int as type of variable DEPTH.
104         (glob): Use size_t instead of int as type of variables NEWCOUNT
105         and OLD_PATHC.
106
107 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
108
109         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
110         Add s_sincosf-sse2.
111         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
112         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
113         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
114         macros for using routine as __sincosf_ia32.
115         Use macro for function declaration and weak_alias.
116         * sysdeps/i386/fpu/libm-test-ulps: Update.
117
118         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
119         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
120
121         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
122         subnormal argument.
123         * math/s_cexpf.c (__cexpf): Likewise.
124         * math/s_csinf.c (__csinf): Likewise.
125         * math/s_csinhf.c (__csinhf): Likewise.
126         * math/s_ctanf.c (__ctanf): Likewise.
127         * math/s_ctanhf.c (__ctanhf): Likewise.
128         * math/s_ccosh.c (__ccoshf): Likewise.
129         * math/s_cexp.c (__cexpl): Likewise.
130         * math/s_csin.c (__csin): Likewise.
131         * math/s_csinh.c (__csinh): Likewise.
132         * math/s_ctan.c (__ctan): Likewise.
133         * math/s_ctanh.c (ctanh): Likewise.
134         * math/s_ccoshl.c (__ccoshl): Likewise.
135         * math/s_cexpl.c (__cexpl): Likewise.
136         * math/s_csinl.c (__csinl): Likewise.
137         * math/s_csinhl.c (__csinhl): Likewise.
138         * math/s_ctanl.c (__ctanl): Likewise.
139         * math/s_ctanhl.c (__ctanhl): Likewise.
140
141 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
142
143         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
144         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
145         (_IO_off_t): Define to __off_t, not _G_off_t.
146         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
147         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
148         (_IO_wint_t): Define to wint_t, not _G_wint_t.
149         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
150         type of __dummy and __dummy2 fields.
151         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
152         (_G_ssize_t): Likewise.
153         (_G_off_t): Likewise.
154         (_G_pid_t): Likewise.
155         (_G_uid_t): Likewise.
156         (_G_wchar_t): Likewise.
157         (_G_wint_t): Likewise.
158         * sysdeps/gnu/_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/mach/hurd/_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
173 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
174
175         * malloc/arena.c: Include malloc-sysdep.h.
176         (shrink_heap): Use check_may_shrink_heap to decide if madvise
177         is sufficient to shrink the heap or an unmap is needed.
178         * sysdeps/generic/malloc-sysdep.h: New file.  Define
179         new function check_may_shrink_heap.
180         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
181         new function check_may_shrink_heap.
182
183 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
184
185         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
186         comments.
187
188 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
189
190         * catgets/test-gencat.sh: Add "set -e".
191         * elf/tst-pathopt.sh: Likewise.
192         * grp/tst_fgetgrent.sh: Likewise.
193         * iconvdata/run-iconv-test.sh: Likewise.
194         * intl/tst-gettext.sh: Likewise.
195         * intl/tst-gettext2.sh: Likewise.
196         * intl/tst-gettext4.sh: Likewise.
197         * intl/tst-gettext6.sh: Likewise.
198         * intl/tst-translit.sh: Likewise.
199         * io/ftwtest-sh: Likewise.
200         * libio/test-freopen.sh: Likewise.
201         * malloc/tst-mtrace.sh: Likewise.
202         * posix/globtest.sh: Likewise.
203         * posix/tst-getconf.sh: Likewise.
204         * posix/wordexp-tst.sh: Likewise.
205         * stdio-common/tst-printf.sh: Likewise.
206         * stdio-common/tst-unbputc.sh: Likewise.
207         * stdlib/tst-fmtmsg.sh: Likewise.
208         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
209         * catgets/Makefile: Do not specify -e option when running
210         testsuite shell scripts.
211         * elf/Makefile: Likewise.
212         * grp/Makefile: Likewise.
213         * iconvdata/Makefile: Likewise.
214         * intl/Makefile: Likewise.
215         * io/Makefile: Likewise.
216         * libio/Makefile: Likewise.
217         * malloc/Makefile: Likewise.
218         * posix/Makefile: Likewise.
219         * stdio-common/Makefile: Likewise.
220         * stdlib/Makefile: Likewise.
221         * sysdeps/x86_64/Makefile: Likewise.
222
223         * io/ftwtest-sh: Add copyright header.
224         * posix/globtest.sh: Likewise.
225         * posix/tst-getconf.sh: Likewise.
226         * posix/wordexp-tst.sh: Likewise.
227         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
228
229 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
230
231         [BZ #13679]
232         * Makeconfig (+link): Defined as $(+link-static) if
233         $(build-shared) isn't yes.
234         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
235         isn't yes.
236         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
237
238         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
239
240         [BZ #14562]
241         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
242         new chunk size with MALLOC_ALIGN_MASK.
243
244 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
245
246         [BZ #5044]
247         * stdio-common/printf_fphex.c: Include <stdbool.h> and
248         <rounding-mode.h>.
249         (__printf_fphex): Determine rounding using get_rounding_mode and
250         round_away.
251         * stdio-common/tst-printf-round.c (struct hex_test): New
252         structure.
253         (hex_tests): New variable.
254         (test_hex_in_one_mode): New function.
255         (do_test): Also run tests for hex float output.
256
257 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
258
259         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
260         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
261         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
262         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
263         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
264         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
265         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
266         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
267
268 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
269
270         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
271         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
272         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
273         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
274
275 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
276
277         [BZ #14579]
278         * elf/rtld.c (dl_main): Limit the check for self loading to normal
279         mode only.
280         * elf/tst-rtld-load-self.sh: New test.
281         * elf/Makefile: Run it.
282
283 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
284
285         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
286         (tst-writev-ENV): Remove.
287         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
288
289 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
290
291         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
292
293 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
294
295         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
296         unconditional.
297         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
298         Likewise.
299         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
300         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
301         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
302         Likewise.
303
304 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
305
306         [BZ #14587]
307         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
308         * config.make.in (have-cpp-asm-debuginfo): Removed.
309         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
310         * configure: Regenerated.
311
312 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
313
314         [BZ #5044]
315         * stdio-common/printf_fp.c: Include <stdbool.h> and
316         <rounding-mode.h>.
317         (___printf_fp): Determine rounding using get_rounding_mode and
318         round_away.
319         * stdio-common/tst-printf-round.c: New file.
320         * stdio-common/Makefile (tests): Add tst-printf-round.
321         (link-libm): New variable.
322         ($(objpfx)tst-printf-round): Depend in $(link-libm).
323
324 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
325
326         [BZ #14576]
327         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
328         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
329         Likewise.
330         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
331         Likewise.
332
333 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
334
335         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
336         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
337         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
338         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
339
340 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
341
342         [BZ #14518]
343         * include/rounding-mode.h: New file.
344         * sysdeps/generic/get-rounding-mode.h: Likewise.
345         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
346         * stdlib/strtod_l.c: Include <rounding-mode.h>.
347         (MAX_VALUE): New macro.
348         (MIN_VALUE): Likewise.
349         (overflow_value): New function.
350         (underflow_value): Likewise.
351         (round_and_return): Use overflow_value and underflow_value to
352         determine return values in overflow and underflow cases.  Use
353         round_away to determine rounding depending on rounding mode.
354         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
355         determine return values in overflow and underflow cases.
356         * stdlib/tst-strtod-round.c: Include <fenv.h>.
357         (struct test_results): New structure.
358         (struct test): Use struct test_results to store expected results
359         for all rounding modes.
360         (TEST): Include expected results for all rounding modes.
361         (test_in_one_mode): New function.
362         (do_test): Use test_in_one_mode to compute and check results.
363         Check results for all rounding modes.
364         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
365         $(link-libm).
366
367 2012-12-09  Allan McRae  <allan@archlinux.org>
368
369         * sysdeps/i386/fpu/libm-test-ulps: Update
370
371 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
372
373         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
374         (_G_int32_t): Likewise.
375         (_G_uint16_t): Likewise.
376         (_G_uint32_t): Likewise.
377         (_G_HAVE_BOOL): Likewise.
378         (_G_HAVE_ATEXIT): Likewise.
379         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
380         (_G_HAVE_IO_FILE_OPEN): Likewise.
381         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
382         (_G_int32_t): Likewise.
383         (_G_uint16_t): Likewise.
384         (_G_uint32_t): Likewise.
385         (_G_HAVE_BOOL): Likewise.
386         (_G_HAVE_ATEXIT): Likewise.
387         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
388         (_G_HAVE_IO_FILE_OPEN): Likewise.
389         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
390         (_G_int32_t): Likewise.
391         (_G_uint16_t): Likewise.
392         (_G_uint32_t): Likewise.
393         (_G_HAVE_BOOL): Likewise.
394         (_G_HAVE_ATEXIT): Likewise.
395         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
396         (_G_HAVE_IO_FILE_OPEN): Likewise.
397
398 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
399
400         * csu/libc-tls.c: Update copyright years.
401
402 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
403
404         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
405         [!_G_USING_THUNKS]: Remove conditional code.
406         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
407         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
408
409         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
410         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
411         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
412         (_G_VTABLE_LABEL_PREFIX): Likewise.
413         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
414         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
415         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
416         (_G_VTABLE_LABEL_PREFIX): Likewise.
417         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
418         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
419         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
420         (_G_VTABLE_LABEL_PREFIX): Likewise.
421         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
422
423 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
424
425         * libio/Makefile: Include ../Makeconfig before tests.
426         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
427         only if $(build-shared) is yes.
428
429         * iconv/gconv_db.c: Update copyright years.
430
431 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
432
433         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
434         unwind info if defined PIC. Fix special cases description.
435         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
436
437         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
438         DP_HI_MASK entry.
439         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
440
441 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
442
443         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
444
445         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
446         is NULL.
447
448         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
449         (LDLIBS-tst-chk4): This.
450         (LDFLAGS-tst-chk5): Renamed to ...
451         (LDLIBS-tst-chk5): This.
452         (LDFLAGS-tst-chk6): Renamed to ...
453         (LDLIBS-tst-chk6): This.
454         (LDFLAGS-tst-lfschk4): Renamed to ...
455         (LDLIBS-tst-lfschk4): This.
456         (LDFLAGS-tst-lfschk5): Renamed to ...
457         (LDLIBS-tst-lfschk5): This.
458         (LDFLAGS-tst-lfschk6): Renamed to ...
459         (LDLIBS-tst-lfschk6): This.
460
461         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
462         on $(common-objpfx)soversions.mk.
463
464 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
465
466         [BZ #10014]
467         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
468         example host name.
469
470 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
471
472         * malloc/arena.c (arena_get_retry): New function that gets
473         another arena for the caller to try its request on.
474         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
475         current arena cannot fulfill the request.
476         (__libc_memalign): Likewise.
477         (__libc_memalign): Likewise.
478         (__libc_pvalloc): Likewise.
479         (__libc_calloc): Likewise.
480
481 2012-09-05  John Tobey  <john.tobey@gmail.com>
482
483         [BZ #13542]
484         * manual/arith.texi (Operations on Complex): Fix description
485         of carg branch cut.
486
487 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
488
489         [BZ #10014]
490         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
491         host name.
492
493         [BZ #10038]
494         * manual/memory.texi (Memory): Make order of menu items match
495         order of sections.
496
497 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
498
499         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
500         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
501         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
502
503 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
504
505         * csu/libc-tls.c (static_dtv): Renamed to ...
506         (_dl_static_dtv): This.  Make it global.
507         (_dl_initial_dtv): Removed.
508         (__libc_setup_tls): Updated.
509         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
510         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
511         DL_INITIAL_DTV.
512
513 2012-09-06  Petr Machata  <pmachata@redhat.com>
514
515         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
516         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
517         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
518         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
519
520 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
521
522         [BZ #14545]
523         * csu/libc-tls.c (_dl_initial_dtv): New variable.
524         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
525         freeing dtv[-1].
526
527 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
528
529         [BZ #14544]
530         * Makeconfig (link-static-before-libc): Replace $(+prector)
531         with $(+prectorT).
532         (link-static-after-libc): Replace $(+postctor) with
533         $(+postctorT).
534         (link-bounded): Replace $(+prector)/$(+postctor) with
535         $(+prectorT)/$(+postctorT).
536         (+prectorT): New macro.
537         (+postctorT): Likewise.
538
539 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
540
541         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
542         (round_str): Handle values above the maximum for IBM long double
543         as inexact.
544         * stdlib/tst-strtod-round.c (tests): Regenerated.
545
546 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
547
548         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
549         assembler flag.
550         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
551         zarch_nohighgprs around the zarch optimized routines.
552         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
553         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
554         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
555         for zarch.
556
557 2012-09-05  David S. Miller  <davem@davemloft.net>
558
559         * sysdeps/sparc/fpu/libm-test-ulps: Update.
560
561         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
562         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
563         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
564         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
565         entries.
566
567 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
568
569         * malloc/arena.c: Fold copyright years.
570         * malloc/mcheck.c, malloc/memusage.c: Likewise.
571
572 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
573
574         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
575
576 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
577
578         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
579
580 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
581
582         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
583         change internal state upon failure.
584
585 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
586
587         * malloc/mcheck.c (mcheck_check_all): Fix typo.
588         * malloc/memusage.c (mmap): Likewise.
589         (mmap64, mremap): Likewise.  Adjust name in comment.
590
591 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
592
593         * libio/fileops.c: Fix typos in comments.
594         * libio/oldfileops.c: Likewise.
595         * libio/wfileops.c: Likewise.
596
597 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
598
599         [BZ #1349]
600         * malloc/Makefile (tests): Add tst-malloc-usable test case.
601         (tst-malloc-usable-ENV): Set environment for test case.
602         * malloc/hooks.c (malloc_check_get_size): New function to get
603         requested size.
604         * malloc/malloc.c (musable): Use malloc_check_get_size.
605         * malloc/tst-malloc-usable.c: New test case.
606
607 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
608
609         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
610
611 2012-09-05  Allan McRae  <allan@archlinux.org>
612
613         [BZ #13966]
614         * configure.in (CXX_SYSINCLUDES): Use compiler output to
615         determine header location.
616         * configure: Regenerated.
617
618 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
619
620         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
621         float format.
622         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
623         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
624         format.
625         (test): Regenerate.
626
627 2012-09-04  David S. Miller  <davem@davemloft.net>
628
629         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
630         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
631         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
632
633 2012-09-04  Florian Weimer  <fweimer@redhat.com>
634
635         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
636         failures.
637
638         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
639
640 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
641
642         [BZ #9914]
643         * libio/iogetdelim.c: Include <limits.h>.
644         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
645         + len + 1 would overflow.
646
647 2012-09-03  Andreas Jaeger  <aj@suse.de>
648
649         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
650         * sysdeps/i386/fpu/libm-test-ulps: Update.
651
652 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
653
654         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
655         Add s_sinf-sse2, s_conf-sse2.
656
657         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
658         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
659         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
660         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
661
662         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
663         for using routine as __sinf_ia32.
664         Use macro for function declaration and weak_alias.
665         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
666         for using routine as __cosf_ia32.
667         Use macro for function declaration and weak_alias.
668
669         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
670         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
671
672         * sysdeps/x86_64/fpu/s_sinf.S: New file.
673         * sysdeps/x86_64/fpu/s_cosf.S: New file.
674         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
675
676         * math/libm-test.inc (cos_test): Add more test cases.
677         (sin_test): Likewise.
678         (sincos_test): Likewise.
679
680 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
681
682         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
683         (IFUNC_RESOLVE): Make pointers to the specialized implementations
684         hidden.
685         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
686
687 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
688
689         [BZ #14538]
690         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
691         first element of the GOT.
692         (elf_machine_load_address): Return the difference between
693         the runtime address of _DYNAMIC and elf_machine_dynamic ().
694
695 2012-09-01  Allan McRae  <allan@archlinux.org>
696
697         [BZ #13412]
698         * configure.in (AWK): Require gawk version 3.0 or later.
699         * configure: Regenerated.
700
701 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
702
703         * sysdeps/unix/sysv/linux/kernel-features.h
704         (__ASSUME_POSIX_CPU_TIMERS): Remove.
705         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
706         [__NR_clock_getres]: Make code unconditional.
707         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
708         (clock_getcpuclockid): Remove code left unreachable by removal of
709         conditionals.
710         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
711         code unconditional.
712         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
713         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
714         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
715         Make code unconditional.
716         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
717         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
718         * sysdeps/unix/sysv/linux/clock_settime.c
719         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
720         conditional code.
721         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
722         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
723
724 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
725
726         [BZ #14476]
727         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
728         scripts/test-installation.pl.
729
730         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
731         and $ld_so_version if it is set.
732
733 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
734
735         [BZ #14516]
736         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
737         failure if reading from procfs failed.
738         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
739
740 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
741
742         * sysdeps/unix/sysv/linux/kernel-features.h
743         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
744         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
745         Remove conditional code.
746         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
747         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
748         Remove conditional code.
749         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
750         * sysdeps/unix/sysv/linux/i386/fxstat.c
751         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
752         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
753         * sysdeps/unix/sysv/linux/i386/fxstatat.c
754         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
755         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
756         * sysdeps/unix/sysv/linux/i386/lxstat.c
757         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
758         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
759         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
760         Remove conditional code.
761         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
762         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
763         Remove conditional code.
764         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
765         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
766         <kernel-features.h>.
767         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
768         Remove.
769         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
770         Remove conditional code.
771         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
772         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
773         Remove conditional.
774
775 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
776
777         [BZ #5400]
778         * NEWS: Add fixed bug number.
779
780 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
781
782         [BZ #14519]
783         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
784         underflowing exponent in case of negative sign.
785         * stdlib/tst-strtod-round-data: Add more tests.
786         * stdlib/tst-strtod-round.c (tests): Regenerated.
787
788         [BZ #3479]
789         * stdlib/strtod_l.c (NDIG): Remove.
790         (HEXNDIG): Likewise.
791         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
792         smallest representable value.
793         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
794         lie within an exact representation of 1/2 ulp of the result.
795         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
796         unconditionally.
797         (TENS_P9_IDX): Define unconditionally.
798         (TENS_P9_SIZE): Likewise.
799         (TENS_P10_IDX): Likewise.
800         (TENS_P10_SIZE): Likewise.
801         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
802         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
803         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
804         entries for 10^2^13 and 10^2^14.
805         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
806         (TENS_P13_IDX): Define.
807         (TENS_P13_SIZE): Likewise.
808         (TENS_P14_IDX): Likewise.
809         (TENS_P14_SIZE): Likewise.
810         (_fpioconst_pow10): Change array size to
811         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
812         unconditional.
813         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
814         1024]: Add entries for 10^2^13 and 10^2^14.
815         [LAST_POW10 > _LAST_POW10]: Remove #error.
816         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
817         (_fpioconst_pow10): Change array size to
818         FPIOCONST_POW10_ARRAY_SIZE.
819         * stdlib/gen-fpioconst.c: New file.
820         * stdlib/gen-tst-strtod-round.c: Likewise.
821         * stdlib/tst-strtod-round-data: Likewise.
822         * stdlib/tst-strtod-round.c: Likewise.
823         * stdlib/Makefile (tests): Add tst-strtod-round.
824
825         [BZ #14459]
826         * stdlib/strtod_l.c: Include <stdint.h>.
827         (NDEBUG): Do not define.
828         (round_and_return): Change EXPONENT parameter to type intmax_t.
829         Rearrange calculations to avoid internal overflow possibilities.
830         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
831         Rearrange calculations to avoid internal overflow possibilities.
832         Assert that number fits inside MPNSIZE limbs.
833         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
834         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
835         calculations and add assertions to avoid internal overflow
836         possibilities.  Add casts to avoid signed/unsigned operations.
837         * stdlib/tst-strtod-overflow.c: New file.
838         * stdlib/Makefile (tests): Add tst-strtod-overflow.
839
840 2012-08-25  Marek Polacek  <polacek@redhat.com>
841
842         * time/time.h: Fix some typos in comments.
843
844 2012-08-23  Roland McGrath  <roland@hack.frob.com>
845
846         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
847         * posix/tst-rfc3484-2.c: Likewise.
848         * posix/tst-rfc3484-3.c: Likewise.
849
850 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
851
852         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
853         (EF_ARM_ABI_FLOAT_HARD): Likewise.
854
855 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
856
857         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
858         #include of fxstatat64.c.
859
860 2012-08-22  Roland McGrath  <roland@hack.frob.com>
861
862         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
863         * shadow/getspent_r.c: Likewise.
864         * shadow/getspnam.c: Likewise.
865         * shadow/getspnam_r.c: Likewise.
866         * gshadow/getsgent.c: Likewise.
867         * gshadow/getsgent_r.c: Likewise.
868         * gshadow/getsgnam.c: Likewise.
869         * gshadow/getsgnam_r.c: Likewise.
870         * inet/getnetbyad.c: Likewise.
871         * inet/getnetbyad_r.c: Likewise.
872         * inet/getnetbynm.c: Likewise.
873         * inet/getnetbynm_r.c: Likewise.
874         * inet/getnetent.c: Likewise.
875         * inet/getnetent_r.c: Likewise.
876         * inet/getproto.c: Likewise.
877         * inet/getproto_r.c: Likewise.
878         * inet/getprtent.c: Likewise.
879         * inet/getprtent_r.c: Likewise.
880         * inet/getprtname.c: Likewise.
881         * inet/getprtname_r.c: Likewise.
882         * inet/getrpcbyname.c: Likewise.
883         * inet/getrpcbyname_r.c: Likewise.
884         * inet/getrpcbynumber.c: Likewise.
885         * inet/getrpcbynumber_r.c: Likewise.
886         * inet/getrpcent.c: Likewise.
887         * inet/getrpcent_r.c: Likewise.
888         * inet/getaliasent.c: Likewise.
889         * inet/getaliasent_r.c: Likewise.
890         * inet/getaliasname.c: Likewise.
891         * inet/getaliasname_r.c: Likewise.
892         * nscd/getgrgid_r.c: Likewise.
893         * nscd/getgrnam_r.c: Likewise.
894         * nscd/gethstbyad_r.c: Likewise.
895         * nscd/gethstbynm3_r.c: Likewise.
896         * nscd/getpwnam_r.c: Likewise.
897         * nscd/getpwuid_r.c: Likewise.
898         * nscd/getsrvbynm_r.c: Likewise.
899         * nscd/getsrvbypt_r.c: Likewise.
900         * nscd/gai.c: Likewise.
901
902         * configure.in (build_nscd): New substituted variable, set
903         by --disable-build-nscd and defaults to $use_nscd.
904         * configure: Regenerated.
905         * config.make.in (build-nscd): New substituted variable.
906         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
907         Change conditional to require [$(build-nscd) = yes] as well.
908         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
909
910         [BZ# 13696]
911         * configure.in (use_nscd): New substituted variable, set by
912         --disable-nscd.  If enabled, define USE_NSCD.
913         * configure: Regenerated.
914         * config.h.in: Add USE_NSCD.
915         * config.make.in (use-nscd): New substituted variable.
916         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
917         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
918         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
919         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
920         (CFLAGS-getgrnam_r.c): Likewise.
921         (CFLAGS-initgroups.c): Likewise.
922         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
923         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
924         Variables removed.
925         * inet/getnetgrent_r.c
926         (nscd_setnetgrent): New function, broken out of ...
927         (setnetgrent): ... here.  Call it.
928         (innetgr): Conditionalize nscd bits on [USE_NSCD].
929         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
930         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
931         * nscd/Makefile (routines, aux): Move definitions after include of
932         Makeconfig.  Conditionalize on [$(use-nscd) != no].
933         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
934         Conditionalize on [USE_NSCD].
935         (is_nscd, nscd_init_cb): Likewise.
936         (nss_load_library): Conditionalize init callback on [USE_NSCD].
937         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
938         * nss/nss_db/db-init.c: Likewise.
939         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
940         [USE_NSCD].
941         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
942         (make_request): Use it.
943         (cache_valid_p): New function.
944         (__check_pf): Use it.
945         * NEWS: Add item for --disable-nscd.
946
947 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
948
949         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
950         to support sed >= 4.2.1-20-ga9bf076.
951         * configure: Regenerated.
952
953 2012-08-22  Roland McGrath  <roland@hack.frob.com>
954
955         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
956         Conditionalize whole body on [IREL].
957
958 2012-08-22  Jeff Law <law@redhat.com>
959
960         [BZ #14505]
961         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
962         if the family is PF_UNSPEC.
963
964 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
965
966         * Makerules (lib-version): Rename from V.
967         (install-lib-nosubdir): Change V to lib-version.
968
969 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
970
971         [BZ #14252]
972         * powerpc32/power6/wcschr.c: New file.
973         * powerpc32/power6/wcscpy.c: New file.
974         * powerpc32/power6/wcsrchr.c: New file.
975         * powerpc64/power6/wcschr.c: New file.
976         * powerpc64/power6/wcscpy.c: New file.
977         * powerpc64/power6/wcsrchr.c: New file.
978
979 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
980
981         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
982         (two_way_short_needle): Use it.
983         * string/strstr.c (AVAILABLE1_USES_J): Define.
984         * string/strcasestr.c: Likewise.
985
986         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
987         array references.
988         * string/strcasestr.c (TOLOWER): Make side-effect safe.
989
990         [BZ #11607]
991         * NEWS: Add an entry.
992         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
993         define their defaults.
994         (two_way_short_needle): Detect end-of-string on-the-fly.
995         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
996         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
997         * string/bug-strcasestr1.c: New test.
998         * string/Makefile: Run it.
999
1000 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1001
1002         [BZ #11607]
1003         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1004         the first character.
1005
1006 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1007
1008         * csu/elf-init.c (__libc_csu_irel): Function removed.
1009         * csu/libc-start.c (apply_irel): New function.
1010         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1011
1012 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1013
1014         * sysdeps/unix/sysv/linux/kernel-features.h
1015         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1016         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1017         <kernel-features.h>.
1018         [__NR_fadvise64_64]: Make code unconditional.
1019         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1020         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1021         !__NR_fadvise64_64)]: Likewise.
1022         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1023         !__NR_fadvise64_64))]: Likewise.
1024         [__NR_fadvise64]: Make code unconditional.
1025         [!__NR_fadvise64]: Remove conditional code.
1026         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1027         <kernel-features.h>.
1028         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1029         unconditional.
1030         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1031         conditional code.
1032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1033         not include <kernel-features.h>.
1034         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1035         unconditional.
1036         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1037         conditional code.
1038         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1039         include <kernel-features.h>.
1040         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1041         unconditional.
1042         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1043         conditional code.
1044
1045 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1046
1047         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1048         slight instruction rearrangements per scrollpipe analysis.
1049         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1050
1051 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1052
1053         * manual/syslog.texi (syslog; vsyslog, closelog):
1054         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1055         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1056
1057         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1058         DSOCAPS to match condition on defining it.
1059
1060 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1061
1062         * sysdeps/unix/sysv/linux/kernel-features.h
1063         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1065         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1066         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1068         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1069         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1071         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1072         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1073
1074         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1075         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1076
1077         * sysdeps/unix/sysv/linux/kernel-features.h
1078         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1079         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1080         unconditional.
1081         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1082         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1083         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1084         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1085         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1086         Make code unconditional.
1087         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1088         (__mmap64) [!__NR_mmap2]: Likewise.
1089         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1090         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1091         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1092         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1093         [__NR_mmap2]: Make code unconditional.
1094         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1095         (__mmap64) [!__NR_mmap2]: Likewise.
1096
1097 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1098
1099         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1100
1101 2012-08-18  Andreas Jaeger  <aj@suse.de>
1102
1103         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1104
1105 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1106
1107         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1108         * include/unistd.h (__have_sock_cloexec): Likewise.
1109         (__have_pipe2): Likewise.
1110         (__have_dup3): Likewise.
1111
1112 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1113
1114         [BZ #9685]
1115         * include/unistd.h (__have_pipe2): Change define into an extern int.
1116         (__have_dup3): Likewise.
1117         * socket/have_sock_cloexec.c: Include fcntl.h.
1118         (__have_pipe2): New variable.
1119         (__have_dup3): Likewise.
1120
1121 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1122
1123         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1124
1125 2012-08-17  Marek Polacek  <polacek@redhat.com>
1126
1127         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1128         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1129
1130 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1131
1132         * configure.in: Add AC_SUBST for sysheaders.
1133         * configure: Regenerated.
1134         * config.make.in (sysheaders): New substituted variable.
1135
1136         * sysdeps/unix/mkfifo.c: Moved ...
1137         * sysdeps/posix/mkfifo.c: ... here.
1138         * sysdeps/unix/mkfifoat.c: Moved ...
1139         * sysdeps/posix/mkfifoat.c: ... here.
1140
1141         * sysdeps/unix/utime.c: Moved ...
1142         * sysdeps/posix/utime.c: ... here.
1143
1144         * sysdeps/unix/time.c: Moved ...
1145         * sysdeps/posix/time.c: ... here.
1146         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1147         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1148
1149         * sysdeps/unix/nice.c: Moved ...
1150         * sysdeps/posix/nice.c: ... here.
1151
1152         * sysdeps/unix/alarm.c: Moved ...
1153         * sysdeps/posix/alarm.c: ... here.
1154
1155         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1156
1157 2012-08-17  Jeff Law <law@redhat.com>
1158
1159         * intl/Makefile (codeset_mo): New variable.
1160         ($(codeset_mo)): New target.
1161         (tst-codeset.out): Depend on that.  Remove explicit rule.
1162         (tst-gettext3.out, tst-gettext5.out): Likewise.
1163         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1164         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1165         * intl/tst-codeset.sh: Remove.
1166         * intl/tst-gettext3.sh: Likewise.
1167         * intl/tst-gettext5.sh: Likewise.
1168
1169 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1170
1171         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1172         * sysdeps/unix/syscalls.list: ... here.
1173
1174         * sysdeps/posix/getaddrinfo.c
1175         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1176         (gaiconf_init, gaiconf_reload): Use them.
1177         [!_STATBUF_ST_NSEC]
1178         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1179         Define using time_t rather than struct timespec.
1180
1181         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1182         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1183         Macros removed.
1184         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1185         [!NO_THREADS].
1186         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1187         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1188         Likewise.
1189
1190         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1191         __libc_cleanup_push argument.
1192
1193         * bits/param.h: New file.
1194         * misc/sys/param.h: New file.
1195         * include/sys/param.h: New file.
1196         * misc/Makefile (headers): Add bits/param.h.
1197         * sysdeps/generic/sys/param.h: File removed.
1198         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1199         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1200         * sysdeps/mach/hurd/bits/param.h: New file.
1201         * sysdeps/mach/hurd/sys/param.h: New file.
1202
1203         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1204         last change.
1205
1206         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1207         [_IO_MTSAFE_IO].
1208         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1209         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1210         New macros.
1211
1212         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1213         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1214         rather than -D_IO_MTSAFE_IO conditionally.
1215         * stdio-common/Makefile (CPPFLAGS): Likewise.
1216         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1217         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1218         Use $(libio-mtsafe).
1219         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1220         of -D_IO_MTSAFE_IO.
1221         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1222         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1223         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1224         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1225         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1226         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1227         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1228         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1229         (CFLAGS-fread_u_chk.c): Likewise.
1230         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1231         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1232         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1233         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1234         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1235         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1236         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1237         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1238         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1239
1240         * libio/Makefile: Test [$(libc-reentrant) = yes]
1241         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1242
1243         * Makeconfig
1244         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1245         * sysdeps/pthread/configure: File removed.
1246         * sysdeps/pthread/Makeconfig: New file.
1247         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1248         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1249
1250 2012-08-16  Gary Benson  <gbenson@redhat.com>
1251
1252         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1253         unmapping the first object in a namespace.
1254
1255 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1256
1257         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1258         (__internal_setnetgrent): ... this.  Add internal_function to
1259         definition.  Add libc_hidden_def.
1260         (setnetgrent): Update caller.
1261         (internal_endnetgrent): Renamed to ...
1262         (__internal_endnetgrent): ... this.  Add internal_function to
1263         definition.  Add libc_hidden_def.
1264         (endnetgrent): Update caller.
1265         (internal_getnetgrent_r): Renamed to ...
1266         (__internal_getnetgrent_r): ... this.  Add internal_function to
1267         definition.  Add libc_hidden_def.
1268         (__getnetgrent_r): Update caller.
1269         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1270
1271 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1272
1273         * stdlib/longlong.h: Update from GCC.
1274
1275 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1276
1277         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1278         on _QL, which is set by umul_ppmm but never used.
1279         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1280         variables, which are set by GMP macros but never used.
1281         * stdio-common/_itowa.c (_itowa): Likewise.
1282         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1283         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1284
1285 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1286
1287         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1288         struct La_sh_regs is not constant.
1289         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1290         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1291         and struct La_sparc64_regs are not constant.
1292
1293 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1294
1295         * sysdeps/unix/sysv/linux/kernel-features.h
1296         (__ASSUME_POSIX_TIMERS): Remove.
1297         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1298         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1299         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1300         Make code unconditional.
1301         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1302         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1303         Make code unconditional.
1304         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1305         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1306         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1307         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1308         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1309         Make code unconditional.
1310         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1311         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1312         (__libc_missing_posix_timers): Remove.
1313
1314 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1315
1316         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1317         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1318
1319         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1320
1321         * elf/dl-sym.c: Include <stdlib.h>.
1322
1323         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1324         constants, which avoids warnings in 32-bit builds.
1325
1326         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1327         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1328
1329         * misc/lseek.c: File moved to ...
1330         * io/lseek.c: ... here.
1331
1332         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1333
1334         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1335         shifting LEN more than 31 bits at once.
1336
1337 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1338
1339         [BZ #14195]
1340         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1341         segmentation fault for a case of two empty input strings.
1342         * string/test-strncasecmp.c (check1): Renamed to...
1343         (bz12205): ...this.
1344         (bz14195): Add new testcase for two empty input strings and N > 0.
1345         (test_main): Call new testcase, adapt for renamed function.
1346
1347 2012-08-15  Andreas Jaeger  <aj@suse.de>
1348
1349         [BZ #14090]
1350         * crypt/md5test2.c: New test, based on test supplied by Serge
1351         Belyshev <belyshev@depni.sinp.msu.ru>.
1352         * crypt/Makefile (xtests): Add md5test-giant..
1353         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1354
1355 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1356
1357         [BZ #14090]
1358         * crypt/md5.c (md5_process_block): Don't assume the buffer
1359         length is less than 2**32.
1360         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1361         length is less than 2**64.
1362
1363 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1364
1365         * string/str-two-way.h: Include <sys/param.h>.
1366         (MAX): Macro removed.
1367
1368         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1369         Move #define and #undef of memmove to just before and after
1370         including <string.h>.
1371
1372         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1373         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1374         and after including <string.h>.  Move declarations of
1375         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1376         to before #include "string/memmove.c".
1377
1378         * include/dirent.h: Declare __getdirentries.
1379
1380         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1381         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1382
1383 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1384
1385         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1386         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1387         * sysdeps/i386/configure: Regenerated.
1388         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1389         STABS_CURRENT_FILE, and STABS_FUN.
1390         (END): Remove call to STABS_FUN_END.
1391         (STABS_CURRENT_FILE1): Delete.
1392         (STABS_CURRENT_FILE): Likewise.
1393         (STABS_FUN): Likewise.
1394         (STABS_FUN_END): Likewise.
1395         (STABS_FUN2): Likewise.
1396         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1397         * sysdeps/x86_64/configure: Regenerated.
1398
1399 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1400
1401         * elf/dl-open.c: Include <atomic.h>.
1402         * elf/dl-lookup.c: Likewise.
1403
1404 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1405
1406         * sysdeps/unix/sysv/linux/kernel-features.h
1407         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1408         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1409         unconditionally.
1410         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1411         unconditionally.
1412         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1413         condition on __ASSUME_CLONE_THREAD_FLAGS.
1414
1415 2012-08-14  Andreas Jaeger  <aj@suse.de>
1416
1417         * sysdeps/i386/fpu/libm-test-ulps: Update.
1418
1419 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1420
1421         * include/atomic.h (atomic_exchange_and_add): Split into ...
1422         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1423         New atomic macros.
1424
1425 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1426
1427         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1428
1429 2012-08-13  Jeff Law <law@redhat.com>
1430
1431         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1432         null byte in the output string.
1433
1434 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1435
1436         * sysdeps/unix/sysv/linux/kernel-features.h
1437         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1438         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1439         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1440         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1441         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1442         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1443         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1444
1445 2012-08-09  Jeff Law <law@redhat.com>
1446
1447         [BZ #13939]
1448         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1449         When avoid_arena is set, don't retry in the that arena.  Pick the
1450         next one, whatever it might be.
1451         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1452         (arena_lock): Pass in new parameter to arena_get2.
1453         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1454         arena_get2.
1455         (__libc_malloc): Unify retrying after main arena failure with
1456         __libc_memalign version.
1457         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1458
1459 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1460
1461         [BZ #14166]
1462         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1463         to __redirect_strstr.
1464         (__strstr_sse42): Use typeof __redirect_strstr.
1465         (__strstr_ia32): Likewise.
1466         (__libc_strstr): New prototype.
1467         (strstr): Renamed to ...
1468         (__libc_strstr): This.
1469         (strstr): New strong alias of __libc_strstr.
1470         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1471         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1472         __redirect_time.
1473         Include <time.h>.
1474         (__libc_time): New prototype.
1475         (time_ifunc): Replace time with __libc_time.
1476         (time): New strong alias and hidden definition of __libc_time.
1477         (__GI_time): Remove strong alias.
1478         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1479         Include <stddef.h>.
1480         (memmove): Redefined to __redirect_memmove.
1481         (__memmove_sse2): Use typeof __redirect_memmove.
1482         (__memmove_ssse3): Likewise.
1483         (__memmove_ssse3_back): Likewise.
1484         (__libc_memmove): New prototype.
1485         (memmove): Renamed to ...
1486         (__libc_memmove): This.
1487         (memmove): New strong alias of __libc_memmove.
1488
1489 2012-08-08  Mark Salter  <msalter@redhat.com>
1490
1491         * elf/elf.h
1492         (R_MN10300_TLS_GD): Define.
1493         (R_MN10300_TLS_LD): Likewise.
1494         (R_MN10300_TLS_LDO): Likewise.
1495         (R_MN10300_TLS_GOTIE): Likewise.
1496         (R_MN10300_TLS_IE): Likewise.
1497         (R_MN10300_TLS_LE): Likewise.
1498         (R_MN10300_TLS_DTPMOD): Likewise.
1499         (R_MN10300_TLS_DTPOFF): Likewise.
1500         (R_MN10300_TLS_TPOFF): Likewise.
1501         (R_MN10300_SYM_DIFF): Likewise.
1502         (R_MN10300_ALIGN): Likewise.
1503         (R_MN10300_NUM): Update.
1504
1505 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1506
1507         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1508         Remove.
1509
1510 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1511
1512         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1513
1514         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1515         sysdeps/unix -> sysdeps/posix move.
1516         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1517
1518 2012-08-07      Allan McRae     <allan@archlinux.org>
1519
1520         [BZ #14303]
1521         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1522         (SUNOS_CPP): Likewise.
1523         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1524         not found.
1525         (open_input): Call CPP using execvp.
1526
1527 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1528
1529         * sysdeps/unix/sysv/linux/kernel-features.h
1530         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1531         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1532         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1533         (__ASSUME_WAITID_SYSCALL): Likewise.
1534         * sysdeps/unix/sysv/linux/dl-execstack.c
1535         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1536         code unconditional.
1537         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1538         conditional code.
1539         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1540         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1541         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1542         code.
1543         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1544         unconditional.
1545         [__ASSUME_WAITID_SYSCALL]: Likewise.
1546         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1547
1548 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1549
1550         * sysdeps/unix/closedir.c: Renamed to ...
1551         * sysdeps/posix/closedir.c: ... here.
1552         * sysdeps/unix/dirfd.c: Renamed to ...
1553         * sysdeps/posix/dirfd.c: ... here.
1554         * sysdeps/unix/dirstream.h: Renamed to ...
1555         * sysdeps/posix/dirstream.h: ... here.
1556         * sysdeps/unix/fdopendir.c: Renamed to ...
1557         * sysdeps/posix/fdopendir.c: ... here.
1558         * sysdeps/unix/opendir.c: Renamed to ...
1559         * sysdeps/posix/opendir.c: ... here.
1560         * sysdeps/unix/readdir.c: Renamed to ...
1561         * sysdeps/posix/readdir.c: ... here.
1562         * sysdeps/unix/readdir_r.c: Renamed to ...
1563         * sysdeps/posix/readdir_r.c: ... here.
1564         * sysdeps/unix/rewinddir.c: Renamed to ...
1565         * sysdeps/posix/rewinddir.c: ... here.
1566         * sysdeps/unix/seekdir.c: Renamed to ...
1567         * sysdeps/posix/seekdir.c: ... here.
1568         * sysdeps/unix/telldir.c: Renamed to ...
1569         * sysdeps/posix/telldir.c: ... here.
1570         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1571         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1572         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1573         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1574
1575         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1576         * bits/fcntl.h: ... here.
1577
1578         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1579         not 0.
1580         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1581         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1582         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1583         (struct flock): Move l_start, l_len to the beginning.
1584         Use __pid_t for l_pid.
1585         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1586         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1587         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1588         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1589         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1590         [__USE_LARGEFILE64] (struct flock64): New type.
1591         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1592
1593         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1594         * bits/dirent.h: ... here.
1595
1596         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1597         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1598
1599 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1600
1601         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1602         Change from 2.6.0 to 2.6.16.
1603         * sysdeps/unix/sysv/linux/configure: Regenerated.
1604         * sysdeps/unix/sysv/linux/kernel-features.h
1605         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1606         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1607         version.
1608         (__ASSUME_UTIMES): Likewise.
1609         (__ASSUME_CLONE_STOPPED): Remove.
1610         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1611         architectures, not kernel version.
1612         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1613         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1614         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1615         (__ASSUME_WAITID_SYSCALL): Likewise.
1616         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1617         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1618         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1619         refer to older versions.
1620
1621 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1622
1623         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1624         Define alphasort64 as an alias.
1625         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1626         Define versionsort64 as an alias.
1627         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1628         Define scandir64 as an alias.
1629         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1630         Define scandirat64 as an alias.
1631         * dirent/alphasort64.c (alphasort64):
1632         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1633         * dirent/versionsort64.c: Likewise.
1634         * dirent/scandir64.c: Likewise.
1635         * dirent/scandirat64.c: Likewise.
1636         * sysdeps/wordsize-64/alphasort.c: File removed.
1637         * sysdeps/wordsize-64/alphasort64.c: File removed.
1638         * sysdeps/wordsize-64/scandir.c: File removed.
1639         * sysdeps/wordsize-64/scandir64.c: File removed.
1640         * sysdeps/wordsize-64/scandirat.c: File removed.
1641         * sysdeps/wordsize-64/scandirat64.c: File removed.
1642         * sysdeps/wordsize-64/versionsort.c: File removed.
1643         * sysdeps/wordsize-64/versionsort64.c: File removed.
1644         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1645         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1646         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1647         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1648         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1649         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1650         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1651         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1652
1653         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1654         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1655         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1656         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1657         [defined __arch64__ || defined __sparcv9]
1658         (__INO_T_MATCHES_INO64_T): New macro.
1659         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1660         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1661         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1662         * sysdeps/unix/sysv/linux/bits/dirent.h
1663         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1664         (_DIRENT_MATCHES_DIRENT64): New macro.
1665
1666         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1667         Define lockf64 as an alias.
1668         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1669         Define fseeko64 as an alias.
1670         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1671         Define ftello64 as an alias.
1672         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1673         Define _IO_fgetpos64 and fgetpos64 as aliases.
1674         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1675         Define _IO_fsetpos64 and fsetpos64 as aliases.
1676         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1677         Conditionalize body on this.
1678         * libio/fseeko64.c: Likewise.
1679         * libio/ftello64.c: Likewise.
1680         * libio/iofgetpos64.c: Likewise.
1681         * libio/iofsetpos64.c: Likewise.
1682         * sysdeps/wordsize-64/lockf.c: File removed.
1683         * sysdeps/wordsize-64/lockf64.c: File removed.
1684         * sysdeps/wordsize-64/fseeko.c: File removed.
1685         * sysdeps/wordsize-64/fseeko64.c: File removed.
1686         * sysdeps/wordsize-64/ftello.c: File removed.
1687         * sysdeps/wordsize-64/ftello64.c: File removed.
1688         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1689         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1690         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1691         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1692         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1693         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1694         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1695         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1696         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1697         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1698         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1699         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1700         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1701         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1702
1703         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1704         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1705         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1706         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1707         [defined __arch64__ || defined __sparcv9]
1708         (__OFF_T_MATCHES_OFF64_T): New macro.
1709         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1710         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1711         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1712         (__OFF_T_MATCHES_OFF64_T): New macro.
1713
1714 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1715
1716         * stdlib/secure-getenv.c (__secure_getenv): Replace
1717         GLIBC_2_16 with GLIBC_2_17.
1718
1719 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1720
1721         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1722         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1723
1724 2012-08-03  David S. Miller  <davem@davemloft.net>
1725
1726         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1727
1728 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1729
1730         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1731         Remove.
1732         (__ASSUME_CORRECT_SI_PID): Likewise.
1733         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1734         (__ASSUME_TMPFS_NAME): Likewise.
1735         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1736         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1737         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1738         (HAVE_AUX_SECURE): Make definition unconditional.
1739         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1740         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1741
1742 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1743
1744         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1745         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1746         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1747         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1748         __eloop_threshold instead of SYMLOOP_MAX.
1749
1750         * sysdeps/generic/eloop-threshold.h: New file.
1751         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1752         of MAXSYMLINKS.
1753         * elf/chroot_canon.c (chroot_canon): Likewise.
1754
1755 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1756
1757         [BZ #13717]
1758         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1759         Change to 2.6.0 everywhere.
1760         * sysdeps/unix/sysv/linux/configure: Regenerated.
1761         * sysdeps/unix/sysv/linux/kernel-features.h
1762         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1763         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1764         kernel versions.
1765         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1766         (__ASSUME_FUTEX_REQUEUE): Remove.
1767         (__ASSUME_STATFS64): Define unconditionally.
1768         (__ASSUME_AT_SECURE): Likewise.
1769         (__ASSUME_CORRECT_SI_PID): Likewise.
1770         (__ASSUME_TGKILL): Define without depending on kernel version for
1771         i386.
1772         (__ASSUME_UTIMES): Likewise.
1773         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1774         kernel version.
1775         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1776         (__ASSUME_TMPFS_NAME): Likewise.
1777         * README: Update reference to Linux kernel versions.
1778
1779 2012-08-02  Marek Polacek  <polacek@redhat.com>
1780
1781         [BZ# 14150]
1782         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1783         libc_cv_asm_type_prefix with %.
1784         * configure: Regenerated.
1785         * include/libc-symbols.h: Remove comment about
1786         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1787         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1788         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1789         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1790         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1791         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1792         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1793         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1794         * elf/tst-unique2mod1.c: Likewise.
1795         * elf/tst-unique1mod2.c: Likewise.
1796         * elf/tst-unique1mod1.c: Likewise.
1797         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1798         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1799         Replace ASM_TYPE_DIRECTIVE with .type.
1800         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1801         * sysdeps/i386/sysdep.h: Likewise.
1802         * sysdeps/x86_64/sysdep.h: Likewise.
1803         * sysdeps/sh/sysdep.h: Likewise.
1804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1805         Do not define ASM_TYPE_DIRECTIVE.
1806         * sysdeps/powerpc/sysdep.h: Likewise.
1807         * sysdeps/powerpc/powerpc32/sysdep.h:
1808         Replace ASM_TYPE_DIRECTIVE with .type.
1809         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1810         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1811         * sysdeps/i386/fpu/e_powf.S: Likewise.
1812         * sysdeps/i386/fpu/e_expl.S: Likewise.
1813         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1814         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1815         * sysdeps/i386/fpu/e_pow.S: Likewise.
1816         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1817         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1818         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1819         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1820         * sysdeps/i386/fpu/e_log2.S: Likewise.
1821         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1822         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1823         * sysdeps/i386/fpu/e_powl.S: Likewise.
1824         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1825         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1826         * sysdeps/i386/fpu/e_logl.S: Likewise.
1827         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1828         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1829         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1830         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1831         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1832         * sysdeps/i386/fpu/e_log.S: Likewise.
1833         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1834         * sysdeps/i386/fpu/e_logf.S: Likewise.
1835         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1836         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1837         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1838         * sysdeps/i386/fpu/e_log10.S: Likewise.
1839         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1840         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1841         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1842         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1843         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1844         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1845         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1846         * sysdeps/i386/i686/strtok.S: Likewise.
1847         * sysdeps/i386/i386-mcount.S: Likewise.
1848         * sysdeps/i386/strtok.S: Likewise.
1849         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1850         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1851         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1852         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1853         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1854         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1855         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1856         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1857         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1858         * sysdeps/x86_64/_mcount.S: Likewise.
1859         * sysdeps/x86_64/strtok.S: Likewise.
1860         * sysdeps/sh/_mcount.S: Likewise.
1861
1862 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1863
1864         * libio/iofopen.c: Include <fcntl.h>.
1865         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1866         (_IO_fopen64, fopen64): Define as aliases.
1867         * libio/iofopen64.c: Include <fcntl.h>.
1868         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1869         Conditionalize body on this.
1870         * sysdeps/wordsize-64/iofopen.c: File removed.
1871         * sysdeps/wordsize-64/iofopen64.c: File removed.
1872
1873 2012-08-01  Marek Polacek  <polacek@redhat.com>
1874
1875         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1876         Use dlfcn directly instead of a variable.
1877         (binfmt-subdir): Do not define.
1878         (dlfcn): Likewise.
1879
1880 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1881
1882         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1883         Remove all definitions.
1884         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1885         <kernel-features.h>.
1886         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1887         (miss_F_GETOWN_EX): Remove all definitions.
1888         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1889         macro definition.
1890         [!__ASSUME_FCNTL64]: Remove conditional code.
1891         [__ASSUME_FCNTL64]: Make code unconditional.
1892         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1893         <kernel-features.h>.
1894         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1895         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1896         (lockf64) [__NR_fcntl64]: Make code unconditional.
1897         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1898
1899         * sysdeps/unix/sysv/linux/kernel-features.h
1900         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1901         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1902         Make code unconditional.
1903         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1904         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1906         [__NR_vfork]: Make code unconditional.
1907         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1908         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1910         [__NR_vfork]: Make code unconditional.
1911         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1912         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1913
1914 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1915
1916         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1917         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
1918
1919         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1920         Define mkstemp64 as an alias.
1921         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1922         Define mkstemps64 as an alias.
1923         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1924         Define mkostemp64 as an alias.
1925         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1926         Define mkostemps64 as an alias.
1927         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
1928         Conditionalize body on this.
1929         * misc/mkostemp64.c: Likewise.
1930         * misc/mkostemps64.c: Likewise.
1931         * misc/mkstemps64.c: Likewise.
1932         * sysdeps/wordsize-64/mkstemp64.c: File removed.
1933         * sysdeps/wordsize-64/mkostemp64.c: File removed.
1934         * sysdeps/wordsize-64/mkostemp.c: File removed.
1935         * sysdeps/wordsize-64/mkstemp.c: File removed.
1936         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
1937         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
1938         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
1939         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
1940
1941         [BZ #14138]
1942         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
1943         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
1944         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
1945         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
1946
1947         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
1948         compat_symbol macros from <shlib-compat.h> rather than the underlying
1949         default_symbol_version and symbol_version macros, so that DEFAULT
1950         lines in shlib-versions are respected.
1951         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1952
1953 2012-08-01  Florian Weimer  <fweimer@redhat.com>
1954
1955         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
1956         Declare with warn_unused_result.
1957         (setgid, setregid, setegid, setresgid): Likewise.
1958         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
1959         Likewise.
1960         * WUR-REPORT: Remove set*id functions.
1961
1962 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
1963
1964         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
1965
1966 2012-07-31  Roland McGrath  <roland@hack.frob.com>
1967
1968         * include/sys/socket.h (__libc_accept, __libc_accept4):
1969         Add attribute_hidden.
1970         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
1971
1972         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
1973         use of PTR_MANGLE.
1974         * inet/getnetgrent_r.c (setup): Likewise.
1975
1976         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
1977
1978 2012-07-31  David S. Miller  <davem@davemloft.net>
1979
1980         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1981
1982 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
1983
1984         [BZ #13629]
1985         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
1986         value between 1.0 and 2.0 and smaller part has absolute value less
1987         than 1.0.
1988         * math/s_clog10.c (__clog10): Likewise.
1989         * math/s_clog10f.c (__clog10f): Likewise.
1990         * math/s_clog10l.c (__clog10l): Likewise.
1991         * math/s_clogf.c (__clogf): Likewise.
1992         * math/s_clogl.c (__clogl): Likewise.
1993         * math/libm-test.inc (clog_test): Add more tests.
1994         (clog10_test): Likewise.
1995         * sysdeps/i386/fpu/libm-test-ulps: Update.
1996         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1997
1998 2012-07-31  Florian Weimer  <fweimer@redhat.com>
1999
2000         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2001         Exit with zero in case no suitable GID is found, and write a
2002         message to standard error.
2003
2004 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2005
2006         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2007         rather than to 1.
2008         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2009         (MAXPATHLEN): Removed.
2010         (NOGROUP, NODEV): New macros.
2011         (setbit, clrbit, isset, isclr): New macros.
2012         (howmany, roundup, powerof2): New macros.
2013         (DEV_BSIZE): New macro.
2014
2015         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2016         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2017
2018         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2019         definition on [!__NO_LONG_DOUBLE_MATH].
2020
2021         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2022         PTR_MANGLE and PTR_DEMANGLE.
2023
2024         * socket/accept4.c (accept4): Rename to __libc_accept4.
2025         Define accept4 as a weak alias.
2026
2027         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2028         on [_DIRENT_HAVE_D_TYPE].
2029         * io/ftw.c (ftw_dir): Likewise.
2030
2031         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2032
2033         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2034
2035         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2036         Use the BSD numbers rather than the arbitrary ones we had.
2037         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2038         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2039         (SIGXCPU, SIGXFSZ): New macros.
2040         (_NSIG): Now 32.
2041
2042         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2043         initializer on [_LIBC_REENTRANT].
2044
2045         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2046         definitions inside [_POSIX_MAPPED_FILES].
2047
2048         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2049
2050         * dirent/opendir.c: Include <fcntl.h>.
2051
2052         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2053         (__libc_getspecific): Likewise.
2054         (__libc_key_create): Likewise.
2055
2056         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2057         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2058         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2059         (tmpfile64): Define as alias.
2060         * sysdeps/wordsize-64/tmpfile.c: File removed.
2061         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2062         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2063         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2064
2065         * stdio-common/vfscanf.c: Include <stdbool.h>.
2066         * nss/makedb.c: Likewise.
2067         * stdio-common/_i18n_number.h: Likewise.
2068         * argp/argp-help.c: Likewise.
2069         * posix/wordexp.c: Likewise.
2070         * sysdeps/posix/spawni.c: Likewise.
2071         * nss/nss_files/files-initgroups.c: Likewise.
2072         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2073         * nss/nss_files/files-initgroups.c: Likewise.
2074         * nss/nss_db/db-netgrp.c: Likewise.
2075         * nss/nss_db/db-initgroups.c: Likewise.
2076         * io/fchmodat.c: Include <sys/stat.h>.
2077
2078         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2079         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2080
2081         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2082         [HAVE_MMAP].
2083
2084         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2085         Add multiple inclusion protection.
2086
2087 2012-07-27  David S. Miller  <davem@davemloft.net>
2088
2089         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2090
2091 2012-07-27  Gary Benson  <gbenson@redhat.com>
2092
2093         [BZ #14298]
2094         * elf/rtld.c: Include <stap-probe.h>.
2095         (dl_main): Added static probes "init_start" and "init_complete".
2096         * elf/dl-load.c: Include <stap-probe.h>.
2097         (lose): Take new parameter "nsid".
2098         Added static probe "map_failed".
2099         (_dl_map_object_from_fd): Pass namespace id to lose.
2100         Added static probe "map_start".
2101         (open_verify): Pass namespace id to lose.
2102         * elf/dl-open.c: Include <stap-probe.h>.
2103         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2104         and "reloc_complete".
2105         * elf/dl-close.c: Include <stap-probe.h>.
2106         (_dl_close_worker): Added static probes "unmap_start" and
2107         "unmap_complete".
2108         * elf/rtld-debugger-interface.txt: New file documenting the above.
2109
2110 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2111
2112         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2113         rather than a string variable.
2114         * sunrpc/rpc_main.c (h_output): Likewise.
2115         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2116
2117 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2118
2119         * inet/check_native.c: New file.
2120
2121 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2122
2123         [BZ #13629]
2124         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2125         if larger part has absolute value 1.0.
2126         * math/s_clog10.c (__clog10): Likewise.
2127         * math/s_clog10f.c (__clog10f): Likewise.
2128         * math/s_clog10l.c (__clog10l): Likewise.
2129         * math/s_clogf.c (__clogf): Likewise.
2130         * math/s_clogl.c (__clogl): Likewise.
2131         * math/libm-test.inc (clog_test): Add more tests.
2132         (clog10_test): Likewise.
2133         * sysdeps/i386/fpu/libm-test-ulps: Update.
2134         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2135
2136         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2137         (pltexit): Likewise.
2138         (La_regs): Likewise.
2139         (La_retval): Likewise.
2140         (int_retval): Likewise.
2141         Update #error for removed macros to refer only to definitions in
2142         tst-audit.h.
2143         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2144         macro.
2145         (pltexit): Likewise.
2146         (La_regs): Likewise.
2147         (La_retval): Likewise.
2148         (int_retval): Likewise.
2149         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2150         macro.
2151         (pltexit): Likewise.
2152         (La_regs): Likewise.
2153         (La_retval): Likewise.
2154         (int_retval): Likewise.
2155         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2156         macro.
2157         (pltexit): Likewise.
2158         (La_regs): Likewise.
2159         (La_retval): Likewise.
2160         (int_retval): Likewise.
2161         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2162         macro.
2163         (pltexit): Likewise.
2164         (La_regs): Likewise.
2165         (La_retval): Likewise.
2166         (int_retval): Likewise.
2167         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2168         macro.
2169         (pltexit): Likewise.
2170         (La_regs): Likewise.
2171         (La_retval): Likewise.
2172         (int_retval): Likewise.
2173         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2174         macro.
2175         (pltexit): Likewise.
2176         (La_regs): Likewise.
2177         (La_retval): Likewise.
2178         (int_retval): Likewise.
2179         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2180         macro definitions in tst-audit.h.
2181         * sysdeps/i386/tst-audit.h: New file.
2182         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2183         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2184         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2185         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2186         * sysdeps/sh/tst-audit.h: Likewise.
2187         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2188         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2189         * sysdeps/x86_64/tst-audit.h: Likewise.
2190
2191 2012-07-26  Andreas Jaeger  <aj@suse.de>
2192
2193         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2194         ptrace.
2195
2196         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2197         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2198         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2199         PTRACE_O_MASK.
2200         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2201         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2202         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2203
2204         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2205         value.
2206
2207         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2208         _sigsys.
2209         (si_call_addr, si_syscall, si_arch): Define new macro.
2210         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2211         _sigsys.
2212         (si_call_addr, si_syscall, si_arch): Define new marcro.
2213         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2214         _sigsys.
2215         (si_call_addr, si_syscall, si_arch): Define new macro.
2216         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2217         _sigsys.
2218         (si_call_addr, si_syscall, si_arch): Define new macro.
2219
2220 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2221
2222         [BZ #13717]
2223         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2224         Change to 2.4.21 where previously 2.4.1.
2225         * sysdeps/unix/sysv/linux/configure: Regenerated.
2226         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2227         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2228         Linux kernel version.
2229         (__ASSUME_STD_AUXV): Remove.
2230         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2231         kernel version.
2232         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2233         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2234         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2235         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2236         (__ASSUME_NETLINK_SUPPORT): Likewise.
2237         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2238         (__no_netlink_support): Remove conditional definition.
2239         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2240         Remove.
2241         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2242         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2243         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2244         (if_nameindex_ioctl): Remove.
2245         (if_nameindex_netlink): Do not handle __no_netlink_support.
2246         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2247         code.
2248         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2249         Remove conditional code.
2250         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2251         code.
2252         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2253         unconditional.
2254         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2255         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2256         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2257         Remove.
2258         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2259         [!__ASSUME_STD_AUXV]: Remove conditional code.
2260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2261         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2262         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2264         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2265         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2266         code.
2267         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2269         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2270         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2271         conditional code.
2272         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2274         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2275         code.
2276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2277         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2278         conditional code.
2279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2280         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2281         code unconditional.
2282         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2283         conditional code.
2284         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2285         unconditional.
2286         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2287         conditional code.
2288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2289         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2290         unconditional.
2291         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2292         conditional code.
2293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2294         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2295         code unconditional.
2296         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2297         conditional code.
2298         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2299         unconditional.
2300         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2301         conditional code.
2302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2303         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2304         code unconditional.
2305         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2306         conditional code.
2307         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2308         unconditional.
2309         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2310         conditional code.
2311
2312 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2313
2314         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2315         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2316         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2317         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2318         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2319         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2320         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2321         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2322         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2323         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2324         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2325         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2326         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2327         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2328         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2329         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2330         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2331         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2332         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2333         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2334         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2335         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2336         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2337
2338 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2339
2340         * Versions.def: Add GLIBC_2.17.
2341         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2342         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2343         Introduce __libc_secure_getenv.
2344         * stdlib/Versions (2.17): Add secure_getenv
2345         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2346         * stdlib/secure-getenv.c: Rename __secure_getenv to
2347         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2348         symbol __secure_getenv for GLIBC_2.0.
2349         * stdlib/tst-secure-getenv.c: New.
2350         * stdlib/Makefile (tests): Add testcase.
2351         * manual/startup.texi (Environment Access): Document
2352         secure_getenv.
2353         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2354         __libc_secure_getenv.
2355         * inet/ruserpass.c (ruserpass): Likewise.
2356         * malloc/mtrace.c (mtrace): Likewise.
2357         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2358         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2359         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2360         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2361         HAVE_SECURE_GETENV.
2362         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2363         __secure_getenv to __libc_secure_getenv.
2364         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2366         Likewise.
2367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2368         Likewise.
2369         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2370         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2371         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2372         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2373         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2374         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2375         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2376
2377 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2378
2379         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2380         (struct La_i86_retval): Likewise.
2381         (struct La_x86_64_regs): Likewise.
2382         (struct La_x86_64_retval): Likewise.
2383         (struct La_x32_regs): Likewise.
2384         (struct La_x32_retval): Likewise.
2385         (struct La_ppc32_regs): Likewise.
2386         (struct La_ppc32_retval): Likewise.
2387         (struct La_ppc64_regs): Likewise.
2388         (struct La_ppc64_retval): Likewise.
2389         (struct La_sh_regs): Likewise.
2390         (struct La_sh_retval): Likewise.
2391         (struct La_s390_32_regs): Likewise.
2392         (struct La_s390_32_retval): Likewise.
2393         (struct La_s390_64_regs): Likewise.
2394         (struct La_s390_64_retval): Likewise.
2395         (struct La_sparc32_regs): Likewise.
2396         (struct La_sparc32_retval): Likewise.
2397         (struct La_sparc64_regs): Likewise.
2398         (struct La_sparc64_retval): Likewise.
2399         (struct audit_ifaces): Remove architecture-specific pltenter and
2400         pltexit members.
2401         * sysdeps/i386/ldsodefs.h: New file.
2402         * sysdeps/powerpc/ldsodefs.h: Likewise.
2403         * sysdeps/s390/ldsodefs.h: Likewise.
2404         * sysdeps/sh/ldsodefs.h: Likewise.
2405         * sysdeps/sparc/ldsodefs.h: Likewise.
2406         * sysdeps/x86_64/ldsodefs.h: Likewise.
2407
2408 2012-07-25  Marek Polacek  <polacek@redhat.com>
2409
2410         [BZ #6808]
2411         * math/libm-test.inc (yn_test): Add another test.
2412         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2413         to ERANGE when the result is +-Inf.
2414         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2415         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2416         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2417         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2418
2419 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2420
2421         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2422         equal to 0.
2423         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2424         clock_t.
2425         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2426
2427 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2428
2429         * configure.in <sysdeps resolving>: Correct printing
2430         Implies_before.
2431         * configure: Regenerate.
2432
2433 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2434
2435         * math/w_ilogb.c: Include <limits.h>.
2436         * math/w_ilogbl.c: Likewise.
2437
2438 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2439
2440         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2441         va_copy.  Document allowing for unavailable va_copy only as
2442         pre-C99 compatibility.
2443         * manual/string.texi (Copying and Concatenation): Use va_copy
2444         instead of __va_copy in concat example.
2445
2446 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2447
2448         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2449         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2450         it if not null.
2451
2452         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2453         with O_NOLINK passed to __file_name_lookup.
2454
2455         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2456         with O_NOLINK passed to __file_name_lookup.
2457
2458         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2459         negative N or less than NGIDS.
2460
2461         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2462         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2463         enough.  Use memcpy instead of strncpy.
2464
2465 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2466
2467         * elf/Makefile (check-data): Remove.
2468         (localplt.data): New vpath directive.
2469         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2470         instead of $(check-data).
2471         * scripts/data/localplt-generic.data: Move to ...
2472         * sysdeps/generic/localplt.data: ... here.
2473         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2474         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2475         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2477         ... here.
2478         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2480         ... here.
2481         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2482         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2483         ... here.
2484         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2485         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2486         ... here.
2487         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2488         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2489         ... here.
2490         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2491         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2492         ... here.
2493
2494 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2495
2496         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2497         PPC32 and PPC64 files.
2498         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2499         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2500
2501 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2502
2503         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2504         __makecontext_ret to ...
2505         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2506         ... here and call exit if uc_link is NULL.  New file.
2507         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2508         __makecontext_ret.S.
2509         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2510         __makecontext_ret to ...
2511         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2512         ... here and call exit if uc_link is NULL.  New file.
2513         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2514         __makecontext_ret.S.
2515
2516 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2517
2518         * elf/elf.h (R_390_IRELATIVE): New definition.
2519         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2520         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2521         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2522         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2523         (elf_machine_lazy_rel): Likewise.
2524         * sysdeps/s390/dl-irel.h: New file.
2525         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2526         * sysdeps/s390/s390-64/memset.S: New asm code.
2527         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2528         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2529         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2530         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2531         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2532         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2533         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2534         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2535         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2536         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2537         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2538         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2539         * sysdeps/s390/s390-32/memset.S: New asm code.
2540         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2541
2542 2012-07-17  Marek Polacek  <polacek@redhat.com>
2543
2544         [BZ #14349]
2545         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2546         * sysdeps/s390/s390-64/configure.in: Likewise.
2547         * sysdeps/sparc/configure.in: Likewise.
2548         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2549         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2550         * sysdeps/i386/configure.in: Likewise.
2551         * sysdeps/x86_64/configure.in: Likewise.
2552         * sysdeps/sh/configure.in: Likewise.
2553         * sysdeps/s390/s390-32/configure: Regenerated.
2554         * sysdeps/s390/s390-64/configure: Likewise.
2555         * sysdeps/x86_64/configure: Likewise.
2556         * sysdeps/sh/configure: Likewise.
2557         * sysdeps/powerpc/powerpc64/configure: Likewise.
2558         * sysdeps/powerpc/powerpc32/configure: Likewise.
2559         * sysdeps/sparc/configure: Likwise.
2560         * sysdeps/i386/configure: Likewise.
2561
2562         * elf/dl-open.c: Comment fixes.
2563
2564 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2565
2566         * Makefile [CXX] (check-data): Remove.
2567         [CXX] (c++-types.data): New vpath directive.
2568         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2569         vpath.  Do not allow for C++ type data being missing.
2570         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2571         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2572         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2573         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2574         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2575         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2576         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2578         ... here.
2579         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2581         ... here.
2582         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2583         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2584         ... here.
2585         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2586         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2587         ... here.
2588         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2589         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2590         ... here.
2591         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2592         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2593         ... here.
2594         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2595         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2596         ... here.
2597         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2598         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2599
2600         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2601         definitions to architecture-specific files.
2602         (TLS_IE): Likewise.
2603         (TLS_LD): Likewise.
2604         (TLS_GD): Likewise.
2605         * sysdeps/i386/tls-macros.h: New file.
2606         * sysdeps/powerpc/tls-macros.h: Likewise.
2607         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2608         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2609         * sysdeps/sh/tls-macros.h: Likewise.
2610         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2611         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2612         * sysdeps/x86_64/tls-macros.h: Likewise.
2613
2614 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2615
2616         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2617         zero value for regular exit case.
2618
2619         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2620         (__start_context): Preserve zero value for regular exit case.
2621
2622 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2623             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2624
2625         * manual/setjmp.texi (setcontext): Clarify normal process
2626         termination when uc_link is the null pointer.
2627         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2628         exit call.
2629
2630 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2631
2632         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2633         preprocessor.  Test for each exception mask separately.
2634
2635 2012-07-16  Andreas Jaeger  <aj@suse.de>
2636
2637         * po/ru.po: Update from translation team.
2638
2639 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2640
2641         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2642         equal to 0.
2643         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2644         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2645         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2646         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2647         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2648
2649 2012-07-13  Andreas Jaeger  <aj@suse.de>
2650
2651         * po/fr.po: Update from translation team.
2652
2653 2012-07-12  Marek Polacek  <polacek@redhat.com>
2654
2655         [BZ #14173]
2656         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2657         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2658         loop condition.
2659
2660 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2661
2662         [BZ #13717]
2663         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2664         Change to 2.4.1 where previously 2.4.0.
2665         * sysdeps/unix/sysv/linux/configure: Regenerated.
2666         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2667         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2668         version.
2669         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2670         (__ASSUME_AT_CLKTCK): Remove.
2671         (__ASSUME_AT_PAGESIZE): Likewise.
2672         (__ASSUME_AT_XID): Likewise.
2673         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2674         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2675         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2676         unconditionally.
2677         (HAVE_AUX_PAGESIZE): Likewise.
2678         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2679         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2680         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2681
2682 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2683
2684         [BZ #14307]
2685         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2686         the temporary buffer used to invoke __gethostbyname2_r,
2687         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2688         host_data / struct gaih_addrtuple.
2689         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2690         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2691         header file nss/nsswitch.h.
2692         * nss/nsswitch.h (global scope): Add definition of implementation
2693         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2694         resolv/nss_dns/dns-host.c).
2695
2696 2012-07-11  Andreas Jaeger  <aj@suse.de>
2697
2698         * po/fr.po: Update from translation team.
2699
2700         * po/sv.po: Update from translation team
2701         * po/fr.po: Another update from translation team.
2702
2703 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2704
2705         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2706         for subnormals or multiply small sinh result by itself.
2707         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2708         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2709
2710 2012-07-11  David S. Miller  <davem@davemloft.net>
2711
2712         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2713
2714 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2715
2716         [BZ #14347]
2717         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2718         (INTERNAL_MARK): Shift it here.
2719
2720 2012-07-10  Marek Polacek  <polacek@redhat.com>
2721
2722         [BZ #14151]
2723         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2724         libc_cv_asm_global_directive with .globl.
2725         * configure: Regenerated.
2726         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2727         with .globl.
2728         * sysdeps/i386/configure: Regenerated.
2729         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2730         with .globl.
2731         * sysdeps/x86_64/configure: Regenerated.
2732         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2733         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2734         * elf/tst-unique2mod2.c: Likewise.
2735         * elf/tst-unique2mod1.c: Likewise.
2736         * elf/tst-unique1mod2.c: Likewise.
2737         * elf/tst-unique1mod1.c: Likewise.
2738         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2739         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2740         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2741         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2742         * sysdeps/mach/sysdep.h: Likewise.
2743         * sysdeps/i386/sysdep.h: Likewise.
2744         * sysdeps/i386/i386-mcount.S: Likewise.
2745         * sysdeps/x86_64/_mcount.S: Likewise.
2746         * sysdeps/x86_64/sysdep.h: Likewise.
2747         * sysdeps/sh/_mcount.S: Likewise.
2748         * sysdeps/sh/sysdep.h: Likewise.
2749         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2750         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2751         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2752         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2753         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2754         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2755         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2756         * locale/localeinfo.h: Likewise.
2757         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2758         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2759
2760 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2761
2762         [BZ #14336]
2763         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2764         system".
2765         * manual/message.texi (The Uniforum approach): Likewise.
2766         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2767         (glibc iconv Implementation): Likewise.
2768
2769 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2770
2771         [BZ #14337]
2772         * math/s_clog.c (__clog): Avoid scaling a value down where that
2773         could result in underflow.
2774         * math/s_clog10.c (__clog10): Likewise.
2775         * math/s_clog10f.c (__clog10f): Likewise.
2776         * math/s_clog10l.c (__clog10l): Likewise.
2777         * math/s_clogf.c (__clogf): Likewise.
2778         * math/s_clogl.c (__clogl): Likewise.
2779         * math/libm-test.inc (clog_test): Add more tests.
2780         (clog10_test): Likewise.
2781         * sysdeps/i386/fpu/libm-test-ulps: Update.
2782         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2783
2784 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2785
2786         [BZ #14283]
2787         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2788         by 7 not 8 to examine high bit of fractional part.
2789
2790         [BZ #14042]
2791         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2792         for call to __mcount_internal.
2793         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2794         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2795         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2796
2797 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2798
2799         [BZ #14154]
2800         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2801         approximation for values within 0x1p-13f of an odd multiple of
2802         pi/4.
2803         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2804         exception.  Add more tests.
2805         * sysdeps/i386/fpu/libm-test-ulps: Update.
2806
2807         [BZ #6778]
2808         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2809         inputs and return -1 for them.  Do not check for +Inf in case not
2810         reachable for +Inf.
2811         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2812         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2813         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2814         and return -1 for them.  Do not check for +Inf in case not
2815         reachable for +Inf.
2816         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2817         define.
2818         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2819         and return -1 for them.  Do not check for +Inf in case not
2820         reachable for +Inf.
2821         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2822         spurious underflow.
2823         * sysdeps/i386/fpu/libm-test-ulps: Update.
2824         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2825
2826 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2827
2828         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2829
2830 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2831
2832         [BZ #14157]
2833         [BZ #14331]
2834         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2835         could result in spurious underflow.  Scale down values above
2836         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2837         * math/s_csqrtf.c (__csqrtf): Likewise.
2838         * math/s_csqrtl.c (__csqrtl): Likewise.
2839         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2840         spurious underflow.
2841         * sysdeps/i386/fpu/libm-test-ulps: Update.
2842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2843
2844 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2845
2846         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2847         xopen-msg.sed.
2848         * catgets/xopen-msg.awk: New file.
2849         * catgets/xopen-msg.sed: Removed.
2850
2851         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2852         po2text.sed.
2853         * intl/po2test.awk: New file.
2854         * intl/po2test.sed: Removed.
2855
2856 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2857
2858         [BZ #14328]
2859         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2860         or multiply small sinh result by itself.
2861         * math/s_ctanf.c (__ctanf): Likewise.
2862         * math/s_ctanh.c (__ctanh): Likewise.
2863         * math/s_ctanhf.c (__ctanhf): Likewise.
2864         * math/s_ctanhl.c (__ctanhl): Likewise.
2865         * math/s_ctanl.c (__ctanl): Likewise.
2866         * math/libm-test.inc (ctan_test_tonearest): New function.
2867         (ctan_test_towardzero): Likewise.
2868         (ctan_test_downward): Likewise.
2869         (ctan_test_upward): Likewise.
2870         (ctanh_test_tonearest): Likewise.
2871         (ctanh_test_towardzero): Likewise.
2872         (ctanh_test_downward): Likewise.
2873         (ctanh_test_upward): Likewise.
2874         (main): Call these new functions.
2875         * sysdeps/i386/fpu/libm-test-ulps: Update.
2876         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2877
2878 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2879
2880         * .gitignore: Delete /ports entry.
2881
2882 2012-07-03  Andreas Jaeger  <aj@suse.de>
2883
2884         * po/bg.po: Update from translation team.
2885         * po/cs.po: Likewise.
2886         * po/de.po: Likewise.
2887         * po/hr.po: Likewise.
2888         * po/nl.pl: Likewise.
2889         * po/pl.po: Likewise.
2890         * po/vi.po: Likewise.
2891
2892 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2893
2894         * Makeconfig [!+link] (+link-before-libc): New variable.
2895         [!+link] (+link-after-libc): Likewise.
2896         [!+link] (+link-tests): Likewise.
2897         [!+link] (+link): Define in terms of $(+link-before-libc) and
2898         $(+link-after-libc).
2899         [!+link-static] (+link-static-before-libc): New variable.
2900         [!+link-static] (+link-static-after-libc): Likewise.
2901         [!+link-static] (+link-static-tests): Likewise.
2902         [!+link-static] (+link-static): Define in terms of
2903         $(+link-static-before-libc) and $(+link-static-after-libc).
2904         [build-shared] (link-libc-before-gnulib): New variable.
2905         [build-shared] (link-libc-tests): Likewise.
2906         [build-shared] (link-libc): Define in terms of
2907         $(link-libc-before-gnulib).
2908         [!build-shared] (link-libc-tests): New variable.
2909         (link-libc-static-tests): New variable.
2910         [!gnulib] (gnulib-arch): New variable.
2911         [!gnulib] (gnulib-tests): Likewise.
2912         [!gnulib] (static-gnulib-arch): Likewise.
2913         [!gnulib] (static-gnulib-tests): Likewise.
2914         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
2915         Define with "=" instead of ":=".
2916         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
2917         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
2918         * Rules (binaries-all-notests): New variable.
2919         (binaries-all-tests): Likewise.
2920         (binaries-static-notests): Likewise.
2921         (binaries-static-tests): Likewise.
2922         (binaries-all): Define using $(binaries-all-notests) and
2923         $(binaries-all-tests).
2924         (binaries-static): Define using $(binaries-static-notests) and
2925         $(binaries-static-tests).
2926         (binaries-shared-tests): New variable.
2927         (binaries-shared-notests): Likewise.
2928         (binaries-shared): Remove variable.
2929         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
2930         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
2931         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
2932         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
2933         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
2934         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
2935         * elf/Makefile (sln-modules): New variable.
2936         (extra-objs): Add $(sln-modules:=.o).
2937         (ldconfig-modules): Add static-stubs.
2938         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
2939         * elf/static-stubs.c: New file.
2940
2941         [BZ #14283]
2942         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
2943         by 7 not 8 to examine high bit of fractional part.  Use volatile
2944         variables when splitting into final array of floats if
2945         __FLT_EVAL_METHOD__ != 0.
2946         * math/libm-test.inc (cos_test): Add another test.
2947         (sin_test): Likewise.
2948         * sysdeps/i386/fpu/libm-test-ulps: Update.
2949
2950         [BZ #14273]
2951         * math/libm-test.inc (cosh_test): Add more tests.
2952
2953         * version.h (RELEASE): Set to "development".
2954         (VERSION): Set to "2.16.90".
2955
2956 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
2957
2958         * NEWS: Update copyright. Remove last-updated date.
2959         Mention math library bug fixes and timezone data changes.
2960         * README: Mention GNU/Hurd, x32, and HPPA support status.
2961
2962 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
2963
2964         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
2965
2966 2012-06-27  Andreas Jaeger  <aj@suse.de>
2967
2968         * manual/contrib.texi (Contributors): Add Samuel Thibault.
2969
2970 2012-06-25  Andreas Jaeger  <aj@suse.de>
2971
2972         * sysdeps/s390/fpu/libm-test-ulps: Update.
2973
2974 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
2975             Thomas Schwinge  <thomas@codesourcery.com>
2976
2977         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
2978         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
2979         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
2980         fanotify_mark.
2981
2982 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
2983
2984         * sysdeps/mach/start.c: Remove file.
2985         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
2986         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
2987         * sysdeps/sh/init-first.c: Likewise.
2988
2989         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
2990         registers for frame unwinding purposes, add CFI directives.
2991         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2992         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
2993         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2994         Likewise.
2995
2996         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
2997         __fortify_fail returning.
2998         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2999
3000         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3001         sysdeps/sh/____longjmp_chk.S.
3002         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3003         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3004         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3005         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3006
3007         * sysdeps/sh/abort-instr.h: New file.
3008         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3009         process in case exit returns.
3010
3011         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3012         initialize the GOT register before use.
3013
3014         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3015         calculation of ARGC > 4.
3016
3017         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3018         meaningful names to some local labels.
3019
3020 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3021             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3022
3023         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3024         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3025         (__arch_compare_and_exchange_val_16_acq): Likewise.
3026         (__arch_compare_and_exchange_val_32_acq): Likewise.
3027         (atomic_exchange_and_add): Fix gUSA sequence.
3028         (atomic_add): Likewise.
3029         (atomic_add_negative): Likewise.
3030         (atomic_add_zero): Likewise.
3031         (atomic_bit_test_set): Likewise.
3032
3033 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3034
3035         [BZ #13579]
3036         * include/link.h (struct link_map): Add l_free_initfini.
3037         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3038         l_initfini.
3039         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3040         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3041         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3042         set.
3043
3044 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3045
3046         * configure.in: Use AC_LANG_SOURCE.
3047         * configure: Regenerate.
3048
3049 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3050
3051         * configure.in (libc_cv_localstatedir): New substituted variable.
3052         * configure: Regenerated.
3053         * config.make.in (localstatedir): New variable, substituted from
3054         libc_cv_localstatedir.
3055         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3056         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3057         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3058         * sysdeps/gnu/configure: Regenerated.
3059
3060 2012-06-21  Jeff Law  <law@redhat.com>
3061
3062         [BZ #14277]
3063         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3064         free.  Simplify list management for _LIBC case.
3065
3066 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3067
3068         [BZ #14273]
3069         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3070         Clear sign bit of 64-bit integer value before comparing against
3071         overflow value.
3072
3073         * sysdeps/mach/configure: Regenerated.
3074
3075 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3076
3077         [BZ #14278]
3078         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3079
3080 2012-06-21  Jeff Law  <law@redhat.com>
3081
3082         [BZ #13882]
3083         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3084         uint16_t for elements in the "seen" array to avoid char overflows.
3085         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3086         * elf/dl-open.c (dl_open_worker): Likewise.
3087
3088 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3089
3090         * scripts/list-sources.sh: Scan PORTS for translations.
3091         * po/libc.pot: Regenerated.
3092
3093 2012-06-21  Andreas Jaeger  <aj@suse.de>
3094
3095         [BZ #12194]
3096         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3097         warning.
3098         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3099         * bits/byteswap-16.h (__bswap_16): Likewise.
3100         * bits/byteswap.h (__bswap_constant_16): Likewise.
3101
3102 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3103
3104         [BZ #14117]
3105         * sysdeps/i386/fpu_control.h: Removed.
3106         * sysdeps/x86_64/fpu_control.h: Moved to ...
3107         * sysdeps/x86/fpu_control.h: Here.
3108
3109         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3110         (_FPU_SETCW): Likewise.
3111
3112 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3113
3114         [BZ #14117]
3115         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3116         * sysdeps/x86/fpu/bits/mathinline.h: This.
3117         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3118
3119         [BZ #14050]
3120         [BZ #14117]
3121         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3122         functions if __x86_64__ is defined.
3123
3124 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3125
3126         * string/endian.h: Add !__ASSEMBLER__ condition for including
3127         conversion interfaces.
3128
3129 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3130
3131         [BZ #14241]
3132         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3133         of ABS(x) in calculating zero to negative powers other than odd
3134         integers.
3135         * math/libm-test.inc (pow_test): Add more tests.
3136
3137 2012-06-15  Andreas Jaeger  <aj@suse.de>
3138
3139         * manual/contrib.texi (Contributors): Update entry of Liubov
3140         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3141         Machado Filho.
3142
3143 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3144
3145         * string/string.h: Add __wur to GNU version of strerror_r.
3146
3147 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3148
3149         [BZ #14229]
3150         * string/Makefile (tests): Add tst-strtok_r.
3151         * string/tst-strtok_r.c: New file.
3152         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3153         RAX_LP/RDX_LP on SAVE_PTR.
3154
3155 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3156
3157         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3158
3159 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3160
3161         * libm_test.inc (csqrt_test): Allow more spurious underflow
3162         exceptions.
3163         (j0_test): Likewise.
3164         (j1_test): Likewise.
3165         (y0_test): Likewise.
3166         (y1_test): Likewise.
3167
3168 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3169
3170         * po/Makefile (libc.pot): Use UTF-8 charset.
3171
3172 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3173
3174         [BZ #14210]
3175         Suppress sign-conversion warning from FD_SET.
3176         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3177         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3178         not unsigned long int.
3179         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3180
3181 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3182
3183         [BZ #14050]
3184         [BZ #14117]
3185         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3186         __extern_always_inline instead of __extern_inline.
3187         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3188         (__signbit): Likewise.
3189         (__signbitl): Support C++ namespace.
3190         (lrintf): New inline function.
3191         (lrint): Likewise.
3192         (llrintf): Likewise.
3193         (llrint): Likewise.
3194         (fmaxf): Likewise.
3195         (fmax): Likewise.
3196         (fminf): Likewise.
3197         (fmin): Likewise.
3198         (rint): Likewise.
3199         (rintf): Likewise.
3200         (ceil): Likewise.
3201         (ceilf): Likewise.
3202         (floor): Likewise.
3203         (floorf): Likewise.
3204         (nearbyint): Likewise.
3205         (nearbyintf): Likewise.
3206
3207 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3208
3209         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3210         non-default versions.
3211
3212 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3213
3214         [BZ #14218]
3215         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3216
3217 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3218
3219         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3220         (FE_UPWARD, FE_DOWNWARD): Don't define.
3221         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3222         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3223
3224         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3225         reading it.
3226         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3227         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3228
3229 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3230
3231         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3232         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3233         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3234         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3235
3236 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3237
3238         [BZ #14117]
3239         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3240         * sysdeps/i386/fpu/Implies: New file.
3241         * sysdeps/x86_64/fpu/Implies: Likewise.
3242         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3243         * sysdeps/x86/fpu/bits/fenv.h: This.
3244
3245         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3246         __SSE_MATH__.
3247
3248 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3249
3250         [BZ #14134]
3251         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3252         character 0xffff that matches the last element of the
3253         conversion table.
3254
3255 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3256
3257         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3258         fmodl commit.
3259
3260 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3261
3262         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3263         values higher than 25.6283.
3264
3265 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3266
3267         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3268         subnormal exponent extraction and add some __builtin_expect.
3269         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3270         Fix for subnormal mantissa calculation.
3271
3272 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3273
3274         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3275         cpu2 is -1 and errno is not ENOSYS.
3276
3277 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3278
3279         [BZ #14117]
3280         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3281         * sysdeps/x86/bits/string.h: This.
3282         * sysdeps/x86_64/bits/string.h: Removed.
3283
3284         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3285         if not compiling for x86-64, but compiling for >= i486.
3286
3287         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3288         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3289
3290         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3291         New macro from Linux kernel 3.4.0.
3292         (FP_XSTATE_MAGIC2): Likewise.
3293         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3294         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3295         (struct _fpx_sw_bytes): New struct.
3296         (struct _xsave_hdr): Likewise.
3297         (struct _ymmh_state): Likewise.
3298         (struct _xstate): Likewise.
3299
3300         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3301         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3302         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3303         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3304         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3305         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3306
3307         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3308         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3309         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3310         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3311         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3312         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3313
3314 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3315
3316         [BZ #13743]
3317         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3318         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3319         (sysdep_headers): Include sys/platform/ppc.h.
3320         * sysdeps/powerpc/test-gettimebase.c: Test for
3321         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3322         * manual/Makefile (appendices): Include platform.texi.
3323         * manual/contrib.texi (Contributors): Update @node pointers.
3324         * manual/maint.texi (Maintenance): Likewise.
3325         (Platform): New node.
3326         * manual/platform.texi: New file.  Document the new features.
3327
3328 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3329             Jakub Jelinek  <jakub@redhat.com>
3330
3331         [BZ #14188]
3332         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3333         where __builtin_expect is unavailable.
3334
3335 2012-06-03  David S. Miller  <davem@davemloft.net>
3336
3337         * stdlib/longlong.h: Updated from GCC.
3338
3339 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3340
3341         [BZ #14042]
3342         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3343         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3344         __mcount_internal.
3345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3346         (GLIBC_2.16): Likewise.
3347
3348 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3349
3350         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3351
3352 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3353
3354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3355         (default-abi): New variable.
3356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3357         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3358         variable.
3359         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3360         Likewise.
3361         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3362         Likewise.
3363         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3364         Likewise.
3365
3366         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3367         definition.  Document in comment.
3368
3369 2012-06-01  David S. Miller  <davem@davemloft.net>
3370
3371         * stdlib/longlong.h: Updated from GCC.
3372
3373 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3374
3375         [BZ #14117]
3376         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3377         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3378         sys/debugreg.h sys/io.h here.
3379         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3380         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3381         sys/io.h.
3382         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3383         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3384         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3385         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3386         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3387         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3388
3389         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3390         Define only if __x86_64__ is defined.
3391
3392 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3393
3394         [BZ #14048]
3395         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3396         Use int64_t for variable i.
3397         * math/libm-test.inc (fmod_test): Add more tests.
3398
3399         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3400         z computation is not scheduled after fetestexcept.
3401         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3402         Use math_force_eval instead of asm to ensure calculation scheduled
3403         before exception test.
3404         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3405         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3406
3407 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3408
3409         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3410         computation is not scheduled after fetestexcept.
3411
3412 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3413
3414         [BZ #14117]
3415         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3416         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3417
3418 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3419
3420         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3421         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3422
3423 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3424
3425         [BZ #14117]
3426         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3427         <bits/wordsize.h>.
3428         (__WCHAR_MIN): Support __WORDSIZE == 64.
3429         (__WCHAR_MAX): Likewise.
3430
3431         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3432         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3433
3434         [BZ #14183]
3435         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3436         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3437
3438         [BZ #14117]
3439         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3440         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3441
3442         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3443         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3444
3445         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3446         Defined to 1 if __x86_64__ isn't defined.
3447         (_STAT_VER_LINUX_OLD): New.
3448         (st_atime): Remove duplicate.
3449         (st_mtime): Likewise.
3450         (st_ctime): Likewise.
3451
3452 2012-05-31  David S. Miller  <davem@davemloft.net>
3453
3454         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3455         entries.
3456
3457 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3458
3459         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3460         gen-libm-test.pl.
3461
3462         [BZ #14132]
3463         * elf/dl-reloc.c: Include <_itoa.h>.
3464         (_dl_reloc_bad_type): Remove use of INTUSE.
3465         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3466         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3467         * stdio-common/psiginfo.c (psiginfo): Likewise.
3468         * stdio-common/psignal.c (psignal): Likewise.
3469         * string/strsignal.c (strsignal): Likewise.
3470         * include/signal.h (_sys_siglist): Declare hidden proto.
3471         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3472         INTVARDEF with libc_hidden_data_def.
3473         * stdio-common/itoa-udigits.c: Likewise.
3474         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3475         (_itoa_lower_digits_internal): Remove declaration.
3476         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3477         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3478         (_sys_sigabbrev_internal): Remove aliases.
3479         (_sys_siglist): Define hidden alias.
3480
3481 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3482
3483         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3484         bits/sysctl.h.
3485
3486 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3487
3488         [BZ #14117]
3489         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3490         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3491
3492         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3493         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3494         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3495         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3496         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3497         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3498
3499         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3500         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3501         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3502
3503         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3504         with __addr.
3505         (insw): Likewise.
3506         (insl): Likewise.
3507         (outsb): Likewise.
3508         (outsw): Likewise.
3509         (outsl): Likewise.
3510
3511         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3512         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3513         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3514
3515         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3516         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3517         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3518         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3519         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3520         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3521
3522         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3523         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3524
3525         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3526         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3527
3528         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3529         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3530         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3531
3532         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3533         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3534         to ...
3535         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3536
3537         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3538         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3539         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3540
3541         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3542         for x86-64.
3543         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3544
3545 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3546
3547         * math/math.h (M_El): Use two more decimal places.
3548         (M_LOG2El): Likewise.
3549         (M_LOG10El): Likewise.
3550         (M_LN2l): Likewise.
3551         (M_LN10l): Likewise.
3552         (M_PIl): Likewise.
3553         (M_PI_2l): Likewise.
3554         (M_PI_4l): Likewise.
3555         (M_1_PIl): Likewise.
3556         (M_2_PIl): Likewise.
3557         (M_2_SQRTPIl): Likewise.
3558         (M_SQRT2l): Likewise.
3559         (M_SQRT1_2l): Likewise.
3560
3561 2012-05-31  David S. Miller  <davem@davemloft.net>
3562
3563         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3564         values between float registers.
3565         * sysdeps/sparc/sparc64/memset.S: Likewise.
3566         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3567
3568 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3569
3570         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3571         -D_FORTIFY_SOURCE=1.
3572         (CPPFLAGS-tst-longjmp_chk.c): Define.
3573         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3574         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3575         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3576         CFLAGS-tst-wchar-h.c.
3577
3578 2012-05-31  Marek Polacek  <polacek@redhat.com>
3579
3580         [BZ #14132]
3581         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3582         __endmntent_internal): Remove declaration.
3583         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3584         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3585         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3586
3587 2012-05-30  David S. Miller  <davem@davemloft.net>
3588
3589         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3590         (___Q_simulate_exceptions): Use real FP ops rather than writing
3591         into the %fsr.
3592         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3593         Likewise.
3594
3595 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3596
3597         [BZ #14117]
3598         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3599         * sysdeps/x86/bits/xtitypes.h: This.
3600
3601         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3602         * sysdeps/x86/bits/wordsize.h: This.
3603
3604         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3605         * sysdeps/x86/bits/huge_vall.h: This.
3606
3607         * sysdeps/i386/bits/select.h: Removed.
3608         * sysdeps/x86_64/bits/select.h: Renamed to ...
3609         * sysdeps/x86/bits/select.h: This.
3610
3611         * sysdeps/i386/bits/setjmp.h: Removed.
3612         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3613         * sysdeps/x86/bits/setjmp.h: This.
3614
3615         * sysdeps/i386/bits/mathdef.h: Removed.
3616         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3617         * sysdeps/x86/bits/mathdef.h: This.
3618
3619 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3620
3621         [BZ #14132]
3622         * include/sys/socket.h (__connect_internal)
3623         (__libc_sa_len_internal): Remove declaration.
3624         (__connect, __libc_sa_len): Declare hidden_proto.
3625         (SA_LEN): Remove use of INTUSE.
3626         * socket/connect.c: Add libc_hidden_def.
3627         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3628         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3629         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3630         alias.
3631         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3632         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3633         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3634         of adding _internal alias.
3635
3636 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3637
3638         [BZ #14117]
3639         * sysdeps/i386/bits/link.h: Removed.
3640         * sysdeps/i386/bits/linkmap.h: Likewise.
3641         * sysdeps/x86_64/bits/link.h: Renamed to ...
3642         * sysdeps/x86/bits/link.h: This.
3643         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3644         * sysdeps/x86/bits/linkmap.h: This.
3645
3646         * sysdeps/i386/bits/endian.h: Removed.
3647         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3648         * sysdeps/x86/bits/endian.h: This.
3649
3650         * sysdeps/i386/bits/byteswap.h: Removed.
3651         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3652         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3653         * sysdeps/x86/bits/byteswap.h: This.
3654         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3655         * sysdeps/x86/bits/byteswap-16.h: This.
3656         * sysdeps/i386/Implies: Add x86.
3657         * sysdeps/x86_64/Implies: Likewise.
3658
3659 2012-05-30  David S. Miller  <davem@davemloft.net>
3660
3661         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3662         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3663         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3664         (FP_TRAPPING_EXCEPTIONS): Define.
3665         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3666         (FP_TRAPPING_EXCEPTIONS): Define.
3667         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3668         subnormals only when inexact has been signalled or underflow
3669         exceptions are enabled.
3670         (_FP_PACK_CANONICAL): Likewise.
3671
3672 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3673
3674         [BZ #14183]
3675         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3676         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3677
3678 2012-05-30  Richard Henderson  <rth@twiddle.net>
3679
3680         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3681         with #ifndef NOT_IN_libc.
3682
3683         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3684         marked to avoid plt entry.
3685
3686 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3687
3688         [BZ #14112]
3689         * Makeconfig (default-abi): New macro.
3690         (abi-includes): Likewise.
3691         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3692         $(abi-$(default-abi)-lib-soname) for soname if defined.
3693         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3694         abi-variants.
3695         * Makefile (installed-stubs): Likewise.
3696         * include/stubs-biarch.h: Removed.
3697         * scripts/lib-names.awk: Only handle one library at a time.
3698         * scripts/soversions.awk: Remove WORDSIZE support.
3699         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3700         entries.
3701         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3702         Removed.
3703         (syscall-list-default-condition): Likewise.
3704         (syscall-list-default-condition): Likewise.
3705         (syscall-list-includes): Likewise.
3706         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3707         syscall-list-* with abi-*.  Handle undefined abi-variants.
3708         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3709         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3710         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3711         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3712         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3713         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3714         Removed.
3715         (syscall-list-32-options): Likewise.
3716         (syscall-list-32-condition): Likewise.
3717         (syscall-list-64-options): Likewise.
3718         (syscall-list-64-condition): Likewise.
3719         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3720         macro.
3721         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3722         Renamed to ...
3723         (abi-*): This.
3724         (abi-64-ld-soname): New macro.
3725         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3726         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3727         Renamed to ...
3728         (abi-*): This.
3729         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3730         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3731
3732 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3733
3734         * sysdeps/unix/sysv/linux/kernel-features.h
3735         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3736         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3737         include <kernel-features.h>.
3738         [!__NR_ftruncate64]: Remove conditional code.
3739         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3740         [__NR_ftruncate64]: Make code unconditional.
3741         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3742         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3743         include <kernel-features.h>.
3744         [!__NR_ftruncate64]: Remove conditional code.
3745         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3746         [__NR_ftruncate64]: Make code unconditional.
3747         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3749         include <kernel-features.h>.
3750         [!__NR_ftruncate64]: Remove conditional code.
3751         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3752         [__NR_ftruncate64]: Make code unconditional.
3753         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3754         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3755         include <kernel-features.h>.
3756         [!__NR_ftruncate64]: Remove conditional code.
3757         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3758         [__NR_ftruncate64]: Make code unconditional.
3759         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3760
3761         * configure.in (libc_cv_fpie): Weaken to a compile test using
3762         LIBC_TRY_CC_OPTION.
3763         * configure: Regenerated.
3764
3765 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3766
3767         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3768         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3769         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3770         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3771         Refreshed.
3772         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3773         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3774         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3775         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3776         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3777         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3778         Refreshed.
3779
3780 2012-05-27  David S. Miller  <davem@davemloft.net>
3781
3782         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3783         (___Q_zero): New.
3784         (__Q_simulate_exceptions): Return void.  Change to simulate
3785         exceptions by writing into the %fsr.
3786         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3787         (__Qp_handle_exceptions): Likewise.
3788         (numbers): Delete.
3789         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3790         __Qp_handle_exceptions.
3791         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3792         __Qp_handle_exceptions.
3793         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3794         as unused and give dummy FP_RND_NEAREST initializer.
3795         (FP_INHIBIT_RESULTS): Define.
3796         (___Q_simulate_exceptions): Update declaration.
3797         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3798         formatting.
3799         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3800         as unused and give dummy FP_RND_NEAREST initializer.
3801         (__Qp_handle_exceptions): Update declaration.
3802         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3803         formatting.
3804
3805 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3806
3807         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3808         the temporary FPU control word.
3809         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3810         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3811         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3812         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3813         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3814         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3815         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3816         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3817         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3818         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3819         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3820
3821 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3822
3823         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3824         fields.
3825
3826 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3827
3828         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3829         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3830         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3831         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3832         Likewise.
3833         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3834         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3835         Likewise.
3836
3837 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3838
3839         * po/h.po: Update from translation team.
3840
3841 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3842
3843         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3844
3845         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3846         handling of denormals.
3847         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3848         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3849         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3850         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3851         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3852         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3853         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3854         Likewise.
3855
3856 2012-05-26  Marek Polacek  <polacek@redhat.com>
3857
3858         [BZ #14152]
3859         * math/libm-test.inc (fma_test): Don't always expect underflow
3860         exception.
3861
3862 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3863
3864         [BZ #12416]
3865         * elf/tst-execstack.c: Include stackinfo.h.
3866         (do_test): Adjust test case to ensure that pthread_getattr_np
3867         behaviour remains the same after marking stack executable.
3868
3869 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3870
3871         * sysdeps/unix/sysv/linux/kernel-features.h
3872         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3873         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3874         kernel-features.h.
3875         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3876         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3877         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3878         kernel-features.h.
3879         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3880         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3881
3882 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3883
3884         * configure.in: Define the default includes to being none.
3885         * configure: Regenerated.
3886
3887 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3888
3889         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3890         * sysdeps/x86_64/setjmp.S: Likewise.
3891         * sysdeps/i386/bsd-setjmp.S: Likewise.
3892         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3893         * sysdeps/i386/setjmp.S: Likewise.
3894         * sysdeps/i386/__longjmp.S: Likewise.
3895         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3896         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3897
3898         * include/stap-probe.h: New file.
3899         * configure.in: Handle --enable-systemtap.
3900         * configure: Regenerated.
3901         * config.h.in (USE_STAP_PROBE): New #undef.
3902         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3903         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3904         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3905
3906 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3907
3908         [BZ #13717]
3909         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3910         to 2.4.0 where earlier.
3911         * sysdeps/unix/sysv/linux/configure: Regenerated.
3912         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3913         <kernel-features.h>.
3914         [__ASSUME_32BITUIDS]: Make code unconditional.
3915         [!__ASSUME_32BITUIDS]: Remove conditional code.
3916         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
3917         <kernel-features.h>.
3918         [__ASSUME_32BITUIDS]: Make code unconditional.
3919         [!__ASSUME_32BITUIDS]: Remove conditional code.
3920         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
3921         [__ASSUME_32BITUIDS]: Make code unconditional.
3922         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
3923         * sysdeps/unix/sysv/linux/i386/getegid.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/geteuid.c: Do not include
3928         <kernel-features.h>.
3929         [__ASSUME_32BITUIDS]: Make code unconditional.
3930         [!__ASSUME_32BITUIDS]: Remove conditional code.
3931         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
3932         <kernel-features.h>.
3933         [__ASSUME_32BITUIDS]: Make code unconditional.
3934         [!__ASSUME_32BITUIDS]: Remove conditional code.
3935         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
3936         <kernel-features.h>.
3937         [__ASSUME_32BITUIDS]: Make code unconditional.
3938         [!__ASSUME_32BITUIDS]: Remove conditional code.
3939         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
3940         <kernel-features.h>.
3941         [__ASSUME_32BITUIDS]: Make code unconditional.
3942         [!__ASSUME_32BITUIDS]: Remove conditional code.
3943         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
3944         <kernel-features.h>.
3945         [__ASSUME_32BITUIDS]: Make code unconditional.
3946         [!__ASSUME_32BITUIDS]: Remove conditional code.
3947         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
3948         <kernel-features.h>.
3949         [__ASSUME_32BITUIDS]: Make code unconditional.
3950         [!__ASSUME_32BITUIDS]: Remove conditional code.
3951         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3952         <kernel-features.h>.
3953         [__ASSUME_32BITUIDS]: Make code unconditional.
3954         [!__ASSUME_32BITUIDS]: Remove conditional code.
3955         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
3956         <kernel-features.h>.
3957         [__ASSUME_32BITUIDS]: Make code unconditional.
3958         [!__ASSUME_32BITUIDS]: Remove conditional code.
3959         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
3960         <kernel-features.h>.
3961         [__ASSUME_32BITUIDS]: Make code unconditional.
3962         [!__ASSUME_32BITUIDS]: Remove conditional code.
3963         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
3964         <kernel-features.h>.
3965         [__NR_setresgid] (__setresgid): Do not declare.
3966         [__ASSUME_32BITUIDS]: Make code unconditional.
3967         [!__ASSUME_32BITUIDS]: Remove conditional code.
3968         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
3969         <kernel-features.h>.
3970         [__NR_setresuid] (__setresuid): Do not declare.
3971         [__ASSUME_32BITUIDS]: Make code unconditional.
3972         [!__ASSUME_32BITUIDS]: Remove conditional code.
3973         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
3974         <kernel-features.h>.
3975         [__ASSUME_32BITUIDS]: Make code unconditional.
3976         [!__ASSUME_32BITUIDS]: Remove conditional code.
3977         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
3978         <kernel-features.h>.
3979         [__ASSUME_32BITUIDS]: Make code unconditional.
3980         [!__ASSUME_32BITUIDS]: Remove conditional code.
3981         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
3982         <kernel-features.h>.
3983         [__ASSUME_32BITUIDS]: Make code unconditional.
3984         [!__ASSUME_32BITUIDS]: Remove conditional code.
3985         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
3986         <kernel-features.h>.
3987         [__ASSUME_32BITUIDS]: Make code unconditional.
3988         [!__ASSUME_32BITUIDS]: Remove conditional code.
3989         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
3990         <kernel-features.h>.
3991         [__ASSUME_32BITUIDS]: Make code unconditional.
3992         [!__ASSUME_32BITUIDS]: Remove conditional code.
3993         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
3994         <kernel-features.h>.
3995         [__ASSUME_32BITUIDS]: Make code unconditional.
3996         [!__ASSUME_32BITUIDS]: Remove conditional code.
3997         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
3998         <kernel-features.h>.
3999         [__ASSUME_32BITUIDS]: Make code unconditional.
4000         [!__ASSUME_32BITUIDS]: Remove conditional code.
4001         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4002         <kernel-features.h>.
4003         [__ASSUME_32BITUIDS]: Make code unconditional.
4004         [!__ASSUME_32BITUIDS]: Remove conditional code.
4005         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4006         <kernel-features.h>.
4007         [__ASSUME_32BITUIDS]: Make code unconditional.
4008         [!__ASSUME_32BITUIDS]: Remove conditional code.
4009         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4010         <kernel-features.h>.
4011         [__ASSUME_32BITUIDS]: Make code unconditional.
4012         [!__ASSUME_32BITUIDS]: Remove conditional code.
4013         * sysdeps/unix/sysv/linux/kernel-features.h
4014         (__ASSUME_SETRESUID_SYSCALL): Remove.
4015         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4016         (__ASSUME_32BITUIDS): Likewise.
4017         (__ASSUME_LDT_WORKS): Likewise.
4018         (__ASSUME_O_DIRECTORY): Likewise.
4019         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4020         architecture but not kernel version.
4021         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4022         (__ASSUME_MMAP2_SYSCALL): Likewise.
4023         (__ASSUME_STAT64_SYSCALL): Likewise.
4024         (__ASSUME_IPC64): Likewise.
4025         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4026         <kernel-features.h>.
4027         [__ASSUME_32BITUIDS]: Make code unconditional.
4028         [!__ASSUME_32BITUIDS]: Remove conditional code.
4029         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4030         <kernel-features.h>.
4031         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4032         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4033         132096]: Remove conditional code.
4034         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4035         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4036         <kernel-features.h>.
4037         [__ASSUME_32BITUIDS]: Make code unconditional.
4038         [!__ASSUME_32BITUIDS]: Remove conditional code.
4039         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4040         <kernel-features.h>.
4041         [__ASSUME_32BITUIDS]: Make code unconditional.
4042         [!__ASSUME_32BITUIDS]: Remove conditional code.
4043         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4044         <kernel-features.h>.
4045         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4046         unconditional.
4047         (__setresgid): Do not declare.
4048         [__ASSUME_32BITUIDS]: Make code unconditional.
4049         [!__ASSUME_32BITUIDS]: Remove conditional code.
4050         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4051         <kernel-features.h>.
4052         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4053         unconditional.
4054         (__setresuid): Do not declare.
4055         [__ASSUME_32BITUIDS]: Make code unconditional.
4056         [!__ASSUME_32BITUIDS]: Remove conditional code.
4057         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4058         <kernel-features.h>.
4059         [__ASSUME_32BITUIDS]: Make code unconditional.
4060         [!__ASSUME_32BITUIDS]: Remove conditional code.
4061         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4062         <kernel-features.h>.
4063         [__ASSUME_32BITUIDS]: Make code unconditional.
4064         [!__ASSUME_32BITUIDS]: Remove conditional code.
4065
4066 2012-05-25  Richard Henderson  <rth@twiddle.net>
4067
4068         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4069         dl_hwcap to ifunc resolver.
4070         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4071         elf_ifunc_invoke.
4072         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4073         dl_hwcap to ifunc resolver.
4074         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4075
4076 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4077
4078         [BZ #14153]
4079         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4080         for |x| <= 2**-26, not 2**-57.
4081         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4082         exception.
4083
4084 2012-05-24  Jeff Law  <law@redhat.com>
4085
4086         * stdio-common/Makefile (tests): Add bug25.
4087         * stdio-common/bug25.c: New test.
4088
4089 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4090
4091         [BZ #13576]
4092         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4093         multiple of MALLOC_ALIGNMENT in size.
4094         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4095
4096 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4097
4098         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4099         Require >= 256.
4100         (FILENAME_MAX): Use macro-int-constant.
4101         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4102         (_IOFBF): Use macro-int-constant.
4103         (_IOLBF): Likewise.
4104         (_IONBF): Likewise.
4105         (SEEK_CUR): Likewise.
4106         (SEEK_END): Likewise.
4107         (SEEK_SET): Likewise.
4108         (TMP_MAX): Likewise.
4109         (EOF): Use macro-int-constant.  Require < 0.
4110         (NULL): Use macro-constant.  Require == 0.
4111         (stdin): Require type to be FILE *.
4112         (stdout): Likewise.
4113         (stderr): Likewise.
4114         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4115         macro-int-constant.
4116         (EXIT_SUCCESS): Likewise.
4117         (NULL): Use macro-constant.  Require == 0.
4118         (RAND_MAX): Use macro-int-constant.
4119         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4120         [C99-based standards] (strtof): Require function.
4121         [C99-based standards] (strtold): Likewise.
4122         [C99-based standards] (strtoll): Likewise.
4123         [C99-based standards] (strtoull): Likewise.
4124         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4125         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4126         [ISO || ISO99 || ISO11] (math.h): Likewise.
4127         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4128         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4129         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4130
4131 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4132
4133         [BZ #14132]
4134         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4135         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4136         * intl/dgettext.c (DCGETTEXT): Likewise.
4137         * intl/gettext.c (DCGETTEXT): Likewise.
4138         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4139         * posix/regex_internal.h (gettext): Likewise.
4140         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4141         Remove declaration.
4142         * include/argz.h (__argz_count_internal)
4143         (__argz_stringify_internal): Remove declaration.
4144         (__argz_count, __argz_stringify): Declare hidden proto.
4145         * intl/dcgettext.c: Remove use of INTDEF.
4146         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4147         * string/argz-stringify.c: Likewise.
4148         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4149         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4150         Declare hidden proto.
4151         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4152         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4153         Declare hidden proto.
4154         * include/stdio.h (__asprintf_internal): Don't declare.
4155         (__asprintf): Don't define as macro.  Declare hidden proto.
4156         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4157         (__fsetlocking): Declare hidden proto.
4158         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4159         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4160         hidden proto.
4161         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4162         (_IO_setlinebuf): Remove use of INTUSE.
4163         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4164         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4165         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4166         Remove declaration.
4167         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4168         (_IO_do_flush): Remove use of INTUSE.
4169         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4170         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4171         (_IO_adjust_column, _IO_least_wmarker)
4172         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4173         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4174         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4175         (_IO_default_doallocate, _IO_wdefault_doallocate)
4176         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4177         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4178         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4179         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4180         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4181         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4182         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4183         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4184         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4185         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4186         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4187         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4188         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4189         proto.
4190         (_IO_flush_all_internal, _IO_adjust_column_internal)
4191         (_IO_default_uflow_internal, _IO_default_finish_internal)
4192         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4193         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4194         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4195         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4196         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4197         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4198         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4199         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4200         (_IO_file_close_internal, _IO_file_close_it_internal)
4201         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4202         (_IO_file_init_internal, _IO_file_attach_internal)
4203         (_IO_file_fopen_internal, _IO_file_read_internal)
4204         (_IO_file_sync_internal, _IO_file_seek_internal)
4205         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4206         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4207         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4208         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4209         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4210         (_IO_list_all_internal, _IO_link_in_internal)
4211         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4212         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4213         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4214         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4215         (_IO_do_write_internal, _IO_padn_internal)
4216         (_IO_getline_info_internal, _IO_getline_internal)
4217         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4218         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4219         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4220         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4221         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4222         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4223         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4224         with libc_hidden_ver, remove use of INTUSE.
4225         * libio/genops.c: Likewise.
4226         * libio/freopen.c: Likewise.
4227         * libio/freopen64.c: Likewise.
4228         * libio/iofclose.c: Likewise.
4229         * libio/iofdopen.c: Likewise.
4230         * libio/iofflush.c: Likewise.
4231         * libio/iofflush_u.c: Likewise.
4232         * libio/iofgets.c: Likewise.
4233         * libio/iofgets_u.c: Likewise.
4234         * libio/iofopen.c: Likewise.
4235         * libio/iofopncook.c: Likewise.
4236         * libio/iofread.c: Likewise.
4237         * libio/iofread_u.c: Likewise.
4238         * libio/ioftell.c: Likewise.
4239         * libio/iofwrite.c: Likewise.
4240         * libio/iogetline.c: Likewise.
4241         * libio/iogets.c: Likewise.
4242         * libio/iogetwline.c: Likewise.
4243         * libio/iopadn.c: Likewise.
4244         * libio/iopopen.c: Likewise.
4245         * libio/ioseekoff.c: Likewise.
4246         * libio/ioseekpos.c: Likewise.
4247         * libio/iosetbuffer.c: Likewise.
4248         * libio/iosetvbuf.c: Likewise.
4249         * libio/ioungetc.c: Likewise.
4250         * libio/ioungetwc.c: Likewise.
4251         * libio/iovdprintf.c: Likewise.
4252         * libio/iovsprintf.c: Likewise.
4253         * libio/iovsscanf.c: Likewise.
4254         * libio/memstream.c: Likewise.
4255         * libio/obprintf.c: Likewise.
4256         * libio/oldfileops.c: Likewise.
4257         * libio/oldiofclose.c: Likewise.
4258         * libio/oldiofdopen.c: Likewise.
4259         * libio/oldiofopen.c: Likewise.
4260         * libio/oldiopopen.c: Likewise.
4261         * libio/oldstdfiles.c: Likewise.
4262         * libio/putc.c: Likewise.
4263         * libio/setbuf.c: Likewise.
4264         * libio/setlinebuf.c: Likewise.
4265         * libio/stdfiles.c: Likewise.
4266         * libio/strops.c: Likewise.
4267         * libio/vasprintf.c: Likewise.
4268         * libio/vscanf.c: Likewise.
4269         * libio/vsnprintf.c: Likewise.
4270         * libio/vswprintf.c: Likewise.
4271         * libio/wfiledoalloc.c: Likewise.
4272         * libio/wfileops.c: Likewise.
4273         * libio/wgenops.c: Likewise.
4274         * libio/wmemstream.c: Likewise.
4275         * libio/wstrops.c: Likewise.
4276         * libio/__fpurge.c: Likewise.
4277         * libio/__fsetlocking.c: Likewise.
4278         * assert/assert.c: Likewise.
4279         * debug/fgets_chk.c: Likewise.
4280         * debug/fgets_u_chk.c: Likewise.
4281         * debug/fread_chk.c: Likewise.
4282         * debug/fread_u_chk.c: Likewise.
4283         * debug/gets_chk.c: Likewise.
4284         * debug/obprintf_chk.c: Likewise.
4285         * debug/vasprintf_chk.c: Likewise.
4286         * debug/vdprintf_chk.c: Likewise.
4287         * debug/vsnprintf_chk.c: Likewise.
4288         * debug/vsprintf_chk.c: Likewise.
4289         * malloc/mtrace.c: Likewise.
4290         * misc/error.c: Likewise.
4291         * misc/syslog.c: Likewise.
4292         * stdio-common/asprintf.c: Likewise.
4293         * stdio-common/fxprintf.c: Likewise.
4294         * stdio-common/getw.c: Likewise.
4295         * stdio-common/isoc99_fscanf.c: Likewise.
4296         * stdio-common/isoc99_scanf.c: Likewise.
4297         * stdio-common/isoc99_vfscanf.c: Likewise.
4298         * stdio-common/isoc99_vscanf.c: Likewise.
4299         * stdio-common/isoc99_vsscanf.c: Likewise.
4300         * stdio-common/printf-prs.c: Likewise.
4301         * stdio-common/printf_fp.c: Likewise.
4302         * stdio-common/printf_fphex.c: Likewise.
4303         * stdio-common/printf_size.c: Likewise.
4304         * stdio-common/putw.c: Likewise.
4305         * stdio-common/scanf.c: Likewise.
4306         * stdio-common/sprintf.c: Likewise.
4307         * stdio-common/tmpfile.c: Likewise.
4308         * stdio-common/vfprintf.c: Likewise.
4309         * stdio-common/vfscanf.c: Likewise.
4310         * stdlib/strfmon_l.c: Likewise.
4311         * sunrpc/openchild.c: Likewise.
4312         * sunrpc/xdr_stdio.c: Likewise.
4313         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4314         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4315
4316 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4317
4318         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4319
4320         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4321         in the third column, to generate for the shared library an IFUNC
4322         that uses _dl_vdso_vsym.
4323         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4324         * Makeconfig (object-suffixes-noshared): New variable.
4325
4326         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4327         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4328         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4329         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4330
4331         [BZ #14132]
4332         * include/sys/time.h (__gettimeofday): Remove macro.
4333         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4334         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4335         Remove INTDEF.
4336         (__gettimeofday): Add libc_hidden_def.
4337         (gettimeofday): Add libc_hidden_weak.
4338         * sysdeps/mach/gettimeofday.c: Likewise.
4339         * sysdeps/posix/gettimeofday.c: Likewise.
4340         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4341         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4342         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4343         (__gettimeofday_internal): Remove strong_alias.
4344         (__gettimeofday): Add libc_hidden_def.
4345         (gettimeofday): Add libc_hidden_weak.
4346         * sysdeps/unix/syscalls.list (gettimeofday):
4347         Remove __gettimeofday_internal alias.
4348
4349 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4350             H.J. Lu  <hongjiu.lu@intel.com>
4351
4352         [BZ #12495]
4353         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4354         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4355         (largebin_index_32_big): New.
4356         (largebin_index): Use it for 16-byte alignment.
4357         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4358         correction with front_misalign.
4359
4360 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4361
4362         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4363         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4364         Likewise.
4365         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4366         Likewise.
4367         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4368         Likewise.
4369         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4370         Likewise.
4371         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4372         Likewise.
4373         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4374         Likewise.
4375         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4376         Likewise.
4377         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4378         Likewise.
4379         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4380         Likewise.
4381         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4382         Likewise.
4383         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4384         Likewise.
4385         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4386         Likewise.
4387
4388         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4389         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4390
4391 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4392
4393         [BZ #10846]
4394         [BZ #14036]
4395         * math/libm-test.inc (exp_test): Add test from bug 14036.
4396         (pow_test): Add test from bug 10846.
4397
4398         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4399         and other flags.
4400         (special_function): Do not include flags in test name.
4401         (parse_args): Likewise.
4402         * sysdeps/i386/fpu/libm-test-ulps: Update.
4403         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4404         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4405         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4406         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4407
4408         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4409         exceptions.
4410         * math/libm-test.inc ("Philosophy"): Update comment about
4411         exception testing.
4412         (UNDERFLOW_EXCEPTION): New macro.
4413         (UNDERFLOW_EXCEPTION_OK): Likewise.
4414         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4415         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4416         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4417         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4418         (INVALID_EXCEPTION_OK): Update value.
4419         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4420         (OVERFLOW_EXCEPTION_OK): Likewise.
4421         (IGNORE_ZERO_INF_SIGN): Likewise.
4422         (test_exceptions): Handle underflow exceptions.
4423         (acos_test): Update for underflow exception expectations.
4424         (cexp_test): Likewise.
4425         (clog_test): Likewise.
4426         (clog10_test): Likewise.
4427         (csqrt_test): Likewise.
4428         (ctan_test): Likewise.
4429         (ctanh_test): Likewise.
4430         (exp_test): Likewise.
4431         (exp10_test): Likewise.
4432         (exp2_test): Likewise.
4433         (expm1_test): Likewise.
4434         (fma_test): Likewise.
4435         (j0_test): Likewise.
4436         (jn_test): Likewise.
4437         (nexttoward_test): Likewise.
4438         (pow_test): Likewise.
4439         (scalbn_test): Likewise.
4440         (scalbln_test): Likewise.
4441         (tan_test): Likewise.
4442         (y1_test): Likewise.
4443         * sysdeps/i386/fpu/libm-test-ulps: Update.
4444         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4445
4446 2012-05-23  David S. Miller  <davem@davemloft.net>
4447
4448         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4449         (__libc_sigaction): Remove unused local variables.
4450
4451 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4452
4453         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4454
4455 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4456
4457         mktime: avoid signed integer overflow
4458         * time/mktime.c (__mktime_internal): Do not mishandle the case
4459         where diff == INT_MIN.
4460
4461         mktime: simplify computation of average
4462         * time/mktime.c (ranged_convert): Use new time_t_avg function
4463         instead of rolling our own (probably-slower) code.
4464
4465         mktime: do not assume signed right shift propagates sign bit
4466         * time/mktime.c (isdst_differ): New static function.
4467         (__mktime_internal): No need to normalize tm_isdst now.
4468         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4469         tm_isdst values.
4470
4471         mktime: merge another wrapv change from gnulib
4472         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4473         from some compilers.
4474
4475         mktime: remove incorrect attempt at unusual arithmetics
4476         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4477         The code didn't really work on such machines anyway.
4478         (TYPE_MINIMUM): Assume two's complement.
4479         (twos_complement_arithmetic): Verify that long_int and time_t
4480         are two's complement (or unsigned, in the latter case).
4481
4482         mktime: check signed shifts on long_int and time_t, too
4483         * time/mktime.c (SHR): Check that shifts work as desired
4484         on the types long_int and time_t too, as SHR is used on
4485         such types.
4486
4487         mktime: do not assume 'long' is wide enough
4488         * time/mktime.c (verify): Move decl up.
4489         (long_int): New type.
4490         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4491         to remove assumption in the code that 'long' is wide enough to
4492         store year values.  This assumption is not true on x32 and on
4493         some non-glibc platforms.
4494
4495         mktime: merge wrapv change from gnulib
4496         * time/mktime.c (WRAPV): New macro.
4497         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4498         (guess_time_tm, __mktime_internal): Do not assume that signed
4499         integer overflow wraps around; modern compilers generate code
4500         where this assumption is no longer valid.
4501
4502 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4503
4504         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4505         Replace "jmp L(pseudo_end)" with "ret".
4506         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4507         Likewise.
4508
4509 2012-05-23  Andreas Jaeger  <aj@suse.de>
4510
4511         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4512         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4513
4514 2012-05-23  Andreas Jaeger  <aj@suse.de>
4515             Maximilian Attems  <max@stro.at>
4516
4517         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4518         New macros.
4519
4520 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4521
4522         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4523         code so that pseudo_end is just ret and the stack pointer is
4524         correct also for static library in error case.
4525
4526 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4527
4528         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4529         move to syscalls.list.
4530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4534
4535         * manual/install.texi (Running make install): Do not mention Linux
4536         kernel version for which pt_chown is not needed.
4537         (Linux): Do not mention problems with nscd with 2.0 kernels.
4538         * INSTALL: Regenerated.
4539
4540 2012-05-23  Andreas Jaeger  <aj@suse.de>
4541
4542         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4543         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4544         macro.
4545         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4546         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4547         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4548         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4549         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4550         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4551         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4552         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4553         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4554         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4555         * sysdeps/unix/sysv/linux/bits/in.h
4556         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4557
4558 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4559
4560         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4561         (PREPARE_VERSION): Just use assert instead, it will be elided
4562         under [NDEBUG] anyway.
4563
4564 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4565
4566         * sysdeps/unix/sysv/linux/Makefile: Include
4567         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4568         (sysdep_routines): Remove sysctl.
4569         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4570         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4571         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4572         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4573         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4574
4575 2012-05-22  Andreas Jaeger  <aj@suse.de>
4576
4577         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4578         that pseudo_end is just ret and the stack pointer is correct also
4579         for static library in error case.
4580
4581 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4582
4583         [BZ #14122]
4584         * nss/nsswitch.c (defconfig_entries): New variable.
4585         (__nss_database_lookup): Don't leak defconfig entries.
4586         (nss_parse_service_list): Don't leak on error paths.
4587         (free_database_entries): New function.
4588         (free_defconfig): New function.
4589         (free_mem): Move common code to free_database_entries.
4590
4591 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4592
4593         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4594         Add arch_prctl.
4595         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4596
4597         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4598         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4599         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4600         New macro.
4601         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4602         (INTERNAL_SYSCALL_TYPES): Likewise.
4603         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4604         (LOAD_REGS_TYPES_[1-6]): Likewise.
4605         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4606         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4607
4608 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4609
4610         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4611         copysignl for GLIBC_2_0.
4612         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4613         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4614         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4615         logbl for GLIBC_2_0.
4616         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4617         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4618
4619 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4620
4621         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4622         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4623
4624         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4625         Use "neg %eax".
4626
4627         * time/mktime.c: Update copyright years.
4628
4629 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4630
4631         mktime: merge comment-quoting-style change from gnulib
4632         * time/mktime.c: Quote 'like this' in comments.
4633         The GNU coding standards suggest that we no longer quote `like this',
4634         as "`" and "'" are typically rendered asymmetrically nowadays.
4635         The typical gnulib style is to quote 'like this' when quoting
4636         code, and "like this" when quoting English.
4637
4638         * time/mktime.c (compile-command): Add "-I.".
4639
4640         mktime: merge mktime-internal.h change from gnulib
4641         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4642
4643         mktime: merge time_r change from gnulib
4644         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4645
4646         mktime: merge DEBUG change from gnulib
4647         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4648         case system <time.h> has a #define.
4649
4650         mktime: merge <sys/types.h> change from gnulib
4651         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4652         since <time.t> is now guaranteed to define time_t.
4653
4654         mktime: merge HAVE_CONFIG_H change from gnulib
4655         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4656
4657 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4658
4659         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4660         Use "neg %eax".
4661
4662         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4663         __rlim_t cast.
4664         (struct rusage): Use anonymous union to pad each field to
4665         __syscall_slong_t.
4666
4667 2012-05-21  David S. Miller  <davem@davemloft.net>
4668
4669         * Makefules (o-iterator): Remove .s cases.
4670         (compile-command.s): Delete.
4671         (COMPILE.s): Delete.
4672         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4673
4674 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4675
4676         * configure.in (libc_cv_predef_stack_protector): Only consider
4677         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4678         * configure: Regenerated.
4679
4680 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4681
4682         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4683         New macro.  Use R*LP on int and pointer.
4684         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4685         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4686         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4687         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4688
4689         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4690         [__WORDSIZE_TIME64_COMPAT32] instead of
4691         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4692         (struct utmp): Likewise.
4693         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4694         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4695         Renamed to ...
4696         (__WORDSIZE_TIME64_COMPAT32): This.
4697         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4698         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4699         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4700         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4701         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4702         (__WORDSIZE_TIME64_COMPAT32): New macro.
4703
4704 2012-05-21  Andreas Jaeger  <aj@suse.de>
4705
4706         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4707         only if [SHARED]. Add prototype for __wcschr_ia32.
4708
4709 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4710
4711         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4712         of %rbp unmolested in the jmp_buf while mangling the low bits.
4713         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4714         unmolested high bits of %rbp while demangling the low bits.
4715         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4716
4717 2012-05-21  Andreas Jaeger  <aj@suse.de>
4718
4719         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4720         * sunrpc/svc_simple.c: Use it for registerrpc.
4721         * sunrpc/xcrypt.c: Use it for passwd2des.
4722
4723         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4724
4725 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4726
4727         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4728         Don't define if [__SYSCALL_WORDSIZE != 32].
4729         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4730         New macro.
4731
4732 2012-05-21  Bruno Haible  <bruno@clisp.org>
4733             Andreas Jaeger  <aj@suse.de>
4734
4735         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4736         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4737         inptr and inend for must_buffer_ch.
4738         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4739         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4740         * stdio-common/Makefile (tests): Remove bug15.
4741         (bug15-ENV): Remove macro.
4742         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4743         anymore.
4744
4745 2012-05-19  Andreas Jaeger  <aj@suse.de>
4746             Roland McGrath  <roland@hack.frob.com>
4747
4748         * manual/contrib.texi: Completely rewritten. It contains now an
4749         alphabetical list of contributors and their contributions.
4750
4751 2012-05-21  Richard Henderson  <rth@twiddle.net>
4752
4753         * misc/getauxval.c (__getauxval): Use unsigned long int.
4754         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4755         (getauxval): Use unsigned long int.
4756
4757 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4758
4759         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4760
4761 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4762
4763         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4764         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4765         __alignof__ (long double).
4766
4767 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4768
4769         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4770
4771 2012-05-20  Richard Henderson  <rth@twiddle.net>
4772
4773         * misc/getauxval.c: New file.
4774         * misc/sys/auxv.h: New file.
4775         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4776         (routines): Add getauxval.
4777         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4778         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4779         * elf/dl-sysdep.c (_dl_auxv): Remove.
4780         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4781         * elf/dl-support.c (_dl_auxv): New variable.
4782         (_dl_aux_init): Initialize it.
4783         * manual/startup.texi (Auxiliary Vector): New node.
4784         * sysdeps/generic/bits/hwcap.h: New file.
4785         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4786         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4787         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4788         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4789         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4790         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4792         Update.
4793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4794         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4795         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4796         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4797         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4798         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4799         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4800         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4801
4802 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4803
4804         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4805
4806 2012-05-19  David S. Miller  <davem@davemloft.net>
4807
4808         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4809
4810 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4811
4812         [BZ #14123]
4813         * math/s_ccosh.c: Include <float.h>
4814         (__ccosh): Avoid internal overflow calculating sinh and cosh
4815         values before multiplying by sin and cos values.
4816         * math/s_ccoshf.c: Likewise.
4817         * math/s_ccoshl.c: Likewise.
4818         * math/s_csin.c: Likewise.
4819         * math/s_csinf.c: Likewise.
4820         * math/s_csinl.c: Likewise.
4821         * math/s_csinh.c: Likewise.
4822         * math/s_csinhf.c: Likewise.
4823         * math/s_csinhl.c: Likewise.
4824         * math/libm-test.inc (ccos_test): Add more tests.
4825         (ccosh_test): Likewise.
4826         (csin_test): Likewise.
4827         (csinh_test): Likewise.
4828         * sysdeps/i386/fpu/libm-test-ulps: Update.
4829         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4830
4831 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4832
4833         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4834         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4835
4836         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4837
4838 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4839
4840         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4841         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4842         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4843         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4844         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4845         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4846         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4847         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4848         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4849         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4850         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4851         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4852         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4853         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4854         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4855         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4856         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4857         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4858         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4859         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4860         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4861         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4862         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4863         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4864         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4865         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4866         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4867         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4868         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4869         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4870         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4871
4872 2012-05-18  Andreas Jaeger  <aj@suse.de>
4873
4874         * csu/.gitignore: Delete.
4875
4876 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4877
4878         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4879         (timex): Use __syscall_slong_t.
4880
4881 2012-05-18  Andreas Jaeger  <aj@suse.de>
4882             Carlos O'Donell  <carlos_odonell@mentor.com>
4883
4884         * manual/install.texi (Configuring and compiling): Update
4885         description about files modified in the source directory.
4886         * INSTALL: Regenerated.
4887
4888 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4889
4890         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4891         value.  Use "or" to set return value to -1.
4892         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4893         negate return value.
4894
4895 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4896
4897         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4898         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4899         failure if the compiler has Graphite support disabled.
4900         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4901         Likewise.
4902         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4903         CFLAGS-memmove.c): Likewise.
4904         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4905         Likewise.
4906
4907 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4908
4909         * sysdeps/x86_64/x32/_itoa.h: New file.
4910
4911         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4912         getdents system call only if kernel and user dirents have the
4913         same d_ino and d_off.
4914
4915         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4916         LLONG_MAX != LONG_MAX.
4917         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4918         (_fitoa_word): Likewise.
4919
4920         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
4921         years.
4922         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
4923         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
4924         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
4925
4926         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
4927         include <bits/wordsize.h>.  Check __x86_64__ instead of
4928         __WORDSIZE.
4929         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
4930         if __x86_64__ is defined.  Use anonymous union on fpstate.
4931
4932         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
4933         anonymous union.
4934
4935 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
4936
4937         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
4938         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
4939         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
4940         Refer to _rtld_local_ro instead of _rtld_global_ro.
4941         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
4942         Likewise.
4943         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
4944         Likewise.
4945         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
4946         Likewise.
4947         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
4948         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
4949         of _rtld_global, and rtld_progname instead of _dl_argv[0].
4950
4951         * sysdeps/powerpc/powerpc32/dl-machine.c
4952         (__elf_machine_runtime_setup) [PROF]: Don't reference
4953         _dl_prof_resolve.
4954
4955 2012-05-18  Andreas Jaeger  <aj@suse.de>
4956
4957         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
4958         function only available for GCCs before 3.4 since GCC 3.4
4959         introduced a builtin.
4960         (lrint): Likewise.
4961         (llrintf): Likewise.
4962         (llrint): Likewise.
4963         (fmaxf): Likewise.
4964         (fmax): Likewise.
4965         (fminf): Likewise.
4966         (fmin): Likewise.
4967         (rint): Likewise.
4968         (rintf): Likewise.
4969         (nearbyint): Likewise.
4970         (nearbyintf): Likewise.
4971         (ceil): Likewise.
4972         (ceilf): Likewise.
4973         (floor): Likewise.
4974         (floorf): Likewise.
4975
4976 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4977
4978         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
4979         on both fields and cast pointer to __syscall_ulong_t.
4980
4981         * bits/types.h (__fsword_t): New type.
4982         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
4983         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
4984         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4985         (__FSWORD_T_TYPE): Likewise.
4986         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4987         (__FSWORD_T_TYPE): Likewise.
4988         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4989         (__FSWORD_T_TYPE): Likewise.
4990         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
4991         (__FSWORD_T_TYPE): Likewise.
4992         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
4993         __SWORD_TYPE with __fsword_t.
4994         (statfs64): Likewise.
4995
4996 2012-05-17  David S. Miller  <davem@davemloft.net>
4997
4998         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
4999
5000 2012-05-17  Andreas Jaeger  <aj@suse.de>
5001
5002         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5003         warning.
5004
5005 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5006
5007         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5008
5009 2012-05-17  Andreas Jaeger  <aj@suse.de>
5010
5011         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5012         when it is used.
5013
5014 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5015
5016         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5017
5018 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5019
5020         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5021         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5022
5023 2012-05-17  Andreas Jaeger  <aj@suse.de>
5024             Carlos O'Donell  <carlos_odonell@mentor.com>
5025
5026         [BZ #14059]
5027         * sysdeps/x86_64/multiarch/init-arch.h
5028         (bit_YMM_Usable): Rename to...
5029         (bit_AVX_Usable): ... this.
5030         (bit_FMA4_Usable): New macro.
5031         (bit_XMM_state): New macro.
5032         (bit_YMM_state): New macro.
5033         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5034         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5035         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5036         (CPUID_OSXSAVE): New macro.
5037         (CPUID_AVX): New macro.
5038         (CPUID_FMA4): New macro.
5039         (index_YMM_Usable): Rename to...
5040         (index_AVX_Usable): ... this.
5041         (HAS_AVX): Use HAS_ARCH_FEATURE.
5042         (HAS_FMA4): Likewise.
5043         (HAS_YMM_USABLE): Remove.
5044         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5045         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5046         are present.
5047         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5048         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5049         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5050         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5051         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5052
5053 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5054
5055         * math/libm-test.c: Support platforms without multiple rounding modes.
5056         * math/bug-nextafter.c: Support platforms without FP exceptions.
5057         * math/bug-nexttoward.c: Likewise.
5058         * math/test-fenv.c: Likewise.
5059         * math/test-misc.c: Likewise.
5060         * stdlib/bug-getcontext.c: Likewise.
5061
5062 2012-05-17  Andreas Jaeger  <aj@suse.de>
5063
5064         * manual/examples/search.c (critter_cmp): Change signature to
5065         avoid warnings.
5066         * manual/string.texi (Collation Functions): Likewise.
5067
5068 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5069
5070         * bits/types.h: Fold copyright years.
5071         * bits/typesizes.h: Likewise.
5072         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5073         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5074         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5075         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5076         * time/time.h: Likewise.
5077
5078 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5079
5080         [BZ #208]
5081         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5082         in instead of returning them.  Return void.
5083         (__libc_mallinfo): Accumulate over all arenas.
5084         (__malloc_stats): Adjust for change in int_mallinfo interface.
5085
5086 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5087
5088         [BZ #10375]
5089         * configure.in (NM): Add AC_CHECK_TOOL for it.
5090         (libc_extra_cflags): New substituted variable.
5091         Check for -fstack-protector being used implicitly.
5092         * configure: Regenerated.
5093         * config.make.in (config-extra-cflags): New variable,
5094         gets @libc_extra_cflags@.
5095         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5096
5097         [BZ #10375]
5098         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5099         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5100         * configure: Regenerated.
5101         * config.make.in (CPPUNDEFS): New substituted variable.
5102         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5103         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5104         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5105
5106 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5107
5108         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5109         (mq_attr): Use __syscall_slong_t.
5110
5111 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5112
5113         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5114         Check __x86_64__ instead of __WORDSIZE.
5115         (_STAT_VER_LINUX): Likewise.
5116         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5117         __syscall_ulong_t and __syscall_slong_t.
5118         (stat64): Likewise.
5119
5120 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5121
5122         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5123
5124 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5125
5126         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5127
5128 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5129
5130         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5131         __syscall_ulong_t.
5132
5133         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5134         include <bits/wordsize.h>.  Check __x86_64__ instead of
5135         __WORDSIZE.
5136         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5137         defined.
5138         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5139
5140         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5141         include <bits/wordsize.h>.  Check __x86_64__ instead of
5142         __WORDSIZE.
5143         (user_regs_struct): Use "__extension__ unsigned long long"
5144         instead of "unsigned long" if __x86_64__ is defined.
5145         (user): Likewise.  Pad after pointer field if __ILP32__ is
5146         defined.
5147
5148 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5149
5150         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5151         versions 5 to 9.
5152         * configure: Regenerated.
5153         * manual/install.texi (texinfo): Increase version requirement to
5154         4.5 or later.
5155         * INSTALL: Regenerated.
5156
5157         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5158
5159 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5160
5161         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5162
5163         * sysdeps/x86_64/x32/ffs.c: New file.
5164
5165         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5166         __syscall_ulong_t.
5167         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5168         defined.  Use __syscall_ulong_t.
5169         (shminfo): Use __syscall_ulong_t.
5170         (shm_info): Likewise.
5171
5172         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5173         __syscall_ulong_t.
5174
5175         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5176         <bits/wordsize.h>.
5177         (msgqnum_t): Use __syscall_ulong_t.
5178         (msglen_t): Likewise.
5179         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5180         __syscall_ulong_t.
5181
5182         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5183         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5184
5185         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5186
5187         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5188         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5189
5190         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5191         __syscall_slong_t.
5192
5193         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5194         include <bits/wordsize.h>.  Check __x86_64__ instead of
5195         __WORDSIZE.
5196
5197         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5198         "unsigned long long int" if __x86_64__ is defined.
5199         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5200
5201         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5202         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5203         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5204
5205         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5206         <stdint.h>.
5207         (GET_PC): Cast to uintptr_t first.
5208         (GET_FRAME): Likewise.
5209         (GET_STACK): Likewise.
5210
5211         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5212         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5213         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5214         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5215         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5216         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5217         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5218         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5219         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5220         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5221         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5222         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5223         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5224         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5225         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5226         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5227         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5228         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5229         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5230         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5231         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5232         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5233         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5234         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5235         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5236         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5237         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5238         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5239         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5240
5241 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5242
5243         * Makerules (+depfiles): Also collect depfiles from .oS in
5244         $(extra-objs).
5245         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5246         .oS, $(libnldbl-routines)).
5247
5248         * Makerules (native-compile-mkdep-flags): Define.
5249         * sunrpc/Makefile (extra-objs): Add $(addprefix
5250         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5251         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5252         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5253         calling $(make-target-directory).
5254
5255 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5256
5257         * bits/types.h (__snseconds_t): Removed.
5258         * time/time.h (struct timespec): Replace __snseconds_t with
5259         __syscall_slong_t.
5260         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5261         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5262         Likewise.
5263         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5264         (__SNSECONDS_T_TYPE): Likewise.
5265         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5266         (__SNSECONDS_T_TYPE): Likewise.
5267         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5268         (__SNSECONDS_T_TYPE): Likewise.
5269
5270 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5271
5272         * sysdeps/mach/hurd/bits/typesizes.h
5273         (__SYSCALL_SLONG_TYPE): New macro.
5274         (__SYSCALL_ULONG_TYPE): Likewise.
5275
5276 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5277
5278         * bits/types.h (__syscall_slong_t): New type.
5279         (__syscall_ulong_t): Likewise.
5280
5281         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5282         (__SYSCALL_ULONG_TYPE): Likewise.
5283         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5284         (__SYSCALL_SLONG_TYPE): Likewise.
5285         (__SYSCALL_ULONG_TYPE): Likewise.
5286         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5287         (__SYSCALL_SLONG_TYPE): Likewise.
5288         (__SYSCALL_ULONG_TYPE): Likewise.
5289         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5290         (__SYSCALL_SLONG_TYPE): Likewise.
5291         (__SYSCALL_ULONG_TYPE): Likewise.
5292
5293 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5294
5295         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5296         Add sigaltstack-offsets.sym.
5297         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5298         <sigaltstack-offsets.h>.
5299         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5300         longjmp_msg pointer.
5301         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5302         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5303         signal stack.
5304         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5305
5306 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5307
5308         * elf/stackguard-macros.h: Remove file.
5309         * sysdeps/generic/stackguard-macros.h: New file.
5310         * sysdeps/i386/stackguard-macros.h: Likewise.
5311         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5312         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5313         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5314         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5315         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5316         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5317         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5318         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5319         <elf/stackguard-macros.h>.
5320
5321         [BZ #14109]
5322         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5323         __aligned__ in attribute.
5324         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5325         (gregset_t): Likewise.
5326
5327 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5328
5329         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5330         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5331         * sysdeps/x86_64/x32/Implies-after: New file.
5332
5333 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5334
5335         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5336         and access return value for _dl_profile_fixup.  Use R10_LP to
5337         load frame size.
5338
5339 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5340
5341         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5342
5343 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5344
5345         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5346         * sysdeps/x86_64/x32/sysdep.h: New file.
5347
5348 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5349
5350         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5351         * sysdeps/x86_64/setjmp.S: Likewise.
5352
5353 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5354
5355         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5356         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5357         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5358         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5359         remove unused global constant.
5360
5361 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5362
5363         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5364         include of <not-cancel.h>.
5365
5366 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5367
5368         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5369
5370 2012-05-15  Jeff Law  <law@redhat.com>
5371             Andreas Jaeger  <aj@suse.de>
5372
5373         [BZ #13594]
5374         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5375         out from...
5376         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5377         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5378         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5379         code changing __hst_map_handle.map.
5380
5381 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5382
5383         * configure.in (sysnames): Look for Implies-before and Implies-after
5384         files.
5385         * configure: Regenerated.
5386
5387 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5388
5389         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5390         8-byte data alignment with LP_SIZE alignment.
5391
5392 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5393
5394         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5395         into R10_LP.
5396
5397 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5398
5399         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5400
5401 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5402
5403         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5404         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5405         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5406         Likewise.
5407         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5408
5409 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5410
5411         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5412         (stackinfo_sub_sp): Likewise.
5413
5414 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5415
5416         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5417         RAX_LP.
5418
5419 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5420
5421         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5422         into R*_LP.
5423
5424 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5425
5426         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5427         sizes into R*_LP.
5428
5429 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5430
5431         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5432
5433 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5434
5435         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5436         into R11_LP and load __x86_64_shared_cache_size_half into
5437         R8_LP.
5438
5439 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5440
5441         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5442         R8_LP.
5443
5444 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5445
5446         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5447         logb for POWER7.
5448         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5449         logbf for POWER7.
5450         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5451         logbl for POWER7.
5452         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5453         powerpc32/power7/fpu/s_logb.c via #include.
5454         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5455         powerpc32/power7/fpu/s_logbf.c via #include.
5456         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5457         powerpc32/power7/fpu/s_logbl.c via #include.
5458
5459 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5460
5461         * README.libm: Remove file.
5462
5463 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5464
5465         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5466         count for x32.  Use R*_LP and omit operand-size suffix.
5467
5468 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5469
5470         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5471         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5472         * sysdeps/x86_64/x32/shlib-versions: New file.
5473
5474 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5475
5476         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5477         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5478         Use _dl_fatal_printf instead.
5479
5480 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5481
5482         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5483         set if not set by the user.  Do not allow for being unset.
5484         * sysdeps/unix/sysv/linux/configure: Regenerated.
5485
5486 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5487
5488         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5489         the `q' suffix from lea and replace .quad with ASM_ADDR.
5490
5491 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5492
5493         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5494         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5495         instead of $17.
5496         (PTR_DEMANGLE): Likewise.
5497
5498 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5499
5500         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5501         (LP_OP): Likewise.
5502         (ASM_ADDR): Likewise.
5503         (RAX_LP): Likewise.
5504         (RBP_LP): Likewise.
5505         (RBX_LP): Likewise.
5506         (RCX_LP): Likewise.
5507         (RDI_LP): Likewise.
5508         (RSI_LP): Likewise.
5509         (RSP_LP): Likewise.
5510         (R8_LP): Likewise.
5511         (R9_LP): Likewise.
5512         (R10_LP): Likewise.
5513         (R10_LP): Likewise.
5514         (R11_LP): Likewise.
5515         (R12_LP): Likewise.
5516         (R13_LP): Likewise.
5517         (R14_LP): Likewise.
5518         (R15_LP): Likewise.
5519
5520 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5521
5522         * sysdeps/x86_64/x32/dl-machine.h: New file.
5523
5524 2012-05-14  Andreas Jaeger  <aj@suse.de>
5525
5526         * manual/Makefile (subdir): Remove export of subdir.
5527         (all): Remove target.
5528         (.PHONY): Remove all from list.
5529         (mkinstalldirs): Remove.
5530         (.PHONY): Remove installdirs from list.
5531         ($(inst_infodir)/libc.info): Use make-target-directory.
5532         (installdirs): Remove.
5533         (subdir_%): Remove.
5534         (glibc-targets): Remove.
5535         (lib): Remove.
5536         (stubs): Remove.
5537         ($(objpfx)stubs ../po/manual.pot): Remove.
5538         ($(objpfx)stamp%): Remove.
5539         (make-target-directory): Remove.
5540         (subdir_install): Remove.
5541         (routines): Remove.
5542         (aux): Remove.
5543         (sources): Remove.
5544         (objects): Remove.
5545         (headers): Remove.
5546
5547         [BZ #13750]
5548         * manual/.gitignore: Remove, it's not needed anymore.
5549         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5550         all files in it.
5551         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5552         directory.
5553         (texis): Renamed to $(objpfx)texis.
5554         (texis-path): New, contains path to generated files.
5555         (chapters.%): Use texis-path for complete path, add extra argument
5556         libc-texinfo.sh.
5557         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5558         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5559         (summary,texi, stamp-summary): Use complete path of
5560         files. Generate files in build dir.
5561         (dir-add.texi): Build in build dir.
5562         (libm-err.texi,stamp-libm-err): Likewise.
5563         (version.texi, stamp-version): Likewise.
5564         (.%c.texi): Likewise.
5565         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5566         (mostlyclean): Remove target.
5567         (realclean): Remove target.
5568         (generated): Add new variable with contents from mostlyclean and
5569         realclean, remove entries duplicated in common-mostlyclean, add
5570         stamp-libm-err and stamp-version.
5571         (generated-dirs): Add libc directory.
5572         ($(inst_infodir)/libc.info): Install files from build dir.
5573
5574         * manual/install.texi (Configuring and compiling): Adjust since
5575         the info files are not part of the tar ball anymore.
5576
5577 2012-05-14  Andreas Jaeger  <aj@suse.de>
5578
5579         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5580         variable.
5581
5582 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5583
5584         [BZ #13717]
5585         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5586         to 2.2.0 where earlier.
5587         * sysdeps/unix/sysv/linux/configure: Regenerated.
5588         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5589         Remove conditional code.
5590         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5591         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5592         Remove conditional code.
5593         [!__NR_lchown]: Likewise.
5594         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5595         [__NR_lchown]: Likewise.
5596         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5597         comment referencing __ASSUME_LCHOWN_SYSCALL.
5598         * sysdeps/unix/sysv/linux/i386/sigaction.c
5599         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5600         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5601         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5602         Remove conditional code.
5603         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5604         (__protocol_available): Remove #if 0 code.
5605         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5606         conditional code.
5607         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5608         * sysdeps/unix/sysv/linux/kernel-features.h
5609         (__ASSUME_GETCWD_SYSCALL): Don't define.
5610         (__ASSUME_REALTIME_SIGNALS): Likewise.
5611         (__ASSUME_PREAD_SYSCALL): Likewise.
5612         (__ASSUME_PWRITE_SYSCALL): Likewise.
5613         (__ASSUME_POLL_SYSCALL): Likewise.
5614         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5615         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5616         non-SPARC.
5617         (__ASSUME_SIOCGIFNAME): Don't define.
5618         (__ASSUME_MSG_NOSIGNAL): Likewise.
5619         (__ASSUME_SENDFILE): Define unconditionally.
5620         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5621         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5622         conditional code.
5623         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5624         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5625         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5626         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5627         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5628         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5629         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5631         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5632         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5634         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5635         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5637         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5638         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5640         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5641         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5643         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5644         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5646         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5647         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5649         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5650         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5652         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5653         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5654         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5655         Remove conditional code.
5656         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5657         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5658         Remove conditional code.
5659         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5660         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5661         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5662         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5663         Remove conditional code.
5664         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5665         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5666         Remove conditional code.
5667         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5668         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5669         Remove conditional code.
5670         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5671         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5672         Remove conditional code.
5673         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5674         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5675         Remove conditional code.
5676         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5677         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5678         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5679         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5680         * sysdeps/unix/sysv/linux/sigaction.c
5681         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5682         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5683         * sysdeps/unix/sysv/linux/sigpending.c
5684         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5685         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5686         * sysdeps/unix/sysv/linux/sigprocmask.c
5687         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5688         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5689         * sysdeps/unix/sysv/linux/sigsuspend.c
5690         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5691         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5692         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5693         (__libc_missing_rt_sigs): Remove.
5694         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5695         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5696         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5697         Remove conditional code.
5698         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5699         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5700         return 1.
5701         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5702         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5703         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5704         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5705
5706 2012-05-14  Andreas Jaeger  <aj@suse.de>
5707
5708         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5709         it's not used in glibc.
5710         (__coshm1): Likewise.
5711         (__acosh1p): Likewise.
5712         (__sgn): Likewise.
5713
5714         * manual/string.texi (Copying and Concatenation): Add missing
5715         variable in concat example.
5716         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5717
5718 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5719
5720         [BZ #14103]
5721         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5722         __builtin_clzl with __builtin_clzll.
5723
5724 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5725
5726         [BZ #14104]
5727         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5728         libc_freeres_ptr.
5729
5730 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5731
5732         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5733         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5734         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5735         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5736
5737 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5738
5739         * NEWS: Update ia64 info.
5740
5741 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5742
5743         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5744         used as bcopy.
5745
5746 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5747
5748         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5749         * sysdeps/unix/syscalls.list (dup3): Likewise.
5750         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5751         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5752
5753 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5754
5755         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5756         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5757
5758 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5759
5760         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5761         thread pointer.
5762         (TLS_IE): Use mov/add instead of movq/addq to load thread
5763         pointer.
5764         (TLS_GD_PREFIX): New.
5765         (TLS_GD): Use it.
5766
5767 2012-05-11  David S. Miller  <davem@davemloft.net>
5768
5769         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5770         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5771         (_FPU_SETCW): Likewise.
5772
5773 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5774
5775         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5776         is 32-byte aligned.
5777
5778 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5779
5780         [BZ #11837]
5781         * iconvdata/gb18030.c: Update tables.
5782         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5783         characters specially.
5784         (BODY for TO_LOOP): Add encoding of missing ranges.
5785
5786 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5787
5788         [BZ #13673]
5789         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5790         * sysdeps/mach/hurd/dup3.c: Likewise.
5791         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5792         * sysdeps/powerpc/memmove.c:: Likewise.
5793
5794 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5795
5796         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5797         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5798
5799 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5800
5801         * elf/elf.h (R_X86_64_RELATIVE64): New.
5802         (R_X86_64_NUM): Updated.
5803         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5804         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5805         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5806         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5807         tst-quad1pie tst-quad2pie
5808         (modules-names): Add tst-quadmod1 tst-quadmod2.
5809         ($(objpfx)tst-quad1): New dependency.
5810         ($(objpfx)tst-quad2): Likewise.
5811         ($(objpfx)tst-quad1pie): Likewise.
5812         ($(objpfx)tst-quad2pie): Likewise.
5813         * sysdeps/x86_64/tst-quad1.c: New file.
5814         * sysdeps/x86_64/tst-quad1pie.c: New file.
5815         * sysdeps/x86_64/tst-quad2.c: Likewise.
5816         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5817         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5818         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5819         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5820         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5821
5822 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5823
5824         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5825         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5826         * streams/stropts.h (t_scalar_t): Define type.
5827
5828         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5829         (_PATH_PRESERVE): Set to "/var/lib".
5830         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5831
5832         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5833         instead of int.
5834
5835         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5836         if __dir_mkfile succeeded.
5837
5838         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5839         checking for _hurd_dtablesize.  Unlock it right after having
5840         finished _hurd_dtable allocation.
5841
5842 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5843
5844         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5845         * sysdeps/mach/hurd/configure: Regenerated.
5846         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5847         special-casing to...
5848         * sysdeps/gnu/configure.in: ... this new file.
5849         * sysdeps/unix/sysv/linux/configure: Regenerated.
5850         * sysdeps/gnu/configure: New generated file.
5851
5852         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5853         for Linux: use nsec instead of usec, as well as:
5854         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5855         members of type struct timespec.
5856         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5857         New macros.
5858         (struct stat64): Likewise.
5859         (_STATBUF_ST_NSEC): New macro.
5860         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5861
5862         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5863         __strtoul_internal rather than strtoul.
5864
5865 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5866
5867         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5868         and reject them.
5869
5870 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5871
5872         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5873         which preserves existing values.
5874         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5875
5876 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5877
5878         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5879         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5880         greater than FD_SETSIZE.
5881
5882 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5883
5884         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5885         allocated, call __vm_protect to finish enabling the existing space, and
5886         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5887         allocate the remainder.
5888
5889 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5890
5891         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5892         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5893
5894 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5895
5896         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5897         sysdeps/mach/hurd/readlink.c.
5898
5899         * posix/tst-sysconf.c (posix_options): Only use
5900         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5901         _POSIX_SYNCHRONIZED_IO when they are defined
5902         * sysdeps/mach/hurd/bits/posix_opt.h:
5903         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5904         (_XOPEN_REALTIME): Undefine macro.
5905         (_XOPEN_REALTIME_THREADS): Undefine macro.
5906         (_XOPEN_SHM): Undefine macro.
5907         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5908         macro to -1.
5909         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5910         macro to -1.
5911         (_POSIX_ASYNC_IO): Undefine macro.
5912         (_POSIX_PRIORITIZED_IO): Undefine macro.
5913         (_POSIX_SPIN_LOCKS): Define macro to -1.
5914
5915         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5916         SA_NODEFER, SA_RESETHAND.
5917         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
5918         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
5919         F_DUPFD_CLOEXEC.
5920
5921 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5922
5923         * elf/Makefile (pldd-modules): Define unconditionally.
5924
5925 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5926
5927         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
5928
5929 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5930
5931         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5932         Return ENOENT when name is empty.
5933         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
5934
5935 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5936
5937         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
5938
5939         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
5940
5941 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5942
5943         Fix mlock in all cases except non-readable pages.
5944         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
5945         instead of VM_PROT_ALL as parameter to __vm_wire function.
5946
5947         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
5948         (__mkdir): When path is `/', just fail with EEXIST.
5949         * sysdeps/mach/hurd/mkdirat.c: Likewise.
5950
5951 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5952
5953         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
5954         <sys/uio.h> (for writev).
5955         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
5956         and <sys/param.h> (for MIN).
5957
5958 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5959
5960         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
5961         REQUESTED_TIME.  Properly set the remaining time and return EINTR
5962         if interrupted.
5963
5964 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5965
5966         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
5967         Depend on against $(link-rpcuserlibs).
5968
5969 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5970
5971         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
5972         (__libc_stack_end): Do not use attribute_relro.
5973         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
5974         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
5975         to libthread-provided value.
5976         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
5977         attribute_relro.
5978
5979 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5980
5981         [BZ #3748]
5982         * bits/libc-lock.h (__libc_once_get): New macro.
5983         * sysdeps/mach/bits/libc-lock.h: Likewise.
5984         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
5985         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
5986         instead of using implementation details.
5987
5988         * libio/fileops.c: Unconditionally include <kernel-features.h>.
5989         * libio/freopen.c: Likewise.
5990         * libio/freopen64.c: Likewise.
5991         * misc/syslog.c: Likewise.
5992         * nscd/connections.c: Likewise.
5993         * nscd/netgroupcache.c: Likewise.
5994         * sysdeps/posix/getcwd.c: Likewise.
5995
5996 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5997
5998         * math/w_ilogbf.c: Add #include <limits.h>.
5999
6000 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6001
6002         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6003         path instead of returning without unlocking.
6004
6005         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6006         immediate-write ioctls.
6007         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6008
6009 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6010
6011         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6012         __builtin_frame_address instead of making assumptions about the
6013         location of the return address relative to DATA.  Force early load of
6014         the return address.
6015         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6016         __builtin_frame_address.
6017
6018         dup3 for GNU Hurd.
6019         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6020         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6021         implement dup3 and do some further code clean-ups.
6022         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6023         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6024
6025 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6026
6027         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6028
6029         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6030         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6031         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6032         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6033         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6034         d->port.lock.
6035
6036         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6037         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6038         when handler == SIG_ERR, not when handler != SIG_ERR.
6039
6040 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6041
6042         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6043         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6044         definitions.
6045
6046         accept4 for GNU Hurd.
6047         * include/sys/socket.h (__libc_accept4): New prototype.
6048         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6049         to implement __libc_accept4.
6050         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6051         __libc_accept4.
6052         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6053
6054         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6055         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6056         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6057         signal-defines.sym.
6058
6059 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6060
6061         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6062
6063 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6064
6065         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6066         assertion on O_CLOEXEC flag.
6067         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6068         * hurd/intern-fd.c: Likewise.
6069         * hurd/port2fd.c: Likewise.
6070
6071 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6072
6073         [BZ #3906]
6074         * bits/in.h (IPV6_PKTINFO): Define new macro.
6075         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6076
6077 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6078
6079         [BZ #13954]
6080         [BZ #13955]
6081         [BZ #13956]
6082         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6083         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6084         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6085         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6086         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6087         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6088         * math/libm-test.inc (logb_test) : Additional logb tests.
6089
6090 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6091             Andreas Jaeger  <aj@suse.de>
6092
6093         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6094         * configure: Regenerated.
6095         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6096         * config.make.in (link-obsolete-rpc): New substituted variable.
6097         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6098         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6099         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6100         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6101         so that libc.a contains the symbols.
6102         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6103         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6104         * sunrpc/auth_none.c: Likewise.
6105         * sunrpc/auth_unix.c: Likewise.
6106         * sunrpc/authdes_prot.c: Likewise.
6107         * sunrpc/authuxprot.c: Likewise.
6108         * sunrpc/clnt_gen.c: Likewise.
6109         * sunrpc/clnt_perr.c: Likewise.
6110         * sunrpc/clnt_raw.c: Likewise.
6111         * sunrpc/clnt_simp.c: Likewise.
6112         * sunrpc/clnt_tcp.c: Likewise.
6113         * sunrpc/clnt_udp.c: Likewise.
6114         * sunrpc/clnt_unix.c: Likewise.
6115         * sunrpc/des_crypt.c: Likewise.
6116         * sunrpc/des_soft.c: Likewise.
6117         * sunrpc/get_myaddr.c: Likewise.
6118         * sunrpc/key_call.c: Likewise.
6119         * sunrpc/key_prot.c: Likewise.
6120         * sunrpc/netname.c: Likewise.
6121         * sunrpc/pm_getmaps.c: Likewise.
6122         * sunrpc/pm_getport.c: Likewise.
6123         * sunrpc/pmap_clnt.c: Likewise.
6124         * sunrpc/pmap_prot.c: Likewise.
6125         * sunrpc/pmap_prot2.c: Likewise.
6126         * sunrpc/pmap_rmt.c: Likewise.
6127         * sunrpc/publickey.c: Likewise.
6128         * sunrpc/rpc_cmsg.c: Likewise.
6129         * sunrpc/rpc_common.c: Likewise.
6130         * sunrpc/rpc_dtable.c: Likewise.
6131         * sunrpc/rpc_prot.c: Likewise.
6132         * sunrpc/rpc_thread.c: Likewise.
6133         * sunrpc/rtime.c: Likewise.
6134         * sunrpc/svc.c: Likewise.
6135         * sunrpc/svc_auth.c: Likewise.
6136         * sunrpc/svc_raw.c: Likewise.
6137         * sunrpc/svc_run.c: Likewise.
6138         * sunrpc/svc_tcp.c: Likewise.
6139         * sunrpc/svc_udp.c: Likewise.
6140         * sunrpc/svc_unix.c: Likewise.
6141         * sunrpc/svcauth_des.c: Likewise.
6142         * sunrpc/xcrypt.c: Likewise.
6143         * sunrpc/xdr.c: Likewise.
6144         * sunrpc/xdr_array.c: Likewise.
6145         * sunrpc/xdr_float.c: Likewise.
6146         * sunrpc/xdr_intXX_t.c: Likewise.
6147         * sunrpc/xdr_mem.c: Likewise.
6148         * sunrpc/xdr_rec.c: Likewise.
6149         * sunrpc/xdr_ref.c: Likewise.
6150         * sunrpc/xdr_sizeof.c: Likewise.
6151         * sunrpc/xdr_stdio.c: Likewise.
6152
6153 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6154
6155         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6156         change.  Update copyright years.
6157
6158 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6159
6160         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6161
6162 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6163             Joseph Myers  <joseph@codesourcery.com>
6164             Paul Pluzhnikov  <ppluzhnikov@google.com>
6165
6166         [BZ #14012]
6167         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6168         requiring rpcgen.
6169         [cross-compiling] (extra-libs): Likewise.
6170         [cross-compiling] (extra-libs-others): Likewise.
6171         [cross-compiling] (librpcsvc-routines): Likewise.
6172         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6173         [cross-compiling] (omit-deps): Likewise.
6174         (sunrpc-CPPFLAGS): New variable.
6175         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6176         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6177         (cross-rpcgen-objs): New variable.
6178         (extra-objs): Append $(cross-rpcgen-objs).
6179         ($(cross-rpcgen-objs)): New rule.
6180         ($(objpfx)cross-rpcgen): Likewise.
6181         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6182         comment.
6183         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6184         ($(objpfx)x%.stmp): Likewise.
6185         * sunrpc/proto.h [IS_IN_build] (_): Define.
6186         [IS_IN_build] (_libc_intl_domainname): Likewise.
6187
6188 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6189
6190         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6191         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6192         and R_X86_64_TPOFF64.
6193
6194 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6195
6196         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6197         sysdeps/unix/sysv/syscalls.list.
6198         (stime): Likewise.
6199         (utime): Likewise.
6200         * sysdeps/unix/sysv/syscalls.list: Remove file.
6201
6202 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6203
6204         [BZ #3440]
6205         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6206         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6207         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6208         (__LC_IDENTIFICATION): Make these macros useful in #if
6209         expressions, as required by C99.
6210
6211 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6212
6213         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6214         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6215         after this.
6216
6217 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6218
6219         * stdlib/longlong.h: Updated from GCC.
6220
6221 2012-05-09  Andreas Jaeger  <aj@suse.de>
6222
6223         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6224         default is first entry.
6225         (run_mode): Set type.
6226         (main): Remove informal message about syslog.
6227         (options): Fix typo.
6228
6229         [BZ #14053]
6230         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6231         to asm.
6232         (lrint): Likewise.
6233         (llrintf): Likewise.
6234         (llrint): Likewise.
6235         (rint): Likewise.
6236         (rintf): Likewise.
6237         (nearbyint): Likewise.
6238         (nearbyintf): Likewise.
6239
6240 2012-05-09  Andreas Jaeger  <aj@suse.de>
6241             Pedro Alves  <palves@redhat.com>
6242
6243         * nscd/nscd.c (run_mode): Use enum.
6244         (main): Cleanup coding style issue.
6245
6246 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6247             Andreas Jaeger  <aj@suse.de>
6248
6249         * nscd/nscd.c (go_background): Replaced with...
6250         (run_mode): ... this.
6251         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6252         (options): Add -F --foreground.
6253         (main): Implement it.
6254         (parse_opt): Parse it.
6255
6256 2012-05-09  Andreas Jaeger  <aj@suse.de>
6257
6258         [BZ #14083]
6259         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6260         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6261         -Wconversion warning.
6262         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6263         Likewise.
6264
6265 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6266
6267         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6268         == 0.
6269         (LC_ALL): Use macro-int-constant.
6270         (LC_COLLATE): Likewise.
6271         (LC_CTYPE): Likewise.
6272         (LC_MESSAGES): Likewise.
6273         (LC_MONETARY): Likewise.
6274         (LC_NUMERIC): Likewise.
6275         (LC_TIME): Likewise.
6276         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6277         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6278         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6279         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6280         Specify type.
6281         [C99-based standards] (float_t): Expect type.
6282         [C99-based standards] (double_t): Expect type.
6283         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6284         type.
6285         [C99-based standards] (HUGE_VALL): Likewise.
6286         [C99-based standards] (INFINITY): Likewise.
6287         [C99-based standards] (NAN): Likewise.
6288         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6289         [C99-based standards] (FP_NAN): Likewise.
6290         [C99-based standards] (FP_NORMAL): Likewise.
6291         [C99-based standards] (FP_SUBNORMAL): Likewise.
6292         [C99-based standards] (FP_ZERO): Likewise.
6293         [C99-based standards] (FP_FAST_FMA): Use
6294         optional-macro-int-constant.  Specify type.  Require == 1.
6295         [C99-based standards] (FP_FAST_FMAF): Likewise.
6296         [C99-based standards] (FP_FAST_FMAL): Likewise.
6297         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6298         [C99-based standards] (FP_ILOGBNAN): Likewise.
6299         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6300         Specify type.
6301         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6302         [C99-based standards] (math_errhandling): Specify type.
6303         [ISO99 || ISO11] (signgam): Do not allow.
6304         [non-C99-based standards] (copysignf): Do not allow.
6305         [non-C99-based standards] (exp2f): Likewise.
6306         [non-C99-based standards] (log2f): Likewise.
6307         [non-C99-based standards] (modff): Allow.
6308         [non-C99-based standards] (erff): Do not allow.
6309         [non-C99-based standards] (erfcf): Likewise.
6310         [non-C99-based standards] (gammaf): Likewise.
6311         [non-C99-based standards] (hypotf): Likewise.
6312         [non-C99-based standards] (j0f): Likewise.
6313         [non-C99-based standards] (j1f): Likewise.
6314         [non-C99-based standards] (jnf): Likewise.
6315         [non-C99-based standards] (lgammaf): Likewise.
6316         [non-C99-based standards] (tgammaf): Likewise.
6317         [non-C99-based standards] (y0f): Likewise.
6318         [non-C99-based standards] (y1f): Likewise.
6319         [non-C99-based standards] (ynf): Likewise.
6320         [non-C99-based standards] (isnanf): Likewise.
6321         [non-C99-based standards] (acoshf): Likewise.
6322         [non-C99-based standards] (asinhf): Likewise.
6323         [non-C99-based standards] (atanhf): Likewise.
6324         [non-C99-based standards] (cbrtf): Likewise.
6325         [non-C99-based standards] (expm1f): Likewise.
6326         [non-C99-based standards] (ilogbf): Likewise.
6327         [non-C99-based standards] (log1pf): Likewise.
6328         [non-C99-based standards] (logbf): Likewise.
6329         [non-C99-based standards] (nextafterf): Likewise.
6330         [non-C99-based standards] (remainderf): Likewise.
6331         [non-C99-based standards] (rintf): Likewise.
6332         [non-C99-based standards] (scalbf): Likewise.
6333         [non-C99-based standards] (copysignl): Likewise.
6334         [non-C99-based standards] (exp2l): Likewise.
6335         [non-C99-based standards] (log2l): Likewise.
6336         [non-C99-based standards] (modfl): Allow.
6337         [non-C99-based standards] (erfl): Do not allow.
6338         [non-C99-based standards] (erfcl): Likewise.
6339         [non-C99-based standards] (gammal): Likewise.
6340         [non-C99-based standards] (hypotl): Likewise.
6341         [non-C99-based standards] (j0l): Likewise.
6342         [non-C99-based standards] (j1l): Likewise.
6343         [non-C99-based standards] (jnl): Likewise.
6344         [non-C99-based standards] (lgammal): Likewise.
6345         [non-C99-based standards] (tgammal): Likewise.
6346         [non-C99-based standards] (y0l): Likewise.
6347         [non-C99-based standards] (y1l): Likewise.
6348         [non-C99-based standards] (ynl): Likewise.
6349         [non-C99-based standards] (isnanl): Likewise.
6350         [non-C99-based standards] (acoshl): Likewise.
6351         [non-C99-based standards] (asinhl): Likewise.
6352         [non-C99-based standards] (atanhl): Likewise.
6353         [non-C99-based standards] (cbrtl): Likewise.
6354         [non-C99-based standards] (expm1l): Likewise.
6355         [non-C99-based standards] (ilogbl): Likewise.
6356         [non-C99-based standards] (log1pl): Likewise.
6357         [non-C99-based standards] (logbl): Likewise.
6358         [non-C99-based standards] (nextafterl): Likewise.
6359         [non-C99-based standards] (remainderl): Likewise.
6360         [non-C99-based standards] (rintl): Likewise.
6361         [non-C99-based standards] (scalbl): Likewise.
6362         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6363         [non-C99-based standards] (FP_*): Do not allow.
6364         [C99-based standards] (FP_*): Change to
6365         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6366         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6367         allow.
6368         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6369         (SIG_ERR): Likewise.
6370         [X/Open-based standards] (SIG_HOLD): Likewise.
6371         (SIG_IGN): Likewise.
6372         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6373         positive value.
6374         (SIGFPE): Likewise.
6375         (SIGILL): Likewise.
6376         (SIGINT): Likewise.
6377         (SIGSEGV): Likewise.
6378         (SIGTER): Likewise.
6379         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6380         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6381         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6382         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6383         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6384         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6385         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6386         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6387         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6388         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6389         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6390         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6391         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6392         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6393         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6394         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6395         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6396         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6397         [X/Open-based standards] (SIGTRAP): Likewise.
6398         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6399         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6400         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6401         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6402         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6403         allow.
6404
6405 2012-05-08  Ian Wienand  <ianw@vmware.com>
6406
6407         [BZ #14080]
6408         * time/tzset.c (__tzset_parse_tz): Update default rules for
6409         daylight time changes in the Energy Policy Act of 2005.
6410
6411 2012-05-09  Andreas Jaeger  <aj@suse.de>
6412
6413         [BZ #13983]
6414         * elf/ldconfig.c (parse_conf): Change string to make clear that
6415         ldconfig only issued a warning if ld.so.conf does not exist.
6416
6417 2012-05-08  David S. Miller  <davem@davemloft.net>
6418
6419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6420         movxtod instead of popping the value on the stack.
6421
6422         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6423
6424 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6425
6426         * config.h.in: Add HAVE_ARM_PCS_VFP.
6427
6428 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6429
6430         [BZ #13979]
6431         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6432         checking but the checks are disabled for any reason.
6433
6434 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6435
6436         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6437         and ELF64_R_TYPE with ELFW(R_TYPE).
6438
6439 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6440
6441         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6442         (ulimit): Likewise.
6443
6444         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6445         (settimeofday): Likewise.
6446
6447 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6448
6449         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6450         a struct th_u2 inside the union, and move tu_block/tu_code into
6451         a new th_u3 union of tu_block/tu_code inside of that.  Move
6452         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6453         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6454         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6455         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6456         (th_stuff): Change to th_u1.tu_stuff.
6457         (th_data): Define.
6458         (th_msg): Change to th_u1.th_u2.tu_data.
6459
6460 2012-05-07  David S. Miller  <davem@davemloft.net>
6461
6462         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6463
6464         [BZ #14074]
6465         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6466         (SETUP_PIC_REG): Use it.
6467         (SETUP_PIC_REG_LEAF): Use it.
6468
6469 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6470
6471         [BZ #13885]
6472         [BZ #13923]
6473         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6474         USE_AS_EXPM1L.
6475         (EXPL_FINITE): Likewise.
6476         (FLDLOG): Likewise.
6477         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6478         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6479         e_expl.S.
6480         * sysdeps/x86_64/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/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6486         e_expl.S.
6487         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6488         test of -max_value argument for long double.
6489         * sysdeps/i386/fpu/libm-test-ulps: Update.
6490         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6491
6492 2012-05-06  David S. Miller  <davem@davemloft.net>
6493
6494         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6495         quad soft-float symbols whose references which are compiler
6496         generated.
6497         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6498
6499 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6500
6501         [BZ #13884]
6502         [BZ #13914]
6503         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6504         USE_AS_EXP10L.
6505         (EXPL_FINITE): Likewise.
6506         (FLDLOG): Likewise.
6507         (c0): Likewise.
6508         (c1): Likewise.
6509         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6510         Adjust comments for base varying.
6511         (__expl_finite): Change alias to EXPL_FINITE.
6512         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6513         e_expl.S.
6514         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6515         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6516         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6517         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6518         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6519         USE_AS_EXP10L.
6520         (EXPL_FINITE): Likewise.
6521         (FLDLOG): Likewise.
6522         (c0): Likewise.
6523         (c1): Likewise.
6524         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6525         Adjust comments for base varying.
6526         (__expl_finite): Change alias to EXPL_FINITE.
6527         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6528         tests for bugs.
6529         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6530
6531         [BZ #14064]
6532         * math/libm-test.inc (check_float_internal): Correct ulp
6533         calculation for subnormal expected results.
6534
6535 2012-05-06  Andreas Jaeger  <aj@suse.de>
6536
6537         * Makeconfig (+math-flags): New, set to -frounding-math.
6538         (+cflags): Add +math-flags so that all of glibc gets compiled with
6539         it.
6540
6541         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6542
6543 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6544
6545         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6546         Disable one test.
6547
6548         [BZ #13787]
6549         [BZ #13922]
6550         [BZ #14036]
6551         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6552         (__ieee754_expl): Allow for and saturate large arguments.
6553         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6554         (u_threshold): Likewise.
6555         (__exp): Call __ieee754_exp before checking for overflow and
6556         underflow.
6557         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6558         (u_threshold): Likewise.
6559         (__expf): Call __ieee754_expf before checking for overflow and
6560         underflow.
6561         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6562         (u_threshold): Likewise.
6563         (__expl): Call __ieee754_expl before checking for overflow and
6564         underflow.
6565         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6566         (__ieee754_expl): Allow for and saturate large arguments.
6567         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6568         missing overflow exception on overflow.
6569         (expm1_test): Do not allow missing overflow exception on overflow.
6570
6571         * sysdeps/i386/fpu/e_expl.c: Move to ...
6572         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6573         rather than using inline asm.
6574         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6575         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6576         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6577
6578         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6579         (nice): Likewise.
6580         (poll): Likewise.
6581         (signal): Likewise.
6582         (time): Likewise.
6583         (times): Likewise.
6584
6585 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6586
6587         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6588         sysdeps/unix/common/syscalls.list.
6589         (fchmod): Likewise.
6590         (fchown): Likewise.
6591         (ftruncate): Likewise.
6592         (getrusage): Likewise.
6593         (gettimeofday): Likewise.
6594         (setpgid): Likewise.
6595         (setregid): Likewise.
6596         (setreuid): Likewise.
6597         (sigaction): Likewise.
6598         (truncate): Likewise.
6599         (vhangup): Likewise.
6600         * sysdeps/unix/common/syscalls.list: Remove file.
6601         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6602         * sysdeps/unix/sysv/linux/Implies: Likewise.
6603
6604 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6605
6606         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6607         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6608         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6609         Moved to ...
6610         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6611         Here.
6612         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6613         to ...
6614         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6615         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6616         to ...
6617         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6618         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6619         to ...
6620         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6621         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6622         to ...
6623         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6624         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6625         to ...
6626         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6627         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6628         to ...
6629         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6630         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6631         to ...
6632         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6633         Here.
6634         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6635         to ...
6636         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6637         Here.
6638         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6639         to ...
6640         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6641         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6642         Moved to ...
6643         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6644         Here.
6645         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6646         to ...
6647         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6648
6649 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6650
6651         * sysdeps/unix/common/bits/dirent.h: Remove file.
6652         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6653
6654         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6655         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6656         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6657         * sysdeps/unix/bsd/isatty.c: Likewise.
6658         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6659         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6660         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6661
6662 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6663
6664         [BZ #13563]
6665         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6666         long double comparison inaccuracies.
6667         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6668         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6669
6670 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6671
6672         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6673         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6674
6675 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6676
6677         [BZ #14049]
6678         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6679         nonzero digits before rounding a hex value.
6680         * stdlib/tst-strtod.c (tests): Add another test.
6681
6682 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6683
6684         * sysdeps/s390/fpu/libm-test-ulps: Update.
6685
6686 2012-05-03  Andreas Jaeger  <aj@suse.de>
6687
6688         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6689         does not get optimized out.
6690         (malloc_opt_barrier): New.
6691
6692 2012-05-03  Andreas Jaeger  <aj@suse.de>
6693             Roland McGrath  <roland@hack.frob.com>
6694
6695         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6696         intermediate file deletion.
6697         (generated): Add .symlist files.
6698
6699 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6700
6701         [BZ #13775]
6702         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6703         Redirect under this condition.
6704         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6705         [__USE_GNU] (__dprintf_chk): Not under this condition.
6706         [__USE_GNU] (__vdprintf_chk): Likewise.
6707         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6708         under this condition.
6709         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6710         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6711         [__USE_XOPEN2K8] (vdprintf): Likewise.
6712         [__USE_GNU] (__dprintf_chk): Not under this condition.
6713         [__USE_GNU] (__vdprintf_chk): Likewise.
6714         [__USE_GNU] (dprintf): Likewise.
6715         [__USE_GNU] (vdprintf): Likewise.
6716
6717 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6718
6719         * elf/Makefile (common-generated): Set this instead of generated for
6720         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6721         $(all-built-dso)-derived lists.
6722
6723 2012-05-03  Andreas Jaeger  <aj@suse.de>
6724
6725         * sysdeps/i386/fpu/libm-test-ulps: Update.
6726
6727         * FAQ: Removed.
6728         * FAQ.in: Likewise.
6729         * scripts/gen-FAQ.pl: Likewise.
6730         * manual/install.texi (Installation): Point to online location of
6731         FAQ.
6732         * Makefile (files-for-dist): Remove FAQ.
6733         (FAQ): Remove.
6734
6735 2012-05-02  Allan McRae  <allan@archlinux.org>
6736
6737         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6738         (LDFLAGS-reldepmod5.so): Likewise.
6739         (LDFLAGS-reldep6mod1.so): Likewise.
6740         (LDFLAGS-reldep6mod4.so): Likewise.
6741         (LDFLAGS-reldep8mod3.so): Likewise.
6742         (LDFLAGS-unload4mod1.so): Likewise.
6743         (LDFLAGS-unload4mod2.so): Likewise.
6744         (LDFLAGS-tst-initorder): Likewise.
6745         (LDFLAGS-tst-initordera2.so): Likewise.
6746         (LDFLAGS-tst-initordera3.so): Likewise.
6747         (LDFLAGS-tst-initordera4.so): Likewise.
6748         (LDFLAGS-tst-initorderb2.so): Likewise.
6749         (LDFLAGS-noload): Likewise.
6750         (LDFLAGS-next): Likewise.
6751         (LDFLAGS-order2mod1.so): Likewise.
6752         (LDFLAGS-order2mod2.so): Likewise.
6753         (LDFLAGS-tst-initorder2): Likewise.
6754         (LDFLAGS-tst-initorder2a.so): Likewise.
6755         (LDFLAGS-tst-initorder2b.so): Likewise.
6756         (LDFLAGS-tst-initorder2c.so): Likewise.
6757         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6758
6759 2012-05-02  David S. Miller  <davem@davemloft.net>
6760
6761         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6762
6763 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6764
6765         [BZ #14055]
6766         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6767
6768 2012-05-02  Andreas Jaeger  <aj@suse.de>
6769
6770         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6771         since we manipulate rounding mode.
6772         (CPPFLAGS-test-idouble.c): Likewise.
6773         (CPPFLAGS-test-ifloat.c): Likewise.
6774         (CFLAGS-test-ldouble.c): Likewise.
6775         (CFLAGS-test-double.c): Likewise.
6776         (CFLAGS-test-float.c): Likewise.
6777         (CFLAGS-test-misc.c): Likewise.
6778         (CFLAGS-test-test-fenv.c): Likewise.
6779
6780 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6781
6782         [BZ #2550]
6783         [BZ #2570]
6784         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6785         comparisons to determine direction to adjust input.
6786
6787 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6788
6789         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6790         output to the target.
6791
6792         * scripts/localplt.awk: New file.
6793         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6794         (check-localplt-CFLAGS): Variable removed.
6795         ($(all-built-dso:=.jmprel)): New static pattern rule.
6796         (generated): Add those targets.
6797         (localplt-built-dso): New variable.
6798         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6799
6800         * elf/check-localplt.c: File removed.
6801
6802         * scripts/check-execstack.awk: New file.
6803         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6804         (check-execstack-CFLAGS): Variable removed.
6805         ($(objpfx)check-execstack.h): Target removed.
6806         ($(objpfx)execstack-default): New target.
6807         (generated): Add that instead of check-execstack.h.
6808         ($(all-built-dso:=.phdr)): New static pattern rule.
6809         (generated): Add those targets.
6810         * elf/check-execstack.c: File removed.
6811
6812         * scripts/check-textrel.awk: New file.
6813         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6814         (check-textrel-CFLAGS): Variable removed.
6815         (all-built-dso): Use := to define.o
6816         ($(all-built-dso:=.dyn)): New static pattern rule.
6817         (generated): Add those targets.
6818         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6819         * config.make.in (READELF): New substituted variable.
6820         * elf/check-textrel.c: File removed.
6821
6822 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6823
6824         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6825         allow.
6826         * conform/data/ctype.h-data [C99-based standards] (isblank):
6827         Expect function.
6828         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6829         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6830         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6831         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6832         Specify type.  Require positive value.
6833         (EILSEQ): Likewise.
6834         (ERANGE): Likewise.
6835         [ISO || POSIX] (EILSEQ): Do not expect.
6836         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6837         Specify type.  Require positive value.
6838         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6839         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6840         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6841         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6842         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6843         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6844         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6845         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6846         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6847         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6848         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6849         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6850         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6851         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6852         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6853         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6854         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6855         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6856         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6857         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6858         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6859         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6860         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6861         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6862         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6863         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6864         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6865         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6866         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6867         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6868         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6869         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6870         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6871         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6872         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6873         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6874         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6875         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6876         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6877         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6878         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6879         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6880         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6881         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6882         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6883         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6884         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6885         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6886         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6887         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6888         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6889         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6890         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6891         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6892         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6893         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6894         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6895         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6896         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6897         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6898         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6899         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6900         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6901         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6902         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6903         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6904         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6905         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6906         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6907         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6908         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6909         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6910         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6911         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6912         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6913         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6914         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6915         Require >= 2.
6916         (FLT_ROUNDS): Expect as macro, not constant.
6917         (FLT_MANT_DIG): Use macro-int-constant.
6918         (DBL_MANT_DIG): Likewise.
6919         (LDBL_MANT_DIG): Likewise.
6920         (FLT_DIG): Likewise.
6921         (DBL_DIG): Likewise.
6922         (LDBL_DIG): Likewise.
6923         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
6924         (DBL_MIN_EXP): Likewise.
6925         (LDBL_MIN_EXP): Likewise.
6926         (FLT_MAX_EXP): Use macro-int-constant.
6927         (DBL_MAX_EXP): Likewise.
6928         (LDBL_MAX_EXP): Likewise.
6929         (FLT_MAX_10_EXP): Likewise.
6930         (DBL_MAX_10_EXP): Likewise.
6931         (LDBL_MAX_10_EXP): Likewise.
6932         (FLT_MAX): Use macro-constant.
6933         (DBL_MAX): Likewise.
6934         (LDBL_MAX): Likewise.
6935         (FLT_EPSILON): Use macro-constant.  Give upper bound.
6936         (DBL_EPSILON): Likewise.
6937         (LDBL_EPSILON): Likewise.
6938         (FLT_MIN): Likewise.
6939         (DBL_MIN): Likewise.
6940         (LDBL_MIN): Likewise.
6941         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
6942         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
6943         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
6944         [ISO11] (FLT_HAS_SUBNORM): Likewise.
6945         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
6946         [ISO11] (DBL_DECIMAL_DIG): Likewise.
6947         [ISO11] (FLT_DECIMAL_DIG): Likewise.
6948         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
6949         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
6950         [ISO11] (FLT_TRUE_MIN): Likewise.
6951         [ISO11] (LDBL_TRUE_MIN): Likewise.
6952         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6953         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
6954         (SCHAR_MIN): Use macro-int-constant.  Specify type.
6955         (SCHAR_MAX): Likewise.
6956         (UCHAR_MAX): Likewise.
6957         (CHAR_MIN): Likewise.
6958         (CHAR_MAX): Likewise.
6959         (MB_LEN_MAX): Use macro-int-constant.
6960         (SHRT_MIN): Use macro-int-constant.  Specify type.
6961         (SHRT_MAX): Likewise.
6962         (USHRT_MAX): Likewise.
6963         (INT_MAX): Likewise.
6964         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
6965         bound negative.
6966         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6967         bound with "U".
6968         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6969         bound with "L".
6970         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
6971         bound negative.  Suffix upper bound with "L".
6972         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6973         bound with "UL".
6974         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
6975         Specify type.
6976         [C99-based standards] (LLONG_MAX): Likewise.
6977         [C99-based standards] (ULLONG_MAX): Likewise.
6978         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
6979         == 0.
6980         [ISO11] (max_align_t): Require type.
6981         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6982
6983         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
6984         from $CFLAGS, without defining away __attribute__ calls.
6985         (checknamespace): Use $CFLAGS_namespace.
6986
6987         * conform/conformtest.pl (@keywords): Only include C99 keywords
6988         for standards based on C99 or C11.
6989
6990         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
6991         Disable tests.
6992         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
6993         UNIX98]: Likewise.
6994
6995         * conform/conformtest.pl: Handle "macro-int-constant" and test for
6996         usability of symbols in #if.
6997
6998         * conform/conformtest.pl: If macro or constant types start
6999         "promoted:", expect the symbol to be of the following type
7000         promoted by the integer promotions.
7001
7002         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7003         in one place.  Also handle "macro-constant".
7004
7005         * conform/conformtest.pl: Only accept expected macro values with
7006         "==".  Parse all "macro" lines in one place.
7007         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7008
7009         * conform/conformtest.pl: Handle braced types on "constant" lines
7010         instead of handling "typed-constant".
7011         * conform/data/signal.h-data: Use "constant" instead of
7012         "typed-constant".
7013
7014         * conform/conformtest.pl: Handle "optional-" at start of lines in
7015         one place rather than duplicating several cases.  Handle each
7016         format of "macro" line with initial "optional-".
7017
7018         * conform/conformtest.pl: Only accept expected constant or
7019         optional-constant values with "==".  Parse all "constant" lines in
7020         one place.  Parse all "optional-constant" lines in one place.
7021         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7022         * conform/data/fmtmsg.h-data: Likewise.
7023         * conform/data/netinet/in.h-data: Likewise.
7024         * conform/data/tar.h-data: Likewise.
7025         * conform/data/limits.h-data: Use "==" form on "constant" and
7026         "optional-constant" lines.
7027
7028         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7029         Use -std=c99 for XOPEN2K.
7030         (@knownproblems): Remove.
7031         (newtoken): Don't check %isknown.
7032
7033         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7034         Do not expect macro.
7035         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7036         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7037         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7038         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7039         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7040         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7041         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7042         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7043         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7044         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7045         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7046         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7047         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7048         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7049         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7050         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7051         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7052         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7053         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7054         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7055         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7056         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7057         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7058         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7059         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7060         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7061         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7062         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7063         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7064         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7065         [XPG3] (acosh): Likewise.
7066         [XPG3] (asinh): Likewise.
7067         [XPG3] (atanh): Likewise.
7068         [XPG3] (cbrt): Likewise.
7069         [XPG3] (expm1): Likewise.
7070         [XPG3] (ilogb): Likewise.
7071         [XPG3] (log1p): Likewise.
7072         [XPG3] (logb): Likewise.
7073         [XPG3] (nextafter): Likewise.
7074         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7075         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7076         [XPG3] (remainder): Likewise.
7077         [XPG3] (rint): Likewise.
7078         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7079         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7080         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7081         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7082         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7083         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7084         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7085         [UNIX98 || XOPEN2K] (scalb): Expect.
7086         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7087         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7088         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7089         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7090         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7091         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7092         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7093         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7094         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7095         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7096         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7097         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7098         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7099         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7100         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7101         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7102         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7103         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7104         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7105         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7106         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7107         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7108         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7109         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7110         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7111         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7112         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7113         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7114         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7115         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7116         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7117         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7118         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7119         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7120         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7121         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7122         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7123         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7124         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7125         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7126         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7127         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7128         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7129         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7130         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7131         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7132         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7133         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7134         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7135         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7136         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7137         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7138         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7139         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7140         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7141         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7142         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7143         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7144         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7145         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7146         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7147         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7148         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7149         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7150         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7151         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7152         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7153         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7154         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7155         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7156         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7157         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7158         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7159         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7160         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7161         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7162         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7163         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7164         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7165         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7166         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7167         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7168         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7169         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7170         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7171         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7172         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7173         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7174         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7175         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7176         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7177         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7178         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7179         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7180         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7181         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7182         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7183         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7184         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7185         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7186         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7187         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7188         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7189         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7190         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7191         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7192         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7193         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7194         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7195         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7196         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7197         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7198         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7199         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7200         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7201         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7202         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7203         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7204         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7205         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7206         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7207         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7208         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7209         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7210         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7211         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7212         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7213         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7214         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7215         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7216         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7217         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7218         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7219         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7220         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7221         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7222         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7223
7224         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7225         _XOPEN_SOURCE_EXTENDED for XPG4.
7226
7227         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7228
7229         * Makeconfig (localtime): Remove variable.
7230         (inst_localtime-file): Likewise.
7231
7232 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7233
7234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7235         Update.
7236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7237         Update.
7238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7239         Update.
7240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7241         Update.
7242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7243         Update.
7244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7245         Update.
7246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7247         Update.
7248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7249         Update.
7250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7251         Update.
7252
7253 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7254
7255         [BZ #2550]
7256         [BZ #2570]
7257         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7258         comparisons to determine direction to adjust input.
7259         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7260         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7261         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7262         Likewise.
7263         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7264         Likewise.
7265         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7266         Likewise.
7267         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7268         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7269         Likewise.
7270         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7271         Likewise.
7272         * math/libm-test.inc (nexttoward_test): Add more tests.
7273
7274 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7275
7276         [BZ #14040]
7277         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7278         in version GLIBC_2.1, not GLIBC_2.0.
7279         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7280         Likewise.
7281
7282 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7283
7284         [BZ #13942]
7285         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7286         (1 - x) * (1 + x).
7287         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7288         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7289         * math/libm-test.inc (acos_test): Add more tests.
7290         (asin_test): Likewise.
7291         * sysdeps/i386/fpu/libm-test-ulps: Update.
7292         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7293
7294         [BZ #14034]
7295         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7296         of square root.
7297         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7298         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7299         * math/libm-test.inc (acos_test_tonearest): New function.
7300         (acos_test_towardzero): Likewise.
7301         (acos_test_downward): Likewise.
7302         (acos_test_upward): Likewise.
7303         (asin_test_tonearest): Likewise.
7304         (asin_test_towardzero): Likewise.
7305         (asin_test_downward): Likewise.
7306         (asin_test_upward): Likewise.
7307         (main): Call the new functions.
7308         * sysdeps/i386/fpu/libm-test-ulps: Update.
7309         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7310
7311         [BZ #13884]
7312         [BZ #13924]
7313         * math/e_exp10.c: Include <float.h>.
7314         (__ieee754_exp10): Handle underflow here rather than multiplying
7315         large negative argument by M_LN10.
7316         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7317         of __ieee754_expf.
7318         * math/e_exp10l.c: Include <float.h>.
7319         (__ieee754_exp10l): Handle underflow here rather than multiplying
7320         large negative argument by M_LN10l.
7321         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7322         spurious overflow exception on underflow.
7323
7324 2012-04-29  Marek Polacek  <polacek@redhat.com>
7325
7326         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7327         (__fortify_function): New macro.
7328         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7329         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7330         __extern_always_inline.
7331         * libio/bits/stdio2.h: Likewise.
7332         * libio/bits/stdio.h: Likewise.
7333         * string/string.h: Likewise.
7334         * string/bits/string3.h: Likewise.
7335         * include/stdio.h: Likewise.
7336         * stdlib/bits/stdlib.h: Likewise.
7337         * stdlib/stdlib.h: Likewise.
7338         * rt/bits/mqueue2.h: Likewise.
7339         * rt/mqueue.h: Likewise.
7340         * posix/bits/unistd.h: Likewise.
7341         * posix/unistd.h: Likewise.
7342         * io/bits/poll2.h: Likewise.
7343         * io/bits/fcntl2.h: Likewise.
7344         * io/fcntl.h: Likewise.
7345         * io/sys/poll.h: Likewise.
7346         * misc/bits/syslog.h: Likewise.
7347         * misc/bits/syslog-ldbl.h: Likewise.
7348         * misc/sys/syslog.h: Likewise.
7349         * socket/bits/socket2.h: Likewise.
7350         * socket/sys/socket.h: Likewise.
7351         * debug/tst-chk1.c: Likewise.
7352         * wcsmbs/bits/wchar2.h: Likewise.
7353         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7354         * wcsmbs/wchar.h: Likewise.
7355
7356 2012-04-29  Andreas Jaeger  <aj@suse.de>
7357
7358         * Makerules (tests): Remove enable-check-abi protection.
7359         (check-abi-warn): Remove.
7360         (check-abi-%): Remove check-abi-warn usage.
7361
7362         * configure.in: Remove check-abi configure option.
7363         * configure: Regenerated.
7364         * config.make.in (enable-check-abi): Remove.
7365
7366 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7367
7368         [BZ #14033]
7369         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7370         double functions to double *_finite functions.
7371
7372         [BZ #13941]
7373         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7374         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7375         LDBL_MIN_EXP.
7376         * stdio-common/Makefile (tests): Add tst-sprintf3.
7377         * stdio-common/tst-sprintf3.c: New file.
7378
7379         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7380         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7381
7382 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7383
7384         * conform/conformtest.pl: Remove duplicate typed-constant
7385         handling.
7386
7387 2012-04-28  David S. Miller  <davem@davemloft.net>
7388
7389         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7390         (check-abi-%): Remove AWK script prerequisite and explicit
7391         abilist directory.
7392         (check-abi): Rewrite to just diff the symlist with the abilist.
7393         (config-tls, config-abi-config): Delete, no longer used.
7394         (update-abi-%): Remove AWK script and explicit abilist directory.
7395         (update-abi): Rewrite to simply compare and conditionally copy the
7396         symlist and the sysdep abilist file.  Remove update-abi-config
7397         checks.
7398         * abilist/ld.abilist: Remove.
7399         * abilist/libBrokenLocale.abilist: Remove.
7400         * abilist/libanl.abilist: Remove.
7401         * abilist/libcrypt.abilist: Remove.
7402         * abilist/libdl.abilist: Remove.
7403         * abilist/librt.abilist: Remove.
7404         * abilist/libthread_db.abilist: Remove.
7405         * abilist/libutil.abilist: Remove.
7406         * scripts/extract-abilist.awk: Remove.
7407         * scripts/merge-abilist.awk: Remove.
7408         * sysdeps/generic/libcidn.abilist: New file.
7409         * sysdeps/generic/libnss_compat.abilist: New file.
7410         * sysdeps/generic/libnss_db.abilist: New file.
7411         * sysdeps/generic/libnss_dns.abilist: New file.
7412         * sysdeps/generic/libnss_files.abilist: New file.
7413         * sysdeps/generic/libnss_hesiod.abilist: New file.
7414         * sysdeps/generic/libnss_nis.abilist: New file.
7415         * sysdeps/generic/libnss_nisplus.abilist: New file.
7416         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7417         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7418         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7419         file.
7420         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7421         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7422         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7423         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7424         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7425         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7426         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7427         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7428         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7429         file.
7430         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7431         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7432         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7433         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7434         file.
7435         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7436         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7437         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7438         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7439         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7440         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7441         file.
7442         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7443         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7444         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7445         file.
7446         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7447         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7448         New file.
7449         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7450         New file.
7451         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7452         New file.
7453         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7454         New file.
7455         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7456         New file.
7457         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7458         New file.
7459         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7460         New file.
7461         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7462         New file.
7463         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7464         New file.
7465         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7466         New file.
7467         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7468         New file.
7469         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7470         New file.
7471         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7472         New file.
7473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7474         file.
7475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7476         New file.
7477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7478         New file.
7479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7480         file.
7481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7482         New file.
7483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7484         New file.
7485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7486         file.
7487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7488         New file.
7489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7490         New file.
7491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7492         New file.
7493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7494         New file.
7495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7496         New file.
7497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7498         New file.
7499         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7500         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7501         file.
7502         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7503         New file.
7504         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7505         file.
7506         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7507         file.
7508         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7509         file.
7510         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7511         file.
7512         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7513         file.
7514         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7515         New file.
7516         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7517         file.
7518         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7519         file.
7520         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7521         New file.
7522         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7523         file.
7524         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7525         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7526         file.
7527         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7528         New file.
7529         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7530         file.
7531         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7532         file.
7533         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7534         file.
7535         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7536         file.
7537         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7538         file.
7539         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7540         New file.
7541         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7542         file.
7543         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7544         file.
7545         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7546         New file.
7547         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7548         file.
7549         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7550         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7551         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7552         file.
7553         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7554         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7555         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7556         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7557         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7558         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7559         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7560         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7561         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7562         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7563         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7564         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7565         file.
7566         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7567         New file.
7568         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7569         file.
7570         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7571         file.
7572         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7573         file.
7574         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7575         file.
7576         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7577         file.
7578         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7579         New file.
7580         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7581         New file.
7582         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7583         file.
7584         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7585         New file.
7586         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7587         file.
7588         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7589         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7590         file.
7591         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7592         New file.
7593         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7594         file.
7595         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7596         file.
7597         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7598         file.
7599         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7600         file.
7601         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7602         file.
7603         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7604         New file.
7605         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7606         New file.
7607         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7608         file.
7609         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7610         New file.
7611         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7612         file.
7613
7614 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7615
7616         * conform/conformtest.pl: Fix typo in handling typed-constant from
7617         allow-header.
7618
7619 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7620
7621         * README: Cut down references to pre-2.6 Linux kernels and
7622         Linuxthreads.  Update lists of configurations in libc and ports
7623         and sort alphabetically.  Say "or newer" with Linux kernel version
7624         requirements.
7625
7626         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7627
7628 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7629
7630         [BZ #887]
7631         * math/libm-test.inc (logb_test_downward): New test to expose
7632         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7633         rounding mode.
7634
7635 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7636
7637         [BZ #14027]
7638         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7639         to be done.
7640         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7641         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7642
7643 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7644
7645         * sysdeps/unix/i386/brk.S: Remove file.
7646         * sysdeps/unix/i386/dl-brk.S: Likewise.
7647         * sysdeps/unix/i386/pipe.S: Likewise.
7648         * sysdeps/unix/i386/sigreturn.S: Likewise.
7649         * sysdeps/unix/i386/syscall.S: Likewise.
7650         * sysdeps/unix/i386/vfork.S: Likewise.
7651         * sysdeps/unix/i386/wait.S: Likewise.
7652
7653         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7654         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7655
7656         * configure.in (arm*-none*): Do not allow without
7657         --enable-hacker-mode.
7658         (netbsd*): Remove case setting base_os.
7659         (386bsd*): Likewise.
7660         (freebsd*): Likewise.
7661         (bsdi*): Likewise.
7662         (osf*): Likewise.
7663         (sunos*): Likewise.
7664         (ultrix*): Likewise.
7665         (newsos*): Likewise.
7666         (dynix*): Likewise.
7667         (*bsd*): Likewise.
7668         (sysv*): Likewise.
7669         (isc*): Likewise.
7670         (esix*): Likewise.
7671         (sco*): Likewise.
7672         (minix*): Likewise.
7673         (irix4*): Likewise.
7674         (irix6*): Likewise.
7675         (solaris[2-9]*): Likewise.
7676         (none): Likewise.
7677         * configure: Regenerated.
7678
7679 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7680
7681         [BZ #11521]
7682         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7683         overflow or cancellation in calculating denominator.
7684         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7685         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7686         down expression to avoid unexpected rounding in newer GCCs.
7687         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7688
7689 2012-04-26  David S. Miller  <davem@davemloft.net>
7690
7691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7692         long-double compat symbols.
7693         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7698         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7699         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7700         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7701         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7702         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7703         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7704         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7705         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7706
7707 2012-04-25  David S. Miller  <davem@davemloft.net>
7708
7709         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7710         HWCAP_* values only after the memory barriers have been defined.
7711         (atomic_full_barrier): Define.
7712         (atomic_read_barrier): Define.
7713         (atomic_write_barrier): Define.
7714
7715 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7716
7717         * shlib-versions: Add libgcc_s version information.
7718         * sysdeps/generic/libgcc_s.h: Remove.
7719         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7720         libgcc_s.h.
7721         * sysdeps/gnu/unwind-resume.c: Likewise.
7722         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7723
7724 2012-04-25  David S. Miller  <davem@davemloft.net>
7725
7726         * sysdeps/unix/sparc/brk.S: Delete.
7727         * sysdeps/unix/sparc/dl-brk.S: Delete.
7728         * sysdeps/unix/sparc/pipe.S: Delete.
7729         * sysdeps/unix/sparc/sysdep.S: Delete.
7730         * sysdeps/unix/sparc/sysdep.h: Delete.
7731         * sysdeps/unix/sparc/vfork.S: Delete.
7732         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7733         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7734         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7735         ret_ERRVAL, r0, r1, MOVE): Define.
7736         (JUMPTARGET): Remove.
7737         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7738         sysdeps/unix/sparc/sysdep.h
7739         (ENTRY, END): Remove.
7740         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7741
7742 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7743
7744         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7745         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7746         -DIS_IN_build.
7747
7748         * timezone/README: Update upstream location and email address for
7749         tzcode and tzdata.
7750         * timezone/zdump.c: Update from tzcode 2012b.
7751         * timezone/zic.c: Likewise.
7752
7753         * configure.in (libc_cv_as_needed): Remove test.
7754         * configure: Regenerated.
7755         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7756         conditional definition.
7757         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7758         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7759         * config.make.in (have-as-needed): Remove variable.
7760
7761 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7762             Paul Pluzhnikov  <ppluzhnikov@google.com>
7763
7764         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7765         strings correctly.
7766
7767 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7768
7769         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7770         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7771         * sysdeps/sh/strlen.S: Likewise.
7772
7773 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7774
7775         * sysdeps/unix/fork.S: Remove file.
7776         * sysdeps/unix/i386/fork.S: Likewise.
7777         * sysdeps/unix/sparc/fork.S: Likewise.
7778
7779         * sysdeps/unix/system.c: Remove file.
7780         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7781
7782         * sysdeps/unix/getegid.S: Remove file.
7783         * sysdeps/unix/geteuid.S: Likewise.
7784
7785 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7786
7787         * scripts/check-localplt.awk: New file.
7788         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7789         of diff.
7790         * scripts/data/localplt-generic.data: Add a comment.
7791
7792         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7793         NODE when __dir_mkfile failed.
7794         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7795         Reported by Ludovic Courtès <ludo@gnu.org>.
7796
7797 2012-04-24  Andreas Jaeger  <aj@suse.de>
7798
7799         * Makerules (common-clean): Also remove gen-as-const-headers
7800         files.
7801
7802 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7803
7804         * Makerules (native-compile): Do not change working directory for
7805         build.  Use $(OUTPUT_OPTION) in command.
7806         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7807
7808 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7809
7810         [BZ #13886]
7811         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7812         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7813         * math/libm-test.inc (floor_test): Add more tests.
7814         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7815
7816 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7817
7818         * sysdeps/unix/getdents.c: Remove file.
7819         * sysdeps/unix/sysv/getdents.c: Likewise.
7820         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7821
7822         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7823         sysdeps/unix/mman/syscalls.list.
7824         (mmap): Likewise.
7825         (mprotect): Likewise.
7826         (msync): Likewise.
7827         (munmap): Likewise.
7828         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7829         * sysdeps/unix/mman/syscalls.list: Remove.
7830         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7831
7832         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7833         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7834         * configure: Regenerated.
7835         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7836         $(libgcc_s_suffix).
7837         * config.make.in (libgcc_s_suffix): Remove variable.
7838
7839 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7840
7841         * sysdeps/unix/sysv/gethostname.c: Move to ...
7842         * sysdeps/posix/gethostname.c: ... here.
7843
7844         * sysdeps/unix/execve.S: Remove file.
7845
7846         * sysdeps/unix/_exit.S: Remove file.
7847
7848 2012-04-23  Andreas Jaeger  <aj@suse.de>
7849
7850         [BZ #13739]
7851         * manual/Makefile: Remove make dist support, there's no
7852         need for a stand-alone documentation tar ball.
7853         (TEXI2DVI): Define always, it's not in Makeconfig.
7854         (dist): Removed.
7855         (tar-it): Removed.
7856         (edition): Removed.
7857         (glibc-doc-$(edition).tar): Removed
7858         (%.Z): Removed.
7859         (%.gz): Removed.
7860         (%.uu): Removed.
7861         (ETAGS): Remove, it's in Makeconfig.
7862         (move-if-change): Remove, it's in Makeconfig.
7863
7864 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7865
7866         [BZ #13970]
7867         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7868         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7869         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7870         (strtod_l, strtof_l, strtold_l): Remove __wur.
7871         It is not necessarily an error to ignore strtol's return value.
7872         One can reliably look at the stored endptr to decide whether
7873         the number had valid syntax.
7874
7875 2012-04-21  Andreas Jaeger  <aj@suse.de>
7876
7877         [BZ #13739]
7878         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7879
7880 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7881
7882         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7883         * sysdeps/unix/sysv/Versions: Remove file.
7884
7885 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7886
7887         [BZ #13927]
7888         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7889
7890 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7891
7892         [BZ #7064]
7893         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7894         version from __vm86.
7895
7896 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7897
7898         * sysdeps/unix/common/lxstat.c: Remove file.
7899         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7900
7901         * sysdeps/unix/sysv/Makefile: Remove file.
7902
7903         * sysdeps/unix/sysv/direct.h: Remove file.
7904
7905         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7906         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7907         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7908         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7909         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7910         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7911         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7912
7913         * sysdeps/unix/sysv/setrlimit.c: Remove file.
7914
7915         * sysdeps/unix/xmknod.c: Remove file.
7916         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7917
7918         * sysdeps/unix/sysv/settimeofday.c: Remove file.
7919
7920         * sysdeps/unix/sysv/i386/time.S: Remove file.
7921
7922         * sysdeps/unix/fxstat.c: Remove file.
7923         * sysdeps/unix/xstat.c: Likewise.
7924         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
7925
7926         * sysdeps/unix/sysv/sigaction.c: Remove file.
7927
7928         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
7929         (sysdep_headers): Remove variable.
7930         [termio.h not in sysdep_headers] (generated): Likewise.
7931         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
7932         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
7933         * sysdeps/unix/sysv/tcdrain.c: Likewise.
7934         * sysdeps/unix/sysv/tcflow.c: Likewise.
7935         * sysdeps/unix/sysv/tcflush.c: Likewise.
7936         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
7937         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
7938         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
7939         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
7940         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
7941
7942         * sysdeps/unix/siglist.c: Remove file.
7943
7944         * sysdeps/unix/getppid.S: Remove file.
7945
7946         * sysdeps/unix/mkdir.c: Remove file.
7947         * sysdeps/unix/rmdir.c: Likewise.
7948
7949 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7950
7951         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
7952         ERR_MAX value.
7953         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
7954         errlist-compat value.
7955
7956 2012-04-18  David S. Miller  <davem@davemloft.net>
7957
7958         * sysdeps/generic/memcopy.h (reg_char): Delete.
7959         * debug/strcat_chk.c: Use char, not reg_char.
7960         * debug/strcpy_chk.c: Likewise.
7961         * debug/strncat_chk.c: Likewise.
7962         * debug/strncpy_chk.c: Likewise.
7963         * string/memchr.c: Likewise.
7964         * string/memrchr.c: Likewise.
7965         * string/rawmemchr.c: Likewise.
7966         * string/strcat.c: Likewise.
7967         * string/strchr.c: Likewise.
7968         * string/strchrnul.c: Likewise.
7969         * string/strcmp.c: Likewise.
7970         * string/strcpy.c: Likewise.
7971         * string/strncat.c: Likewise.
7972         * string/strncmp.c: Likewise.
7973         * string/strncpy.c: Likewise.
7974
7975 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7976
7977         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
7978         __builtin_memcopy is called when src and dest ranges are known to not
7979         overlap.
7980
7981 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7982
7983         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
7984         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
7985         fwd_align_merge macro call.
7986         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
7987         bwd_align_merge macro call.
7988         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7989
7990 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7991
7992         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
7993         bwd_align_merge macros.
7994         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
7995         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
7996         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7997
7998 2012-04-18  David S. Miller  <davem@davemloft.net>
7999
8000         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8001
8002 2012-04-18  Andreas Jaeger  <aj@suse.de>
8003
8004         [BZ# 6794]
8005         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8006         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8007         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8008
8009         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8010         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8011         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8012
8013         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8014         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8015         Adjust for changed ldbl-128 files.
8016
8017         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8018         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8019         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8020
8021 2012-04-17  David S. Miller  <davem@davemloft.net>
8022
8023         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8024
8025 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8026
8027         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8028         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8029         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8030         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8031         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8032         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8033
8034 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8035
8036         [BZ #6794]
8037         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8038         * math/libm-test.inc: Add ilogb errno and exception tests.
8039         * math/w_ilogb.c: New file: ilogb wrapper.
8040         * math/w_ilogbf.c: New file: ilogbf wrapper.
8041         * math/w_ilogbl.c: New file: ilogbl wrapper.
8042         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8043         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8044         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8045         exception being thrown with 0.0 as argument.
8046         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8047         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8048         exception being thrown with 0.0 as argument.
8049         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8050         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8051         exception being thrown with 0.0 as argument.
8052         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8053         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8054         exception being thrown with 0.0 as argument.
8055         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8056         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8057         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8058         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8059         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8060         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8061         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8062         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8063         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8064
8065 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8066
8067         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8068         with altivec.
8069
8070 2012-04-16  Marek Polacek  <polacek@redhat.com>
8071
8072         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8073
8074 2012-04-16  Marek Polacek  <polacek@redhat.com>
8075
8076         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8077         operands of fdivp instruction.
8078
8079 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8080
8081         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8082         * elf/tst-auditmod3b.c: Likewise.
8083         * elf/tst-auditmod4b.c: Likewise.
8084         * elf/tst-auditmod5b.c: Likewise.
8085         * elf/tst-auditmod6b.c: Likewise.
8086         * elf/tst-auditmod6c.c: Likewise.
8087         * elf/tst-auditmod7b.c: Likewise.
8088         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8089         * sysdeps/x86_64/preconfigure.in: Likewise.
8090         * sysdeps/x86_64/preconfigure: Regenerated.
8091
8092 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8093
8094         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8095         __ILP32__.
8096
8097 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8098
8099         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8100         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8101
8102 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8103
8104         [BZ #13973]
8105         * locale/iso-639.def: Fix gl language name. Spotted by
8106         Yaron Shahrabani.
8107
8108 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8109
8110         [BZ #2074]
8111         * libio/libio.h (__io_write_fn): Update comment.
8112
8113 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8114
8115         [BZ #2074]
8116         * stdio.texi (Hook Functions): The user provided writer function
8117         is not allowed to return -1.
8118
8119 2012-04-11  David S. Miller  <davem@davemloft.net>
8120
8121         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8122
8123 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8124
8125         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8126         Add a leading slash to rtkaio.
8127
8128 2012-04-11  Jim Meyering  <meyering@redhat.com>
8129
8130         [BZ #11959]
8131         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8132         It is not necessarily an error to ignore fwrite's return
8133         value.  One can reliably use ferror to test for errors after
8134         the fact.
8135
8136 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8137
8138         * bits/types.h (__snseconds_t): New type.
8139         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8140
8141         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8142         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8143         (__SNSECONDS_T_TYPE): Likewise.
8144         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8145         (__SNSECONDS_T_TYPE): Likewise.
8146         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8147         (__SNSECONDS_T_TYPE): Likewise.
8148
8149 2012-04-10  Andreas Jaeger  <aj@suse.de>
8150
8151         [BZ #2636]
8152         * manual/time.texi (Processor Time): Return type of times is
8153         elapsed real time since an arbitrary point in the past.
8154         (CPU Time): Move CLK_TCK from here...
8155         (Processor Time): ...to here.  Correct description.
8156         * manual/conf.texi (Constants for Sysconf): Correct description of
8157         _SC_CLK_TCK.
8158
8159 2012-04-10  David S. Miller  <davem@davemloft.net>
8160
8161         [BZ #13967]
8162         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8163         where the is a gap between DT_REL(A) and DT_JMPREL.
8164
8165 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8166
8167         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8168         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8169         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8170
8171 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8172
8173         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8174         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8175         (dl_main): Handle --inhibit-cache.
8176         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8177         _dl_inhibit_cache.
8178         * elf/dl-load.c (_dl_map_object): Use it.
8179         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8180
8181 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8182
8183         [BZ #13872]
8184         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8185         (__ieee754_powl): Saturate large exponents rather than testing for
8186         overflow of y*log2(x).
8187         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8188         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8189         exceptions.
8190
8191         [BZ #11521]
8192         * math/s_ctan.c: Include <float.h>.
8193         (__ctan): Avoid internal overflow or cancellation in calculating
8194         denominator.
8195         * math/s_ctanf.c: Likewise.
8196         * math/s_ctanl.c: Likewise.
8197         * math/s_ctanh.c: Likewise.
8198         * math/s_ctanhf.c: Likewise.
8199         * math/s_ctanhl.c: Likewise.
8200         * math/libm-test.inc (ctan_test): Add more tests.
8201         (ctanh_test): Likewise.
8202         * sysdeps/i386/fpu/libm-test-ulps: Update.
8203         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8204
8205 2012-04-09  Andreas Jaeger  <aj@suse.de>
8206
8207         [BZ #6894]
8208         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8209         is an optional BSD extension.
8210
8211         [BZ #10254]
8212         * manual/stdio.texi (Opening Streams): Document additional fopen
8213         parameters.
8214
8215 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8216
8217         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8218         %eax without telling the compiler.
8219
8220 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8221
8222         [BZ # 13963]
8223         * manual/install.texi: Use sourceware.org.
8224
8225 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8226
8227         [BZ #13873]
8228         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8229         (__ieee754_pow): Generate overflow and underflow using huge*huge
8230         and tiny*tiny rather than just returning constant infinity or zero
8231         for large exponents.
8232         * math/libm-test.inc (pow_test): Require overflow exceptions for
8233         applicable cases of large exponents.
8234
8235         [BZ #706]
8236         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8237         (__ieee754_pow): Use iterative multiplication algorithm only for
8238         integer exponents with absolute value below 1024.  Check for odd
8239         integer exponents when using algorithm for real exponents.
8240         * math/libm-test.inc (pow_test): Add more tests.
8241         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8242
8243 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8244
8245         [BZ #13705]
8246         * math/libm-test.inc (exp_test): Do not allow overflow exception
8247         on underflow test.
8248
8249 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8250
8251         [BZ #13705]
8252         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8253         instead of __kernel_standard_f.
8254
8255 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8256
8257         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8258         * sysdeps/x86_64/memset_chk.S: Likewise.
8259
8260 2012-04-08  Andreas Jaeger  <aj@suse.de>
8261
8262         [BZ #10153]
8263         * manual/startup.texi (Environment Access): Describe return value
8264         for putenv and setenv.
8265
8266         [BZ #6895]
8267         * manual/filesys.texi (Directory Entries): Add description for
8268         DT_LNK.
8269
8270         [BZ #6890]
8271         * manual/filesys.texi (Directory Entries): Clarify that it's file
8272         system not operating system in the description of DT_UNKNOWN.
8273
8274         [BZ #6578]
8275         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8276
8277 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8278
8279         [BZ #6649]
8280         * manual/llio.texi (Opening and Closing Files): Add cross
8281         reference to explain mode argument.
8282
8283 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8284
8285         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8286         * sysdeps/x86_64/memset_chk.S: Likewise.
8287
8288 2012-04-07  David S. Miller  <davem@davemloft.net>
8289
8290         * elf/elf.h (R_SPARC_WDISP10): Define.
8291         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8292         R_SPARC_SIZE32.
8293         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8294         R_SPARC_SIZE64 and R_SPARC_H34.
8295
8296 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8297
8298         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8299         conditions and remove no longer applicable assertion.
8300
8301 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8302
8303         * bits/byteswap.h: Include <features.h>.
8304         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8305         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8306
8307 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8308
8309         * bits/byteswap.h (__bswap_16): Removed.
8310         Include <bits/byteswap-16.h> to get __bswap_16.
8311         * sysdeps/i386/bits/byteswap.h: Likewise.
8312         * sysdeps/s390/bits/byteswap.h: Likewise.
8313         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8314         * bits/byteswap-16.h: New file.
8315         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8316         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8317         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8318         * string/Makefile (headers): Add bits/byteswap-16.h.
8319
8320 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8321
8322         [BZ #13895]
8323         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8324         extra indirection.
8325         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8326         * nss/tst-nss-static.c: New.
8327
8328 2012-04-06  Robert Millan  <rmh@gnu.org>
8329
8330         [BZ #6486]
8331         * manual/llio.texi (File Position Primitive): lseek
8332         refers to WHENCE when it really means OFFSET.
8333
8334 2012-04-06  Andreas Jaeger  <aj@suse.de>
8335
8336         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8337         strncmp declarations.
8338
8339         * abilist/libc.abilist: Add __poll and __ppoll.
8340
8341 2012-04-05  David S. Miller  <davem@davemloft.net>
8342
8343         * scripts/check-local-headers.sh: Accept a host triplet in the
8344         path matched by the exclude regexp.
8345
8346         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8347         definition.
8348         * sysdeps/powerpc/powerpc32/dl-machine.h
8349         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8350         * sysdeps/s390/s390-32/dl-machine.h
8351         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8352         * sysdeps/sparc/sparc32/dl-machine.h
8353         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8354         * sysdeps/sparc/sparc64/dl-machine.h
8355         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8356
8357         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8358         lazy binding.
8359         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8360         undefined symbol errors.
8361
8362         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8363         DT_NEEDED entries.
8364
8365 2012-04-05  Michael Matz  <matz@suse.de>
8366
8367         [BZ #13592]
8368         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8369
8370 2012-04-05  Andreas Jaeger  <aj@suse.de>
8371
8372         [BZ #13908]
8373         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8374         comment.
8375
8376 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8377
8378         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8379         which ROUND is no valid rounding mode.
8380
8381 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8382
8383         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8384         read again.
8385         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8386
8387 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8388
8389         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8390         an exception using FPU order intentionally.
8391
8392 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8393
8394         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8395         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8396         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8397         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8398
8399 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8400
8401         [BZ #12340]
8402         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8403         EINVAL when BUFLEN is too smal.
8404
8405 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8406
8407         [BZ #13553]
8408         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8409         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8410
8411 2012-04-03  Andreas Jaeger  <aj@suse.de>
8412
8413         [BZ #13938]
8414         * manual/setjmp.texi (System V contexts): Fix sentence.
8415
8416         [BZ #13926]
8417         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8418         New macro for this case.
8419         [!__GNUC__] (__bswap_64): New inline function for this case.
8420         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8421         * bits/byteswap.h: Likewise.
8422         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8423         ull, guard with __GLIBC_HAVE_LONG_LONG.
8424
8425         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8426         __GLIBC_HAVE_LONG_LONG.
8427
8428         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8429         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8430
8431 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8432
8433         [BZ #13691]
8434         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8435         inptr and inend, rather than using last_ch.
8436
8437 2012-04-02  David S. Miller  <davem@davemloft.net>
8438
8439         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8440         * stdio-common/printf-parse.h (read_int): Change return type to
8441         'int', return -1 on INT_MAX overflow.
8442         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8443         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8444         overflows INT_MAX.  Check for overflow of in-format-string precision
8445         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8446         SIZE_MAX not INT_MAX for integer overflow test.
8447         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8448         skip the construct in the format string but do not record anything.
8449         * stdio-common/bug22.c: Adjust to test both width/prevision
8450         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8451         explicitly for proper errno values.
8452
8453 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8454
8455         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8456         CHAR_MAX.
8457         * string/test-strcmp.c [! WIDE]: Likewise.
8458         * time/tst-mktime2.c: Likewise for INT_MAX.
8459         * string/test-string.h: #include <sys/param.h> for MIN.
8460
8461         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8462         * sysdeps/i386/init-first.c (init): Likewise.
8463         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8464         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8465         * sysdeps/sh/init-first.c (init): Likewise.
8466
8467 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8468
8469         * po/ru.po: Update from translation team.
8470         * po/vi.po: Likewise.
8471
8472 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8473
8474         * resolv/nss_dns/dns-host.c: Merge copyright years.
8475
8476 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8477
8478         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8479         Optimize memcpy with prefetch if
8480         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8481         src, dst pointers have unequal 16 byte alignments.
8482
8483 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8484
8485         [BZ #13928]
8486         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8487         from a CNAME entry and return the minimum ttl for the query.
8488         (gaih_getanswer_slice): Likewise.
8489
8490 2012-03-30  Jeff Law  <law@redhat.com>
8491
8492         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8493         due to long keys.
8494         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8495         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8496
8497         * resolv/nss_dns/dns-host.c: Update copyright year.
8498
8499 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8500
8501         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8502         requests to save a system call.  Fix check that all bytes are sent.
8503
8504         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8505         comments for sendmmsg.
8506
8507 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8508
8509         [BZ #13691]
8510         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8511         with only 1 character between 0x0041 and 0x01b0.
8512         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8513         * wcsmbs/tst-mbsnrtowcs.c: New file.
8514
8515 2012-03-29  David S. Miller  <davem@davemloft.net>
8516
8517         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8518         small copies by hand.
8519
8520 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8521
8522         [BZ #13761]
8523         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8524         _nss_compat_initgroups_dyn): Fall back to malloc/free
8525         for large group memberships.
8526
8527 2012-03-28  David S. Miller  <davem@davemloft.net>
8528
8529         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8530         that branches into memcpy.
8531         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8532         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8533         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8534         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8535         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8536         bits.
8537         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8538         implementation too.
8539         * sysdeps/sparc/mempcpy.S: New file.
8540
8541         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8542         the IFUNC routine in the libc case.
8543         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8544
8545         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8546         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8547         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8548         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8549         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8550         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8551         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8552         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8553
8554         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8555         loop to 256 bytes instead of 64 bytes and fix test signedness.
8556
8557         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8558         * sysdeps/sparc/sparc32/Makefile: rather than here...
8559         * sysdeps/sparc/sparc64/Makefile: and here.
8560
8561 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8562
8563         * malloc/mallocbug.c: Avoid warnings about unused variables.
8564
8565 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8566
8567         [BZ #13760]
8568         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8569         in the right place. Discard and retry query if response is
8570         larger than input buffer size.
8571
8572 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8573
8574         [BZ #369]
8575         [BZ #2678]
8576         [BZ #3866]
8577         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8578         x for large integer exponent.
8579         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8580         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8581         sign of result as needed afterwards.
8582         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8583         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8584         result for underflowing pow the same as for overflow.
8585         (__kernel_standard_l): Handle powl overflow and underflow here
8586         rather than calling __kernel_standard.
8587         * math/libm-test.inc (pow_test): Add more tests.
8588
8589         [BZ #3868]
8590         [BZ #13879]
8591         [BZ #13910]
8592         [BZ #13911]
8593         [BZ #13912]
8594         [BZ #13913]
8595         [BZ #13915]
8596         [BZ #13916]
8597         [BZ #13917]
8598         [BZ #13918]
8599         [BZ #13919]
8600         [BZ #13920]
8601         [BZ #13921]
8602         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8603         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8604         (__kernel_standard_l): New function.
8605         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8606         __kernel_standard.
8607         * math/w_acosl.c (__acosl): Likewise.
8608         * math/w_asinl.c (__asinl): Likewise.
8609         * math/w_atan2l.c (__atan2l): Likewise.
8610         * math/w_atanhl.c (__atanhl): Likewise.
8611         * math/w_coshl.c (__coshl): Likewise.
8612         * math/w_exp10l.c (__exp10l): Likewise.
8613         * math/w_exp2l.c (__exp2l): Likewise.
8614         * math/w_fmodl.c (__fmodl): Likewise.
8615         * math/w_hypotl.c (__hypotl): Likewise.
8616         * math/w_j0l.c (__j0l, __y0l): Likewise.
8617         * math/w_j1l.c (__j1l, __y1l): Likewise.
8618         * math/w_jnl.c (__jnl, __ynl): Likewise.
8619         * math/w_lgammal.c (__lgammal): Likewise.
8620         * math/w_log10l.c (__log10l): Likewise.
8621         * math/w_log2l.c (__log2l): Likewise.
8622         * math/w_logl.c (__logl): Likewise.
8623         * math/w_powl.c (__powl): Likewise.
8624         * math/w_remainderl.c (__remainderl): Likewise.
8625         * math/w_scalbl.c (sysv_scalbl): Likewise.
8626         * math/w_sinhl.c (__sinhl): Likewise.
8627         * math/w_sqrtl.c (__sqrtl): Likewise.
8628         * math/w_tgammal.c (__tgammal): Likewise.
8629         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8630         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8631         * math/libm-test.inc (acos_test): Add more tests.
8632         (acosh_test): Likewise.
8633         (asin_test): Likewise.
8634         (atanh_test): Likewise.
8635         (exp_test): Likewise.
8636         (exp10_test): Likewise.
8637         (exp2_test): Likewise.
8638         (expm1_test): Likewise.
8639         (lgamma_test): Likewise.
8640         (log_test): Likewise.
8641         (log10_test): Likewise.
8642         (log1p_test): Likewise.
8643         (log2_test): Likewise.
8644         (pow_test): Do not allow some spurious overflow exceptions.
8645         (sqrt_test): Add more tests.
8646         (tgamma_test): Likewise.
8647         (y0_test): Likewise.
8648         (y1_test): Likewise.
8649         (yn_test): Likewise.
8650
8651 2012-03-27  Anton Blanchard  <anton@samba.org>
8652
8653         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8654         MAP_HUGETLB.
8655         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8656         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8657         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8658
8659 2012-03-27  David S. Miller  <davem@davemloft.net>
8660
8661         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8662
8663         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8664         have-as-vis3 check.
8665
8666 2012-03-27  Andreas Jaeger  <aj@suse.de>
8667
8668         * sysdeps/x86_64/elf/configure.in: Moved to ...
8669         * sysdeps/x86_64/configure.in: ... here.
8670         * sysdeps/x86_64/elf/start.S: Moved to ...
8671         * sysdeps/x86_64/start.S: ... here.
8672         * sysdeps/x86_64/elf/configure: Delete.
8673
8674         * sysdeps/x86_64/configure.in: Merge contents from
8675         sysdeps/i386/configure.in (without i686 check).
8676
8677         * sysdeps/i386/elf/Versions: Merge into ...
8678         * sysdeps/i386/Versions: ... this.
8679         * sysdeps/i386/elf/Versions: Delete file.
8680         * sysdeps/i386/elf/start.S: Moved to ...
8681         * sysdeps/i386/start.S: ...here.
8682         * sysdeps/i386/elf/configure.in: Merge into...
8683         * sysdeps/i386/configure.in: ...here.
8684         * sysdeps/i386/elf/configure.in: Delete file.
8685         * sysdeps/i386/elf/configure: Delete file.
8686
8687         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8688         * debug/backtracesyms.c: ... here.
8689         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8690         * debug/backtracesymsfd.c: ... here.
8691         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8692         * sysdeps/generic/ifunc-sel.h: ... here.
8693
8694         * sysdeps/unix/i386/start.c: Delete file.
8695         * sysdeps/unix/sparc/start.c: Delete file.
8696         * sysdeps/unix/start.c: Delete file.
8697
8698         * sysdeps/sh/elf/configure.in: Moved to ...
8699         * sysdeps/sh/configure.in: ... here.
8700         * sysdeps/sh/elf/start.S: Moved to ...
8701         * sysdeps/sh/start.S: ... here.
8702         * sysdeps/sh/elf/configure: Delete file.
8703
8704         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8705         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8706         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8707         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8708         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8709         * sysdeps/powerpc/powerpc64/start.S: here.
8710         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8711         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8712         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8713         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8714         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8715
8716         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8717         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8718         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8719         * sysdeps/powerpc/powerpc32/start.S: ... here.
8720         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8721         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8722         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8723
8724         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8725         * sysdeps/powerpc/ifunc-sel.h: ... here.
8726         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8727         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8728
8729         * sysdeps/sparc/elf/configure.in: Moved to ...
8730         * sysdeps/sparc/configure.in: ... here.
8731         * sysdeps/sparc/elf/configure: Delete file.
8732         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8733         * sysdeps/sparc/sparc32/start.S: ... here.
8734         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8735         * sysdeps/sparc/sparc64/start.S: ... here.
8736         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8737         * sysdeps/sparc/sparc32/Makefile: ... this.
8738         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8739         * sysdeps/sparc/sparc64/Makefile: ... this.
8740
8741         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8742         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8743         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8744         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8745         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8746         * sysdeps/s390/s390-32/setjmp.S: ... here.
8747         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8748         * sysdeps/s390/s390-32/configure.in: ... here.
8749         * sysdeps/s390/s390-32/elf/configure: Delete file.
8750         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8751         * sysdeps/s390/s390-32/start.S: ... here.
8752
8753         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8754         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8755         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8756         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8757         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8758         * sysdeps/s390/s390-64/setjmp.S: ... here.
8759         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8760         * sysdeps/s390/s390-64/configure.in: ... here
8761         * sysdeps/s390/s390-64/elf/configure: Delete file.
8762         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8763         * sysdeps/s390/s390-64/start.S: ... here.
8764         * sysdeps/s390/s390-64/elf/configure: Delete.
8765
8766         * configure.in: Remove support for elf directories in sysdeps.
8767
8768         * configure: Regenerated.
8769         * sysdeps/i386/configure: Regenerated.
8770         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8771         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8772         * sysdeps/s390/s390-32/configure: Regenerated.
8773         * sysdeps/s390/s390-64/configure: Regenerated.
8774         * sysdeps/sh/configure: Regenerated.
8775         * sysdeps/sparc/configure: Regenerated.
8776         * sysdeps/x86_64/configure: Regenerated.
8777
8778 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8779
8780         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8781
8782         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8783         denormal result into account.
8784
8785 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8786
8787         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8788         Reported by Allan McRae <allan@archlinux.org>.
8789
8790 2012-03-23  Jeff Law  <law@redhat.com>
8791
8792         * nss/getnssent.c (__nss_getent): Fix typo.
8793
8794 2012-03-23  David S. Miller  <davem@davemloft.net>
8795
8796         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8797
8798 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8799
8800         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8801         to pad to uint64_t for each field.
8802         (dl_tls_index): Replace unsigned long with uint64_t.
8803
8804 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8805         Paul Pluzhnikov  <ppluzhnikov@google.com>
8806
8807         [BZ #6528]
8808         * grp/Makefile (otherlibs): Don't set it.
8809         * inet/Makefile (otherlibs): Likewise.
8810         * login/Makefile (otherlibs): Likewise.
8811         * nscd/Makefile (otherlibs): Likewise.
8812         * posix/Makefile (otherlibs): Likewise.
8813         * pwd/Makefile (otherlibs): Likewise.
8814         * rt/Makefile (otherlibs): Likewise.
8815         * sunrpc/Makefile (otherlibs): Likewise.
8816         * nss/Makefile (otherlibs): Likewise.
8817         Add libnss_files to routines and static-only-routines.
8818         ($(objpfx)getent): Remove rule.
8819         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8820         static-only-routines.
8821
8822 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8823
8824         [BZ #13892]
8825         * math/s_cexp.c: Include <float.h>.
8826         (__cexp): Handle exp result overflowing not necessarily
8827         overflowing both real and imaginary parts of result.
8828         * math/s_cexpf.c: Likewise.
8829         * math/s_cexpl.c: Likewise.
8830         * math/libm-test.inc (cexp_test): Add more tests.
8831         * sysdeps/i386/fpu/libm-test-ulps: Update.
8832         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8833
8834 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8835
8836         * include/link.h (ELFW): New macro.
8837         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8838         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8839
8840 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8841
8842         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8843         with uint64_t.
8844
8845 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8846
8847         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8848         declaration.
8849         (struct La_x32_retval): Likewise.
8850
8851 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8852
8853         * sysdeps/x86_64/preconfigure.in: New file.
8854         * sysdeps/x86_64/preconfigure: New generated file.
8855
8856 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8857
8858         [BZ #13824]
8859         * math/e_exp2l.c: Include <float.h>.
8860         (__ieee754_exp2l): Handle overflow and underflow cases
8861         separately.  Only pass fractional part of argument to
8862         __ieee754_expl.
8863         * math/libm-test.inc (exp2_test): Add more tests.
8864
8865         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8866         negating x to take absolute value.
8867         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8868         Likewise.
8869         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8870         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8871         Likewise.
8872         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8873         computing low part if x was negated.
8874         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8875
8876 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8877
8878         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8879         la_x32_gnu_pltexit.
8880         (pltexit): Cast int_retval to ptrdiff_t.
8881         * elf/tst-auditmod3b.c: Likewise.
8882         * elf/tst-auditmod4b.c: Likewise.
8883         * elf/tst-auditmod5b.c: Likewise.
8884         * elf/tst-auditmod6b.c: Likewise.
8885         * elf/tst-auditmod6c.c: Likewise.
8886         * elf/tst-auditmod7b.c: Likewise.
8887
8888         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8889         and x32_gnu_pltexit.
8890
8891         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8892         __ELF_NATIVE_CLASS.
8893         (La_x32_regs): New macro.
8894         (La_x32_retval): Likewise.
8895         (la_x32_gnu_pltenter): New function prototype.
8896         (la_x32_gnu_pltexit): Likewise.
8897
8898 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8899
8900         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8901         exponent.
8902
8903         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8904
8905         * configure.in (libc_cv_cc_nofma): Check for option to disable
8906         generation of FMA instructions.
8907         * configure: Regenerate.
8908         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8909         * sysdeps/ieee754/dbl-64/Makefile: New file.
8910         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8911         Remove brandred-fma4.
8912         (CFLAGS-brandred-fma4.c): Remove.
8913         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8914         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8915         define.
8916         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8917         define.
8918
8919 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8920
8921         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8922         LLONG_MAX != LONG_MAX.
8923         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8924         (_fitoa_word): Likewise.
8925         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
8926         LLONG_MAX != LONG_MAX.
8927         * stdio-common/_itowa.h: Include <_itoa.h>.
8928         (_itowa_word): Use _ITOA_WORD_TYPE on value.
8929         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
8930         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
8931         only if not defined.
8932         (_ITOA_WORD_TYPE): Likewise.
8933         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8934         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
8935
8936 2012-03-21  David S. Miller  <davem@davemloft.net>
8937
8938         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8939
8940 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8941
8942         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
8943         of x86_64 when setting libc_cv_slibdir, libdir and
8944         libc_cv_localedir.
8945         * sysdeps/unix/sysv/linux/configure: Regenerated.
8946
8947 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8948
8949         * manual/lang.texi (Old Varargs): Remove section.
8950         (How Variadic): Update menu.
8951         (va_start): Do not mention varargs.h.
8952
8953 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8954             Joseph Myers  <joseph@codesourcery.com>
8955
8956         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
8957         link test.
8958         * configure: Regenerated.
8959
8960 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8961
8962         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
8963         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
8964         conformtest.pl
8965
8966 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8967
8968         * NOTES: Remove.
8969         * Makefile (files-for-dist): Remove NOTES.
8970         (NOTES): Remove rule.
8971         * README: Don't refer to NOTES.
8972         * manual/creature.texi: Don't include macros.texi.
8973         * manual/intro.texi (creature.texi): Remove comment referring to
8974         NOTES.
8975
8976         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
8977         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
8978         * configure: Regenerated.
8979         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
8980         LIBC_TRY_CC_OPTION.
8981         (libc_cv_as_i686): Likewise.
8982         (libc_cv_cc_avx): Likewise.
8983         (libc_cv_cc_sse2avx): Likewise.
8984         (libc_cv_cc_fma4): Likewise.
8985         (libc_cv_cc_novzeroupper): Likewise.
8986         * sysdeps/i386/configure: Regenerated.
8987
8988         [BZ #13883]
8989         * sysdeps/i386/fpu/s_cexp.S: Remove.
8990         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8991         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8992         * math/libm-test.inc (cexp_test): Add more tests.
8993         * sysdeps/i386/fpu/libm-test-ulps: Update.
8994         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8995
8996 2012-03-21  Allan McRae  <allan@archlinux.org>
8997
8998         * timezone/Makefile: Do not install iso3166.tab and zone.tab
8999
9000 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9001
9002         [BZ #13871]
9003         * math/w_exp2.c: Do not include <float.h>.
9004         (o_threshold, u_threshold): Remove.
9005         (__exp2): Calculate result before checking finiteness and calling
9006         __kernel_standard.
9007         * math/w_exp2f.c: Likewise.
9008         * math/w_exp2l.c: Likewise.
9009         * math/libm-test.inc (exp2_test): Require overflow exception for
9010         1e6 input.
9011
9012         [BZ #3866]
9013         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9014         range of signed 64-bit integers before using fistpll.  Remove
9015         checks for whether integers fit in mantissa bits.
9016         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9017         the range of signed 32-bit integers before using fistpl.  Remove
9018         checks for whether integers fit in mantissa bits.
9019         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9020         (__ieee754_powl): Test for y outside the range of signed 64-bit
9021         integers before using fistpll.  Reduce 64-bit values to 63-bit
9022         ones as needed.
9023         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9024         divide-by-zero is raised for zero to large negative powers.
9025         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9026         (__ieee754_powl): Test for y outside the range of signed 64-bit
9027         integers before using fistpll.  Reduce 64-bit values to 63-bit
9028         ones as needed.
9029         * math/libm-test.inc (pow_test): Add more tests.
9030
9031 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9032
9033         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9034         <stdio-common/_itoa.h>.
9035         * debug/segfault.c: Likewise.
9036         * elf/dl-cache.c: Likewise.
9037         * elf/dl-minimal.c: Likewise.
9038         * elf/dl-misc.c: Likewise.
9039         * elf/dl-sysdep.c: Likewise.
9040         * elf/dl-version.c: Likewise.
9041         * elf/rtld.c: Likewise.
9042         * hurd/hurdsock.c: Likewise.
9043         * hurd/lookup-retry.c: Likewise.
9044         * malloc/malloc.c: Likewise.
9045         * malloc/mtrace.c: Likewise.
9046         * nscd/nscd_getgr_r.c: Likewise.
9047         * nscd/nscd_getpw_r.c: Likewise.
9048         * nscd/nscd_getserv_r.c: Likewise.
9049         * posix/getopt_init.c: Likewise.
9050         * posix/wordexp.c: Likewise.
9051         * stdio-common/_itoa.c: Likewise.
9052         * stdio-common/printf_fphex.c: Likewise.
9053         * stdio-common/vfprintf.c: Likewise.
9054         * string/_strerror.c: Likewise.
9055         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9056         * sysdeps/i386/i686/hp-timing.h: Likewise.
9057         * sysdeps/mach/_strerror.c: Likewise.
9058         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9059         * sysdeps/mach/hurd/sethostid.c: Likewise.
9060         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9061         * sysdeps/mach/xpg-strerror.c: Likewise.
9062         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9063         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9064         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9065         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9066         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9067         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9068         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9069         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9070         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9071         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9072         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9073         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9074         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9075         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9076         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9077         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9078         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9079         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9080         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9081         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9082         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9083
9084         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9085
9086         * stdio-common/_itoa.h: Moved to ...
9087         * sysdeps/generic/_itoa.h: Here.
9088
9089         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9090
9091         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9092         instead of "_itoa.h" and "_itowa.h".
9093         * stdio-common/vfprintf.: Likewise.
9094
9095 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9096
9097         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9098         <bits/wordsize.h>.
9099         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9100         (__signbit): Likwise.
9101         (llrintf): Likwise.
9102         (llrint): Likwise.
9103
9104 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9105
9106         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9107         __WORDSIZE != 64.
9108
9109 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9110
9111         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9112         OVERFLOW_EXCEPTION_OK.
9113         * math/libm-test.inc ("Philosophy"): Update comment about
9114         exception testing.
9115         (OVERFLOW_EXCEPTION): Define.
9116         (OVERFLOW_EXCEPTION_OK): Likewise.
9117         (INVALID_EXCEPTION_OK): Renumber.
9118         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9119         (IGNORE_ZERO_INF_SIGN): Likewise.
9120         (test_exceptions): Handle FE_OVERFLOW.
9121         (exp10_test): Expect overflow exceptions.
9122         (exp2_test): Likewise.
9123         (expm1_test): Likewise.
9124         (nextafter_test): Likewise.
9125         (pow_test): Likewise.
9126         (scalbn_test): Likewise.
9127         (scalbln_test): Likewise.
9128
9129 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9130
9131         * sysdeps/x86_64/bits/atomic.h
9132         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9133         64bit integer.
9134         (atomic_exchange_acq): Likewise.
9135         (__arch_exchange_and_add_body): Likewise.
9136         (__arch_add_body): Likewise.
9137         (atomic_add_negative): Likewise.
9138         (atomic_add_zero): Likewise.
9139
9140 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9141
9142         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9143         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9144
9145 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9146
9147         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9148         Check __x86_64__ instead of __WORDSIZE.
9149
9150 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9151
9152         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9153
9154 2012-03-19  David S. Miller  <davem@davemloft.net>
9155
9156         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9157
9158         * sysdeps/sparc/fpu/fenv_private.h: New file.
9159         * sysdeps/sparc/fpu/math_private.h: Use it.
9160         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9161         Remove.
9162         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9163         (libc_feholdexcept_setroundl): Remove.
9164         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9165         Remove.
9166         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9167         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9168
9169 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9170
9171         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9172         int64_t instead of long int.
9173         (INSERT_WORDS64): Likwise.
9174
9175 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9176
9177         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9178         _Unwind_GetCFA return to _Unwind_Ptr first.
9179
9180 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9181
9182         [BZ #13629]
9183         * math/s_clog.c: Include <float.h>.
9184         (__clog): Scale large or subnormal inputs.
9185         * math/s_clogf.c: Likewise.
9186         * math/s_clogl.c: Likewise.
9187         * math/s_clog10.c: Include <float.h>.
9188         (M_LOG10_2): Define.
9189         (__clog10): Scale large or subnormal inputs.
9190         * math/s_clog10f.c: Likewise.
9191         * math/s_clog10l.c: Likewise.
9192         * math/libm-test.inc (clog_test): Add more tests.
9193         (clog10_test): Likewise.
9194         * sysdeps/i386/fpu/libm-test-ulps: Update.
9195         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9196
9197         [BZ #11451]
9198         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9199         x and y.
9200         * math/libm-test.inc (atan2_test): Add another test.
9201
9202         * Makerules (common-objdir-compile): Remove.
9203         * sysdeps/unix/Makefile (config-generated): Do not add
9204         $(unix-generated) to variable.
9205         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9206         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9207         Remove rule.
9208         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9209         Likewise.
9210         [generic bits/local_lim.h] (before-compile): Do not append to
9211         variable.
9212         [generic bits/local_lim.h] (common-generated): Likewise.
9213         [generic sys/param.h] (before-compile): Do not append to variable.
9214         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9215         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9216         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9217         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9218         include.
9219         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9220         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9221         [generic sys/param.h] ($(addprefix
9222         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9223         [generic sys/param.h] (common-generated): Do not append to
9224         variable.
9225         [generic sys/param.h] (sysdep_headers): Likewise.
9226         [generic bits/errno.h] (before-compile): Do not append to
9227         variable.
9228         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9229         rule.
9230         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9231         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9232         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9233         [generic bits/errno.h] (common-generated): Do not append to
9234         variable.
9235         [generic bits/ioctls.h] (before-compile): Do not append to
9236         variable.
9237         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9238         rule.
9239         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9240         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9241         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9242         rule.
9243         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9244         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9245         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9246         [generic bits/ioctls.h] (common-generated): Do not append to
9247         variable.
9248         [generic sys/syscall.h] (syscall.h): Remove variable.
9249         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9250         rule.
9251         [generic sys/syscall.h] (before-compile): Do not append to
9252         variable.
9253         [generic sys/syscall.h] (common-generated): Likewise.
9254         * sysdeps/unix/errnos-tmpl.c: Remove file.
9255         * sysdeps/unix/errnos.awk: Likewise.
9256         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9257         * sysdeps/unix/ioctls.awk: Likewise.
9258         * sysdeps/unix/mk-local_lim.c: Likewise.
9259         * sysdeps/unix/snarf-ioctls: Likewise.
9260
9261 2012-03-19  Richard Henderson  <rth@twiddle.net>
9262
9263         * sysdeps/i386/fpu/fenv_private.h: New file.
9264         * sysdeps/i386/fpu/math_private.h: Use it.
9265         (math_opt_barrier, math_force_eval): Remove.
9266         (libc_feholdexcept_setround_53bit): Remove.
9267         (libc_feupdateenv_53bit): Remove.
9268         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9269         (math_opt_barrier, math_force_eval): Remove.
9270         (libc_feholdexcept): Remove.
9271         (libc_feholdexcept_setround): Remove.
9272         (libc_fetestexcept, libc_fesetenv): Remove.
9273         (libc_feupdateenv_test): Remove.
9274         (libc_feupdateenv, libc_feholdsetround): Remove.
9275         (libc_feresetround): Remove.
9276
9277         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9278         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9279
9280         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9281         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9282         (libc_feupdateenv_testl): New.
9283         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9284         (libc_feupdateenv_testf): New.
9285         (libc_feupdateenv): Use libc_feupdateenv_test.
9286         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9287         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9288
9289         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9290         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9291         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9292         (libc_feresetround_noex): New.
9293         (libc_feresetround_noexf): New.
9294         (libc_feresetround_noexl): New.
9295         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9296         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9297         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9298         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9299         SET_RESTORE_ROUND.
9300         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9301         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9302         (__cos): Likewise.
9303         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9304         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9305         SET_RESTORE_ROUND_NOEX.
9306         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9307         SET_RESTORE_ROUND_NOEXF.
9308         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9309         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9310         (libc_feholdsetroundf): New.
9311         (libc_feresetround, libc_feresetroundf): New.
9312
9313         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9314         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9315         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9316
9317         * sysdeps/generic/math_private.h: Include <fenv.h>.
9318         (default_libc_feholdexcept): New.
9319         (default_libc_feholdexcept_setround): New.
9320         (default_libc_fesetenv, default_libc_feupdateenv): New.
9321         (libc_feholdexcept): Only define if undefined.
9322         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9323         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9324         (libc_feholdexcept_setroundl): Likewise.
9325         (libc_feholdexcept_setround_53bit): Likewise.
9326         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9327         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9328         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9329         (libc_feupdateenv_53bit): Likewise.
9330         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9331         (libc_feholdexcept): Convert from macro to inline function.
9332         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9333         (libc_fesetenv, libc_feupdateenv): Likewise.
9334
9335         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9336         not previously defined.
9337         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9338         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9339         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9340         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9341         * sysdeps/ieee754/flt-32/math_private.h: New file.
9342         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9343         math_private.h below SET_FLOAT_WORD.
9344         (__isnan, __isinf_ns, __finite): Remove.
9345         (__isnanf, __isinf_nsf, __finitef): Remove.
9346
9347 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9348
9349         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9350
9351 2012-03-17  David S. Miller  <davem@davemloft.net>
9352
9353         [BZ #6471]
9354         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9355         for 2.16.
9356
9357 2012-03-16  David S. Miller  <davem@davemloft.net>
9358
9359         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9360         warnings.
9361
9362         [BZ #6471]
9363         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9364         properly.
9365         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9366         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9367         sysdep_routines when subdir is sysvipc.
9368         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9369         __getshmlba helper.
9370
9371         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9372
9373 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9374
9375         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9376         [__LP64__].
9377
9378 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9379
9380         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9381         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9382         (__lround): Renamed to ...
9383         (__llround): This.  Replace long int with long long int.
9384         Define lround functions as aliases of llround functions.
9385         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9386
9387 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9388
9389         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9390         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9391         adresses to uintptr_t.  Replace "long int" and "unsigned long
9392         int" with "greg_t" on va_arg.
9393
9394 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9395
9396         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9397         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9398
9399         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9400         Move e_machine check before EI_CLASS check.  Handle x32
9401         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9402         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9403         SKIP_EM_IA_64 and include
9404         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9405
9406         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9407         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9408         (add_system_dir): New macro.
9409
9410         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9411         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9412
9413 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9414
9415         [BZ #2551]
9416         [BZ #2552]
9417         [BZ #2553]
9418         [BZ #2554]
9419         [BZ #2562]
9420         [BZ #2563]
9421         [BZ #2565]
9422         [BZ #2566]
9423         [BZ #2576]
9424         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9425         (y0): Likewise.
9426         * math/w_j0f.c (j0f): Likewise.
9427         (y0f): Likewise.
9428         * math/w_j0l.c (__j0l): Likewise.
9429         (__y0l): Likewise.
9430         * math/w_j1.c (j1): Likewise.
9431         (y1): Likewise.
9432         * math/w_j1f.c (j1f): Likewise.
9433         (y1f): Likewise.
9434         * math/w_j1l.c (__j1l): Likewise.
9435         (__y1l): Likewise.
9436         * math/w_jn.c (jn): Likewise.
9437         (yn): Likewise.
9438         * math/w_jnf.c (jnf): Likewise.
9439         (ynf): Likewise.
9440         * math/w_jnl.c (__jnl): Likewise.
9441         (__ynl): Likewise.
9442         * math/libm-test.inc (j0_test): Add more tests.
9443         (j1_test): Likewise.
9444         (jn_test): Likewise.  Add trailing semicolon to existing test.
9445         (y0_test): Likewise.
9446         (y1_test): Likewise.
9447         * sysdeps/i386/fpu/libm-test-ulps: Update.
9448         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9449
9450         [BZ #13851]
9451         [BZ #13854]
9452         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9453         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9454         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9455         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9456         (__tanl): Set errno for infinite argument.
9457         * sysdeps/i386/fpu/mptan.c: Remove.
9458         * sysdeps/i386/fpu/s_tan.S: Likewise.
9459         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9460         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9461         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9462         * math/libm-test.inc (tan_test): Add more tests and enable more
9463         tests for double and long double.
9464         * sysdeps/i386/fpu/libm-test-ulps: Update.
9465         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9466
9467 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9468
9469         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9470         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9471
9472 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9473
9474         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9475         * configure.in: Use it for both main tree and add-ons.
9476         * configure: Regenerated.
9477
9478 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9479
9480         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9481
9482 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9483
9484         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9485         in comment.
9486
9487         [BZ #13851]
9488         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9489         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9490         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9491         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9492         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9493         infinite argument.
9494         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9495         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9496         != 0 for prec == 2.
9497         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9498         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9499         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9500         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9501         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9502         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9503         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9504         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9505         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9506         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9507         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9508         * math/libm-test.inc (cos_test): Add more tests and enable more
9509         tests for long double.
9510         (sin_test): Likewise.
9511         (sincos_test): Likewise.
9512         * sysdeps/i386/fpu/libm-test-ulps: Update.
9513         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9514
9515 2012-03-16  David S. Miller  <davem@davemloft.net>
9516
9517         * sysdeps/sparc/fpu/math_private.h: New file.
9518
9519 2012-03-15  David S. Miller  <davem@davemloft.net>
9520
9521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9522         file.
9523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9525         file.
9526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9527         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9528         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9529         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9530         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9531         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9532         sysdep routines.
9533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9534
9535         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9536         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9537
9538         * sysdeps/sparc/sparc-ifunc.h: New file.
9539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9540         sparc-ifunc.h
9541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9543         Likewise.
9544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9545         Likewise.
9546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9550         Likewise.
9551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9556         Likewise.
9557         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9558         Likewise.
9559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9563         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9564         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9565         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9566         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9567         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9568         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9569         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9570         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9571         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9572         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9573         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9574         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9575         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9576         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9577         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9578         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9579         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9580         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9581         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9582         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9583
9584 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9585
9586         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9587         scaling.
9588         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9589
9590 2012-03-15  Andreas Jaeger  <aj@suse.de>
9591
9592         [BZ #13852]
9593         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9594         ieee754/flt-32 implementation for sin, cos and sincos.
9595         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9596         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9597         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9598         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9599         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9600         ieee754/flt-32 implementation for tan.
9601
9602         * math/libm-test.inc (cos_test): Enable some large input tests for
9603         float as well
9604         (sin_test): Likewise.
9605         (sincos_test): Likewise.
9606         (tan_test): Add tests for large input.
9607
9608         * sysdeps/i386/fpu/libm-test-ulps: Update.
9609
9610 2012-03-15  Andreas Jaeger  <aj@suse.de>
9611
9612         [BZ #13658]
9613         * math/libm-test.inc (cos_test): Add more test cases.
9614         (sin_test): Likewise.
9615         (sincos_test): Likewise.
9616
9617 2012-03-15  Andreas Jaeger  <aj@suse.de>
9618
9619         [BZ #13837]
9620         * math/libm-test.inc (cos_test): Add a test case for large input
9621         value.
9622         (sin_test): Likewise.
9623         (sincos_test): Likewise.
9624
9625 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9626         Joseph Myers  <joseph@codesourcery.com>
9627
9628         [BZ #13658]
9629         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9630         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9631         * sysdeps/i386/fpu/branred.c: Likewise.
9632         * sysdeps/i386/fpu/dosincos.c: Likewise.
9633         * sysdeps/i386/fpu/mpa.c: Likewise.
9634         * sysdeps/i386/fpu/s_cos.S: Likewise.
9635         * sysdeps/i386/fpu/s_sin.S: Likewise.
9636         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9637         * sysdeps/i386/fpu/sincos32.c: Likewise.
9638
9639         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9640         Define.
9641         (libc_feupdateenv_53bit): Define.
9642         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9643         Define.
9644         (libc_feupdateenv_53bit): Define.
9645
9646         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9647         53 bit (without extend i386 double precision).
9648
9649         * math/libm-test.inc (sincos_test): Add tests for large input.
9650         (sin): Likewise.
9651         (cos): Likewise.
9652
9653         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9654
9655 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9656
9657         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9658
9659 2012-03-15  David S. Miller  <davem@davemloft.net>
9660
9661         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9662         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9663         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9664         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9665         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9666         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9667         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9668         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9669         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9670         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9671         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9672         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9673         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9674         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9675         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9677         file.
9678         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9680         file.
9681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9683         file.
9684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9686         file.
9687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9688         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9689         fmin/fmax sysdep routines.
9690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9691
9692 2012-03-14  David S. Miller  <davem@davemloft.net>
9693
9694         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9695         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9696         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9697         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9698         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9699         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9700         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9701         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9702         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9703         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9704         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9705         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9706         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9707         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9708         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9709         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9710         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9711         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9712         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9713         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9714         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9715         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9716         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9717         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9718         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9719         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9720         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9721         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9722         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9723         routines.
9724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9725         file.
9726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9728         file.
9729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9731         file.
9732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9734         file.
9735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9737         file.
9738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9740         file.
9741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9742         file.
9743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9744         file.
9745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9746         file.
9747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9748         New file.
9749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9750         file.
9751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9752         file.
9753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9755         file.
9756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9758         file.
9759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9761         file.
9762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9764         VIS3 routines.
9765
9766         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9767         New file.
9768
9769         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9770
9771         * sysdeps/sparc/configure.in: New file.
9772         * sysdeps/sparc/configure: Generate.
9773         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9774         * configure: Regenerate.
9775         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9776         * config.make.in (have-as-vis3): New.
9777         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9778         available use -Av9d instead of -Av9a.
9779         * sysdeps/sparc/sparc64/Makefile: Likewise.
9780         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9782         New file.
9783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9784         file.
9785         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9786         New file.
9787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9788         file.
9789         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9790         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9791         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9792         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9793         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9794
9795         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9796         fzeros/fnegs to load 0x80000000 into a float register instead of
9797         using the stack.
9798         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9799
9800 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9801
9802         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9803         bits/syscall.h.
9804         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9805         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9806         ($(inst_includedir)/bits/syscall.h): Remove rule.
9807         ($(objpfx)bits/syscall.d): Include instead of
9808         $(objpfx)syscall-list.d.
9809         (generated): Change syscall-list.h and syscall-list.d to
9810         bits/syscall.h and bits/syscall.d.
9811
9812 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9813
9814         [BZ #13846]
9815         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9816
9817 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9818
9819         [BZ #13841]
9820         * math/s_csqrt.c: Include <float.h>.
9821         (__csqrt): Scale large or subnormal inputs.
9822         * math/s_csqrtf.c: Likewise.
9823         * math/s_csqrtl.c: Likewise.
9824         * math/libm-test.inc (csqrt_test): Add more tests.
9825         * sysdeps/i386/fpu/libm-test-ulps: Update.
9826         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9827
9828         [BZ #13840]
9829         * math/libm-test.inc (hypot_test): Add more tests.
9830
9831 2012-03-13  David S. Miller  <davem@davemloft.net>
9832
9833         [BZ #13840]
9834         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9835         double-precision for the calculation instead of scaling.
9836
9837 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9838
9839         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9840         manipulate bits before adding and subtracting TWO52[sx].
9841         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9842         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9843         Likewise.
9844         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9845
9846 2012-03-13  David S. Miller  <davem@davemloft.net>
9847
9848         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9849         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9850         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9851         rtld-global-offsets.h
9852         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9853
9854         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9855         large parameters.
9856
9857         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9858
9859         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9860         'err' in the ifdef scope in which it is actually used.
9861
9862         * nss/nss_db/db-init.c: Include string.h
9863
9864 2012-03-12  David S. Miller  <davem@davemloft.net>
9865
9866         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9867         masking out of the most significant byte of random value used.
9868         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9869         Fix coding style in previous change.
9870
9871         * sysdeps/unix/sysv/linux/kernel-features.h
9872         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9873         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9874         expression.
9875         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9876         later.
9877
9878 2012-03-11  David S. Miller  <davem@davemloft.net>
9879
9880         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9881         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9882         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9883         for 'resultvar' otherwise things get truncated on 64-bit.
9884
9885         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9886         Fix masking out of the most significant byte of random value used.
9887
9888         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9889
9890 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9891
9892         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9893
9894 2012-03-09  David S. Miller  <davem@davemloft.net>
9895
9896         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9897         variables with appropriate CPP guards.
9898         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9899         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9900         on resulting framesize and the management of the outregs buffer for pltexit.
9901         Preserve floating point return values across _dl_call_pltexit call.
9902         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9903         framesize and the management of the outregs buffer for pltexit.
9904         Preserve floating point return values across _dl_call_pltexit
9905         call.
9906         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9907         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9908         (print_exit): Fix format string for return register value.
9909
9910 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
9911
9912         * sunrpc/Makefile (others): Add rpcgen.
9913         ($(objpfx)rpcgen): Remove special build rule and dependency on
9914         libc.
9915         * sunrpc/rpcgen.c: New file.
9916
9917 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
9918
9919         [BZ #13673]
9920         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
9921         * stdio-common/bug-vfprintf-nargs.c: Likewise.
9922         * sysdeps/i386/crti.S: Likewise.
9923         * sysdeps/i386/crtn.S: Likewise.
9924         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
9925         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
9926         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
9927         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
9928         * sysdeps/sh/crti.S: Likewise.
9929         * sysdeps/sh/crtn.S: Likewise.
9930         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9931
9932         [BZ #13673]
9933         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
9934         with URL.
9935         * locale/programs/locfile-kw.gperf: Likewise.
9936         * locale/programs/charmap-kw.h: Regenerated.
9937         * locale/programs/locfile-kw.h: Likewise.
9938
9939         [BZ #13673]
9940         * intl/plural.y: Replace FSF snail mail address with URL.
9941         * intl/plural.c: Regenerated.
9942
9943 2012-03-09  Richard Henderson  <rth@twiddle.net>
9944
9945         * include/math_private.h: Remove file.
9946         * math/math_private.h: Move file ...
9947         * sysdeps/generic/math_private.h: ... here.
9948
9949         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
9950         * sysdeps/powerpc/fpu/math_private.h: Likewise.
9951         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9952
9953         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
9954         and <math_private.h>.
9955         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9956         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9957         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9958         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9959         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9960         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
9961         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9962         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9963         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9964         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9965         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9966         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9967         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9968         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9969         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9970         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9971         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9972         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9973         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9974         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9975         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9976         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9977         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9978         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9979         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9980         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9981         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9982         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9983         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9984         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9985         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9986         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9987         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9988         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9989         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9990         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9991         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9992         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9993         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9994         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9995         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
9996         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9997         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9998         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
9999         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10000         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10001         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10002         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10003         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10004         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10005         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10006         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10007         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10008         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10009         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10010         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10011         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10012         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10013         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10014         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10015         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10016         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10017         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10018         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10019         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10020         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10021         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10022         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10023         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10024         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10025         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10026         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10027         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10028         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10029         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10030         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10031         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10032         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10033         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10034         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10035         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10036         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10037         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10038         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10039         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10040         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10041         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10042         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10043         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10044         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10045         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10046         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10047         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10048         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10049         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10050         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10051         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10052         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10053         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10054         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10055         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10056         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10057         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10058         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10059         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10060         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10061         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10062         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10063         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10064         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10065         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10066         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10067         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10068         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10069         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10070         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10071         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10072         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10073         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10074         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10075         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10076         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10077         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10078         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10079         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10080         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10081         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10082         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10083         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10084         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10085         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10086         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10087         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10088         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10089         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10090         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10091         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10092         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10093         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10094         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10095         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10096         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10097         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10098         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10099         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10100         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10101         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10102         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10103         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10104         * sysdeps/ieee754/k_standard.c: Likewise.
10105         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10106         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10107         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10108         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10109         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10110         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10111         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10112         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10113         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10114         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10115         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10116         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10117         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10118         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10119         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10120         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10121         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10122         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10123         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10124         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10125         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10126         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10127         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10128         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10129         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10130         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10131         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10132         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10133         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10134         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10135         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10136         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10137         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10138         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10139         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10140         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10141         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10142         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10143         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10144         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10145         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10146         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10147         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10148         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10149         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10150         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10151         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10152         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10153         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10154         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10155         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10156         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10157         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10158         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10159         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10160         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10161         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10162         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10163         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10164         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10165         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10166         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10167         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10168         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10169         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10170         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10171         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10172         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10173         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10174         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10175         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10176         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10177         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10178         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10179         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10180         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10181         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10182         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10183         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10184         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10185         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10186         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10187         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10188         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10189         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10190         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10191         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10192         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10193         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10194         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10195         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10196         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10197         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10198         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10199         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10200         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10201         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10202         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10203         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10204         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10205         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10206         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10207         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10208         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10209         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10210         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10211         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10212         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10213         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10214         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10215         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10216         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10217         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10218         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10219         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10220         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10221         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10222         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10223         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10224         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10225         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10226         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10227         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10228         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10229         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10230         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10231         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10232         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10233         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10234         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10235         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10236         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10237         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10238         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10239         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10240         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10241         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10242         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10243         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10244         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10245         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10246         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10247         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10248         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10249         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10250         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10251         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10252         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10253         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10254         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10255         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10256         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10257         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10258         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10259         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10260         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10261         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10262         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10263         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10264         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10265         * sysdeps/ieee754/s_lib_version.c: Likewise.
10266         * sysdeps/ieee754/s_matherr.c: Likewise.
10267         * sysdeps/ieee754/s_signgam.c: Likewise.
10268         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10269         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10270         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10271         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10272         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10273         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10274         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10275         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10276         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10277         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10278         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10279         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10280         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10281         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10282         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10283         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10284         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10285         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10286         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10287         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10288         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10289
10290 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10291
10292         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10293         * sunrpc/rpc_main.c: Likewise.
10294         * sunrpc/rpc_svcout.c: Likewise.
10295
10296 2012-03-09  David S. Miller  <davem@davemloft.net>
10297
10298         * include/math_private.h: New file.
10299
10300 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10301
10302         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10303         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10304         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10305         from <bits/socket_type.h>.
10306         (enum __socket_type): Don't define here.
10307         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10308         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10309         bits/socket_type.h.
10310
10311         [BZ #13566]
10312         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10313         checking __USE_GNU.
10314
10315         * Makerules ($(inst_includedir)/%.h): New rule.
10316         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10317         (install-others): Remove variable setting.
10318         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10319
10320 2012-03-08  Richard Henderson  <rth@twiddle.net>
10321
10322         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10323         from macro to inline function; merge with the
10324         !__LIBC_INTERNAL_MATH_INLINES version.
10325         (__ieee754_sqrtf): Likewise.
10326
10327         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10328         to inline function.
10329         (__rintf, __floor, __floorf): Likewise.
10330
10331         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10332         macro to inline function.
10333         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10334
10335         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10336         not <math/math_private.h>.
10337
10338 2012-03-08  David S. Miller  <davem@davemloft.net>
10339
10340         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10341         copyright year.
10342         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10343
10344 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10345
10346         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10347         normalization.
10348         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10349         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10350
10351 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10352
10353         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10354         be defined individually, they must be defined as a block.  Define
10355         S for printing a string instead of hidint the different by using a
10356         macro for adding the 'l'.
10357         * stdio-common/tst-fphex-wide.c: Adjust.
10358
10359 2012-03-07  Marek Polacek  <polacek@redhat.com>
10360
10361         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10362
10363 2012-03-08  Marek Polacek  <polacek@redhat.com>
10364
10365         [BZ #13806]
10366         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10367         * stdio-common/tst-fphex.c: Define a few macros to make the
10368         test reusable.  Use them.
10369         * stdio-common/tst-fphex-wide.c: New file.
10370
10371 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10372
10373         [BZ #6911]
10374         * manual/macros.texi (gnusystems): New macro.
10375         (nongnusystems): Likewise.
10376         (gnulinuxhurdsystems): Likewise.
10377         (gnuhurdsystems): Likewise..
10378         (gnulinuxsystems): Likewise.
10379         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10380         variants of the GNU system, not "GNU system".
10381         * manual/conf.texi: Likewise.
10382         * manual/errno.texi: Likewise.  Update example of errno macro
10383         expansion.
10384         * manual/filesys.texi: Likewise.
10385         (getumask): Document as specific to GNU/Hurd.
10386         * manual/install.texi: Likewise.  Reword some references to
10387         GNU/Linux.
10388         * manual/intro.texi: Likewise.
10389         * manual/io.texi: Likewise.
10390         (File Name Portability): Detail which constraints are inapplicable
10391         to all GNU systems and which are only inapplicable to GNU/Hurd.
10392         * manual/job.texi: Likewise.
10393         * manual/llio.texi: Likewise.
10394         (O_NOCTTY): Document as present on GNU/Linux.
10395         * manual/maint.texi: Likewise.
10396         * manual/memory.texi: Likewise.
10397         * manual/pattern.texi: Likewise.
10398         * manual/pipe.texi: Likewise.
10399         * manual/process.texi: Likewise.
10400         * manual/resource.texi: Likewise.
10401         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10402         child on GNU/Hurd.
10403         * manual/setjmp.texi: Likewise.
10404         * manual/signal.texi: Likewise.
10405         * manual/startup.texi: Likewise.
10406         * manual/stdio.texi: Likewise.
10407         * manual/terminal.texi: Likewise.
10408         (ONLCR): Document as POSIX.
10409         (OXTABS): Document availability on GNU/Linux as XTABS.
10410         (ONOEOT): Document availability separately from other bits.
10411         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10412         * manual/time.texi: Likewise.
10413         * manual/users.texi: Likewise.
10414         * INSTALL: Regenerated.
10415         * sysdeps/gnu/errlist.c: Regenerated.
10416
10417         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10418         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10419         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10420         puts.
10421         * configure: Regenerated.
10422
10423 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10424
10425         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10426         default includes instead of AC_HEADER_CHECK.
10427         * sysdeps/i386/configure: Regenerated.
10428
10429         [BZ #10716]
10430         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10431         * math/s_cacoshf.c (__cacoshf): Likewise.
10432         * math/s_cacoshl.c (__cacoshl): Likewise.
10433         * math/s_casinh.c (__casinh): Set signs of result from argument.
10434         * math/s_casinhf.c (__casinhf): Likewise.
10435         * math/s_casinhl.c (__casinhl): Likewise.
10436         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10437         (casinh_test): Add more tests.
10438         * sysdeps/i386/fpu/libm-test-ulps: Update.
10439         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10440
10441 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10442
10443         * po/zh_TW.po: Update from translation team.
10444
10445         * login/Makefile (distribute): Remove variable.
10446         * catgets/Makefile: Likewise.
10447         * mach/Makefile: Likewise.
10448         * malloc/Makefile: Likewise.
10449         * misc/Makefile: Likewise.
10450         * iconv/Makefile: Likewise.
10451         * nscd/Makefile: Likewise.
10452         * hurd/Makefile: Likewise.
10453         * manual/Makefile: Likewise.
10454         * locale/Makefile: Likewise.
10455         * intl/Makefile: Likewise.
10456         * conform/Makefile: Likewise.
10457         * nss/Makefile: Likewise.
10458         * time/Makefile: Likewise.
10459         * soft-fp/Makefile: Likewise.
10460         * dirent/Makefile: Likewise.
10461         * gmon/Makefile: Likewise.
10462         * po/Makefile: Likewise.
10463         * rt/Makefile: Likewise.
10464         * socket/Makefile: Likewise.
10465         * math/Makefile: Likewise.
10466         * signal/Makefile: Likewise.
10467         * debug/Makefile: Likewise.
10468         * elf/Makefile: Likewise.
10469         * timezone/Makefile: Likewise.
10470         * stdlib/Makefile: Likewise.
10471         * iconvdata/Makefile: Likewise.
10472         * sunrpc/Makefile: Likewise.
10473         * io/Makefile: Likewise.
10474         * argp/Makefile: Likewise.
10475         * inet/Makefile: Likewise.
10476         * hesiod/Makefile: Likewise.
10477         * grp/Makefile: Likewise.
10478         * csu/Makefile: Likewise.
10479         * wctype/Makefile: Likewise.
10480         * crypt/Makefile: Likewise.
10481         * libio/Makefile: Likewise.
10482         * string/Makefile: Likewise.
10483         * nis/Makefile: Likewise.
10484         * resolv/Makefile: Likewise.
10485         * stdio-common/Makefile: Likewise.
10486         * wcsmbs/Makefile: Likewise.
10487         * dlfcn/Makefile: Likewise.
10488         * posix/Makefile: Likewise.
10489
10490         [BZ #6959]
10491         * timezone/Makefile: Don't install timezone files, just the programs
10492         and scripts.
10493
10494 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10495
10496         * nss/databases.def: Add missing gshadow entry.
10497
10498         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10499
10500 2012-03-06  Marek Polacek  <polacek@redhat.com>
10501
10502         [BZ #13726]
10503         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10504         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10505         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10506         * stdio-common/tst-long-dbl-fphex.c: New file.
10507
10508 2012-03-06  David S. Miller  <davem@davemloft.net>
10509
10510         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10511         (set_obp_int): New function.
10512         (get_obp_int): New function.
10513         (__get_clockfreq_via_dev_openprom): Likewise.
10514         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10515         Avoid unused variable warnings on 'val' and use builtin_expect.
10516         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10517         __builtin_expect.
10518         (INLINE_CLONE_SYSCALL): Likewise.
10519
10520 2012-03-05  David S. Miller  <davem@davemloft.net>
10521
10522         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10523
10524 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10525
10526         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10527
10528         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10529         only for |x| >= 40.
10530         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10531
10532 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10533
10534         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10535         Replace gettimeofday with __vdso_gettimeofday.
10536
10537         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10538         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10539         __vdso_clock_gettime and __vdso_getcpu.
10540
10541         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10542         time with __vdso_time.
10543
10544 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10545
10546         * manual/lang.texi (size_t): Note types to which size_t may be
10547         equivalent with the GNU C Library, but do not describe when
10548         differences between them are significant.
10549
10550 2012-03-05  Andreas Jaeger  <aj@suse.de>
10551
10552         * sysdeps/i386/fpu/libm-test-ulps: Update.
10553
10554 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10555
10556         [BZ #3976]
10557         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10558         (__ieee754_pow): Save and restore rounding mode and use
10559         round-to-nearest for main computations.
10560         * math/libm-test.inc (pow_test_tonearest): New function.
10561         (pow_test_towardzero): Likewise.
10562         (pow_test_downward): Likewise.
10563         (pow_test_upward): Likewise.
10564         (main): Call the new functions.
10565         * sysdeps/i386/fpu/libm-test-ulps: Update.
10566         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10567
10568         [BZ #3976]
10569         * math/libm-test.inc (cosh_test_tonearest): New function.
10570         (cosh_test_towardzero): Likewise.
10571         (cosh_test_downward): Likewise.
10572         (cosh_test_upward): Likewise.
10573         (sinh_test_tonearest): Likewise.
10574         (sinh_test_towardzero): Likewise.
10575         (sinh_test_downward): Likewise.
10576         (sinh_test_upward): Likewise.
10577         (main): Call the new functions.
10578         * sysdeps/i386/fpu/libm-test-ulps: Update.
10579         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10580
10581 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10582
10583         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10584         default stack guard is set in last bytes.
10585         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10586
10587 2012-03-05  Kees Cook  <keescook@chromium.org>
10588
10589         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10590
10591         [BZ #13656]
10592         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10593         possibly allocate from heap instead of stack.
10594         * stdio-common/bug-vfprintf-nargs.c: New file.
10595         * stdio-common/Makefile (tests): Add nargs overflow test.
10596
10597 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10598
10599         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10600
10601 2012-03-03  Marek Polacek  <polacek@redhat.com>
10602
10603         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10604         * math/math_private.h: Likewise.
10605         * stdlib/tst-strtod.c: Likewise.
10606         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10607         * sysdeps/x86_64/bits/atomic.h: Likewise.
10608
10609 2012-03-02  David S. Miller  <davem@davemloft.net>
10610
10611         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10612         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10613         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10614         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10615         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10616         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10617         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10618         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10619
10620 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10621
10622         [BZ #13792]
10623         * manual/examples/README: New file, says the example source files
10624         can be used under GPL>=2.
10625         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10626         line containing just "*/".
10627         * manual/examples/add.c: Add copyright header (GPL>=2).
10628         * manual/examples/argp-ex1.c: Likewise.
10629         * manual/examples/argp-ex2.c: Likewise.
10630         * manual/examples/argp-ex3.c: Likewise.
10631         * manual/examples/argp-ex4.c: Likewise.
10632         * manual/examples/atexit.c: Likewise.
10633         * manual/examples/db.c: Likewise.
10634         * manual/examples/dir.c: Likewise.
10635         * manual/examples/dir2.c: Likewise.
10636         * manual/examples/execinfo.c: Likewise.
10637         * manual/examples/filecli.c: Likewise.
10638         * manual/examples/filesrv.c: Likewise.
10639         * manual/examples/fmtmsgexpl.c: Likewise.
10640         * manual/examples/genpass.c: Likewise.
10641         * manual/examples/inetcli.c: Likewise.
10642         * manual/examples/inetsrv.c: Likewise.
10643         * manual/examples/isockad.c: Likewise.
10644         * manual/examples/longopt.c: Likewise.
10645         * manual/examples/memopen.c: Likewise.
10646         * manual/examples/memstrm.c: Likewise.
10647         * manual/examples/mkfsock.c: Likewise.
10648         * manual/examples/mkisock.c: Likewise.
10649         * manual/examples/mygetpass.c: Likewise.
10650         * manual/examples/pipe.c: Likewise.
10651         * manual/examples/popen.c: Likewise.
10652         * manual/examples/rprintf.c: Likewise.
10653         * manual/examples/search.c: Likewise.
10654         * manual/examples/select.c: Likewise.
10655         * manual/examples/setjmp.c: Likewise.
10656         * manual/examples/sigh1.c: Likewise.
10657         * manual/examples/sigusr.c: Likewise.
10658         * manual/examples/stpcpy.c: Likewise.
10659         * manual/examples/strdupa.c: Likewise.
10660         * manual/examples/strftim.c: Likewise.
10661         * manual/examples/strncat.c: Likewise.
10662         * manual/examples/subopt.c: Likewise.
10663         * manual/examples/swapcontext.c: Likewise.
10664         * manual/examples/termios.c: Likewise.
10665         * manual/examples/testopt.c: Likewise.
10666         * manual/examples/testpass.c: Likewise.
10667         * manual/examples/timeval_subtract.c: Likewise.
10668
10669         [BZ #13792]
10670         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10671         function to ...
10672         * manual/timeval_subtract.c.texi: ... here, new file.
10673
10674 2012-03-02  David S. Miller  <davem@davemloft.net>
10675
10676         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10677
10678 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10679
10680         [BZ #3976]
10681         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10682         (__sin): Save and restore rounding mode and use round-to-nearest
10683         for all computations.
10684         (__cos): Save and restore rounding mode and use round-to-nearest
10685         for all computations.
10686         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10687         <fenv.h>.
10688         (tan): Save and restore rounding mode and use round-to-nearest for
10689         all computations.
10690         * math/libm-test.inc (cos_test_tonearest): New function.
10691         (cos_test_towardzero): Likewise.
10692         (cos_test_downward): Likewise.
10693         (cos_test_upward): Likewise.
10694         (sin_test_tonearest): Likewise.
10695         (sin_test_towardzero): Likewise.
10696         (sin_test_downward): Likewise.
10697         (sin_test_upward): Likewise.
10698         (tan_test_tonearest): Likewise.
10699         (tan_test_towardzero): Likewise.
10700         (tan_test_downward): Likewise.
10701         (tan_test_upward): Likewise.
10702         (main): Call the new functions.
10703         * sysdeps/i386/fpu/libm-test-ulps: Update.
10704         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10705
10706         [BZ #10135]
10707         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10708         small n, then large n, before computing and testing k+n.
10709         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10710         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10711         Likewise.
10712         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10713         Likewise.
10714         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10715         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10716         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10717         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10718         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10719         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10720         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10721         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10722         * math/libm-test.inc (scalbn_test): Add more tests.
10723         (scalbln_test): Likewise.
10724
10725         * manual/filesys.texi (mode_t): Describe constraints on size and
10726         signedness, not exact equivalence to a particular type.
10727         (ino_t): Likewise.
10728         (ino64_t): Likewise.
10729         (dev_t): Likewise.
10730         (nlink_t): Likewise.
10731         (blkcnt_t): Likewise.
10732         (blkcnt64_t): Likewise.
10733         * manual/llio.texi (off_t): Likewise.
10734
10735         [BZ #3976]
10736         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10737         (__ieee754_exp): Save and restore rounding mode and use
10738         round-to-nearest for all computations.
10739         * math/libm-test.inc (exp_test_tonearest): New function.
10740         (exp_test_towardzero): Likewise.
10741         (exp_test_downward): Likewise.
10742         (exp_test_upward): Likewise.
10743         (main): Call the new functions.
10744         * sysdeps/i386/fpu/libm-test-ulps: Update.
10745         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10746
10747 2012-03-01  Chris Demetriou  <cgd@google.com>
10748
10749         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10750         have predictable order.
10751
10752 2012-03-01  David S. Miller  <davem@davemloft.net>
10753
10754         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10755
10756         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10757         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10758         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10759         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10760
10761         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10762         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10763         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10764         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10765         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10766         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10767         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10768         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10769         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10770
10771         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10772
10773         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10774         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10775         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10776
10777         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10778         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10779         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10780         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10781         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10782         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10783         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10784         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10785         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10786         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10787         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10788         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10789         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10790         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10791         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10792         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10793         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10794         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10795         * sysdeps/sparc/elf/configure: Regenerated.
10796
10797 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10798
10799         * configure.in (AS, LD): Require binutils 2.20 or later.
10800         * configure: Regenerated.
10801         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10802         as required minimum version.
10803         * INSTALL: Regenerated.
10804
10805         [BZ #2541]
10806         [BZ #4108]
10807         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10808         before squaring exponent.
10809         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10810         bottom long double and 27 bits of top long double before squaring
10811         exponent.
10812         * math/libm-test.inc (erfc_test): Add more tests.
10813         * sysdeps/i386/fpu/libm-test-ulps: Update.
10814         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10816
10817 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10818
10819         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10820         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10821         containing bit-fields.
10822         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10823         * soft-fp/single.h (_FP_UNION_S): Likewise.
10824         * soft-fp/double.h (_FP_UNION_D): Likewise.
10825
10826 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10827
10828         [BZ #13786]
10829         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10830         not include ../strcmp.S.
10831         [USE_AS_STRNCASECMP_L]: Likewise.
10832         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10833         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10834         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10835         (__strncasecmp_l_ia32): Define as alias to
10836         __strncasecmp_l_nonascii.
10837
10838         [BZ #5794]
10839         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10840         * sysdeps/i386/fpu/libm-test-ulps: Update.
10841         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10842
10843         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10844         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10845
10846 2012-02-29  Jeff Law  <law@redhat.com>
10847
10848         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10849         out of bounds read.
10850
10851 2012-02-29  Marek Polacek  <polacek@redhat.com>
10852
10853         [BZ #13706]
10854         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10855         * elf/Makefile: Add rules to run tst-unused-dep.out.
10856
10857 2012-02-28  David S. Miller  <davem@davemloft.net>
10858
10859         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10860         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10861         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10862         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10863         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10864         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10865
10866 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10867
10868         * math/libm-test.inc (llround_test): Move one test from
10869         lround_test.  Use TEST_f_L in moved test.
10870         (lround_test): Move misplaced test to llround_test.  Add testcase
10871         from bug 2561.
10872
10873 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10874
10875         * sysdeps/x86_64/fpu/e_expf.S: New file.
10876         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10877
10878 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10879
10880         [BZ #13637]
10881         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10882         of remain_len that may cause incomplete multi-byte character and
10883         false match.
10884         * posix/bug-regex33.c: New file.
10885         * posix/Makefile (tests): Add bug-regex33.
10886
10887 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10888
10889         * manual/macros.texi: New file.
10890         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10891         * manual/libc.texinfo: Include macros.texi.
10892         * manual/creatute.texi: Likewise.
10893         * manual/install.texi: Likewise.
10894         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10895         @glibcadj{} in references to the GNU C Library.
10896         * manual/charset.texi: Likewise.
10897         * manual/conf.texi: Likewise.
10898         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10899         when not using those macros.
10900         * manual/creature.texi: Likewise.
10901         * manual/crypt.texi: Likewise.
10902         * manual/errno.texi: Likewise.
10903         * manual/filesys.texi: Likewise.
10904         * manual/header.texi: Likewise.
10905         * manual/install.texi: Likewise.
10906         * manual/intro.texi: Likewise.
10907         * manual/io.texi: Likewise.
10908         * manual/job.texi: Likewise.
10909         * manual/lang.texi: Likewise.
10910         * manual/libc.texiinfo: Likewise.
10911         * manual/llio.texi: Likewise.
10912         * manual/locale.texi: Likewise.
10913         * manual/maint.texi: Likewise.
10914         * manual/math.texi: Likewise.
10915         * manual/memory.texi: Likewise.
10916         * manual/message.texi: Likewise.
10917         * manual/nss.texi: Likewise.
10918         * manual/pattern.texi: Likewise.
10919         * manual/process.texi: Likewise.
10920         * manual/resource.texi: Likewise.
10921         * manual/search.texi: Likewise.
10922         * manual/setjmp.texi: Likewise.
10923         * manual/signal.texi: Likewise.
10924         * manual/socket.texi: Likewise.
10925         * manual/startup.texi: Likewise.
10926         * manual/stdio.texi: Likewise.
10927         * manual/string.texi: Likewise.
10928         * manual/sysinfo.texi: Likewise.
10929         * manual/syslog.texi: Likewise.
10930         * manual/terminal.texi: Likewise.
10931         * manual/time.texi: Likewise.
10932         * manual/users.texi: Likewise.
10933         * INSTALL: Regenerated.
10934         * NOTES: Regenerated.
10935         * sysdeps/gnu/errlist.c: Regenerated.
10936
10937 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
10938
10939         * include/dirent.h: Include <dirstream.h> before
10940         <dirent/dirent.h>.
10941
10942 2012-02-28  David S. Miller  <davem@davemloft.net>
10943
10944         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
10945         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
10946         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
10947         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
10948
10949 2012-02-27  David S. Miller  <davem@davemloft.net>
10950
10951         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
10952         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
10953         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
10954         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
10955
10956         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
10957         frame pointer instead of stack pointer relative arg slot.
10958         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10959         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10960         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10961
10962 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
10963
10964         [BZ #3992]
10965         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
10966
10967 2012-02-27  David S. Miller  <davem@davemloft.net>
10968
10969         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
10970         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10971         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10972         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
10973         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10974         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10975         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
10976         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
10977
10978 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10979
10980         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
10981         later.  Allow versions 5-9.
10982         * configure: Regenerated.
10983         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
10984         required minimum version and 4.6 as recommended version.  Do not
10985         mention bugs in GCC 2.7 and 2.8.
10986         * INSTALL: Regenerated.
10987
10988 2012-02-27  David S. Miller  <davem@davemloft.net>
10989
10990         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
10991         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
10992         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
10993         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
10994         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
10995         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
10996         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
10997         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
10998
10999         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11000         manipulate bits before adding and subtracting TWO112[sx].
11001         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11002
11003 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11004
11005         [BZ #13775]
11006         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11007         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11008         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11009         being in POSIX, because they are in 1003.1-2008.
11010
11011         * rt/tst-aio.c: Include <fcntl.h>.
11012         * rt/tst-aio7.c: Likewise.
11013         * rt/tst-aio64.c: Likewise.
11014
11015         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11016
11017 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11018
11019         * manual/install.texi (--with-headers): Describe headers as
11020         interface headers, not private headers.
11021         (Specific advice for GNU/Linux systems): Describe use of headers
11022         from "make headers_install", not private headers from older
11023         kernels.
11024         * INSTALL: Regenerated.
11025         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11026         Change to 2.6.19.
11027         * sysdeps/unix/sysv/linux/configure: Regenerated.
11028
11029         * manual/llio.texi (fclean): Remove documentation.
11030
11031         * manual/Makefile (libc-texi-generated): New variable.  Include
11032         version.texi.
11033         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11034         $(libc-texi-generated), not duplicated list of files.
11035         (version.texi, stamp-version): New rules.
11036         (realclean): Remove $(libc-texi-generated), not individual files
11037         from that list.  Do not remove dir-add.texinfo.
11038         * manual/libc.texinfo: Comment out uses of edition numbers and
11039         references to printed manual.  Remove last-updated dates.
11040         (EDITION): Comment out.
11041         (ISBN): Likewise.
11042         (VERSION, UPDATED): Remove.
11043         (version.texi): Include.
11044
11045 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11046
11047         * sysdeps/posix/spawni.c: Include <signal.h>.
11048         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11049         * sysdeps/pthread/aio_fsync.c: Likewise.
11050
11051 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11052
11053         * conform/Makefile (tests): Run only when not cross-compiling and
11054         when fast-check is not defined.
11055
11056         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11057         * conform/data/limits.h-data: Fixes for POSIX2008.
11058         * conform/run-conformtest.sh: Run all tests.
11059         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11060         headers.
11061         * include/bits/dlfcn.h: Likewise.
11062         * include/langinfo.h: Likewise.
11063         * include/monetary.h: Likewise.
11064         * include/sys/poll.h: Likewise.
11065
11066         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11067         for __USE_GNU.
11068         * posix/spawn.h: Define __need_sigset_t.
11069         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11070         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11071         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11072         to get sigevent_t only.
11073         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11074         only for __USE_GNU.
11075         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11076         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11077         process_vm_writev only for __USE_GNU.
11078         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11079
11080         * conform/Makefile: For now ignore errors from run-conformtest.
11081         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11082         POSIX to avoid namespace pollution.  Don't prepend headers.
11083         * conform/data/aio.h-data: Fixes for POSIX testing.
11084         * conform/data/fcntl.h-data: Likewise.
11085         * conform/data/glob.h-data: Likewise.
11086         * conform/data/grp.h-data: Likewise.
11087         * conform/data/pthread.h-data: Likewise.
11088         * conform/data/pwd.h-data: Likewise.
11089         * conform/data/signal.h-data: Likewise.
11090         * conform/data/spawn.h-data: Likewise.
11091         * conform/data/stdio.h-data: Likewise.
11092         * conform/data/stdlib.h-data: Likewise.
11093         * conform/data/stropts.h-data: Likewise.
11094         * conform/data/sys/mman.h-data: Likewise.
11095         * conform/data/sys/stat.h-data: Likewise.
11096         * conform/data/sys/types.h-data: Likewise.
11097         * conform/data/sys/wait.h-data: Likewise.
11098         * conform/data/time.h-data: Likewise.
11099         * conform/data/unistd.h-data: Likewise.
11100         * conform/data/utime.h-data: Likewise.
11101
11102         * io/sys/stat.h: fchmod was always in POSIX.
11103         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11104         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11105         * rt/aio.h: Define __need_timespec before including <time.h>.
11106         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11107         struct.  Add forward declaration of pthread_attr_t and use it in
11108         sigevent.
11109         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11110         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11111         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11112         always remove CLK_TCK definition.
11113
11114 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11115
11116         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11117
11118 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11119
11120         * conform/run-conformtest.sh: New file.
11121         * conform/Makefile: Run run-conformtest for tests.
11122         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11123         support.
11124
11125         * conform/data/uchar.h-data: New file.
11126         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11127         * conform/data/arpa/inet.h-data: Likewise.
11128         * conform/data/assert.h-data: Likewise.
11129         * conform/data/complex.h-data: Likewise.
11130         * conform/data/cpio.h-data: Likewise.
11131         * conform/data/ctype.h-data: Likewise.
11132         * conform/data/dirent.h-data: Likewise.
11133         * conform/data/dlfcn.h-data: Likewise.
11134         * conform/data/errno.h-data: Likewise.
11135         * conform/data/fcntl.h-data: Likewise.
11136         * conform/data/float.h-data: Likewise.
11137         * conform/data/fmtmsg.h-data: Likewise.
11138         * conform/data/fnmatch.h-data: Likewise.
11139         * conform/data/ftw.h-data: Likewise.
11140         * conform/data/glob.h-data: Likewise.
11141         * conform/data/grp.h-data: Likewise.
11142         * conform/data/iconv.h-data: Likewise.
11143         * conform/data/inttypes.h-data: Likewise.
11144         * conform/data/langinfo.h-data: Likewise.
11145         * conform/data/libgen.h-data: Likewise.
11146         * conform/data/limits.h-data: Likewise.
11147         * conform/data/locale.h-data: Likewise.
11148         * conform/data/math.h-data: Likewise.
11149         * conform/data/monetary.h-data: Likewise.
11150         * conform/data/mqueue.h-data: Likewise.
11151         * conform/data/ndbm.h-data: Likewise.
11152         * conform/data/net/if.h-data: Likewise.
11153         * conform/data/netdb.h-data: Likewise.
11154         * conform/data/netinet/in.h-data: Likewise.
11155         * conform/data/nl_types.h-data: Likewise.
11156         * conform/data/poll.h-data: Likewise.
11157         * conform/data/pthread.h-data: Likewise.
11158         * conform/data/pwd.h-data: Likewise.
11159         * conform/data/regex.h-data: Likewise.
11160         * conform/data/sched.h-data: Likewise.
11161         * conform/data/search.h-data: Likewise.
11162         * conform/data/semaphore.h-data: Likewise.
11163         * conform/data/setjmp.h-data: Likewise.
11164         * conform/data/signal.h-data: Likewise.
11165         * conform/data/spawn.h-data: Likewise.
11166         * conform/data/stdarg.h-data: Likewise.
11167         * conform/data/stdio.h-data: Likewise.
11168         * conform/data/stdlib.h-data: Likewise.
11169         * conform/data/string.h-data: Likewise.
11170         * conform/data/strings.h-data: Likewise.
11171         * conform/data/stropts.h-data: Likewise.
11172         * conform/data/sys/ipc.h-data: Likewise.
11173         * conform/data/sys/mman.h-data: Likewise.
11174         * conform/data/sys/msg.h-data: Likewise.
11175         * conform/data/sys/resource.h-data: Likewise.
11176         * conform/data/sys/select.h-data: Likewise.
11177         * conform/data/sys/sem.h-data: Likewise.
11178         * conform/data/sys/shm.h-data: Likewise.
11179         * conform/data/sys/socket.h-data: Likewise.
11180         * conform/data/sys/stat.h-data: Likewise.
11181         * conform/data/sys/statvfs.h-data: Likewise.
11182         * conform/data/sys/time.h-data: Likewise.
11183         * conform/data/sys/timeb.h-data: Likewise.
11184         * conform/data/sys/times.h-data: Likewise.
11185         * conform/data/sys/types.h-data: Likewise.
11186         * conform/data/sys/uio.h-data: Likewise.
11187         * conform/data/sys/un.h-data: Likewise.
11188         * conform/data/sys/utsname.h-data: Likewise.
11189         * conform/data/sys/wait.h-data: Likewise.
11190         * conform/data/syslog.h-data: Likewise.
11191         * conform/data/tar.h-data: Likewise.
11192         * conform/data/termios.h-data: Likewise.
11193         * conform/data/utime.h-data: Likewise.
11194         * conform/data/utmpx.h-data: Likewise.
11195         * conform/data/varargs.h-data: Likewise.
11196         * conform/data/wchar.h-data: Likewise.
11197         * conform/data/wctype.h-data: Likewise.
11198         * conform/data/wordexp.h-data: Likewise.
11199
11200         * include/stropts.h: New file.
11201         * include/uchar.h: New file.
11202         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11203         * include/assert.h: Likewise.
11204         * include/ctype.h: Likewise.
11205         * include/dirent.h: Likewise.
11206         * include/dlfcn.h: Likewise.
11207         * include/fcntl.h: Likewise.
11208         * include/fnmatch.h: Likewise.
11209         * include/glob.h: Likewise.
11210         * include/grp.h: Likewise.
11211         * include/libio.h: Likewise.
11212         * include/locale.h: Likewise.
11213         * include/math.h: Likewise.
11214         * include/net/if.h: Likewise.
11215         * include/netdb.h: Likewise.
11216         * include/netinet/in.h: Likewise.
11217         * include/pthread.h: Likewise.
11218         * include/pwd.h: Likewise.
11219         * include/regex.h: Likewise.
11220         * include/sched.h: Likewise.
11221         * include/search.h: Likewise.
11222         * include/setjmp.h: Likewise.
11223         * include/signal.h: Likewise.
11224         * include/stdio.h: Likewise.
11225         * include/stdlib.h: Likewise.
11226         * include/string.h: Likewise.
11227         * include/sys/cdefs.h: Likewise.
11228         * include/sys/mman.h: Likewise.
11229         * include/sys/msg.h: Likewise.
11230         * include/sys/resource.h: Likewise.
11231         * include/sys/select.h: Likewise.
11232         * include/sys/socket.h: Likewise.
11233         * include/sys/stat.h: Likewise.
11234         * include/sys/statvfs.h: Likewise.
11235         * include/sys/time.h: Likewise.
11236         * include/sys/times.h: Likewise.
11237         * include/sys/uio.h: Likewise.
11238         * include/sys/utsname.h: Likewise.
11239         * include/sys/wait.h: Likewise.
11240         * include/termios.h: Likewise.
11241         * include/time.h: Likewise.
11242         * include/ulimit.h: Likewise.
11243         * include/unistd.h: Likewise.
11244         * include/utime.h: Likewise.
11245         * include/wchar.h: Likewise.
11246         * include/wctype.h: Likewise.
11247         * include/wordexp.h: Likewise.
11248
11249         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11250
11251         * time/time.h: TIME_UTC must be a macro.
11252         Make timespec_get available for ISO C11 only as well.
11253
11254 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11255
11256         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11257         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11258
11259 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11260
11261         * configure.in: Use -o not -a in test for unsupported multi-arch.
11262
11263 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11264
11265         * manual/texinfo.tex: Update to version 2012-01-19.16.
11266
11267 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11268
11269         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11270
11271 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11272
11273         [BZ #13738]
11274         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11275         * manual/fdl-1.3.texi: New file.
11276         * manual/fdl-1.1.texi: File removed.
11277
11278         [BZ #13738]
11279         * manual/libc.texinfo (FDL_VERSION): New @set.
11280         Use it for mention of FDL in cover text.
11281         (Documentation License): Use it in @include file name.
11282
11283 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11284             Roland McGrath  <roland@hack.frob.com>
11285
11286         [BZ #5461]
11287         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11288         not LONG_LONG_MAX and LONG_LONG_MIN.
11289         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11290         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11291         name.
11292         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11293
11294 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11295
11296         [BZ #2547]
11297         [BZ #11365]
11298         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11299         manipulate bits before adding and subtracting TWO23[sx].
11300         * math/libm-test.inc (nearbyint_test): Add more tests.
11301
11302 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11303
11304         [BZ #2548]
11305         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11306         bits before adding and subtracting TWO23[sx].
11307         * math/libm-test.inc (rint_test): Add more tests.
11308         (rint_test_tonearest): Likewise.
11309         (rint_test_towardzero): Likewise.
11310         (rint_test_downward): Likewise.
11311         (rint_test_upward: Likewise.
11312
11313 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11314
11315         [BZ #10110]
11316         * include/stdc-predef.h: New file.  Extracted from features.h.
11317         * include/features.h: Include stdc-predef.h.
11318         * Makefile (headers): Add stdc-predef.h.
11319         * CONFORMANCE (Compiler limitations): Update.
11320
11321 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11322
11323         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11324
11325 2012-02-21  David S. Miller  <davem@davemloft.net>
11326
11327         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11328         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11329
11330 2012-02-20  David S. Miller  <davem@davemloft.net>
11331
11332         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11333         using a normal save/restore sequence, rather than allocating a
11334         dummy stack frame just to store a frame pointer and restore.
11335         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11336
11337 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11338
11339         * manual/install.texi: Fix stray word in line-wrapped comment.
11340
11341 2012-02-20  David S. Miller  <davem@davemloft.net>
11342
11343         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11344         both binutils and gcc support GOTDATA.
11345
11346         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11347         "rd %pc" in the PIC register setup sequences.
11348
11349         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11350         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11351         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11352         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11353         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11354         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11355         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11356         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11357         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11358         (SYSCALL_ERROR_HANDLER): Likewise.
11359         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11360         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11361         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11362         (SYSCALL_ERROR_HANDLER): Likewise.
11363
11364         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11365         (HAVE_GCC_GOTDATA): New.
11366         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11367         relocation support in both binutils and gcc.
11368         * sysdeps/sparc/elf/configure: Regenerate.
11369
11370         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11371         * sysdeps/sparc/sparc32/elf/configure: Delete.
11372         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11373         * sysdeps/sparc/sparc64/elf/configure: Delete.
11374         * sysdeps/sparc/elf/configure.in: New file.
11375         * sysdeps/sparc/elf/configure: Generate.
11376
11377         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11378         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11379         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11380         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11381         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11382
11383 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11384
11385         * manual/install.texi: Do not mention specific glibc version
11386         numbers.
11387         * manual/libc.texinfo (VERSION, UPDATED): Update.
11388         (@copying): Use @copyright{} and range of years.
11389
11390 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11391
11392         [BZ #13695]
11393         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11394         [crti.S not in sysdirs] (generated): Do not append.
11395         [crti.S not in sysdirs] (omit-deps): Likewise.
11396         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11397         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11398         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11399         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11400         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11401         Likewise.
11402         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11403         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11404         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11405         * csu/defs.awk: Remove file.
11406         * sysdeps/generic/initfini.c: Likewise.
11407         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11408         variable.
11409         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11410         Likewise.
11411
11412 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11413
11414         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11415         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11416         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11417         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11418         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11419         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11420         <bits/epoll.h>.
11421         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11422         (__EPOLL_PACKED): Define to empty if not defined by
11423         <bits/epoll.h>.
11424         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11425         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11426         bits/epoll.h.
11427
11428 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11429
11430         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11431         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11432         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11433         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11434         <bits/timerfd.h>.
11435         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11436         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11437         bits/timerfd.h.
11438
11439 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11440
11441         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11442         in C locale.
11443         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11444         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11445         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11446         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11447
11448 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11449
11450         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11451         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11452
11453 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11454
11455         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11456         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11457         defined.
11458         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11459         Likewise.
11460         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11461         entry for 2.16.
11462
11463 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11464
11465         * math/w_acos.c: Use non-signaling floating-point comparisons.
11466         * math/w_acosf.c: Likewise.
11467         * math/w_acosh.c: Likewise.
11468         * math/w_acoshf.c: Likewise.
11469         * math/w_acoshl.c: Likewise.
11470         * math/w_acosl.c: Likewise.
11471         * math/w_asin.c: Likewise.
11472         * math/w_asinf.c: Likewise.
11473         * math/w_asinl.c: Likewise.
11474         * math/w_atanh.c: Likewise.
11475         * math/w_atanhf.c: Likewise.
11476         * math/w_atanhl.c: Likewise.
11477         * math/w_exp2.c: Likewise.
11478         * math/w_exp2f.c: Likewise.
11479         * math/w_exp2l.c: Likewise.
11480         * math/w_j0.c: Likewise.
11481         * math/w_j0f.c: Likewise.
11482         * math/w_j0l.c: Likewise.
11483         * math/w_j1.c: Likewise.
11484         * math/w_j1f.c: Likewise.
11485         * math/w_j1l.c: Likewise.
11486         * math/w_jn.c: Likewise.
11487         * math/w_jnf.c: Likewise.
11488         * math/w_log.c: Likewise.
11489         * math/w_log10.c: Likewise.
11490         * math/w_log10f.c: Likewise.
11491         * math/w_log10l.c: Likewise.
11492         * math/w_log2.c: Likewise.
11493         * math/w_log2f.c: Likewise.
11494         * math/w_log2l.c: Likewise.
11495         * math/w_logf.c: Likewise.
11496         * math/w_logl.c: Likewise.
11497         * math/w_sqrt.c: Likewise.
11498         * math/w_sqrtf.c: Likewise.
11499         * math/w_sqrtl.c: Likewise.
11500         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11501         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11502         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11503         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11504         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11505
11506 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11507
11508         [BZ #9739]
11509         * manual/string.texi (strnlen): Use correct parameter name in
11510         equivalent expression.
11511
11512 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11513
11514         [BZ #11174]
11515         * manual/users.texi (seteuid): Consistently use neweuid for
11516         argument name.
11517
11518 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11519
11520         [BZ #13704]
11521         * manual/nss.texi (Services in the NSS configuration): Correct
11522         list of services in example configuration file.
11523
11524 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11525
11526         [BZ #11322]
11527         * manual/arith.texi: Remove statements about negative zero
11528         behaving identically to zero.
11529
11530 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11531
11532         [BZ #5993]
11533         * manual/install.texi: Do not document upgrading from libc5.
11534
11535 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11536
11537         [BZ #4596]
11538         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11539
11540 2012-02-18  David S. Miller  <davem@davemloft.net>
11541
11542         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11543         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11544         %o7 across the call.
11545         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11546         instead.
11547         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11548         SETUP_PIC_REG_LEAF.
11549         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11550         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11551         * sysdeps/sparc/crtn.S: Likewise.
11552
11553 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11554
11555         * aout/Makefile: Remove.
11556
11557 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11558
11559         [BZ #13058]
11560         * manual/examples/argp-ex1.c (main): Format definition in GNU
11561         style.
11562         * manual/examples/argp-ex2.c (main): Likewise.
11563         * manual/examples/argp-ex3.c (main): Likewise.
11564         * manual/examples/argp-ex4.c (main): Likewise.
11565         * manual/examples/longopt.c (main): Use new-style prototype
11566         definition.
11567         * manual/examples/strncat.c (main): Specify return type and use
11568         (void) for arguments.
11569         * manual/examples/subopt.c (main): Use char **argv argument.
11570
11571 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11572
11573         [BZ #5077]
11574         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11575         rounding modes.
11576
11577 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11578
11579         [BZ #6907]
11580         * manual/string.texi (strchr): Change when strchrnul is
11581         recommended.
11582
11583 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11584
11585         [BZ #174]
11586         * manual/locale.texi (setlocale): Document LOCPATH.
11587
11588 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11589
11590         [BZ #10210]
11591         * manual/process.texi (execle): Move @dots{} before last argument.
11592
11593 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11594
11595         [BZ #12047]
11596         * manual/charset.texi (Generic Charset Conversion): Fix typo
11597         (LC_TYPE -> LC_CTYPE).
11598
11599 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11600
11601         [BZ #5805]
11602         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11603         (scalbnf): Likewise.
11604         (scalbnl): Likewise.
11605         (scalbln): Likewise.
11606         (scalblnf): Likewise.
11607         (scalblnl): Likewise.
11608         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11609         (vwarnx): Likewise.
11610         (verr): Likewise.
11611         (verrx): Likewise.
11612         * manual/filesys.texi (telldir): Use braces around return type.
11613         * manual/llio.texi (mmap): Add space after comma.
11614         (mmap64): Likewise.
11615         * manual/math.texi (jn): Use @var{} on parameter names.
11616         (jnf): Likewise.
11617         (jnl): Likewise.
11618         (yn): Likewise.
11619         (ynf): Likewise.
11620         (ynl): Likewise.
11621         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11622         line.
11623         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11624         "...".
11625         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11626         (sched_get_priority_max): Likewise.
11627         * manual/signal.texi (sigvec): Add space after comma.
11628         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11629         names.
11630         (if_indextoname): Likewise.
11631         (if_freenameindex): Likewise.
11632         (sendto): Use ',' instead of '.' in prototype.
11633         * manual/startup.texi (syscall): Use @dots{} instead of literal
11634         "...".
11635         * manual/stdio.texi (__fpending): Separate initial words of
11636         paragraph from @deftypefun line.
11637         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11638         "...".
11639         (vsyslog): Use @var{} on parameter names.
11640         * manual/terminal.texi (stty): Use @var{} on parameter names.
11641         * manual/users.texi (getutmp): Use @var{} on parameter names.
11642         (getutmpx): Likewise.
11643
11644 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11645
11646         [BZ #6884]
11647         * manual/stdio.texi (fopen): Fix typos in description of
11648         ",ccs=STRING".
11649
11650 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11651
11652         [BZ #4026]
11653         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11654         get clock_id definition.
11655
11656 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11657
11658         [BZ #4822]
11659         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11660         (madvise): Cast every argument to void on its own.
11661
11662 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11663
11664         [BZ #9902]
11665         * manual/startup.texi (Exit Status): Fix typo.
11666
11667 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11668
11669         [BZ #10140]
11670         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11671         * manual/examples/argp-ex2.c: Likewise.
11672         * manual/examples/argp-ex3.c: Likewise.
11673
11674 2012-02-16  Richard Henderson  <rth@redhat.com>
11675
11676         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11677         * sysdeps/s390/s390-32/initfini.c: Remove.
11678         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11679         * sysdeps/s390/s390-64/initfini.c: Remove.
11680
11681 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11682
11683         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11684         compiler output for sysdeps/generic/initfini.c.
11685         * sysdeps/sh/elf/initfini.c: Remove file.
11686
11687 2012-02-16  David S. Miller  <davem@davemloft.net>
11688
11689         [BZ #11494]
11690         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11691
11692         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11693         * sysdeps/sparc/crti.S: New file.
11694         * sysdeps/sparc/crtn.S: New file.
11695         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11696         * sysdeps/sparc/sparc64/Makefile: Likewise.
11697
11698 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11699
11700         [BZ #3335]
11701         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11702
11703 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11704
11705         [BZ #4822]
11706         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11707
11708         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11709         (write, read, close): Likewise.
11710         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11711
11712 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11713
11714         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11715         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11716         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11717         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11718         <bits/signalfd.h>.
11719         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11720         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11721         bits/signalfd.h.
11722
11723 2012-02-14  Marek Polacek  <polacek@redhat.com>
11724
11725         * sysdeps/x86_64/crti.S: New file.
11726         * sysdeps/x86_64/crtn.S: New file.
11727         * sysdeps/x86_64/elf/initfini.c: Remove file.
11728
11729 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11730
11731         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11732         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11733         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11734         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11735         <bits/inotify.h>.
11736         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11737         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11738         bits/inotify.h.
11739
11740 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11741
11742         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11743         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11744         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11745         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11746         <bits/eventfd.h>.
11747         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11748         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11749         bits/eventfd.h.
11750
11751 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11752
11753         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11754         __feraiseexcept instead of feraiseexcept.
11755
11756         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11757         nanosleep invocations.
11758         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11759         strings, and add error checking for a nanosleep invocations.
11760
11761 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11762
11763         Replace FSF snail mail address with URLs, as per GNU coding standards.
11764         Most of the snail mail addresses were wrong anyway, and omitting
11765         them makes the source code easier to maintain.  Almost all of the
11766         changes are to license notices and to locale LC_IDENTIFICATION
11767         addresses, except for this one:
11768         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11769         not its snail mail address.
11770
11771 2012-02-09  Richard Henderson  <rth@twiddle.net>
11772
11773         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11774         of kernel-features.h.
11775
11776         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11777
11778 2012-02-08  Marek Polacek  <polacek@redhat.com>
11779
11780         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11781         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11782         * sysdeps/gnu/_G_config.h: Likewise.
11783         * sysdeps/generic/_G_config.h: Likewise.
11784
11785 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11786
11787         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11788         tests.
11789         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11790
11791         * sysdeps/powerpc/powerpc32/crti.S: New file.
11792         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11793         * sysdeps/powerpc/powerpc64/crti.S: New file.
11794         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11795
11796         * Makeconfig (have-initfini): Don't set.
11797         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11798         * configure.in (nopic_initfini): Don't substitute.
11799         * config.h.in (HAVE_INITFINI): Don't #undef.
11800         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11801         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11802
11803 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11804
11805         Support crti.S and crtn.S provided directly by architectures.
11806         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11807         [crti.S in sysdirs] (omit-deps): Likewise.
11808         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11809         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11810         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11811         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11812         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11813         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11814         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11815         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11816         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11817         compiler output for sysdeps/generic/initfini.c.
11818         * sysdeps/i386/elf/Makefile: Remove file.
11819         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11820
11821 2012-02-07  Marek Polacek  <polacek@redhat.com>
11822
11823         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11824         * sysdeps/gnu/_G_config.h: Likewise.
11825         * sysdeps/mach/hurd/_G_config.h: Likewise.
11826
11827 2012-02-07  Marek Polacek  <polacek@redhat.com>
11828
11829         * math/Makefile (tests): Add tst-CMPLX2.
11830         * math/tst-CMPLX2.c: New file.
11831
11832 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11833
11834         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11835
11836         * math/libm-test.inc (jn_test): Add missing L suffix.
11837
11838 2012-02-06  Marek Polacek  <polacek@redhat.com>
11839
11840         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11841         * sysdeps/i386/fpu/e_powf.S: Likewise.
11842         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11843         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11844         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11845         * sysdeps/i386/fpu/e_pow.S: Likewise.
11846         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11847         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11848         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11849         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11850         * sysdeps/i386/fpu/e_log2.S: Likewise.
11851         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11852         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11853         * sysdeps/i386/fpu/e_powl.S: Likewise.
11854         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11855         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11856         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11857         * sysdeps/i386/fpu/e_logl.S: Likewise.
11858         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11859         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11860         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11861         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11862         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11863         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11864         * sysdeps/i386/fpu/e_log.S: Likewise.
11865         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11866         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11867         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11868         * sysdeps/i386/fpu/e_logf.S: Likewise.
11869         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11870         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11871         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11872         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11873         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11874         * sysdeps/i386/fpu/e_log10.S: Likewise.
11875         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11876         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11877         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11878         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11879         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11880         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11881         * sysdeps/i386/asm-syntax.h: Likewise.
11882         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11883         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11884         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11885         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11886         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11887         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11888         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11889         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11890         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11891         * sysdeps/powerpc/sysdep.h: Likewise.
11892         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11893         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11894
11895 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11896
11897         [BZ #411]
11898         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11899
11900 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11901
11902         * sysdeps/i386/sysdep.h: Include <features.h>.
11903         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11904         version.
11905
11906 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11907
11908         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11909         Define.
11910         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11911         LOAD_PIC_REG_STR.
11912
11913 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11914
11915         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11916         (SETUP_PIC_REG): Use GET_PC_THUNK.
11917         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
11918         macro.
11919
11920 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11921
11922         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
11923         for non-PIC compilation.
11924         (SETUP_PIC_REG): Add .p2align directive.
11925         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
11926         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
11927         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
11928         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
11929         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
11930         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
11931         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11932         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11933         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
11934         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
11935         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
11936         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
11937         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
11938         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
11939         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
11940         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11941         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11942         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
11943         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
11944         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
11945         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
11946         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11947         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
11948         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
11949         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
11950         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
11951         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11952         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11953         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
11954         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
11955         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
11956         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11957         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
11958         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
11959         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
11960         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
11961         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
11962         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
11963         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
11964         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
11965         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
11966
11967 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11968
11969         * math/tst-CMPLX.c: Include <stdio.h>.
11970
11971 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
11972
11973         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
11974         float.
11975         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11976         * sysdeps/sparc/bits/mathdef.h: Likewise.
11977
11978 2012-01-31  Marek Polacek  <polacek@redhat.com>
11979
11980         * libio/libio.h: Don't define _PARAMS.
11981         * locale/programs/config.h: Don't define PARAMS.
11982         * stdlib/strtol_l.c: Likewise.
11983         (__strtol_l): Remove PARAMS from the prototype.
11984
11985 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
11986
11987         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
11988         names.  Just use the correct names.  Remove unnecessary wrapper
11989         functions.
11990         * malloc/arena.c: Likewise.
11991         * malloc/hooks.c: Likewise.
11992
11993         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
11994         ARENA_TEST says not to.  Simplify test for creation of a new arena.
11995         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
11996
11997 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
11998
11999         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12000         into tail calls.
12001         (update_get_addr): New function.
12002         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12003         GET_ADDR_MODULE parameter.
12004
12005 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12006
12007         * crypt/cert.c: Remove __STDC__ conditionals.
12008         * crypt/crypt-entry.c: Likewise.
12009         * crypt/crypt_util.c: Likewise.
12010         * libio/filedoalloc.c: Likewise.
12011         * libio/fileops.c: Likewise.
12012         * libio/genops.c: Likewise.
12013         * libio/iofclose.c: Likewise.
12014         * libio/iofdopen.c: Likewise.
12015         * libio/iofopen.c: Likewise.
12016         * libio/iofopen64.c: Likewise.
12017         * libio/iogetdelim.c: Likewise.
12018         * libio/iopopen.c: Likewise.
12019         * libio/obprintf.c: Likewise.
12020         * libio/oldfileops.c: Likewise.
12021         * libio/oldiofclose.c: Likewise.
12022         * libio/oldiofdopen.c: Likewise.
12023         * libio/oldiofopen.c: Likewise.
12024         * libio/oldiopopen.c: Likewise.
12025         * libio/wfiledoalloc.c: Likewise.
12026         * libio/wgenops.c: Likewise.
12027         * locale/programs/xmalloc.c: Likewise.
12028         * misc/syslog.c: Likewise.
12029         * stdio-common/xbug.c: Likewise.
12030         * string/memchr.c: Likewise.
12031         * string/memcmp.c: Likewise.
12032         * string/memrchr.c: Likewise.
12033         * string/rawmemchr.c: Likewise.
12034         * sysdeps/posix/getcwd.c: Likewise.
12035         * time/strftime_l.c: Likewise.
12036
12037 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12038
12039         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12040         * config.make.in (config-cflags-sse2avx): Define.
12041         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12042         Fix typo.
12043
12044 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12045
12046         * scripts/config.guess: Update from upstream config git repository.
12047         * scripts/config.sub: Likewise.
12048
12049 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12050
12051         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12052         (EM_NUM): Update.
12053         (R_TILEPRO_*, R_TILEGX_*): New macros.
12054
12055         * scripts/firstversions.awk: Fix bug in version range handling.
12056
12057         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12058
12059         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12060
12061         * include/sys/epoll.h: New file.
12062         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12063         libc_hidden_def.
12064
12065 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12066
12067         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12068         Avoid unnecessary __WORDSIZE == 64 test.
12069         (fmaxf): Use VEX format if possible.
12070         (fmax): Likewise.
12071         (fminf): Likewise.
12072         (fmin): Likewise.
12073
12074         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12075         * math/math_private.h: Remove libc_fegetround* and
12076         libc_fesetround*.
12077         * sysdeps/i386/configure.in: Check for -msse2avx.
12078         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12079         also if SSE2AVX is defined.
12080         Remove libc_fegetround* and libc_fesetround*.
12081         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12082         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12083         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12084         of HAS_YMM_USABLE.
12085         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12086         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12087         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12088         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12089         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12090
12091         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12092
12093 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12094
12095         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12096         size is not set.
12097         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12098
12099 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12100
12101         [BZ #13618]
12102         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12103         relocation.
12104         * Makeconfig (libm): Define.
12105         * elf/Makefile: Add rules to build and run tst-relsort1.
12106         * elf/tst-relsort1.c: New file.
12107         * elf/tst-relsort1mod1.c: New file.
12108         * elf/tst-relsort1mod2.c: New file.
12109
12110 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12111
12112         * math/s_ldexp.c: Remove __STDC__ conditionals.
12113         * math/s_ldexpf.c: Likewise.
12114         * math/s_ldexpl.c: Likewise.
12115         * math/s_nextafter.c: Likewise.
12116         * math/s_nexttowardf.c: Likewise.
12117         * math/s_significand.c: Likewise.
12118         * math/s_significandf.c: Likewise.
12119         * math/s_significandl.c: Likewise.
12120         * math/w_jnl.c: Likewise.
12121         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12122         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12123         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12124         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12125         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12126         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12127         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12128         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12129         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12130         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12131         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12132         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12133         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12134         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12135         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12136         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12137         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12138         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12139         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12140         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12141         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12142         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12143         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12144         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12145         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12146         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12147         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12148         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12149         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12150         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12151         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12152         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12153         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12154         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12155         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12156         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12157         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12158         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12159         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12160         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12161         * sysdeps/ieee754/k_standard.c: Likewise.
12162         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12163         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12164         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12165         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12166         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12167         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12168         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12169         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12170         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12171         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12172         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12173         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12174         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12175         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12176         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12177         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12178         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12179         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12180         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12181         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12182         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12183         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12184         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12185         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12186         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12187         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12188         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12189         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12190         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12191         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12192         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12193         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12194         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12195         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12196         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12197         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12198         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12199         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12200         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12201         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12202         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12203         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12204         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12205         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12206         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12207         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12208         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12209         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12210         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12211         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12212         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12213         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12214         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12215         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12216         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12217         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12218         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12219         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12220         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12221         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12222         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12223         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12224         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12225         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12226         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12227         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12228         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12229         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12230         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12231         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12232         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12233         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12234         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12235         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12236         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12237         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12238         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12239         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12240         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12241         * sysdeps/ieee754/s_matherr.c: Likewise.
12242         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12243         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12244         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12245         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12246
12247 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12248
12249         * crypt/md5.h: Remove __STDC__ conditionals.
12250         * libio/libioP.h: Likewise.
12251         * locale/programs/config.h: Likewise.
12252         * sysdeps/generic/sysdep.h: Likewise.
12253         * sysdeps/i386/asm-syntax.h: Likewise.
12254         * sysdeps/s390/asm-syntax.h: Likewise.
12255         * sysdeps/unix/sysdep.h: Likewise.
12256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12258
12259 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12260
12261         * libio/libio.h: Remove __STDC__ conditionals.
12262         * malloc/obstack.h: Likewise.
12263         * math/complex.h: Likewise.
12264         * math/math.h: Likewise.
12265         * sysdeps/generic/_G_config.h: Likewise.
12266         * sysdeps/gnu/_G_config.h: Likewise.
12267         * sysdeps/mach/hurd/_G_config.h: Likewise.
12268         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12269         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12270         * sysdeps/sparc/bits/mathdef.h: Likewise.
12271
12272 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12273
12274         [BZ #13583]
12275         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12276         Clean up HAS_* macros.
12277         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12278         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12279         possible.
12280         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12281         HAS_AVX.
12282         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12283         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12284         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12285         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12286         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12287
12288 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12289
12290         * elf/tst-unique3.cc (gets): Remove declaration.
12291         * elf/tst-unique3lib.cc (gets): Likewise.
12292         * elf/tst-unique3lib2.cc (gets): Likewise.
12293         * elf/tst-unique4.cc (gets): Likewise.
12294
12295 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12296
12297         * include/stdio.h: Add C++ protection.  Add gets declarations and
12298         definitions.
12299         * debug/tst-chk1.c: Don't declare gets here.
12300         * stdio-common/tst-gets.c: Likewise.
12301
12302 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12303
12304         * posix/glob: Remove directory.
12305
12306 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12307
12308         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12309
12310 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12311
12312         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12313         of the non-standard EPFNOSUPPORT.
12314
12315 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12316
12317         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12318         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12319         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12320
12321 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12322
12323         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12324
12325 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12326
12327         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12328         transient errors.
12329         * nscd/grpcache.c (cache_addgr): Likewise.
12330         * nscd/hstcache.c (cache_addhst): Likewise.
12331         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12332         * nscd/pwdcache.c (cache_addpw): Likewise.
12333         * nscd/servicescache.c (cache_addserv): Likewise.
12334
12335 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12336
12337         * malloc/malloc.c: Various cleanups.
12338         * malloc/hooks.c: Likewise.
12339
12340         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12341         * stdlib/bug-fmtmsg1.c: New file.
12342
12343         * stdlib/fmtmsg.c (init): Add missing unlock.
12344         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12345
12346 2012-01-12  Marek Polacek  <polacek@redhat.com>
12347
12348         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12349         and _GNU_SOURCE.
12350
12351 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12352
12353         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12354         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12355         macro to ensure uniqueness of label name.
12356         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12357         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12358
12359 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12360
12361         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12362
12363         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12364         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12365         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12366         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12367
12368 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12369
12370         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12371
12372         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12373         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12374         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12375
12376         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12377
12378         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12379         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12380         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12381         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12382
12383         * math/bits/math-finite.h: Add ldexp support.
12384
12385 2012-01-10  Marek Polacek  <polacek@redhat.com>
12386
12387         * locale/programs/localedef.h (show_archive_content): Add noreturn
12388         attribute.
12389
12390 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12391
12392         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12393
12394 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12395
12396         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12397
12398         * io/Makefile (headers): Add bits/poll2.h.
12399
12400 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12401
12402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12403         typo #include statement.
12404
12405 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12406
12407         * include/sys/cdefs.h: Define __attribute_alloc_size.
12408         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12409         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12410         * elf/pldd.c: Likewise.
12411         * iconv/iconv_charmap.c: Likewise.
12412         * iconv/iconvconfig.c: Likewise.
12413         * iconv/strtab.c: Likewise.
12414         * locale/programs/locale.c: Likewise.
12415         * locale/programs/localedef.h: Likewise.
12416         * locale/programs/simple-hash.c: Likewise.
12417         * nscd/nscd.h: Likewise.
12418         * nss/makedb.c: Likewise.
12419         * sysdeps/generic/ldconfig.h: Likewise.
12420         * locale/programs/localedef.c: Remove xmalloc prototype.
12421         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12422
12423 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12424
12425         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12426         appropriate.
12427
12428 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12429
12430         * math/Makefile (tests): Add tst-CMPLX.
12431         * math/tst-CMPLX.c: New file.
12432
12433         * math/complex.h (CMPLXL): Fix typo.
12434
12435         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12436         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12437         GLIBC_2.16.
12438         * debug/tst-chk1.c: Add poll and ppoll tests.
12439         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12440         * include/sys/poll.h: Add hidden proto for ppoll.
12441         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12442         * sysdeps/mach/hurd/ppoll.c: Likewise.
12443         * io/ppoll.c: Likewise.
12444         * debug/poll_chk.c: New file.
12445         * debug/ppoll_chk.c: New file.
12446         * include/bits/poll2.h: New file.
12447         * io/bits/poll2.h: New file.
12448
12449         [BZ #1350]
12450         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12451
12452         * configure.in: static is always set to yes.  Remove.
12453         * config.make.in: Don't set build-static.
12454         * Makeconfig: Remove use of build-static.
12455         * dlfcn/Makefile: Likewise.
12456         * elf/Makefile: Likewise.
12457         * math/Makefile: Likewise.
12458         * misc/Makefile: Likewise.
12459         * nptl/Makefile: Likewise.
12460         * sysdeps/mach/hurd/Makefile: Likewise.
12461
12462         * configure.in: PWD_P is not used anymore.
12463         * config.make.in: Remove PWD_P entry.
12464
12465         * configure.in: Remove last remnants of RANLIB.
12466         No need to check for signed size_t anymore.
12467         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12468         and IA-64.
12469         Remove __builtin_expect test because we require at least gcc 3.4.
12470         * aclocal.m4: Likewise.
12471
12472         * wcsmbs/mbrtoc16.c: Implement using towc function.
12473         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12474         * wcsmbs/wcsmbsload.c: Likewise.
12475         * iconv/gconv_simple.c: Likewise.
12476         * iconv/gconv_int.h: Likewise.
12477         * iconv/gconv_builtin.h: Likewise.
12478         * iconv/iconv_prog.c: Remove CHAR16 handling.
12479
12480         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12481
12482         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12483
12484         * configure.in: Remove --with-elf and --enable-bounded options.
12485         Dont set base_machine for ia64.  More non-ELF conditions removed.
12486         Remove testing and setting of leading underscore information.
12487         * config.make.in (build-bounded): Set to no.
12488         * config.h.in: Remove NO_UNDERSCORES entry.
12489         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12490         them.
12491         * csu/start.c: Remove !NO_UNDERSCORE code.
12492         * locale/localeinfo.h: Likewise.
12493         * sysdeps/generic/machine-gmon.h: Likewise.
12494         * sysdeps/generic/sysdep.h: Likewise.
12495         * sysdeps/i386/sysdep.h: Likewise.
12496         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12497         * sysdeps/mach/sysdep.h: Likewise.
12498         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12499         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12500         * sysdeps/sh/sysdep.h: Likewise.
12501         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12502         * sysdeps/unix/i386/sysdep.S: Likewise.
12503         * sysdeps/unix/sparc/start.c: Likewise.
12504         * sysdeps/unix/sparc/sysdep.S: Likewise.
12505         * sysdeps/unix/sparc/sysdep.h: Likewise.
12506         * sysdeps/unix/start.c: Likewise.
12507         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12508         * sysdeps/x86_64/sysdep.h: Likewise.
12509
12510 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12511
12512         [BZ #13553]
12513         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12514         for non-gcc.
12515         * argp/argp-fmtstream.h: Use const instead __const.
12516         * argp/argp.h: Likewise.
12517         * assert/assert.h: Likewise.
12518         * bits/fenv.h: Likewise.
12519         * bits/sched.h: Likewise.
12520         * bits/sigset.h: Likewise.
12521         * bits/sigthread.h: Likewise.
12522         * catgets/nl_types.h: Likewise.
12523         * conform/data/pthread.h-data: Likewise.
12524         * crypt/crypt-private.h: Likewise.
12525         * crypt/crypt.h: Likewise.
12526         * crypt/crypt_util.c: Likewise.
12527         * ctype/ctype.h: Likewise.
12528         * debug/execinfo.h: Likewise.
12529         * debug/mbsnrtowcs_chk.c: Likewise.
12530         * debug/mbsrtowcs_chk.c: Likewise.
12531         * debug/wcsnrtombs_chk.c: Likewise.
12532         * debug/wcsrtombs_chk.c: Likewise.
12533         * debug/wcstombs_chk.c: Likewise.
12534         * dirent/dirent.h: Likewise.
12535         * dlfcn/dlfcn.h: Likewise.
12536         * elf/neededtest4.c: Likewise.
12537         * grp/grp.h: Likewise.
12538         * gshadow/gshadow.h: Likewise.
12539         * iconv/gconv.h: Likewise.
12540         * iconv/gconv_int.h: Likewise.
12541         * iconv/gconv_simple.c: Likewise.
12542         * iconv/iconv.h: Likewise.
12543         * iconv/loop.c: Likewise.
12544         * iconv/skeleton.c: Likewise.
12545         * include/aio.h: Likewise.
12546         * include/aliases.h: Likewise.
12547         * include/argz.h: Likewise.
12548         * include/arpa/inet.h: Likewise.
12549         * include/assert.h: Likewise.
12550         * include/dirent.h: Likewise.
12551         * include/dlfcn.h: Likewise.
12552         * include/execinfo.h: Likewise.
12553         * include/fcntl.h: Likewise.
12554         * include/fenv.h: Likewise.
12555         * include/glob.h: Likewise.
12556         * include/grp.h: Likewise.
12557         * include/libintl.h: Likewise.
12558         * include/mntent.h: Likewise.
12559         * include/netdb.h: Likewise.
12560         * include/pwd.h: Likewise.
12561         * include/rpc/netdb.h: Likewise.
12562         * include/sched.h: Likewise.
12563         * include/search.h: Likewise.
12564         * include/shadow.h: Likewise.
12565         * include/signal.h: Likewise.
12566         * include/stdio.h: Likewise.
12567         * include/stdlib.h: Likewise.
12568         * include/string.h: Likewise.
12569         * include/sys/socket.h: Likewise.
12570         * include/sys/stat.h: Likewise.
12571         * include/sys/statfs.h: Likewise.
12572         * include/sys/statvfs.h: Likewise.
12573         * include/sys/syslog.h: Likewise.
12574         * include/sys/time.h: Likewise.
12575         * include/sys/uio.h: Likewise.
12576         * include/time.h: Likewise.
12577         * include/unistd.h: Likewise.
12578         * include/utmp.h: Likewise.
12579         * include/wchar.h: Likewise.
12580         * include/wctype.h: Likewise.
12581         * inet/aliases.h: Likewise.
12582         * inet/arpa/inet.h: Likewise.
12583         * inet/netinet/ether.h: Likewise.
12584         * inet/netinet/in.h: Likewise.
12585         * intl/libintl.h: Likewise.
12586         * io/bits/fcntl2.h: Likewise.
12587         * io/fcntl.h: Likewise.
12588         * io/ftw.h: Likewise.
12589         * io/sys/poll.h: Likewise.
12590         * io/sys/stat.h: Likewise.
12591         * io/sys/statfs.h: Likewise.
12592         * io/sys/statvfs.h: Likewise.
12593         * io/utime.h: Likewise.
12594         * libio/bits/stdio.h: Likewise.
12595         * libio/bits/stdio2.h: Likewise.
12596         * libio/libio.h: Likewise.
12597         * libio/libioP.h: Likewise.
12598         * libio/stdio.h: Likewise.
12599         * locale/lc-ctype.c: Likewise.
12600         * locale/locale.h: Likewise.
12601         * login/utmp.h: Likewise.
12602         * malloc/arena.c: Likewise.
12603         * malloc/malloc.c: Likewise.
12604         * malloc/malloc.h: Likewise.
12605         * malloc/mcheck.c: Likewise.
12606         * malloc/mtrace.c: Likewise.
12607         * math/bits/mathcalls.h: Likewise.
12608         * math/fenv.h: Likewise.
12609         * math/math_private.h: Likewise.
12610         * misc/bits/error.h: Likewise.
12611         * misc/bits/syslog.h: Likewise.
12612         * misc/err.h: Likewise.
12613         * misc/error.h: Likewise.
12614         * misc/fstab.h: Likewise.
12615         * misc/mntent.h: Likewise.
12616         * misc/regexp.h: Likewise.
12617         * misc/search.h: Likewise.
12618         * misc/sgtty.h: Likewise.
12619         * misc/sys/mman.h: Likewise.
12620         * misc/sys/syslog.h: Likewise.
12621         * misc/sys/uio.h: Likewise.
12622         * misc/sys/xattr.h: Likewise.
12623         * misc/ttyent.h: Likewise.
12624         * nis/rpcsvc/ypclnt.h: Likewise.
12625         * nss/nss.h: Likewise.
12626         * posix/bits/unistd.h: Likewise.
12627         * posix/fnmatch.h: Likewise.
12628         * posix/glob.h: Likewise.
12629         * posix/sched.h: Likewise.
12630         * posix/spawn.h: Likewise.
12631         * posix/sys/wait.h: Likewise.
12632         * posix/unistd.h: Likewise.
12633         * posix/wordexp.h: Likewise.
12634         * pwd/pwd.h: Likewise.
12635         * resolv/netdb.h: Likewise.
12636         * resource/sys/resource.h: Likewise.
12637         * rt/aio.h: Likewise.
12638         * rt/bits/mqueue2.h: Likewise.
12639         * rt/mqueue.h: Likewise.
12640         * shadow/shadow.h: Likewise.
12641         * signal/signal.h: Likewise.
12642         * socket/send.c: Likewise.
12643         * socket/sendto.c: Likewise.
12644         * socket/sys/socket.h: Likewise.
12645         * stdio-common/printf.h: Likewise.
12646         * stdlib/bits/stdlib.h: Likewise.
12647         * stdlib/fmtmsg.h: Likewise.
12648         * stdlib/monetary.h: Likewise.
12649         * stdlib/stdlib.h: Likewise.
12650         * stdlib/ucontext.h: Likewise.
12651         * streams/stropts.h: Likewise.
12652         * string/argz.h: Likewise.
12653         * string/bits/string2.h: Likewise.
12654         * string/string.h: Likewise.
12655         * string/strings.h: Likewise.
12656         * sunrpc/rpc/auth.h: Likewise.
12657         * sunrpc/rpc/auth_des.h: Likewise.
12658         * sunrpc/rpc/clnt.h: Likewise.
12659         * sunrpc/rpc/netdb.h: Likewise.
12660         * sunrpc/rpc/pmap_clnt.h: Likewise.
12661         * sunrpc/rpc/xdr.h: Likewise.
12662         * sysdeps/generic/inttypes.h: Likewise.
12663         * sysdeps/generic/net/if.h: Likewise.
12664         * sysdeps/generic/sys/swap.h: Likewise.
12665         * sysdeps/gnu/net/if.h: Likewise.
12666         * sysdeps/gnu/utmpx.h: Likewise.
12667         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12668         * sysdeps/i386/i486/bits/string.h: Likewise.
12669         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12670         * sysdeps/s390/bits/string.h: Likewise.
12671         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12672         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12673         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12674         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12675         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12676         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12677         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12678         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12679         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12680         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12681         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12682         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12683         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12684         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12685         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12686         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12687         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12688         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12689         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12690         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12691         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12692         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12693         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12694         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12695         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12696         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12697         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12698         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12699         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12700         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12701         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12702         * sysvipc/sys/ipc.h: Likewise.
12703         * sysvipc/sys/msg.h: Likewise.
12704         * sysvipc/sys/sem.h: Likewise.
12705         * sysvipc/sys/shm.h: Likewise.
12706         * termios/termios.h: Likewise.
12707         * time/sys/time.h: Likewise.
12708         * time/time.h: Likewise.
12709         * wcsmbs/bits/wchar2.h: Likewise.
12710         * wcsmbs/uchar.h: Likewise.
12711         * wcsmbs/wchar.h: Likewise.
12712         * wctype/wctype.h: Likewise.
12713
12714         [BZ #13551]
12715         * Makeconfig: Remove all but ELF support including AIX support.
12716         * Makerules: Likewise.
12717         * config.h.in: Likewise.
12718         * config.make.in: Likewise.
12719         * configure: Likewise.
12720         * configure.in: Likewise.
12721         * csu/Makefile: Likewise.
12722         * csu/version.c: Likewise.
12723         * debug/Makefile: Likewise.
12724         * dlfcn/Makefile: Likewise.
12725         * elf/Makefile: Likewise.
12726         * extra-lib.mk: Likewise.
12727         * iconv/Makefile: Likewise.
12728         * include/libc-symbols.h: Likewise.
12729         * include/shlib-compat.h: Likewise.
12730         * resolv/Makefile: Likewise.
12731         * resolv/res_libc.c: Likewise.
12732         * rt/Makefile: Likewise.
12733         * sysdeps/i386/asm-syntax.h: Likewise.
12734         * sysdeps/i386/sysdep.h: Likewise.
12735         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12736         * sysdeps/mach/sysdep.h: Likewise.
12737         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12738         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12739         * sysdeps/s390/asm-syntax.h: Likewise.
12740         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12741         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12742         * sysdeps/sh/sysdep.h: Likewise.
12743         * sysdeps/unix/sparc/sysdep.h: Likewise.
12744         * sysdeps/wordsize-32/divdi3.c: Likewise.
12745         * sysdeps/x86_64/sysdep.h: Likewise.
12746
12747         * argp/Versions: Remove _argp_unlock_xxx.
12748
12749         [BZ #13559]
12750         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12751         * abilist/libBrokenLocale.abilist: Likewise.
12752         * abilist/libanl.abilist: Likewise.
12753         * abilist/libc.abilist: Likewise.
12754         * abilist/libcrypt.abilist: Likewise.
12755         * abilist/libdl.abilist: Likewise.
12756         * abilist/libm.abilist: Likewise.
12757         * abilist/libnsl.abilist: Likewise.
12758         * abilist/libpthread.abilist: Likewise.
12759         * abilist/libresolv.abilist: Likewise.
12760         * abilist/librt.abilist: Likewise.
12761         * abilist/libthread_db.abilist: Likewise.
12762         * abilist/libutil.abilist: Likewise.
12763         * abilist/libnss_db.abilist: New file.
12764
12765         * scripts/abilist.awk: Add support for indirect functions.
12766
12767         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12768
12769         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12770
12771         * shlib-versions: Remove entries for ports architectures.
12772
12773         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12774         files in ports.
12775         * elf/stackguard-macros.h: Remove support for IA-64.
12776         * elf/tst-auditmod1.c: Likewise.
12777         * sysdeps/generic/ldsodefs.h: Likewise.
12778
12779         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12780         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12781         configure files.
12782
12783         [BZ #13552]
12784         * configure.in: Remove --enable-omitfp support.
12785         * FAQ.in: Adjust.
12786         * config.make.in: Likewise.
12787         * Makeconfig: Likewise.
12788         * manual/install.texi: Likewise.
12789
12790         In case anyone cares, the IA-64 architecture could move to ports.
12791         * sysdeps/ia64/*: Removed.
12792         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12793         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12794
12795         [BZ #13555]
12796         * configure.in: Remove entries for unsupported architectures.
12797
12798         [BZ #13533]
12799         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12800         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12801         routines.
12802         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12803         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12804         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12805         fall back to using wcrtomb.
12806         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12807         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12808         renaming.
12809         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12810         * wcsmbs/tst-c16c32-1.c: New file.
12811
12812         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12813         local variable.
12814
12815         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12816
12817         * elf/tst-unique3.cc: Add explicit declaration of gets.
12818         * elf/tst-unique3lib.cc: Likewise.
12819         * elf/tst-unique3lib2.cc: Likewise.
12820         * elf/tst-unique4.cc: Likewise.
12821
12822         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12823
12824 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12825
12826         [BZ #13566]
12827         * assert/assert.h (static_assert): Don't define for C++.
12828         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12829         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12830
12831 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12832
12833         * iconv/loop.c (single loop): Fix assertion in storing of
12834         remaining bytes.
12835
12836         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12837
12838 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12839
12840         * posix/getconf.c: Update copyright year.
12841         * nss/getent.c: Likewise.
12842         * nss/makedb.c: Likewise.
12843         * iconv/iconvconfig.c: Likewise.
12844         * iconv/iconv_prog.c: Likewise.
12845         * elf/ldconfig.c: Likewise.
12846         * elf/pldd.c: Likewise.
12847         * elf/sotruss.ksh: Likewise.
12848         * catgets/gencat.c: Likewise.
12849         * csu/version.c: Likewise.
12850         * elf/ldd.bash.in: Likewise.
12851         * elf/sprof.c (print_version): Likewise.
12852         * locale/programs/locale.c: Likewise.
12853         * locale/programs/localedef.c: Likewise.
12854         * login/programs/pt_chown.c: Likewise.
12855         * nscd/nscd.c (print_version): Likewise.
12856         * debug/xtrace.sh: Likewise.
12857         * malloc/memusage.sh: Likewise.
12858         * malloc/mtrace.pl: Likewise.
12859         * debug/catchsegv.sh: Likewise.
12860
12861 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12862
12863         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12864         pure attribute.
12865
12866 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12867
12868         [BZ #13533]
12869         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12870         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12871         transformations.
12872         * iconv/gconv_int.h: Likewise.
12873         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12874         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12875         from libc for GLIBC_2.16.
12876         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12877         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12878         * wcsmbs/uchar.h: Really define mbstate_t.
12879         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12880         * wcsmbs/c16rtomb.c: New file.
12881         * wcsmbs/mbrtoc16.c: New file.
12882         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12883         for C/POSIX locale.
12884         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12885         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12886
12887         * wcsmbs/wchar.h: Add missing __restrict.
12888
12889 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12890
12891         [BZ #13532]
12892         * time/Makefile (routines): Add timespec_get.
12893         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12894         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12895         timespec for ISO C11.
12896         * time/timespec_get.c: New file.
12897         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12898         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12899
12900         [BZ #13531]
12901         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12902         * stdlib/stdlib.h: Declare aligned_alloc.
12903         * Versions.def: Add GLIBC_2.16 for libc.
12904         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12905
12906         [BZ 13527]
12907         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12908         ISO C11.
12909
12910         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12911         code.
12912
12913         [BZ #13528]
12914         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12915
12916         [BZ #13529]
12917         * assert/assert.h (static_assert): Define.
12918
12919         * version.h: Update for 2.16 development version.
12920
12921         [BZ #13526]
12922         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
12923         _ISOC11_SOURCE.
12924
12925         * version.h (RELEASE): Bump for 2.15 release.
12926         * include/features.h (__GLIBC_MINOR__): Bump to 15.
12927
12928         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
12929         Patch by Marek Polacek <mpolacek@redhat.com>.
12930
12931         * bits/byteswap.h: Protect long long constants with __extension__.
12932         * sysdeps/i386/bits/byteswap.h: Likewise.
12933         * sysdeps/ia64/bits/byteswap.h: Likewise.
12934         * sysdeps/s390/bits/byteswap.h: Likewise.
12935         * sysdeps/x86_64/bits/byteswap.h: Likewise.
12936
12937 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12938
12939         [BZ #13540]
12940         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
12941         destination buffer.
12942         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
12943
12944 2011-12-23  Marek Polacek  <polacek@redhat.com>
12945
12946         * elf/dl-addr.c (determine_info): Add inline keyword.
12947         * elf/tst-auditmod4b.c (check_avx): Likewise.
12948         * elf/tst-auditmod6b.c (check_avx): Likewise.
12949         * elf/tst-auditmod6c.c (check_avx): Likewise.
12950         * elf/tst-auditmod7b.c (check_avx): Likewise.
12951
12952 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12953
12954         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
12955         !__SSE_MATH__.
12956
12957 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12958
12959         [BZ #13540]
12960         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
12961         processing for last bytes.
12962
12963 2011-08-06  Bruno Haible  <bruno@clisp.org>
12964
12965         [BZ #13061]
12966         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
12967         U+0385, not to U+1FEE.
12968
12969         [BZ #13062]
12970         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
12971         entry for U+00A5 U+0301.
12972
12973 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12974
12975         [BZ #13166]
12976         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
12977         buffer for the output is too small.
12978
12979         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
12980         optimization.
12981
12982         [BZ #13185]
12983         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
12984         SSE flags if possible.
12985
12986 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12987
12988         [BZ #13540]
12989         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
12990         processing for last bytes.
12991
12992 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
12993
12994         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
12995         (syscall-list-default-options, syscall-list-default-condition)
12996         (syscall-list-includes): Define.
12997         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
12998         list of ABIs and options and #if conditions for each ABI.  Do not
12999         handle common syscalls between ABIs specially.
13000         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13001         Remove.
13002         (syscall-list-variants, syscall-list-32bit-options)
13003         (syscall-list-32bit-condition, syscall-list-64bit-options)
13004         (syscall-list-64bit-condition): Define.
13005         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13006         (syscall-list-variants, syscall-list-32bit-options)
13007         (syscall-list-32bit-condition, syscall-list-64bit-options)
13008         (syscall-list-64bit-condition): Define.
13009         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13010         Remove.
13011         (syscall-list-variants, syscall-list-32bit-options)
13012         (syscall-list-32bit-condition, syscall-list-64bit-options)
13013         (syscall-list-64bit-condition): Define.
13014         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13015         Remove.
13016         (syscall-list-variants, syscall-list-32bit-options)
13017         (syscall-list-32bit-condition, syscall-list-64bit-options)
13018         (syscall-list-64bit-condition): Define.
13019
13020 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13021
13022         * locale/iso-639.def: Add brx entry.
13023
13024         [BZ #13328]
13025         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13026         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13027
13028         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13029         __feraiseexcept_renamed.
13030
13031 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13032
13033         [BZ #13538]
13034         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13035         EPOLLET with unsigned values.
13036         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13037         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13038
13039         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13040         to large cancellation.
13041         * math/s_cacoshf.c: Likewise.
13042         * math/s_cacoshl.c: Likewise.
13043
13044 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13045
13046         [BZ #13305]
13047         [BZ #12786]
13048         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13049         * math/s_cacoshf.c: Likewise.
13050         * math/s_cacoshl.c: Likewise.
13051
13052 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13053
13054         [BZ #13439]
13055         * iconv/gconv.h: Define __GCONV_SWAP.
13056         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13057         * iconvdata/utf-16.c: Likewise.
13058         * iconvdata/utf-32.c: Likewise.
13059
13060 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13061
13062         [BZ #13524]
13063         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13064         numerator after shifting it by one limb.
13065
13066 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13067
13068         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13069         under [__USE_EXTERN_INLINES].
13070
13071 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13072
13073         [BZ #13446]
13074         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13075
13076 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13077
13078         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13079         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13080         optimized code.
13081         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13082         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13083         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13084         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13085         for strncasecmp/strncasecmp_l compilation.
13086         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13087         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13088
13089 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13090
13091         [BZ #13484]
13092         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13093         of __asm__.
13094
13095 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13096
13097         [BZ #13506]
13098         * time/tzfile.c (__tzfile_read): Check values from file header.
13099
13100 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13101
13102         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13103         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13104         * powerpc/powerpc32/dl-start.S: Likewise.
13105         * powerpc/powerpc32/elf/start.S: Likewise.
13106         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13107         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13108         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13109         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13110         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13111         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13112         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13113         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13114         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13115         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13116         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13117         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13118         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13119         * powerpc/powerpc32/memset.S: Likewise.
13120         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13121         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13122         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13123         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13124         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13125         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13126         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13127         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13128         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13129         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13130         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13131         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13132         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13133
13134 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13135
13136         * math/libm-test.inc: Added more nearbyint tests.
13137         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13138         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13139         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13140         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13141
13142 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13143
13144         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13145         FD_CLOEXEC.
13146
13147 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13148
13149         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13150         Add wcscpy-ssse3 wcscpy-c.
13151         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13152         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13153         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13154         * sysdeps/x86_64/wcschr.S: New file.
13155         * sysdeps/x86_64/wcsrchr.S: New file.
13156         * string/test-strcmp.c: Remove checking of wcscmp function for
13157         wrong alignments.
13158         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13159         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13160         wcsrchr-sse2 wcsrchr-c.
13161         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13162         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13163         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13164         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13165         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13166         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13167         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13168         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13169         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13170         * wcsmbc/wcschr.c (WCSCHR): New macro.
13171
13172 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13173
13174         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13175         * wcsmbs/test-wcsrchr.c: New file.
13176         * string/test-strrchr.c: Add wcsrchr support.
13177         (WIDE): New macro.
13178         * wcsmbs/test-wcscpy.c: New file.
13179         * string/test-strcpy.c: Add wcscpy support.
13180         (WIDE): New macro.
13181
13182 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13183
13184         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13185         the inner loop.
13186
13187 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13188
13189         [BZ #13472]
13190         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13191
13192 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13193
13194         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13195         Minor optimizations.
13196
13197         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13198         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13199         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13200
13201 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13202
13203         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13204         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13205         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13206         for gcc to avoid warnings.
13207         * inet/Makefile (tests): Add tst-checks.
13208         * inet/tst-checks.c: New file.
13209
13210         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13211         warning.
13212
13213         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13214         __wmemcmp_sse2.
13215
13216         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13217         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13218
13219         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13220
13221 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13222
13223         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13224         problem.
13225
13226         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13227
13228 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13229
13230         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13231         conditional on GCC version.
13232         (__arch_compare_and_exchange_val_8_acq)
13233         (__arch_compare_and_exchange_val_16_acq)
13234         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13235         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13236         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13237
13238 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13239
13240         * sysdeps/sh/backtrace.c: New file.
13241
13242 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13243
13244         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13245         parenthesis.
13246
13247 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13248
13249         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13250         falling back to utime.
13251
13252 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13253
13254         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13255         expectations for float.
13256
13257 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13258
13259         * locale/weight.h (findidx): Add parameter len.
13260         * locale/weightwc.h (findidx): Likewise.
13261         * posix/fnmatch_loop.c (FCT): Adjust caller.
13262         * posix/regcomp.c (build_equiv_class): Likewise.
13263         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13264         * posix/regexec.c (check_node_accept_bytes): Likewise.
13265         * string/strcoll_l.c (STRCOLL): Likewise.
13266         * string/strxfrm_l.c (STRXFRM): Likewise.
13267
13268 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13269
13270         * Makefile.in: Remove CVSOPT handling.
13271         * configure.in: Remove use of AC_REVISION.
13272         * iconvdata/Makefile (distribute): No need to filter out CVS.
13273         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13274         handling.
13275
13276 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13277
13278         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13279         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13280         [USE_AS_STRNCASECMP_L]: Likewise.
13281         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13282         NO_TLS_DIRECT_SEG_REFS.
13283         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13284         Fix argument offsets for non-PIC.
13285         [USE_AS_STRNCASECMP_L]: Likewise.
13286         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13287         NO_TLS_DIRECT_SEG_REFS.
13288
13289 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13290
13291         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13292         O_CLOEXEC.
13293         * locale/loadlocale.c (_nl_load_locale): Likewise.
13294
13295 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13296
13297         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13298         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13299         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13300         (SYSCALL_GETTIME): Set errno on error.
13301
13302         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13303         count references to noai6ai_cached.
13304
13305 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13306
13307         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13308
13309         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13310         FD_CLOEXEC for /proc/self/maps.
13311
13312         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13313         FD_CLOEXEC for /proc/meminfo.
13314
13315         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13316         gai.conf.
13317
13318         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13319         FD_CLOEXEC for given file.
13320
13321         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13322
13323         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13324         FD_CLOEXEC for /etc/hosts.
13325         (_gethtent): Likewise.
13326
13327         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13328
13329         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13330         cancellation and set FD_CLOEXEC for /etc/netgroup.
13331
13332         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13333         reading /etc/publickey.
13334
13335         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13336         allow cancellation when reading /etc/group.
13337
13338         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13339         cancellation.
13340         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13341
13342         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13343         when using data file.
13344
13345         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13346
13347         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13348         (write_nis_obj): Use "c" and "e" in fopen.
13349
13350         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13351
13352         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13353
13354         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13355
13356         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13357
13358         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13359         locale.alias.
13360
13361         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13362
13363         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13364
13365         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13366
13367         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13368         file parsing and set FD_CLOEXEC.
13369
13370 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13371
13372         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13373
13374 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13375
13376         * malloc/arena.c (arena_get2): Don't call reused_arena when
13377         _int_new_arena failed.
13378
13379 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13380
13381         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13382         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13383         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13384         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13385         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13386         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13387         to compile strcasecmp and strncasecmp.
13388         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13389         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13390
13391         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13392
13393 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13394
13395         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13396         locale-defines.sym to gen-as-const-headers.
13397         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13398         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13399         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13400         to compile strcasecmp and strncasecmp.
13401         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13402         strcasecmp_l and strncasecmp_l.
13403         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13404         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13405         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13406         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13407         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13408         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13409         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13410         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13411         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13412         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13413         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13414
13415 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13416
13417         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13418         result of SYSDEP_GETTIME_CPU to retval.
13419         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13420         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13421
13422         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13423         variable.
13424
13425         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13426         mantissa words.
13427         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13428
13429         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13430         from unused variable.
13431
13432         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13433         DWARF definitions.
13434         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13435         for assembling.
13436
13437         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13438         over namespaces.
13439
13440         * sunrpc/rpc_prot.c (rejected): Fix case value.
13441
13442         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13443         unsigned long long int to avoid warnings in shift.
13444
13445         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13446         of use of trans.
13447         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13448         variable tmp.
13449
13450         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13451         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13452         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13453
13454         * nis/nis_table.c (nis_list): Use variable of correct type for
13455         result of __follow_path call.
13456
13457 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13458
13459         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13460         of math functions ceil, trunc, floor, round, and sqrt, when
13461         avaliable on the platform.
13462         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13463         name clash.
13464         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13465         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13466         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13467
13468 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13469
13470         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13471         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13472
13473 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13474
13475         * include/unistd.h: Fix __readlink return type.
13476         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13477
13478 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13479
13480         * stdlib/ucontext.h: Undo last change for makecontext.
13481
13482 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13483
13484         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13485
13486         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13487         * setjmp/setjmp.h: Mark functions as non-leaf.
13488         * setjmp/bits/setjmp2.h: Likewise.
13489         * stdlib/ucontext.h: Likewise.
13490
13491 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13492
13493         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13494         (reused_arena): Don't check arena limit.
13495         (arena_get2): Atomically check arena limit.
13496
13497 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13498
13499         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13500         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13501
13502         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13503         instructions.
13504
13505 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13506
13507         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13508         handler when locking.
13509
13510         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13511         Fix size of allocated buffer.
13512
13513 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13514
13515         [BZ #10103]
13516         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13517         declarations for long double functions.
13518         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13519
13520         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13521
13522 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13523
13524         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13525         installed.
13526
13527         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13528         is disabled.
13529
13530 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13531
13532         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13533
13534 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13535
13536         * include/alloca.h (stackinfo_alloca_round): Define.
13537         (extend_alloca): Use it.
13538         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13539         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13540         here.
13541
13542         * scripts/check-local-headers.sh: Ignore libaudit.h.
13543
13544         * nscd/Makefile (extra-objs): Make recursively expanded.
13545
13546 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13547
13548         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13549         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13550
13551         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13552         * posix/tst-rfc3484-2.c: Likewise.
13553         * posix/tst-rfc3484-3.c: Likewise.
13554
13555         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13556         process_vm_writev.
13557         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13558         process_vm_writev.
13559         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13560         process_vm_writev from libc using GLIBC_2.15 version.
13561
13562         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13563
13564 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13565
13566         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13567         stack usage.
13568
13569 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13570
13571         [BZ #13367]
13572         * nss/getent.c (initgroups_keys): Show error message in case no group
13573         names are given.
13574
13575         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13576         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13577         __bump_nl_timestamp.
13578         * nscd/connections (nscd_init): When host database is served open
13579         netlink socket and request notification about configuration changes.
13580         (main_loop_poll): Track netlink file descriptor and bump timestamp
13581         in case data becomes available.
13582         (main_loop_epoll): Likewise.
13583         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13584         (database_pers_head): Add extra_data fileds.
13585         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13586         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13587         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13588         Adjust caller.
13589         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13590         in6ai data, call __free_in6ai.
13591         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13592         Add -DHAVE_NETLINK.
13593         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13594         interface information.  Reuse previous data if netlink timestamp
13595         is not changed.
13596         (__bump_nl_timestamp): New function.
13597         (__free_in6ai): New function.
13598
13599 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13600
13601         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13602         close_not_cancel_no_status here.
13603         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13604
13605 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13606
13607         [BZ #13276]
13608         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13609         return value.
13610
13611         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13612         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13613         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13614
13615 2011-07-03  Andreas Jaeger  <aj@suse.de>
13616
13617         [BZ #10709]
13618         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13619         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13620         * math/libm-test.inc (sin_test): Add test case.
13621
13622 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13623
13624         [BZ #13337]
13625         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13626         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13627
13628         * elf/chroot_canon.c (chroot_canon): Cleanups.
13629
13630         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13631
13632         [BZ #13335]
13633         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13634         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13635
13636         * string/test-strchr.c: Make usable for strchrnul testing.
13637         * string/test-strchrnul.c: New file.
13638         * string/Makefile (strop-tests): Add strchrnul.
13639
13640         * po/it.po: Update from translation team.
13641         * po/es.po: Likewise.
13642
13643 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13644
13645         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13646         the three constants needed as parameters.  Drop the others.
13647         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13648         __m128i_strloadu_tolower.
13649         Create and initialize variable zero and use it in all the places
13650         where _mm_setzero_si128 was used.
13651
13652         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13653         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13654         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13655         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13656         anymore.
13657         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13658         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13659         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13660         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13661         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13662         __mpranred, __mptan.
13663         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13664         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13665         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13666         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13667         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13668         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13669         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13670         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13671         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13672
13673 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13674
13675         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13676         redefine if SHARED.
13677         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13678
13679         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13680         wide char related routines to wcsmbs subdir.
13681
13682 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13683
13684         [BZ #13344]
13685         * misc/sys/cdefs.h (__THROWNL): Define.
13686         * posix/unistd.h: Use __THREADNL instead of __THREAD
13687         for memory synchronization functions.
13688
13689 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13690
13691         [BZ #13349]
13692         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13693         doesn't exist.
13694         * manual/stdio.texi (Obstack Streams): Node removed.
13695
13696 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13697
13698         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13699         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13700         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13701
13702         * math/math_private.h (math_force_eval): Allow non-addressable
13703         arguments.
13704         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13705
13706 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13707
13708         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13709         file is not needed.
13710
13711         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13712         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13713         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13714         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13715         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13716         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13717         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13718         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13719         Add AVX variants.
13720         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13721         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13722         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13723         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13724         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13725         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13726         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13727         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13728         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13729         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13730         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13731         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13732         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13733         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13734         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13735         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13736         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13737         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13738         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13739
13740         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13741         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13742
13743         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13744         place.  Use VEX encoding when compiling for AVX.
13745
13746 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13747
13748         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13749         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13750
13751         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13752
13753 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13754
13755         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13756         useless if() expression.
13757         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13758         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13759         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13760         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13761         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13762         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13763         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13764         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13765         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13766         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13767         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13768         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13769         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13770         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13771         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13772         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13773         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13774         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13775         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13776
13777         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13778
13779 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13780
13781         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13782         condition.
13783         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13784
13785 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13786
13787         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13788         .text section.  Avoid duplicate constants.
13789         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13790         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13791         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13792         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13793         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13794         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13795         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13796         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13797         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13798         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13799         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13800         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13801         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13802         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13803         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13804         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13805         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13806         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13807         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13808         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13809         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13810         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13811         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13812         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13813         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13814         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13815         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13816         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13817         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13818         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13819         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13820         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13821         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13822         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13823         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13824         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13825         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13826         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13827         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13828         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13829         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13830         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13831         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13832         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13833         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13834
13835 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13836
13837         * sysdeps/x86_64/dla.h: Move to ...
13838         * sysdeps/x86_64/fpu/dla.h: ...here.
13839         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13840         situations.  Use __builtin_fma only for gcc 4.6 and up.
13841
13842         * config.make.in: Add have-mfma4 entry.
13843         * configure.in: Substitute libc_cv_cc_fma4.
13844         * math/Makefile (dbl-only-routines): Add sincostab.
13845         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13846         Use __sincostab not sincos.
13847         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13848         name is a macro.
13849         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13850         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13851         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13852         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13853         using __copysign.
13854         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13855         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13856         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13857         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13858         and __inv.
13859         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13860         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13861         __copysign.
13862         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13863         define aliases when function name is a macro.
13864         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13865         sysdeps/ieee754/dbl-64/sincos.tbl.
13866         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13867         fma4-enabled routines.
13868         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13869         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13870         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13871         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13872         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13873         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13874         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13875         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13876         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13877         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13878         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13879         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13880         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13881         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13882         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13883         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13884         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13885         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13886         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13887         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13888         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13889         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13890         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13891         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13892         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13893         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13894         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13895         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13896         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13897         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13898
13899         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13900         rename.
13901         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13902         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13903         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13904         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13905         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13906         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13907         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13908         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13909
13910 2011-10-24  Andreas Schwab  <schwab@redhat.com>
13911
13912         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13913
13914 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13915
13916         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13917
13918         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
13919         prediction.
13920         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
13921
13922         * string/strnlen.c: Don't define STRNLEN, reverse logic.
13923         Remove unused variable magic_bits.
13924         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
13925
13926         * string/strnlen.c: Define and use STRNLEN macro.
13927         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
13928         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
13929         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
13930         * wcsmbs/wcslen.c: Define and use WCSLEN.
13931         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
13932         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
13933         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
13934         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
13935         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
13936         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
13937         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13938
13939 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13940
13941         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13942         strnlen-sse2-no-bsf.
13943         Rename strlen-no-bsf to strlen-sse2-no-bsf.
13944         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
13945         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
13946         Add strnlen support.
13947         (USE_AS_STRNLEN): New macro.
13948         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
13949         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
13950         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
13951         * sysdeps/x86_64/wcslen.S: New file.
13952
13953 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
13954
13955         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
13956         XMM-moves are used for copying on small sizes.
13957
13958 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13959
13960         * wcsmbs/Makefile (strop-tests): Add wcschr.
13961         * wcsmbs/test-wcschr.c: New file.
13962         * string/test-strchr.c: Update.
13963         Add wcschr support.
13964         (WIDE): New macro.
13965
13966 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13967
13968         * wcsmbs/Makefile (strop-tests): Add wcslen.
13969         * wcsmbs/test-wcslen.c: New file.
13970         * string/test-strlen.c: Update.
13971         Add wcslen support.
13972         (WIDE): New macro.
13973
13974 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13975
13976         * po/it.po: Update from translation team.
13977
13978 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13979
13980         * sysdeps/x86_64/wcscmp.S: Update.
13981         Fix wrong comparison semantics.
13982         wcscmp shall use signed comparison not unsigned.
13983         Don't use substraction to avoid overflow bug.
13984         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
13985         * wcsmbc/wcscmp.c: Likewise.
13986         * string/test-strcmp.c: Likewise.
13987         Add new tests to check cases with negative values.
13988
13989 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13990
13991         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
13992         * sysdeps/x86_64/dla.h: ...here.  New file.
13993         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
13994         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13995         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13996         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13997         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13998         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13999         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14000         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14001         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14002
14003 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14004
14005         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14006         __ynl_finite aliases.
14007
14008 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14009
14010         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14011
14012         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14013         define DLA_FMA.
14014         [DLA_FMA] (EMULV): Use DLA_FMA.
14015         [DLA_FMA] (MUL12): Use EMULV.
14016         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14017         that are not needed.
14018         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14019         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14020         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14021         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14022         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14023         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14024         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14025
14026 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14027
14028         * math/s_nan.c: Undef __nan.
14029         * math/s_nanf.c: Undef __nanf.
14030         * math/s_nanl.c: Undef __nanl.
14031         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14032         "math_private.h".
14033
14034 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14035
14036         * math/s_catan.c: Add branch predictions.
14037         * math/s_catanf.c: Likewise.
14038         * math/s_catanh.c: Likewise.
14039         * math/s_catanhf.c: Likewise.
14040         * math/s_catanhl.c: Likewise.
14041         * math/s_catanl.c: Likewise.
14042         * math/s_cexp.c: Likewise.
14043         * math/s_cexpf.c: Likewise.
14044         * math/s_cexpl.c: Likewise.
14045         * math/s_clog.c: Likewise.
14046         * math/s_clog10.c: Likewise.
14047         * math/s_clog10f.c: Likewise.
14048         * math/s_clog10l.c: Likewise.
14049         * math/s_clogf.c: Likewise.
14050         * math/s_clogl.c: Likewise.
14051         * math/s_csqrt.c: Likewise.
14052         * math/s_csqrtf.c: Likewise.
14053         * math/s_csqrtl.c: Likewise.
14054         * math/s_ctanf.c: Likewise.
14055         * math/s_ctanh.c: Likewise.
14056         * math/s_ctanhf.c: Likewise.
14057         * math/s_ctanhl.c: Likewise.
14058         * math/s_ctanl.c: Likewise.
14059
14060         * math/math_private.h: Define __nan, __nanf, __nanl.
14061         * math/s_cacosh.c: Include <math_private.h>.
14062         * math/s_cacoshl.c: Likewise.
14063         * math/s_casinh.c: Likewise.
14064         * math/s_casinhf.c: Likewise.
14065         * math/s_casinhl.c: Likewise.
14066         * math/s_ccos.c: Rely entire on ccosh.
14067         * math/s_ccosf.c: Rely entire on ccoshf.
14068         * math/s_ccosl.c: Rely entirely on ccoshl.
14069         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14070         Remove tests for FE_INVALID.
14071         * math/s_ccoshf.c: Likewise.
14072         * math/s_ccoshl.c: Likewise.
14073         * math/s_csin.c: Likewise.
14074         * math/s_csinf.c: Likewise.
14075         * math/s_csinh.c Likewise.
14076         * math/s_csinhf.c: Likewise.
14077         * math/s_csinhl.c: Likewise.
14078         * math/s_csinl.c: Likewise.
14079         * math/s_ctan.c: Likewise.
14080         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14081         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14082         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14083
14084 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14085
14086         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14087         compilation problems.
14088
14089         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14090         __builtin_expect.
14091
14092 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14093
14094         * sysdeps/i386/configure.in: Test for -mfma4 option.
14095         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14096         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14097         COMMON_CPUID_INDEX_80000001.
14098         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14099         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14100         use it if FMA3 is not supported.
14101         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14102
14103         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14104         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14105
14106 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14107
14108         [BZ #12892]
14109         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14110         it would create a cycle with a link time dependency.
14111
14112 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14113
14114         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14115         instruction.
14116         * string/Makefile (strop-tests): Add rawmemchr.
14117         * string/test-rawmemchr.c: New file.
14118
14119         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14120         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14121         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14122         when compiling str{,n}casecmp and when AVX is available.  Hook up
14123         new optimized code in initializers.
14124
14125 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14126
14127         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14128         __feraiseexcept instead of feraiseexcept.
14129
14130 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14131
14132         * math/math_private.h: Define defaults for libc_fetestexcept and
14133         libc_feupdateenv.
14134         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14135         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14136         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14137         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14138         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14139         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14140         libc_fetestexcept and libc_feupdateenv.
14141
14142         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14143         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14144         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14145         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14146         libc_feholdexcept_setround.
14147
14148         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14149         Add s_nearbyint-c and s_nearbyintf-c.
14150         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14151         nearbyintf inlines.
14152         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14153         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14154         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14155         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14156
14157         * math/math_private.h: Define defaults for libc_fegetround,
14158         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14159         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14160         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14161         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14162         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14163         standard functions.
14164         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14165         Remove comments and hacks for old compiler versions.
14166         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14167         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14168         libc_feholdexceptl.
14169
14170 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14171
14172         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14173         (__feraiseexcept_renamed): Add __NTH.
14174         (feraiseexcept): Add __NTH.  Rename local variables to fix
14175         namespace violations.
14176
14177 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14178
14179         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14180
14181         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14182
14183         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14184         recently added interfaces.
14185         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14186
14187         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14188         about macro parameter expansion.
14189
14190         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14191         __NO_MATH_INLINES is defined.  Cleanups.
14192
14193         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14194         and __floorf is target has SSE4.1.
14195         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14196         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14197         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14198         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14199
14200         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14201         name.
14202         (floorf): Likewise.
14203
14204         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14205
14206 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14207
14208         * misc/sys/cdefs.h: Fix last change.
14209
14210         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14211         database lookup.
14212
14213 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14214
14215         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14216
14217         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14218         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14219         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14220         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14221         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14222         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14223         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14224         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14225         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14226         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14227         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14228         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14229         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14230         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14231         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14232         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14233         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14234         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14235         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14236         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14237         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14238         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14239
14240         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14241         ceil, ceilf, floor, floorf.
14242
14243         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14244         Perform IRELATIVE relocations last.
14245
14246         * elf/do-rel.h: Add another parameter nrelative, replacing the
14247         local variable with the same name.  Change name of the function
14248         to end in Rel or Rela (uppercase).
14249         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14250         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14251         elf_dynamic_do_##reloc function.
14252
14253 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14254
14255         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14256         is sufficient, at least on modern CPUs.
14257
14258         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14259
14260         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14261         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14262
14263         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14264         __expl_finite.
14265         * math/bits/math-finite.h: Add entries for exp.
14266         * math/e_expl.c: Add __*_finite alias.
14267         * sysdeps/i386/fpu/e_exp.S: Likewise.
14268         * sysdeps/i386/fpu/e_expf.S: Likewise.
14269         * sysdeps/i386/fpu/e_expl.c: Likewise.
14270         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14271         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14272         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14273         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14274         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14275         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14276         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14277
14278         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14279         is sufficient, at least on modern CPUs.
14280
14281         * ctype/ctype-info.c (__ctype_init): Define.
14282         * include/ctype.h (__ctype_init): Declare.
14283         (__ctype_b_loc): The variable is always initialized.
14284         (__ctype_toupper_loc): Likewise.
14285         (__ctype_tolower_loc): Likewise.
14286         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14287         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14288
14289 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14290
14291         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14292
14293         * configure.in: Also look in $cxxmachine/include for C++ system
14294         headers.
14295
14296 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14297
14298         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14299         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14300         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14301         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14302         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14303         (USE_AS_WMEMCMP): New macro.
14304         Fixing indents.
14305         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14306         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14307         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14308         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14309         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14310         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14311         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14312         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14313         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14314         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14315         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14316         (USE_AS_WMEMCMP): New macro.
14317         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14318         * sysdeps/string/test-memcmp.c: Update.
14319         Fix simple_wmemcmp.
14320         Add new tests.
14321         * wcsmbs/wmemcmp.c: Update.
14322         (WMEMCMP): New macro.
14323         Fix overflow bug.
14324
14325 2011-10-12  Andreas Jaeger  <aj@suse.de>
14326
14327         [BZ #13268]
14328         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14329
14330 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14331
14332         * libio/iofwide.c (do_length): Avoid warning.
14333
14334         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14335
14336 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14337
14338         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14339
14340         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14341         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14342         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14343         * sysdeps/i386/i686/fpu/e_log.S: New file.
14344         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14345         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14346
14347         * ctype/ctype.h: Add support for inlined isXXX functions when
14348         compiling C++ code.
14349
14350 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14351
14352         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14353
14354         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14355
14356 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14357
14358         [BZ #13291]
14359         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14360
14361 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14362
14363         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14364         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14365         feraiseexcept.
14366
14367         * sysdeps/x86_64/memrchr.S: Check for zero size.
14368
14369         * string/stratcliff.c: Add memrchr tests.
14370
14371 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14372
14373         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14374         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14375         rawmemchr-sse2 rawmemchr-sse2-bsf.
14376         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14377         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14378         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14379         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14380         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14381         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14382         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14383         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14384         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14385         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14386         * string/memrchr.c (MEMRCHR): New macro.
14387
14388 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14389
14390         Add integration with gcc's -ffinite-math-only and optimize wrapper
14391         functions in libm.
14392         * Versions.def: Define GLIBC_2.15 version for libm.
14393         * math/Makefile (headers): Add bits/math-finite.h.
14394         * math/bits/math-finite.h: New file.
14395         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14396         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14397         * math/e_acoshl.c: Add __*_finite alias.
14398         * math/e_acosl.c: Likewise.
14399         * math/e_asinl.c: Likewise.
14400         * math/e_atan2l.c: Likewise.
14401         * math/e_atanhl.c: Likewise.
14402         * math/e_coshl.c: Likewise.
14403         * math/e_exp10.c: Likewise.
14404         * math/e_exp10f.c: Likewise.
14405         * math/e_exp10l.c: Likewise.
14406         * math/e_exp2l.c: Likewise.
14407         * math/e_fmodl.c: Likewise.
14408         * math/e_gammal_r.c: Likewise.
14409         * math/e_hypotl.c: Likewise.
14410         * math/e_j0l.c: Likewise.
14411         * math/e_j1l.c: Likewise.
14412         * math/e_jnl.c: Likewise.
14413         * math/e_lgammal_r.c: Likewise.
14414         * math/e_log10l.c: Likewise.
14415         * math/e_log2l.c: Likewise.
14416         * math/e_logl.c: Likewise.
14417         * math/e_powl.c: Likewise.
14418         * math/e_sinhl.c: Likewise.
14419         * math/e_sqrtl.c: Likewise.
14420         * math/e_scalb.c: Completely rewritten and optimized.
14421         * math/e_scalbf.c: Likewise.
14422         * math/e_scalbl.c: Likewise.
14423         * math/w_acos.c: Likewise.
14424         * math/w_acosf.c: Likewise.
14425         * math/w_acosl.c: Likewise.
14426         * math/w_acosh.c: Likewise.
14427         * math/w_acoshf.c: Likewise.
14428         * math/w_acoshl.c: Likewise.
14429         * math/w_asin.c: Likewise.
14430         * math/w_asinf.c: Likewise.
14431         * math/w_asinl.c: Likewise.
14432         * math/w_atan2.c: Likewise.
14433         * math/w_atan2f.c: Likewise.
14434         * math/w_atan2l.c: Likewise.
14435         * math/w_atanh.c: Likewise.
14436         * math/w_atanhf.c: Likewise.
14437         * math/w_atanhl.c: Likewise.
14438         * math/w_exp10.c: Likewise.
14439         * math/w_exp10f.c: Likewise.
14440         * math/w_exp10l.c: Likewise.
14441         * math/w_fmod.c: Likewise.
14442         * math/w_fmodf.c: Likewise.
14443         * math/w_fmodl.c: Likewise.
14444         * math/w_j0.c: Likewise.
14445         * math/w_j0f.c: Likewise.
14446         * math/w_j0l.c: Likewise.
14447         * math/w_j1.c: Likewise.
14448         * math/w_j1f.c: Likewise.
14449         * math/w_j1l.c: Likewise.
14450         * math/w_jn.c: Likewise.
14451         * math/w_jnf.c: Likewise.
14452         * math/w_log.c: Likewise.
14453         * math/w_logf.c: Likewise.
14454         * math/w_logl.c: Likewise.
14455         * math/w_log10.c: Likewise.
14456         * math/w_log10f.c: Likewise.
14457         * math/w_log10l.c: Likewise.
14458         * math/w_log2.c: Likewise.
14459         * math/w_log2f.c: Likewise.
14460         * math/w_log2l.c: Likewise.
14461         * math/w_pow.c: Likewise.
14462         * math/w_powf.c: Likewise.
14463         * math/w_powl.c: Likewise.
14464         * math/w_remainder.c: Likewise.
14465         * math/w_remainderf.c: Likewise.
14466         * math/w_remainderl.c: Likewise.
14467         * math/w_scalb.c: Likewise.
14468         * math/w_scalbf.c: Likewise.
14469         * math/w_scalbl.c: Likewise.
14470         * math/w_sqrt.c: Likewise.
14471         * math/w_sqrtf.c: Likewise.
14472         * math/w_sqrtl.c: Likewise.
14473         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14474         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14475         used.
14476         * math/math_private.h: Declare __kernel_standard_f.
14477         * math/w_cosh.c: Remove cruft and optimize a bit.
14478         * math/w_coshf.c: Likewise.
14479         * math/w_coshl.c: Likewise.
14480         * math/w_exp2.c: Likewise.
14481         * math/w_exp2f.c: Likewise.
14482         * math/w_exp2l.c: Likewise.
14483         * math/w_hypot.c: Likewise.
14484         * math/w_hypotf.c: Likewise.
14485         * math/w_hypotl.c: Likewise.
14486         * math/w_lgamma.c: Likewise.
14487         * math/w_lgamma_r.c: Likewise.
14488         * math/w_lgammaf.c: Likewise.
14489         * math/w_lgammaf_r.c: Likewise.
14490         * math/w_lgammal.c: Likewise.
14491         * math/w_lgammal_r.c: Likewise.
14492         * math/w_sinh.c: Likewise.
14493         * math/w_sinhf.c: Likewise.
14494         * math/w_sinhl.c: Likewise.
14495         * math/w_tgamma.c: Likewise.
14496         * math/w_tgammaf.c: Likewise.
14497         * math/w_tgammal.c: Likewise.
14498         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14499         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14500         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14501         Minor optimizations.  Pretty printing.  Remove cruft.
14502         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14503         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14504         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14505         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14506         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14507         * sysdeps/i386/fpu/e_asin.S: Likewise.
14508         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14509         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14510         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14511         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14512         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14513         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14514         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14515         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14516         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14517         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14518         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14519         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14520         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14521         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14522         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14523         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14524         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14525         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14526         * sysdeps/i386/fpu/e_log.S: Likewise.
14527         * sysdeps/i386/fpu/e_log10.S: Likewise.
14528         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14529         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14530         * sysdeps/i386/fpu/e_log2.S: Likewise.
14531         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14532         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14533         * sysdeps/i386/fpu/e_logf.S: Likewise.
14534         * sysdeps/i386/fpu/e_logl.S: Likewise.
14535         * sysdeps/i386/fpu/e_pow.S: Likewise.
14536         * sysdeps/i386/fpu/e_powf.S: Likewise.
14537         * sysdeps/i386/fpu/e_powl.S: Likewise.
14538         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14539         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14540         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14541         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14542         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14543         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14544         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14545         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14546         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14547         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14548         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14549         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14550         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14551         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14552         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14553         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14554         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14555         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14556         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14557         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14558         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14559         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14560         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14561         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14562         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14563         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14564         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14565         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14566         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14567         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14568         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14569         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14570         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14571         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14572         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14573         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14574         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14575         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14576         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14577         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14578         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14579         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14580         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14581         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14582         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14583         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14584         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14585         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14586         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14587         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14588         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14589         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14590         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14591         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14592         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14593         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14594         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14595         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14596         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14597         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14598         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14599         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14600         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14601         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14602         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14603         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14604         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14605         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14606         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14607         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14608         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14609         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14610         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14611         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14612         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14613         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14614         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14615         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14616         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14617         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14618         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14619         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14620         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14621         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14622         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14623         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14624         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14625         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14626         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14627         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14628         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14629         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14630         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14631         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14632         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14633         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14634         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14635         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14636         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14637         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14638         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14639         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14640         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14641         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14642         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14643         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14644         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14645         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14646         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14647         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14648         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14649         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14650         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14651         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14652         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14653         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14654         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14655         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14656         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14657         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14658         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14659         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14660         (__isnanf): Likewise.
14661         (__isinf_ns): Likewise.
14662         (__isinf_nsf): Likewise.
14663         (__finite): Likewise.
14664         (__finitef): Likewise.
14665         (__ieee754_sqrt): Define as macro.
14666         (__ieee754_sqrtf): Define as macro.
14667         (__ieee754_sqrtl): Define as macro.
14668         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14669         inlined copy.
14670         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14671         __FINITE_MATH_ONLY__ consistent.
14672         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14673
14674 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14675
14676         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14677         of rawmemchr.
14678
14679         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14680
14681 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14682
14683         * po/ja.po: Update from translation team.
14684
14685 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14686
14687         * locale/programs/locarchive.c (prepare_address_space): New function.
14688         (create_archive, enlarge_archive, open_archive): Use it.
14689
14690         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14691         inside [SHARED], where it is used.
14692
14693         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14694
14695         * nss/getent.c (netgroup_keys): Remove unused variable.
14696         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14697
14698 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14699
14700         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14701         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14702         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14703         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14704         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14705         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14706         * math/Makefile (libm-calls): Add s_isinf_ns.
14707         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14708         * math/multc3.c: Likewise.
14709         * math/s_casin.c: Likewise.
14710         * math/s_casinf.c: Likewise.
14711         * math/s_casinl.c: Likewise.
14712         * math/s_ccos.c: Likewise.
14713         * math/s_ccosf.c: Likewise.
14714         * math/s_ccosl.c: Likewise.
14715         * math/s_ctan.c: Likewise.
14716         * math/s_ctanf.c: Likewise.
14717         * math/s_ctanh.c: Likewise.
14718         * math/s_ctanhf.c: Likewise.
14719         * math/s_ctanhl.c: Likewise.
14720         * math/s_ctanl.c: Likewise.
14721         * math/w_fmod.c: Likewise.
14722         * math/w_fmodf.c: Likewise.
14723         * math/w_fmodl.c: Likewise.
14724         * math/w_remainder.c: Likewise.
14725         * math/w_remainderf.c: Likewise.
14726         * math/w_remainderl.c: Likewise.
14727         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14728         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14729         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14730         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14731         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14732         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14733         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14734         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14735
14736         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14737         of the number.
14738         * stdio-common/printf_fphex.c: Likewise.
14739         * stdio-common/printf_size.c: Likewise.
14740
14741         * math/e_exp10.c: Include math_private.h using <...> not "...".
14742         * math/e_exp10f.c: Likewise.
14743         * math/e_exp10l.c: Likewise.
14744         * math/e_exp2l.c: Likewise.
14745         * math/e_j0l.c: Likewise.
14746         * math/e_j1l.c: Likewise.
14747         * math/e_jnl.c: Likewise.
14748         * math/e_lgammal_r.c: Likewise.
14749         * math/e_rem_pio2l.c: Likewise.
14750         * math/e_scalb.c: Likewise.
14751         * math/e_scalbf.c: Likewise.
14752         * math/e_scalbl.c: Likewise.
14753         * math/k_cosl.c: Likewise.
14754         * math/k_sinl.c: Likewise.
14755         * math/k_tanl.c: Likewise.
14756         * math/s_cacoshf.c: Likewise.
14757         * math/s_catan.c: Likewise.
14758         * math/s_catanf.c: Likewise.
14759         * math/s_catanh.c: Likewise.
14760         * math/s_catanhf.c: Likewise.
14761         * math/s_catanhl.c: Likewise.
14762         * math/s_catanl.c: Likewise.
14763         * math/s_ccosh.c: Likewise.
14764         * math/s_ccoshf.c: Likewise.
14765         * math/s_ccoshl.c: Likewise.
14766         * math/s_cexp.c: Likewise.
14767         * math/s_cexpf.c: Likewise.
14768         * math/s_cexpl.c: Likewise.
14769         * math/s_clog.c: Likewise.
14770         * math/s_clog10.c: Likewise.
14771         * math/s_clog10f.c: Likewise.
14772         * math/s_clog10l.c: Likewise.
14773         * math/s_clogf.c: Likewise.
14774         * math/s_clogl.c: Likewise.
14775         * math/s_csin.c: Likewise.
14776         * math/s_csinf.c: Likewise.
14777         * math/s_csinh.c: Likewise.
14778         * math/s_csinhf.c: Likewise.
14779         * math/s_csinhl.c: Likewise.
14780         * math/s_csinl.c: Likewise.
14781         * math/s_csqrt.c: Likewise.
14782         * math/s_csqrtf.c: Likewise.
14783         * math/s_csqrtl.c: Likewise.
14784         * math/s_ctan.c: Likewise.
14785         * math/s_ctanf.c: Likewise.
14786         * math/s_ctanh.c: Likewise.
14787         * math/s_ctanhf.c: Likewise.
14788         * math/s_ctanhl.c: Likewise.
14789         * math/s_ctanl.c: Likewise.
14790         * math/s_ldexp.c: Likewise.
14791         * math/s_ldexpf.c: Likewise.
14792         * math/s_ldexpl.c: Likewise.
14793         * math/s_significand.c: Likewise.
14794         * math/s_significandf.c: Likewise.
14795         * math/s_significandl.c: Likewise.
14796         * math/w_acos.c: Likewise.
14797         * math/w_acosf.c: Likewise.
14798         * math/w_acosh.c: Likewise.
14799         * math/w_acoshf.c: Likewise.
14800         * math/w_acoshl.c: Likewise.
14801         * math/w_acosl.c: Likewise.
14802         * math/w_asin.c: Likewise.
14803         * math/w_asinf.c: Likewise.
14804         * math/w_asinl.c: Likewise.
14805         * math/w_atan2.c: Likewise.
14806         * math/w_atan2f.c: Likewise.
14807         * math/w_atan2l.c: Likewise.
14808         * math/w_atanh.c: Likewise.
14809         * math/w_atanhf.c: Likewise.
14810         * math/w_atanhl.c: Likewise.
14811         * math/w_cosh.c: Likewise.
14812         * math/w_coshf.c: Likewise.
14813         * math/w_coshl.c: Likewise.
14814         * math/w_dremf.c: Likewise.
14815         * math/w_exp10.c: Likewise.
14816         * math/w_exp10f.c: Likewise.
14817         * math/w_exp10l.c: Likewise.
14818         * math/w_exp2.c: Likewise.
14819         * math/w_exp2f.c: Likewise.
14820         * math/w_fmod.c: Likewise.
14821         * math/w_fmodf.c: Likewise.
14822         * math/w_fmodl.c: Likewise.
14823         * math/w_hypot.c: Likewise.
14824         * math/w_hypotf.c: Likewise.
14825         * math/w_hypotl.c: Likewise.
14826         * math/w_j0.c: Likewise.
14827         * math/w_j0f.c: Likewise.
14828         * math/w_j0l.c: Likewise.
14829         * math/w_j1.c: Likewise.
14830         * math/w_j1f.c: Likewise.
14831         * math/w_j1l.c: Likewise.
14832         * math/w_jn.c: Likewise.
14833         * math/w_jnf.c: Likewise.
14834         * math/w_jnl.c: Likewise.
14835         * math/w_lgamma.c: Likewise.
14836         * math/w_lgamma_r.c: Likewise.
14837         * math/w_lgammaf.c: Likewise.
14838         * math/w_lgammaf_r.c: Likewise.
14839         * math/w_lgammal.c: Likewise.
14840         * math/w_lgammal_r.c: Likewise.
14841         * math/w_log.c: Likewise.
14842         * math/w_log10.c: Likewise.
14843         * math/w_log10f.c: Likewise.
14844         * math/w_log10l.c: Likewise.
14845         * math/w_log2.c: Likewise.
14846         * math/w_log2f.c: Likewise.
14847         * math/w_log2l.c: Likewise.
14848         * math/w_logf.c: Likewise.
14849         * math/w_logl.c: Likewise.
14850         * math/w_pow.c: Likewise.
14851         * math/w_powf.c: Likewise.
14852         * math/w_powl.c: Likewise.
14853         * math/w_remainder.c: Likewise.
14854         * math/w_remainderf.c: Likewise.
14855         * math/w_remainderl.c: Likewise.
14856         * math/w_scalb.c: Likewise.
14857         * math/w_scalbf.c: Likewise.
14858         * math/w_scalbl.c: Likewise.
14859         * math/w_sinh.c: Likewise.
14860         * math/w_sinhf.c: Likewise.
14861         * math/w_sinhl.c: Likewise.
14862         * math/w_sqrt.c: Likewise.
14863         * math/w_sqrtf.c: Likewise.
14864         * math/w_sqrtl.c: Likewise.
14865         * math/w_tgamma.c: Likewise.
14866         * math/w_tgammaf.c: Likewise.
14867         * math/w_tgammal.c: Likewise.
14868
14869         * po/ja.po: Update from translation team.
14870
14871 2011-09-29  Andreas Jaeger  <aj@suse.de>
14872
14873         [BZ #13179]
14874         * sunrpc/netname.c (netname2host): Fix logic.
14875
14876         [BZ #6779]
14877         [BZ #6783]
14878         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14879         correctly.
14880         * math/w_remainder.c (__remainder): Likewise.
14881         * math/w_remainderf.c (__remainderf): Likewise.
14882         * math/libm-test.inc (remainder_test): Add test cases.
14883
14884 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14885
14886         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14887         sdiv_qrnnd.
14888
14889 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14890
14891         * string/test-memcmp.c: Avoid unncessary #defines.
14892         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14893
14894 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14895
14896         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14897         Use new sse2 version for core i3 - i7 as it's faster
14898         than sse42 version.
14899         (bit_Prefer_PMINUB_for_stringop): New.
14900         * sysdeps/x86_64/rawmemchr.S: Update.
14901         Replace with faster SSE2 version.
14902         * sysdeps/x86_64/memrchr.S: New file.
14903         * sysdeps/x86_64/memchr.S: Update.
14904         Replace with faster SSE2 version.
14905
14906 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14907
14908         * elf/dl-load.c (lose): Add cast to avoid warning.
14909
14910 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14911
14912         * po/ca.po: Update from translation team.
14913
14914         * inet/getnetgrent_r.c: Hook up nscd.
14915         * nscd/Makefile (routines): Add nscd_netgroup.
14916         (nscd-modules): Add netgroupcache.
14917         (CFLAGS-netgroupcache.c): Define.
14918         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
14919         (cache_search): Add const to second parameter.
14920         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
14921         INNETGR.
14922         (dbs): Add netgrdb entry.
14923         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
14924         (verify_persistent_db): Handle netgrdb.
14925         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
14926         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
14927         GETFDNETGR.
14928         (netgroup_response_header): Define.
14929         (innetgroup_response_header): Define.
14930         (datahead): Add netgroup_response_header and innetgroup_response_header
14931         elements.
14932         * nscd/nscd.conf: Add entries for netgroup cache.
14933         * nscd/nscd.h (dbtype): Add netgrdb.
14934         (_PATH_NSCD_NETGROUP_DB): Define.
14935         (netgroup_iov_disabled): Declare.
14936         (xmalloc, xcalloc, xrealloc): Move declarations here.
14937         (cache_search): Adjust prototype.
14938         Add netgroup-related prototypes.
14939         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
14940         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
14941         (__nscd_innetgr): Declare.
14942         * nscd/selinux.c (perms): Use access_vector_t as element type and
14943         add netgroup-related initializers.
14944         * nscd/netgroupcache.c: New file.
14945         * nscd/nscd_netgroup.c: New file.
14946         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
14947         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
14948         For four parameters use innetgr.
14949         * nss/nss_files/files-init.c: Add definition and callback for netgr.
14950         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
14951         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
14952         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
14953
14954         * nscd/connections.c (register_traced_file): Don't register file
14955         for disabled databases.
14956
14957 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
14958
14959         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
14960
14961         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
14962         from tree and freeing node.
14963
14964 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
14965
14966         * nss/nsswitch.c (__nss_database_lookup): Handle
14967         nss_parse_service_list out of memory case.
14968
14969 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
14970
14971         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
14972         out of memory case.
14973
14974 2011-10-04  Andreas Schwab  <schwab@redhat.com>
14975
14976         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
14977         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
14978         pass it down.
14979         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
14980         elf_machine_rela, elf_machine_lazy_rel.
14981         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
14982         (ELF_DYNAMIC_DO_REL): Likewise.
14983         (ELF_DYNAMIC_DO_RELA): Likewise.
14984         (ELF_DYNAMIC_RELOCATE): Likewise.
14985         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
14986         to ELF_DYNAMIC_DO_REL.
14987         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
14988         (dl_main): In trace mode always set __RTLD_NOIFUNC.
14989         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
14990         elf_machine_rela.
14991         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
14992         skip_ifunc, don't call ifunc function if non-zero.
14993         (elf_machine_rela): Likewise.
14994         (elf_machine_lazy_rel): Likewise.
14995         (elf_machine_lazy_rela): Likewise.
14996         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14997         (elf_machine_lazy_rel): Likewise.
14998         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14999         Likewise.
15000         (elf_machine_lazy_rel): Likewise.
15001         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15002         Likewise.
15003         (elf_machine_lazy_rel): Likewise.
15004         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15005         (elf_machine_lazy_rel): Likewise.
15006         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15007         (elf_machine_lazy_rel): Likewise.
15008         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15009         (elf_machine_lazy_rel): Likewise.
15010         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15011         (elf_machine_lazy_rel): Likewise.
15012         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15013         (elf_machine_lazy_rel): Likewise.
15014         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15015         (elf_machine_lazy_rel): Likewise.
15016
15017 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15018
15019         * nss/nss_files/files-init.c (_nss_files_init): Use static
15020         initialization for all the *_traced_file variables.
15021
15022 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15023
15024         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15025
15026 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15027
15028         [BZ #13226]
15029         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15030
15031 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15032
15033         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15034         Reread the line before reparsing it.
15035
15036 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15037
15038         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15039
15040 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15041             Maxim Kuvyrkov  <maxim@codesourcery.com>
15042             Joseph Myers  <joseph@codesourcery.com>
15043
15044         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15045         if needed for __stack_chk_guard.
15046
15047 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15048
15049         * sysdeps/posix/spawni.c (script_execute): Always define it.
15050         It will be optimized away if unused.
15051         (maybe_script_execute): New function.
15052         (__spawni): Call it.
15053
15054         * Makerules: Don't include tls.make.
15055         (config-tls): Always set to thread.
15056         * tls.make.c: File removed.
15057
15058 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15059
15060         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15061         * config.make.in (CPPFLAGS-config): New substituted variable.
15062
15063 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15064
15065         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15066
15067         [BZ #13192]
15068         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15069         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15070
15071 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15072
15073         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15074         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15075         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15076         (CALL_FAIL): Likewise.
15077         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15078         (CALL_FAIL): Macro removed.
15079         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15080
15081 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15082
15083         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15084         for __FINITE_MATH_ONLY__ == 1.
15085
15086 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15087
15088         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15089         __ieee754_sqrt instead of sqrt.
15090         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15091         __ieee754_sqrtf instead of sqrtf.
15092         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15093         __floorf instead of floorf.
15094         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15095         __floorf, __truncf instead of floorf, truncf.
15096
15097 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15098
15099         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15100
15101         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15102         __extern_always_inline.
15103         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15104         32-bit.
15105
15106 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15107
15108         * elf/rtld.c (dl_main): Also relocate in dependency order when
15109         doing symbol dependency testing.
15110
15111 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15112
15113         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15114         Always define `refsym'.
15115
15116 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15117
15118         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15119         (__FD_ELT): Renamed from __FDELT.
15120         * misc/bits/select2.h (__FD_ELT): Likewise.
15121         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15122         __FD_MASK instead of __FDELT, __FDMASK.
15123         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15124         Likewise.
15125         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15126         Likewise.
15127
15128         * elf/Makefile (gen-ldd): Fix pattern.
15129
15130         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15131         (init_tls): Likewise.
15132
15133 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15134
15135         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15136
15137 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15138
15139         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15140         `struct cmsghdr *' instead of `void *'.
15141         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15142         Likewise.
15143
15144 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15145
15146         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15147         if non-absolute.
15148         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15149         ldd_rewrite_script.
15150
15151 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15152
15153         * configure.in: Remove --with-tls option.
15154         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15155         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15156         out in case it is missing.
15157         * sysdeps/ia64/elf/configure.in: Likewise.
15158         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15159         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15160         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15161         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15162         * sysdeps/sh/elf/configure.in: Likewise.
15163         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15164         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15165         * sysdeps/x86_64/elf/configure.in: Likewise.
15166         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15167         * sysdeps/mach/hurd/tls.h: Likewise.
15168
15169         [BZ #13067]
15170         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15171
15172         [BZ #13090]
15173         * configure.in: Fix use of AC_INIT.
15174
15175         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15176
15177 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15178
15179         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15180         __set_errno.
15181         * malloc/hooks.c: Likewise.
15182
15183         [BZ #11929]
15184         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15185         variables statically.
15186         (narenas): Initialize.
15187         (list_lock): Initialize.
15188         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15189         initializtion of main_arena and list_lock.  Small cleanups.
15190         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15191         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15192         Add initializers to main_arena and mp_.
15193         (malloc_state): Remove pagesize member.  Change all users to use
15194         GLRO(dl_pagesize).
15195
15196         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15197         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15198         is always initialized.
15199
15200         * malloc/malloc.c: Removed unused configurations and dead code.
15201         * malloc/arena.c: Likewise.
15202         * malloc/hooks.c: Likewise.
15203         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15204
15205         * include/tls.h: Removed.  USE___THREAD must always be defined.
15206         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15207         * elf/dl-libc.c: Likewise.
15208         * elf/dl-tsd.c: Likewise.
15209         * include/errno.h: Likewise.
15210         * include/netdb.h: Likewise.
15211         * include/resolv.h: Likewise.
15212         * inet/herrno-loc.c: Likewise.
15213         * inet/herrno.c: Likewise.
15214         * malloc/arena.c: Likewise.
15215         * malloc/hooks.c: Likewise.
15216         * malloc/malloc.c: Likewise.
15217         * resolv/res-state.c: Likewise.
15218         * resolv/res_libc.c: Likewise.
15219         * sysdeps/i386/dl-machine.h: Likewise.
15220         * sysdeps/ia64/dl-machine.h: Likewise.
15221         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15222         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15223         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15224         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15225         * sysdeps/sh/dl-machine.h: Likewise.
15226         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15227         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15228         * sysdeps/unix/i386/sysdep.S: Likewise.
15229         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15230         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15231         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15232         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15233         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15234         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15235         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15236         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15237         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15238         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15239         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15240         * sysdeps/x86_64/dl-machine.h: Likewise.
15241         * tls.make.c: Likewise.
15242
15243         * configure.in: Remove --with-__thread option.  Make tests for
15244         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15245         tls_model attribute fail if no support is available.  Remove
15246         USE_IN_LIBIO.
15247         * Makeconfig: Adjust for dropped configure option.  All features are
15248         now mandatory.
15249         * Makerules: Likewise.
15250         * Versions.def: Likewise.
15251         * argp/argp-fmtstream.c: Likewise.
15252         * argp/argp-fmtstream.h: Likewise.
15253         * argp/argp-help.c: Likewise.
15254         * assert/assert.c: Likewise.
15255         * config.h.in: Likewise.
15256         * config.make.in: Likewise.
15257         * configure: Likewise.
15258         * configure.in: Likewise.
15259         * csu/Versions: Likewise.
15260         * csu/init.c: Likewise.
15261         * elf/tst-audit2.c: Likewise.
15262         * elf/tst-tls10.c: Likewise.
15263         * elf/tst-tls10.h: Likewise.
15264         * elf/tst-tls11.c: Likewise.
15265         * elf/tst-tls12.c: Likewise.
15266         * elf/tst-tls14.c: Likewise.
15267         * elf/tst-tlsmod11.c: Likewise.
15268         * elf/tst-tlsmod12.c: Likewise.
15269         * elf/tst-tlsmod13.c: Likewise.
15270         * elf/tst-tlsmod13a.c: Likewise.
15271         * elf/tst-tlsmod14a.c: Likewise.
15272         * elf/tst-tlsmod15b.c: Likewise.
15273         * elf/tst-tlsmod16a.c: Likewise.
15274         * elf/tst-tlsmod16b.c: Likewise.
15275         * elf/tst-tlsmod7.c: Likewise.
15276         * elf/tst-tlsmod8.c: Likewise.
15277         * elf/tst-tlsmod9.c: Likewise.
15278         * gmon/gmon.c: Likewise.
15279         * grp/fgetgrent_r.c: Likewise.
15280         * grp/putgrent.c: Likewise.
15281         * hurd/fopenport.c: Likewise.
15282         * include/libc-symbols.h: Likewise.
15283         * include/tls.h: Likewise.
15284         * intl/gettextP.h: Likewise.
15285         * intl/loadinfo.h: Likewise.
15286         * locale/global-locale.c: Likewise.
15287         * locale/localeinfo.h: Likewise.
15288         * mach/devstream.c: Likewise.
15289         * malloc/arena.c: Likewise.
15290         * malloc/set-freeres.c: Likewise.
15291         * misc/err.c: Likewise.
15292         * misc/getttyent.c: Likewise.
15293         * misc/mntent_r.c: Likewise.
15294         * posix/getopt.c: Likewise.
15295         * posix/wordexp.c: Likewise.
15296         * pwd/fgetpwent_r.c: Likewise.
15297         * resolv/Versions: Likewise.
15298         * resolv/res_hconf.c: Likewise.
15299         * shadow/fgetspent_r.c: Likewise.
15300         * shadow/putspent.c: Likewise.
15301         * stdio-common/printf_fphex.c: Likewise.
15302         * stdio-common/tmpfile.c: Likewise.
15303         * stdlib/abort.c: Likewise.
15304         * stdlib/fmtmsg.c: Likewise.
15305         * sunrpc/auth_unix.c: Likewise.
15306         * sunrpc/clnt_perr.c: Likewise.
15307         * sunrpc/clnt_tcp.c: Likewise.
15308         * sunrpc/clnt_udp.c: Likewise.
15309         * sunrpc/clnt_unix.c: Likewise.
15310         * sunrpc/openchild.c: Likewise.
15311         * sunrpc/svc_simple.c: Likewise.
15312         * sunrpc/svc_tcp.c: Likewise.
15313         * sunrpc/svc_udp.c: Likewise.
15314         * sunrpc/svc_unix.c: Likewise.
15315         * sunrpc/xdr.c: Likewise.
15316         * sunrpc/xdr_array.c: Likewise.
15317         * sunrpc/xdr_rec.c: Likewise.
15318         * sunrpc/xdr_ref.c: Likewise.
15319         * sunrpc/xdr_stdio.c: Likewise.
15320
15321 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15322
15323         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15324
15325 2011-07-03  Andreas Jaeger  <aj@suse.de>
15326
15327         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15328         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15329         regenerate with gen-libm-tests.pl.
15330
15331 2010-05-12  Petr Baudis  <pasky@suse.cz>
15332
15333         [BZ #11589]
15334         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15335         around j0() zero points by switching to j1().
15336         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15337         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15338         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15339         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15340
15341 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15342
15343         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15344         instead of 0.
15345         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15346         instead of 0.                              .
15347         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15348         Patch in part by Pavel Roskin <proski@gnu.org>.
15349
15350         [BZ #13138]
15351         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15352         realloc.
15353         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15354         Free memory block if necessary.
15355
15356         [BZ #12847]
15357         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15358         be NULL.  Don't lock in this case.
15359
15360 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15361
15362         * elf/elf.h (ELFOSABI_GNU): New macro.
15363         (ELFOSABI_LINUX): Define to that.
15364
15365 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15366
15367         * string/strncat.c (strncat): Undef the symbol in case it has been
15368         defined in bits/string.h.
15369
15370 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15371
15372         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15373
15374         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15375         link map.
15376
15377 2011-08-17  Andreas Jaeger  <aj@suse.de>
15378
15379         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15380
15381 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15382             Ian Lance Taylor  <iant@google.com>
15383
15384         * math/libm-test.inc (lround_test): New testcase.
15385         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15386
15387 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15388
15389         * Makefile: Remove support for automatic cvs check-ins.
15390         * Makerules: Likewise.
15391         * config.make.in: Likewise.
15392         * configure.in: Likewise.
15393         * intl/Makefile: Likewise.
15394         * locale/Makefile: Likewise.
15395         * po/Makefile: Likewise.
15396         * posix/Makefile: Likewise.
15397         * sysdeps/gnu/Makefile: Likewise.
15398         * sysdeps/mach/hurd/Makefile: Likewise.
15399         * sysdeps/sparc/sparc32/Makefile: Likewise.
15400
15401         [BZ #13118]
15402         * posix/Makefile (bug-regex32-ENV): Define.
15403         Patch by John Stanley <jpsinthemix@verizon.net>.
15404
15405         * misc/Makefile (headers): Add bits/select2.h.
15406         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15407         * misc/bits/select2.h: New file.
15408         * include/bits/select2.h: New file.
15409         * debug/Makefile (routines): Add fdelt_chk.
15410         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15411         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15412         FD_ISSET.
15413         * debug/fdelt_chk.c: New file.
15414
15415         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15416         * wcsmbs/test-wmemcmp.c: Likewise.
15417         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15418         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15419
15420 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15421
15422         * string/Makefile (strop-tests): Add memcmp.
15423         * string/test-wmemcmp.c: New file.
15424         * string/test-memcmp.c: Add wmemcmp support.
15425
15426 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15427
15428         [BZ #13153]
15429         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15430         2011-07-19 change.
15431
15432         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15433         garbage value in a __mach_port_mod_refs call in the cases of the
15434         task-self and thread-self ports.
15435
15436 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15437
15438         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15439
15440 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15441
15442         * elf/dl-load.c (lose): Check for non-null L.
15443
15444 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15445
15446         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15447
15448         * elf/dl-libc.c (dlerror_run): Pass back error code from
15449         dl_catch_error.
15450
15451         [BZ #13123]
15452         * elf/dl-load.c (lose): Free l_origin if it is valid.
15453
15454         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15455         names.
15456         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15457         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15458         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15459         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15460         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15461         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15462
15463 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15464
15465         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15466         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15467         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15468         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15469         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15470         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15471         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15472         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15473         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15474         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15475
15476 2011-08-15  Alan Modra  <amodra@gmail.com>
15477
15478         [BZ #13092]
15479         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15480         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15481         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15482         ppc_mcount to static-only-routines.
15483         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15484         __mcount_internal.
15485         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15486         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15487
15488 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15489
15490         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15491         for finite and infinity parameters.
15492
15493 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15494
15495         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15496         and add nop instructions for throughput optimization.
15497         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15498
15499 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15500
15501         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15502         aligned copy for power7 with vector-scalar instructions.
15503         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15504
15505 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15506
15507         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15508         AVX check.
15509
15510 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15511
15512         [BZ #13144]
15513         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15514         last change.
15515
15516 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15517
15518         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15519         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15520         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15521         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15522         clock_gettime.
15523
15524 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15525
15526         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15527         Forgot to demangle the pointer.
15528
15529         * sysdeps/i386/sysdep.h: Define atom_text_section.
15530         * sysdeps/x86_64/sysdep.h: Likewise.
15531         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15532         section with atom_text_section.
15533         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15534         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15535         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15536         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15537         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15538
15539         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15540         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15541         already be defined.  Change to take two parameters and don't assign
15542         result to variable.  Adjust all users.
15543         Define INTERNAL_GETTIME if not already defined.
15544         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15545         call.
15546         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15547         HAVE_CLOCK_GETTIME_VSYSCALL.
15548         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15549
15550         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15551         gettimeofday vsyscall, just use time.
15552
15553 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15554
15555         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15556         <errno.h>.
15557
15558 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15559
15560         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15561         syscall on x86-64.
15562         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15563         syscall.
15564         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15565         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15566         syscall if possible.
15567
15568 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15569
15570         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15571         e_ident.  Don't pass to find_mapsXX.
15572         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15573
15574 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15575
15576         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15577         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15578         * sysdeps/x86_64/multiarch/strchr.S: Update.
15579         Check bit_slow_BSF bit.
15580         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15581         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15582         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15583
15584 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15585
15586         [BZ #13134]
15587         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15588         before glibc 2.15.
15589         (tryshell): Define.
15590         (__spawni): Change last parameter to be flag.  Test
15591         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15592         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15593         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15594         * posix/spawni.c: Likewise.
15595         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15596         * posix/spawnp.c: Likewise.  Change normal version to use
15597         SPAWN_XFLAGS_USE_PATH.
15598         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15599         SPAWN_XFLAGS_TRY_SHELL.
15600
15601         [BZ #13150]
15602         * posix/glob.h: Remove gcc 1.x support.
15603
15604         [BZ #13068]
15605         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15606
15607 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15608
15609         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15610         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15611         strrchr-sse2-bsf
15612         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15613         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15614         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15615         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15616         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15617         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15618
15619 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15620
15621         * sysdeps/x86_64/wcscmp.S: New file.
15622
15623         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15624         wcscmp-c wcscmp-sse2
15625         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15626         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15627         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15628         * wcsmbs/wcscmp.c: Allow renaming.
15629
15630 2011-09-05  David S. Miller  <davem@davemloft.net>
15631
15632         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15633         stack slot, rather than the struct return pointer slot.
15634         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15635         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15636         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15637         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15638
15639 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15640
15641         * po/ja.po: Update from translation team.
15642
15643         [BZ #13144]
15644         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15645         kernel in 64-bit binaries.
15646
15647 2011-09-01  David S. Miller  <davem@davemloft.net>
15648
15649         * elf/elf.h (HWCAP_SPARC_*): Move to..
15650         * sysdeps/sparc/sysdep.h: this new file and add new values.
15651         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15652         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15653         _DL_HWCAP_COUNT to 24.
15654         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15655         entries.
15656         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15657         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15658         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15659         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15660         instead of magic constants.
15661         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15662
15663 2011-08-31  David S. Miller  <davem@davemloft.net>
15664
15665         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15666         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15667         Reimplement to do errno handling inline.
15668         (SYSCALL_ERROR_HANDLER): New macro.
15669         (__SYSCALL_STRING): Do not do errno handling in asm.
15670         (__CLONE_SYSCALL_STRING): Delete.
15671         (__INTERNAL_SYSCALL_STRING): Delete.
15672         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15673         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15674         (PSEUDO): Reimplement to do errno handling inline.
15675         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15676         (SYSCALL_ERROR_HANDLER): New macro.
15677         (__SYSCALL_STRING): Do not do errno handling in asm.
15678         (__CLONE_SYSCALL_STRING): Delete.
15679         (__INTERNAL_SYSCALL_STRING): Delete.
15680         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15681         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15682         i386.
15683         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15684         (inline_syscall*): Add 'err' argument.
15685         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15686         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15687         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15688         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15689
15690         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15691         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15692
15693 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15694
15695         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15696
15697 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15698
15699         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15700         directive.
15701
15702 2011-08-24  David S. Miller  <davem@davemloft.net>
15703
15704         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15705
15706 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15707
15708         * elf/Makefile: Add rules to build and run unload8 test.
15709         * elf/unload8.c: New file.
15710         * elf/unload8mod1.c: New file.
15711         * elf/unload8mod1x.c: New file.
15712         * elf/unload8mod2.c: New file.
15713         * elf/unload8mod3.c: New file.
15714
15715         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15716         it wasn't used.
15717
15718 2011-08-23  David S. Miller  <davem@davemloft.net>
15719
15720         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15721         subtract stack bias.
15722         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15723         %sp not %fp in calculations.
15724         (_JMPBUF_UNWINDS_ADJ): Likewise.
15725
15726         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15727         (aio_suspend): Call it to force an exception region around the
15728         AIO_MISC_WAIT() invocation.
15729
15730 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15731
15732         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15733         backslash.
15734
15735 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15736
15737         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15738         protection macro.
15739         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15740         and <dl-machine.h>.
15741         (Elf64_FuncDesc): Remove.
15742
15743 2011-08-22  David S. Miller  <davem@davemloft.net>
15744
15745         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15746         sigaltstack check, add missing cfi directives.
15747         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15748         missing cfi directives, and sigaltstack handling.
15749
15750 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15751
15752         [BZ #11724]
15753         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15754         object is seen twice.
15755         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15756
15757         * elf/Makefile (distribute): Add tst-initorder2.c.
15758         (tests): Add tst-initorder2.
15759         (modules-names): Add tst-initorder2a tst-initorder2b
15760         tst-initorder2c tst-initorder2d.  Add rules to build them.
15761         ($(objpfx)tst-initorder2.out): New rule.
15762         * elf/tst-initorder2.c: New file.
15763         * elf/tst-initorder2.exp: New file.
15764
15765 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15766
15767         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15768
15769         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15770         dependencies back to end of function.
15771
15772         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15773         $(elfobjdir)/ld.so.
15774
15775 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15776
15777         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15778         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15779         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15780         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15781         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15782         of __vdso_gettimeofday.
15783         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15784         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15785         attribute_hidden.
15786         (_libc_vdso_platform_setup): Remove initialization of
15787         __vdso_gettimeofday and __vdso_time.
15788
15789 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15790
15791         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15792         and fgetc_unlocked.
15793         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15794         getc_unlocked.
15795
15796         * elf/dl-open.c (add_to_global): Report additions to the global scope
15797         for LD_DEBUG=scopes.
15798         (dl_open_worker): Also print scope of newly loaded dependencies.
15799         (_dl_show_scope): Indicate if there is no scope.
15800
15801         [BZ #13114]
15802         * stdio-common/Makefile (tests): Add bug24.
15803         * stdio-common/bug24.c: New file.
15804
15805 2011-08-19  Andreas Jaeger  <aj@suse.de>
15806
15807         [BZ #13114]
15808         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15809         non-existant file when using close-on-exec mode.
15810
15811 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15812
15813         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15814         the very first instruction.
15815
15816         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15817         the CFI state in the end.
15818         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15819         inclusion of dl-trampoline.h.
15820         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15821
15822 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15823
15824         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15825         expectations for long double.
15826
15827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15828         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15829
15830 2011-08-14  David S. Miller  <davem@davemloft.net>
15831
15832         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15833         artificual limit depends upon the system page size.
15834
15835 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15836
15837         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15838         * resolv/Makefile: Define CFLAGS-libresolv.
15839
15840 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15841
15842         * nss/makedb.c (compute_tables): Make variables used in nested
15843         function static.
15844
15845 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15846
15847         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15848         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15849         if buffer was too small.
15850
15851         * elf/pldd.c (main): Attach to all threads in the process.
15852         Rewrite /proc handling to use *at functions.
15853
15854 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15855
15856         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15857         specifies first scope to show.
15858         (dl_open_worker): Update callers.  Move printing scope of new
15859         object to before the relocation.
15860         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15861         * sysdeps/generic/ldsodefs.h: Update declaration.
15862
15863         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15864         string for the scope number.
15865
15866 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15867
15868         * nscd/servicescache.c (cache_addserv): Make sure written is always
15869         initialized.
15870
15871 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15872
15873         * sysdeps/i386/i486/bits/atomic.h
15874         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15875         statement expression, so as to suppress "set but not used" warning.
15876         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15877
15878         * string/strncat.c (STRNCAT): Use prototype definition.
15879
15880         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15881         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15882         -Iprograms here.
15883         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15884         (localedef-modules): Add localedef.
15885         (locale-modules): Add locale.
15886
15887         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15888         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15889         to avoid a warning.
15890
15891 2011-08-14  David S. Miller  <davem@davemloft.net>
15892
15893         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15894         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15895
15896 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15897
15898         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15899         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15900         * elf/rtld.c (dl_main): Set l_name of vDSO.
15901         Call _dl_show_scope when DL_DEBUG_SCOPES.
15902         (process_dl_debug): Recognize scopes flag and also set it for all.
15903         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15904         Declare _dl_show_scope.
15905
15906         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15907         (do_dlopen): Pass caller_dlopen to dl_open.
15908         (__libc_dlopen_mode): Initialize caller_dlopen.
15909
15910         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15911         of libc.  Make tolower call locale-independent.  Optimize a bit by
15912         using isdigit instead of isalnum.
15913         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15914
15915 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
15916
15917         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
15918         was a dependency or dynamically loaded.
15919
15920 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
15921
15922         * intl/l10nflist.c: Allow architecture-specific pop function.
15923         * sysdeps/x86_64/l10nflist.c: New file.
15924
15925         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
15926         classification.
15927
15928 2011-08-10  Andreas Schwab  <schwab@redhat.com>
15929
15930         * include/dirent.h: Add libc_hidden_proto for scandirat and
15931         scandirat64.  Don't declare __scandirat64.
15932         * dirent/scandirat.c: Add libc_hidden_def.
15933         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
15934         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
15935
15936 2011-08-10  David S. Miller  <davem@davemloft.net>
15937
15938         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
15939         enum.
15940         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15941         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15942         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15943
15944 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
15945
15946         * Versions.def [libc]: Add GLIBC_2.15.
15947         * dirent/Makefile (routines): Add scandirat and scandirat64.
15948         * dirent/Versions [libc]: Export scandirat and scandirat64 for
15949         GLIBC_2.15.
15950         * dirent/dirent.h: Declare scandirat and scandirat64.
15951         * dirent/scandirat.c: New file.
15952         * dirent/scandirat64.c: New file.
15953         * sysdeps/wordsize-64/scandirat.c: New file.
15954         * sysdeps/wordsize-64/scandirat64.c: New file.
15955         * dirent/opendir.c: Define opendirat.
15956         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
15957         using scandirat.
15958         * dirent/scandir64.c: Adjust for scandir.c change.
15959         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
15960         __scandirat64, and __scandir_cancel_handler.
15961         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
15962         additional parameter and use openat instead of open (outside of ld.so).
15963         Add new __opendir as wrapper around __opendirat.
15964         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
15965         here without requiring old scandirat implementation.
15966
15967 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
15968
15969         * dirent/scandir.c (cancel_handler): Renamed to
15970         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
15971         defined.  Adjust users.
15972         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
15973         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15974
15975 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
15976
15977         * string/test-string.h (IMPL): Use __STRING to expand name and then
15978         stringify it.
15979
15980         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
15981         of cleanups.
15982
15983 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15984
15985         * string/Makefile: Update.
15986         (strop-tests): Append strncat.
15987         * string/test-wcscmp.c: New file.
15988         New comprehensive test for wcscmp.
15989         * string/test-strcmp.c: Update.
15990         (WIDE): New define.
15991
15992 2011-07-22  Andreas Schwab  <schwab@redhat.com>
15993
15994         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
15995         line.
15996
15997 2011-07-26  Andreas Schwab  <schwab@redhat.com>
15998
15999         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16000         encoding to ACE if AI_IDN.
16001
16002 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16003
16004         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16005         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16006
16007 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16008
16009         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16010         Fix overflow bug in strncat.
16011         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16012
16013         * string/test-strncat.c: Update.
16014         Add new tests for checking overflow bugs.
16015
16016 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16017
16018         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16019         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16020         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16021         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16022         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16023         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16024         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16025         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16026         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16027
16028         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16029         (USE_AS_STRCAT): Define.
16030         Add strcat and strncat support.
16031         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16032
16033 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16034
16035         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16036         __n bigger than INT_MAX+1.
16037         (__strncmp_g): Likewise.
16038
16039 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16040
16041         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16042         * libio/stido.h: Likewise.
16043
16044         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16045         (AF_NFC): Define.
16046         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16047         (AF_NFC): Define.
16048
16049         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16050         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16051         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16052         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16053         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16054
16055         [BZ #13021]
16056         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16057         installed.
16058
16059         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16060         typo.
16061         (_dl_x86_64_save_sse): Likewise.
16062
16063 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16064
16065         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16066         OSXSAVE.
16067         (_dl_x86_64_save_sse): Likewise.
16068
16069         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16070
16071         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16072
16073 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16074
16075         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16076         change.
16077         (_dl_x86_64_save_sse): Use correct AVX check.
16078
16079 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16080
16081         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16082         bug in strncpy/strncat.
16083         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16084
16085 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16086
16087         * string/tester.c (test_strcat): Add tests for different alignments
16088         of source and destination.
16089         (test_strncat): Likewise.
16090
16091 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16092
16093         [BZ #12852]
16094         * posix/glob.c (glob): Check passed in values before using them in
16095         expressions to avoid some overflows.
16096         (glob_in_dir): Likewise.
16097
16098         [BZ #13007]
16099         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16100         check for AVX enablement so that we don't crash with old kernels and
16101         new hardware.
16102         * elf/tst-audit4.c: Add same checks here.
16103         * elf/tst-audit6.c: Likewise.
16104
16105         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16106
16107 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16108
16109         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16110
16111 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16112
16113         * po/cs.po: Update from translation team.
16114         * po/bg.po: Likewise.
16115
16116 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16117
16118         * misc/sys/cdefs.h: Add support for const attribute.
16119         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16120         to gnu_dev_{major,minor,makedev} functions.
16121
16122 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16123
16124         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16125
16126 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16127
16128         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16129         strlen results.
16130
16131 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16132
16133         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16134         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16135         register in order to avoid conflicts with the soft frame pointer
16136         being held in r11 when necessary.
16137         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16138         (INTERNAL_VSYSCALL_NCS): Likewise.
16139
16140 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16141
16142         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16143         * elf/dl-fini.c (_dl_fini): Adjust caller.
16144         * elf/dl-close.c (_dl_close_worker): Likewise.
16145         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16146
16147 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16148
16149         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16150         "aux_cache->nlibs < 0".
16151
16152         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16153         in the reload-count case.
16154
16155 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16156
16157         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16158         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16159         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16160         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16161         * sysdeps/x86_64/multiarch/strcat.S: New file.
16162         * sysdeps/x86_64/multiarch/strncat.S: New file.
16163         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16164         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16165         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16166         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16167         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16168         (USE_AS_STRCAT): Define.
16169         Add strcat and strncat support.
16170         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16171         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16172         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16173         * string/strncat.c: Update.
16174         (USE_AS_STRNCAT): Define.
16175         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16176         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16177         and i7.
16178         * sysdeps/x86_64/multiarch/init-arch.h
16179         (bit_Prefer_PMINUB_for_stringop): New.
16180         (index_Prefer_PMINUB_for_stringop): Likewise.
16181         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16182         bit_Prefer_PMINUB_for_stringop.
16183
16184 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16185
16186         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16187         buffer64.
16188         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16189         of casting of buffer.
16190         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16191         buffer32 and buffer64.
16192         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16193         writes instead of casting of buffer.
16194         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16195         buffer32.
16196         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16197         casting of buffer.
16198
16199 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16200
16201         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16202
16203 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16204
16205         * nscd/nscd.c (termination_handler): Don't do anything for a database
16206         if it has not yet been initialized.
16207
16208 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16209
16210         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16211
16212 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16213
16214         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16215
16216 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16217
16218         * po/nl.po: Update from translation team.
16219         * po/sv.po: Likewise.
16220
16221 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16222
16223         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16224         now disallowed by GCC.
16225
16226         * configure.in (use-default-link): Default to yes if a test -shared
16227         link meets our qualifications.
16228         * configure: Regenerated.
16229
16230         * config.make.in (output-format): New variable.
16231         * configure.in: Check for ld --print-output-format support.
16232         * configure: Regenerated.
16233         * Makerules ($(common-objpfx)format.lds)
16234         [$(output-format) != unknown]: Just use $(output-format),
16235         instead of the linker-script munging.
16236
16237 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16238
16239         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16240         of $(common-objpfx)shlib.lds.
16241         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16242
16243         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16244         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16245
16246         * configure.in (-z relro check): Adjust test code to add a large
16247         writable data section after it.
16248         * configure: Regenerated.
16249
16250 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16251
16252         * configure.in (-z relro check): Fix test code to make the variable
16253         truly const.
16254         * configure: Regenerated.
16255
16256 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16257
16258         * nscd/nscd.h (struct traced_file): Define.
16259         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16260         elements.  Add traced_files.
16261         (inotify_fd): Declare.
16262         (register_traced_file): Declare.
16263         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16264         (inotify_fd): Export.
16265         (resolv_conf_descr): Remove.
16266         (nscd_init): Move inotify descriptor creation to main.
16267         Don't register files for notification here.
16268         (register_traced_file): New function.
16269         (invalidate_cache): Don't use reset_res to determine whether to call
16270         res_init, go through the list of registered files.
16271         (main_loop_poll): The inotify descriptors are now stored in the
16272         structures for the traced files.
16273         (main_loop_epoll): Likewise
16274         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16275         to __nss_disable_nscd.
16276         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16277         for a database anymore.  Check the records for all the registered
16278         files instead.
16279         * nss/Makefile (libnss_files-routines): Add files-init.
16280         (libnss_db-routines): Add db-init.
16281         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16282         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16283         * nss/nss_db/db-init.c: New file.
16284         * nss/nss_files/files-init.c: New file.
16285         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16286         __nss_lookup_function.
16287         (__nss_lookup_function): Call nss_load_library.
16288         (nss_load_all_libraries): New function.
16289         (__nss_disable_nscd): Take parameter with callback function for files
16290         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16291         used for the cached services.
16292         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16293         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16294         options for features to all the files in nscd.
16295
16296         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16297
16298 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16299
16300         * csu/elf-init.c (__libc_csu_init): Comment typo.
16301
16302 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16303
16304         * po/pl.po: Update from translation team.
16305         * po/ja.po: Likewise.
16306         * po/ru.po: Likewise.
16307         * po/ko.po: Likewise.
16308         * po/fr.po: Likewise.
16309
16310 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16311
16312         * configure.in (.ctors/.dtors header and trailer check):
16313         Use an empirical test on a built program.
16314         * configure: Regenerated.
16315
16316         * configure.in (-z relro check): Use an empirical test on a built DSO.
16317         Detect, but do not require, on ia64.
16318         * configure: Regenerated.
16319
16320         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16321         Update tests that use readelf to use $READELF instead.
16322         * configure: Regenerated.
16323
16324 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16325
16326         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16327         if the result is not used.
16328
16329 2011-07-05  Andreas Jaeger  <aj@suse.de>
16330
16331         [BZ#9696]
16332         * stdlib/tst-strtod.c: Add testcase.
16333
16334 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16335
16336         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16337         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16338         The latter has a higher limit.  Take additional parameter to pass to
16339         the new function.
16340         (__pathconf): Pass file to __statfs_link_max.
16341         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16342         __statfs_link_max.
16343         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16344         __statfs_link_max.
16345
16346         [BZ #12868]
16347         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16348         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16349         Handle Lustre.
16350         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16351         (__statfs_filesize_max): Likewise.
16352         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16353
16354 2011-07-05  Andreas Jaeger  <aj@suse.de>
16355
16356         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16357
16358 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16359
16360         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16361         `status' variable.
16362         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16363         Likewise.
16364
16365 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16366
16367         * Makefile (strop-tests): Add strncat.
16368         * string/test-strncat.c: New file.
16369
16370 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16371
16372         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16373
16374 2011-06-21  Andreas Jaeger  <aj@suse.de>
16375
16376         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16377         Copy rule from iconvdata/Makefile.
16378
16379 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16380
16381         [BZ #12922]
16382         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16383         but no long options are defined, just return 'W'.
16384
16385 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16386
16387         [BZ #9696]
16388         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16389
16390 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16391
16392         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16393         netgroups to read.
16394         (innetgr): Likewise.
16395
16396 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16397
16398         * config.make.in (install_root): Default to $(DESTDIR).
16399
16400 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16401
16402         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16403
16404 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16405
16406         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16407
16408         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16409         containing directory rather than embedding absolute directory names.
16410
16411         * scripts/check-local-headers.sh: Rewritten using awk.
16412         Match by word, not by line.  Print error messages for matches.
16413         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16414
16415         * Makerules [shlib-lds-flags empty]:
16416         ($(common-objpfx)libc_pic.opts): New target.
16417         ($(common-objpfx)libc_pic.os.clean): New target.
16418         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16419
16420         * config.make.in (OBJCOPY): New variable.
16421         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16422         * configure: Regenerated.
16423
16424         * config.make.in (use-default-link): New variable.
16425         * configure.in (use_default_link): Grok --with-default-link to set it.
16426         * configure: Regenerated.
16427         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16428         (shlib-lds, shlib-lds-flags): Define to empty.
16429
16430         * Makerules (shlib-lds): New variable.
16431         (shlib-lds-flags): New variable.
16432         (build-shlib, build-moduile, build-module-asneeded): Use it.
16433         ($(common-objpfx)libc.so): Use $(shlib-lds).
16434         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16435         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16436
16437         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16438         DT_FLAGS/DT_FLAGS_1 with zero flags.
16439
16440         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16441         linker script munging.
16442
16443 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16444
16445         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16446         as 128-bit value.
16447         * crypt/sha512.c (sha512_process_block): Perform total addition using
16448         128-bit if possible.
16449         (__sha512_finish_ctx): Likewise.
16450         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16451         as 64-bit value.
16452         * crypt/sha256.c (SWAP64): Define.
16453         (sha256_process_block): Perform total addition using 64-bit if
16454         possible.
16455         (__sha256_finish_ctx): Likewise.
16456
16457 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16458
16459         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16460         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16461         * nscd/hstcache.c (cache_addhst): Likewise.
16462         * nscd/grpcache.c (cache_addgr): Likewise.
16463         * nscd/aicache.c (addhstaiX): Likewise
16464         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16465
16466 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16467
16468         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16469         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16470         * nscd/hstcache.c (cache_addhst): Likewise.
16471         * nscd/grpcache.c (cache_addgr): Likewise.
16472         * nscd/aicache.c (addhstaiX): Likewise
16473
16474 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16475
16476         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16477         domain only when needed.
16478
16479 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16480
16481         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16482         is always restored.
16483
16484 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16485
16486         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16487         are re-adding the entry.
16488         * nscd/servicescache.c (cache_addserv): Likewise.
16489
16490 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16491
16492         * sysdeps/generic/dl-irel.h: fix protection against multiple
16493         inclusions.
16494         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16495
16496 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16497
16498         [BZ #12935]
16499         * malloc/memusage.sh: Fix quoting in message.
16500         * debug/xtrace.sh: Likewise.
16501
16502         * configure.in: Remove support for --experimental-malloc option, make
16503         it the default.
16504         * config.make.in: Likewise.
16505         * malloc/Makefile: Likewise.
16506
16507 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16508
16509         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16510         two-byte characters.
16511
16512 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16513
16514         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16515         AC_CACHE_CHECK invocation.
16516         * configure: Regenerated.
16517
16518         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16519
16520 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16521
16522         [BZ #12350]
16523         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16524         bit from old_res_options.
16525
16526         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16527
16528         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16529         value type for setfct.
16530
16531 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16532
16533         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16534         __gettimeofday instead of gettimeofday.
16535
16536 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16537
16538         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16539
16540 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16541
16542         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16543
16544         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16545         info.
16546
16547 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16548
16549         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16550         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16551         strcpy-sse2-unaligned strncpy-sse2-unaligned
16552         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16553         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16554         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16555         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16556         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16557         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16558         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16559         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16560         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16561         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16562         (STRCPY): Support SSE2 and SSSE3 versions.
16563
16564 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16565
16566         [BZ #12874]
16567         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16568         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16569         kernels which artificially limit size of requests.
16570
16571 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16572
16573         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16574         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16575         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16576         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16577         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16578         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16579         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16580         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16581         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16582         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16583         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16584         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16585         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16586         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16587         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16588         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16589         Enable unaligned load optimization for Intel Core i3, i5 and i7
16590         processors.
16591         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16592         Define.
16593         (index_Fast_Unaligned_Load): Define.
16594         (HAS_FAST_UNALIGNED_LOAD): Define.
16595
16596 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16597
16598         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16599
16600 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16601
16602         [BZ #12907]
16603         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16604         until it is clear that the information is realy needed.
16605         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16606
16607 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16608
16609         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16610
16611 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16612
16613         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16614         /sys/devices/system/cpu/online if it is usable.
16615
16616         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16617         reading the information from the /proc filesystem to once a second.
16618
16619 2011-06-21  Andreas Jaeger  <aj@suse.de>
16620
16621         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16622         NULL after inclusion of kernel headers.
16623
16624 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16625
16626         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16627         calls to internal_setent.
16628
16629         [BZ #12885]
16630         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16631         addresses using gethostbyname4_r ignore IPv4 addresses.
16632
16633         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16634         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16635
16636         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16637
16638 2011-06-20  David S. Miller  <davem@davemloft.net>
16639
16640         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16641         inclusions.
16642         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16643
16644         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16645         (elf_irel): Use it.
16646         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16647         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16648         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16649         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16650         * sysdeps/x86_64/dl-irel.h: Likewise.
16651
16652         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16653         * elf/dl-sym.c: Likewise.
16654
16655 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16656
16657         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16658         need to dereference resplen2.
16659
16660 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16661
16662         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16663
16664 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16665
16666         * Makeconfig: Define vardbdir and inst_vardbdir.
16667         * nss/Makefile: Add rules to install db-Makefile.
16668
16669         * nss/nss_db/db-XXX.c: Cleanup.
16670
16671         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16672         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16673         GLIBC_PRIVATE.
16674         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16675         * nss/makedb.c: Implement -g option to specify that value strings
16676         are generated and should not be added to table iterated over for
16677         get*ent calls.
16678         * nss/nss_db/db-initgroups.c: New file.
16679
16680         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16681         interface.
16682
16683         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16684         (internal_getgrouplist): Adjust to name change.
16685         Update use_initgroups_entry if this is not the first call.
16686         * nss/databases.def: Add initgroups entry.
16687
16688         * nss/makedb.c (compute_tables): Check result of multiple hash table
16689         sizes to minimize maximum chain length.
16690
16691 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16692
16693         * Versions.def: Add entry for libnss_db.
16694         * shlib-versions: Likewise.
16695         * nss/Makefile: Add rules to build libnss_db.
16696         * nss/Versions: Add libnss_db information.  Organize libnss_files
16697         entries better.
16698         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16699         makedb progra.  Some minor improvements to generate smaller files.
16700         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16701         here from...
16702         * nss/makedb.c: ...here.
16703         Improve database format to be smaller and require less memory at
16704         runtime.
16705         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16706         db anymore.
16707         * nss/nss_db/db-netgrp.c: Likewise.
16708         * nss/nss_db/db-open.c: Likewise.
16709         * nss/nss_files/flies-XXX.x: Adjust comments.
16710         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16711         * nss/nss_files/files-grp.c: Likewise.
16712         * nss/nss_files/files-hosts.c: Likewise.
16713         * nss/nss_files/files-network.c: Likewise.
16714         * nss/nss_files/files-proto.c: Likewise.
16715         * nss/nss_files/files-pwd.c: Likewise.
16716         * nss/nss_files/files-rpc.c: Likewise.
16717         * nss/nss_files/files-service.c: Likewise.
16718         * nss/nss_files/files-sgrp.c: Likewise.
16719         * nss/nss_files/files-spwd.c: Likewise.
16720         * nss/nss_db/db-alias.c: Removed.
16721         * nss/nss_db/dummy-db.h: Removed.
16722
16723 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16724
16725         * nss/makedb.c: Rewritten to not use database library.
16726         * nss/Makefile: Update to build new makedb program.
16727
16728 2011-06-14  Andreas Jaeger  <aj@suse.de>
16729
16730         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16731         memset declaration.
16732
16733 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16734
16735         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16736         tmpbuf.
16737
16738 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16739
16740         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16741         * elf/Makefile ($(objpfx)ld.so): Likewise.
16742
16743         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16744         Don't list ld.so twice in dependencies.
16745
16746         * posix/bug-regex31.c: Include <stdlib.h>.
16747
16748         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16749
16750         * nis/nss_compat/compat-spwd.c
16751         (getspent_next_nss_netgr): Remove unused variable.
16752         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16753
16754         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16755         nonmembers" output to use the right array.
16756
16757         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16758
16759         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16760
16761         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16762         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16763         * catgets/gencat.c (read_input_file): Likewise.
16764         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16765
16766         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16767         variable definition inside #if's controlling its use.
16768
16769         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16770
16771         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16772
16773         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16774
16775         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16776         unreachable code.
16777
16778         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16779
16780         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16781         * configure: Regenerated.
16782
16783         * Makerules: Revert last change.
16784         * elf/Makefile: Likewise.
16785
16786 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16787
16788         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16789         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16790         (reloc-link): Likewise.
16791
16792 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16793
16794         * elf/Makefile: Add rules to build pldd.
16795         * elf/pldd.c: New file.
16796         * elf/pldd-xx.c: New file.
16797
16798 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16799
16800         * version.h: Update for 2.15 development version.
16801
16802 2011-06-07  David S. Miller  <davem@davemloft.net>
16803
16804         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16805         ifuncs.
16806         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16807         elf_machine_lazy_rel): Likewise.
16808         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16809         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16810         elf_machine_lazy_rel): Likewise.
16811         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16812         dl_hwcap via passed in argument.
16813         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16814         Likewise.
16815
16816 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16817
16818         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16819
16820 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16821
16822         [BZ #12849]
16823         * manual/fdl-1.1.texi: New file, verbatim from:
16824         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16825         * manual/lgpl-2.1.texi: New file, verbatim from:
16826         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16827         * manual/Makefile (licenses): New variable, list those new file names.
16828         (texis): Use it.
16829         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16830
16831         * manual/fdl.texi: File removed.
16832         * manual/lesser.texi: File removed.
16833         * manual/libc.texinfo (Copying, Documentation License):
16834         Use new @include file names, put @appendix directive before @include.
16835
16836 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16837
16838         [BZ #12841]
16839         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16840         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16841         (mq_open): Add __NTH.
16842
16843 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16844
16845         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16846         Assume Intel Core i3/i5/i7 processor if AVX is available.
16847
16848 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16849
16850         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16851         typo.
16852
16853 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16854
16855         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16856         memory.  Use alloca_account.  Fix memory leak when retrying.
16857
16858 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16859
16860         * version.h (RELEASE): Bump for 2.14 release.
16861         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16862
16863         * config.make.in (RANLIB): Remove entry.
16864
16865 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16866
16867         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16868         (libc.pot): Work around missing support for .ksh extension in xgettext.
16869
16870         [BZ #12684]
16871         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16872         if both request failed.
16873         (send_dg): In case of server errors clear resplen or *resplen2.
16874
16875         [BZ #12454]
16876         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16877         when there are multiple maps.
16878         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16879         (_dl_fini): Remove test here.
16880
16881         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16882
16883 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16884
16885         [BZ #12350]
16886         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16887         bit from old_res_options.
16888         (gaih_inet): Likewise.
16889
16890         [BZ #11099]
16891         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16892         as signed.
16893
16894         * resolv/res_init.c (res_setoptions): Make the code more compact.
16895
16896         [BZ #11558]
16897         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16898         set RES_USEVC.
16899
16900         [BZ #11634]
16901         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16902
16903         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16904
16905         [BZ #11781]
16906         * malloc/malloc.h: Declare malloc hook variables as volatile.
16907
16908         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16909         in last patch.
16910
16911         [BZ #11799]
16912         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16913         raise in the comment.
16914         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16915         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16916         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16917
16918 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
16919
16920         [BZ #12811]
16921         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
16922         grow the buffers more if it already has to be sufficient.
16923         (build_wcs_upper_buffer): Likewise.
16924         * posix/regexec.c (check_matching): Likewise.
16925         (clean_state_log_if_needed): Likewise.
16926         (extend_buffers): Don't enlarge buffers beyond size of the input
16927         buffer.
16928         Patches mostly by Emil Wojak <emil@wojak.eu>.
16929         * posix/bug-regex32.c: New file.
16930         * posix/Makefile (tests): Add bug-regex32.
16931
16932         * locale/findlocale.c (_nl_find_locale): Return right away if
16933         _nl_explode_name failed.
16934         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
16935
16936         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
16937
16938         * debug/xtrace.sh: Unify messages.
16939         * malloc/memusage.sh: Likewise.
16940
16941         [BZ #12813]
16942         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
16943         time symbol from vDSO.  Substitute with vsyscall if not available.
16944         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
16945         __vdso_time.
16946
16947         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
16948         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
16949         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
16950         Add sendmmsg and internal_sendmmsg.
16951         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
16952         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
16953         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
16954
16955         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
16956         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
16957         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
16958
16959 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
16960
16961         [BZ #12813]
16962         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
16963         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
16964         available.
16965         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
16966         __vdso_getcpu.
16967
16968         [BZ #12814]
16969         * iconvdata/Makefile (tests): Add bug-iconv9.
16970         * iconvdata/bug-iconv9.c: New file.
16971
16972 2011-05-27  Andreas Schwab  <schwab@redhat.com>
16973
16974         [BZ #12814]
16975         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
16976
16977 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16978
16979         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16980         (struct user_regs_struct): Change intcs field back to cs.
16981
16982 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
16983
16984         * po/ja.po: Update from translation team.
16985
16986 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
16987
16988         [BZ #12795]
16989         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
16990         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
16991
16992 2011-05-20  Andreas Schwab  <schwab@redhat.com>
16993
16994         * stdlib/longlong.h: Update from GCC.
16995
16996 2011-05-23  Andreas Schwab  <schwab@redhat.com>
16997
16998         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
16999         parameter name.
17000         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17001         Add parameter name.
17002         (__sysconf): Pass it down.
17003
17004 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17005
17006         [BZ #12671]
17007         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17008         some situations.
17009         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17010         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17011         add in in __libc_use_alloca calls.  Adjust callers.
17012         (glob): Use malloc in some situations.
17013
17014         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17015         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17016         pltexit.
17017
17018 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17019
17020         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17021         and CLOCK_BOOTTIME_ALARM.
17022
17023         [BZ #12782]
17024         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17025         is returned.
17026
17027         * string/_strerror.c (__strerror_r): Print negative errors as signed
17028         numbers.
17029
17030         [BZ #12777]
17031         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17032         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17033         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17034
17035         * configure.in: Fix typo in redirection and correct removal of test
17036         files in two cases.
17037
17038         [BZ #12788]
17039         * locale/setlocale.c (new_composite_name): Fix test to check for
17040         identical name of all categories.
17041
17042         [BZ #12792]
17043         * libio/filedoalloc.c (local_isatty): New function.
17044         (_IO_file_doallocate): Use local_isatty.
17045         * stdio-common/perror.c (perror): In case a new stream is used
17046         forward the stream error.
17047         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17048         error flag.
17049
17050 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17051
17052         [BZ #11869]
17053         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17054         alloca.
17055         * include/alloca.h (extend_alloca_account): Define.
17056
17057         [BZ #11857]
17058         * posix/regex.h: Fix comments with documentation of user-accessible
17059         fields after compilation and describe correct free'ing of pattern
17060         after re_compile_pattern.
17061         Patch by Reuben Thomas <rrt@sc3d.org>.
17062
17063 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17064
17065         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17066         and -mno-altivec to prevent the compiler from using Altivec and/or
17067         VSX instructions when the corresponding registers are not available.
17068
17069 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17070
17071         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17072
17073 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17074
17075         * libio/freopen.c (freopen): Use __dup2, not dup2.
17076         * libio/freopen64.c (freopen64): Likewise.
17077
17078 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17079
17080         [BZ #12775]
17081         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17082         * math/Makefile (tests): Add test-powl.
17083         (CFLAGS-test-powl.c): Define.
17084         * math/test-powl.c: New file.
17085
17086 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17087
17088         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17089
17090 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17091
17092         [BZ #11837]
17093         * iconvdata/gb18030.c: Update to GB18020-2005.
17094
17095 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17096
17097         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17098         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17099         Patch by Aharon Robbins <arnold@skeeve.com>.
17100
17101         [BZ #11892]
17102         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17103         on the stack.
17104
17105         [BZ #11895]
17106         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17107         through underflows.
17108
17109         [BZ #12766]
17110         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17111         point to strings before performing equality test for error_one_per_line
17112         mode.
17113
17114         [BZ #11697]
17115         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17116
17117         [BZ #11820]
17118         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17119         (struct user_fpregs_struct): Avoid __uint*_t types.
17120
17121         [BZ #6420]
17122         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17123         symbol info.  Use it instead of calling _dl_addr locally.
17124         (lock_and_info): New function.
17125         (tr_freehook): Call lock_and_info and pass symbol info as additional
17126         parameter to tr_where.
17127         (tr_mallochook): Likewise.
17128         (tr_reallochook): Likewise.
17129         (tr_memalignhook): Likewise.
17130
17131         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17132         used and couldn't be at all thread-safe.
17133
17134 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17135
17136         * libio/freopen.c (freopen): Don't close old file descriptor
17137         before the new one is opened.  Instead dup the new file descriptor
17138         to the old one after the new stream is created.
17139         * libio/freopen64.c (freopen64): Likewise.
17140         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17141         * libio/fileops.c (_IO_new_file_close_it): Handle new
17142         _IO_FLAGS2_NOCLOSE flag.
17143         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17144         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17145         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17146         _IO_FLAGS2_NOCLOSE flag.
17147         * include/unistd.h: Add hidden_proto for dup3.
17148         Define __have_dup3.
17149         * io/dup3.c: Define hidden symbol.
17150         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17151
17152         [BZ #7101]
17153         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17154         when an incomplete long option is used.
17155         * posix/tst-getopt_long1.c: New file.
17156         * posix/Makefile (tests): Add tst-getopt_long1.
17157
17158         [BZ #10138]
17159         * scripts/config.guess: Update from autoconf-2.68.
17160         * scripts/config.sub: Likewise.
17161
17162         [BZ #10157]
17163         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17164         tests into ...
17165         (has_cpuclock): ...this.  New function.
17166         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17167         macro here based on has_cpuclock code.
17168
17169         [BZ #10149]
17170         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17171         First byte (not low byte) is now always NUL.
17172         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17173
17174         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17175         Use non-cancelable interfaces.
17176
17177         [BZ #9809]
17178         * locale/iso-639.def: Add entry for Sorani.
17179
17180         [BZ #11901]
17181         * include/stdlib.h: Move include protection to the right place.
17182         Define abort_msg_s.  Declare __abort_msg with it.
17183         * stdlib/abort.c (__abort_msg): Adjust type.
17184         * assert/assert.c (__assert_fail_base): New function.  Majority
17185         of code from __assert_fail.  Allocate memory for __abort_msg with
17186         mmap.
17187         (__assert_fail): Now call __assert_fail_base.
17188         * assert/assert-perr.c: Remove bulk of implementation.  Use
17189         __assert_fail_base.
17190         * include/assert.hL Declare __assert_fail_base.
17191         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17192         mmap.
17193         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17194
17195 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17196
17197         [BZ #11952]
17198         [BZ #12453]
17199         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17200         until all modules are registered in the DTV.
17201         * elf/Makefile: Add rules to build and run tst-tls19.
17202         * elf/tst-tls19.c: New file.
17203         * elf/tst-tls19mod1.c: New file.
17204         * elf/tst-tls19mod2.c: New file.
17205         * elf/tst-tls19mod3.c: New file.
17206         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17207
17208         [BZ #12083]
17209         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17210         correctly.
17211
17212         [BZ #12601]
17213         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17214         two-byte sequence errors.
17215         * iconvdata/Makefile (tests): Add bug-iconv8.
17216         * iconvdata/bug-iconv8.c: New file.
17217
17218         [BZ #12626]
17219         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17220         buf2 definition.
17221
17222         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17223
17224         [BZ #12432]
17225         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17226         (dummy_getcfa): New function.
17227         (init): Get _Unwind_GetCFA address, use dummy if not found.
17228         (backtrace_helper): In recursion check, also check whether CFA changes.
17229         (__backtrace): Completely initialize arg.
17230
17231         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17232         storing incomplete byte sequence in state object.  Avoid testing for
17233         guaranteed too small input if we know there is enough data available.
17234
17235 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17236
17237         * Makeconfig (+link-pie): Indent.
17238         * Rules (binaries-pie): Define if $(have-fpie) and
17239         $(build-shared).
17240         (binaries-shared): Also filter out $(binaries-pie).
17241         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17242         * nscd/Makefile (others-pie): Add nscd.
17243         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17244         ($(objpfx)nscd): Remove command override.
17245         * login/Makefile (others-pie): Add pt_chown.
17246         ($(objpfx)pt_chown): Remove command override.
17247         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17248         remove command overrides.
17249
17250 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17251
17252         * libio/tst_putwc.c: Fix error messages.
17253
17254         [BZ #12724]
17255         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17256         currently writing and seek to current position when not.
17257         * libio/Makefile (tests): Add bug-fclose1.
17258         * libio/bug-fclose1.c: New file.
17259
17260 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17261
17262         [BZ #12511]
17263         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17264         don't set DF_1_NODELETE here.
17265         (do_lookup_x): When entering new entry test for copy relocation
17266         and if necessary set DF_1_NODELETE flag.
17267         * elf/tst-unique4.cc: New file.
17268         * elf/tst-unique4.h: New file.
17269         * elf/tst-unique4lib.cc: New file.
17270         * elf/Makefile: Add rules to build and run tst-unique4.
17271         Patch by Piotr Bury <pbury@goahead.com>.
17272
17273 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17274
17275         [BZ #12052]
17276         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17277
17278         [BZ #12625]
17279         * misc/mntent_r.c (addmntent): Flush the stream after the output
17280
17281         [BZ #12393]
17282         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17283         (is_trusted_path_normalize): Skip initial colon.  Append slash
17284         to empty buffer.  Duplicate is_trusted_path code but allow
17285         constructed patch to be prefix.
17286         (is_dst): Allow $ORIGIN followed by /.
17287         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17288         Correct testing of result of is_trusted_path_normalize
17289         (decompose_rpath): Fix warning.
17290
17291 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17292
17293         [BZ #11257]
17294         * grp/initgroups.c (internal_getgrouplist): When we found the service
17295         list through the initgroups entry in nsswitch.conf do not always
17296         continue on a successful lookup.  Don't always use the
17297         __nss_group_database value if it is set.
17298         * nss/nsswitch.conf (initgroups): Change action for successful db
17299         lookup to continue for compatibility.
17300
17301 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17302
17303         [BZ #11532]
17304         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17305         and CP774 modules.
17306         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17307         and CP774 modules.
17308         * iconvdata/tst-tables.sh: Likewise.
17309         * iconvdata/cp770.c: New file.
17310         * iconvdata/cp771.c: New file.
17311         * iconvdata/cp772.c: New file.
17312         * iconvdata/cp773.c: New file.
17313         * iconvdata/cp774.c: New file.
17314         * iconvdata/testdata/CP770: New file.
17315         * iconvdata/testdata/CP770..UTF8: New file.
17316         * iconvdata/testdata/CP771: New file.
17317         * iconvdata/testdata/CP771..UTF8: New file.
17318         * iconvdata/testdata/CP772: New file.
17319         * iconvdata/testdata/CP772..UTF8: New file.
17320         * iconvdata/testdata/CP773: New file.
17321         * iconvdata/testdata/CP773..UTF8: New file.
17322         * iconvdata/testdata/CP774: New file.
17323         * iconvdata/testdata/CP774..UTF8: New file.
17324
17325         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17326         END CHARMAP line.
17327         * iconvdata/gen-8bit-gap.sh: Likewise.
17328         * iconvdata/gen-8bit.sh: Likewise.
17329
17330         * locale/iso-639.def: Add ary entry.
17331
17332         [BZ #11258]
17333         * locale/C-translit.h.in: Add U20A1 transliteration.
17334
17335         [BZ #12178]
17336         * locale/iso-639.def: Add wae entry.
17337         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17338
17339         [BZ #12545]
17340         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17341         for n.
17342
17343         [BZ #12711]
17344         * locale/C-translit.h.in: Add entry for U20B9.
17345         Patch by pravin.d.s@gmail.com.
17346
17347 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17348
17349         [BZ #12713]
17350         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17351         ENAMETOOLONG use generic getcwd.
17352         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17353         in rtld.  Use *stat64.
17354         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17355         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17356         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17357         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17358         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17359         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17360         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17361         __fstatat64 macros.
17362         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17363         * dirent/rewinddir.c: Add libc_hidden_def.
17364         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17365         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17366
17367         * include/dirent.h (__alloc_dir): Add flags parameter.
17368         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17369         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17370         __alloc_dir.
17371         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17372         from fdopendir if O_CLOEXEC is already set.
17373
17374 2011-03-15  Alan Modra  <amodra@gmail.com>
17375
17376         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17377         l_tls_firstbyte_offset non-zero.  Save padding offset in
17378         l_tls_firstbyte_offset for later use.
17379         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17380         freeing static tls block.
17381
17382 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17383
17384         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17385         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17386         being defined by the kernel headers.
17387
17388 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17389
17390         [BZ #12734]
17391         * resolv/resolv.h: Define RES_NOTLDQUERY.
17392         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17393         no-tld-query and set RES_NOTLDQUERY.
17394         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17395         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17396         modern BIND to search name as TLD unless forbidden.
17397
17398 2011-05-07  Petr Baudis  <pasky@suse.cz>
17399             Ulrich Drepper  <drepper@gmail.com>
17400
17401         [BZ #12393]
17402         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17403         (is_trusted_path): ...to here.
17404         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17405         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17406         using is_trusted_path_normalize() in setuid scripts.
17407
17408 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17409
17410         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17411         __BEGIN/__END_DECLS.
17412
17413 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17414
17415         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17416         NSS_STATUS_NOTFOUND if no record was found.
17417
17418 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17419
17420         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17421         (headers-not-in-tirpc): Remove rpc/netdb.h
17422         * resolv/netdb.h: Revert last change.
17423
17424 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17425
17426         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17427         circular dependency between libgcc.a and libc.a.
17428
17429 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17430
17431         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17432         * nis/Makefile: Don't install rpcsvc/*.
17433         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17434         instead of <rpc/types.h>.
17435         (MAXHOSTNAMELEN): Define.
17436
17437 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17438
17439         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17440
17441 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17442
17443         [BZ #12714]
17444         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17445         gethostbyname4_r when IPv6 results are possible.
17446
17447 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17448
17449         [BZ #12723]
17450         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17451         _PC_PIPE_BUF handling.
17452
17453 2011-04-30  Bruno Haible  <bruno@clisp.org>
17454
17455         [BZ #12717]
17456         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17457         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17458         to 'int'.
17459         * inet/getnameinfo.c (getnameinfo): Likewise.
17460
17461 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17462
17463         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17464         to groups setting in database lookup.
17465         * nss/nsswitch.conf: Add initgroups entry.
17466
17467 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17468
17469         [BZ #12685]
17470         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17471         mode string.
17472         Patch by Eric Blake <eblake@redhat.com>.
17473
17474 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17475
17476         * sunrpc/Makefile (need-export-routines): Add svc_run.
17477         (routines): Remove svc_run.
17478         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17479         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17480         * sunrpc/svc_run.c (svc_run): Likewise.
17481         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17482
17483 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17484
17485         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17486         problem in reallocation in last patch.
17487
17488 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17489
17490         * sunrpc/Makefile: Move inclusion of Rules.
17491
17492 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17493
17494         * nss/nss_files/files-initgroups.c: New file.
17495         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17496         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17497         _nss_files_initgroups_dyn.
17498
17499 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17500
17501         * elf/elf.h (R_ARM_IRELATIVE): Define.
17502
17503 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17504
17505         * po/ru.po: Update from translation team.
17506
17507 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17508
17509         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17510         dependencies.
17511
17512 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17513
17514         [BZ #12653]
17515         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17516         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17517         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17518         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17519         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17520
17521 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17522
17523         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17524         differing bytes.
17525         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17526         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17527         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17528
17529 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17530
17531         [BZ #12420]
17532         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17533         storing it.
17534         * stdlib/bug-getcontext.c: New file.
17535         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17536
17537 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17538
17539         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17540         instructions into .machine "z9-109".
17541         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17542         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17543
17544 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17545
17546         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17547         between environment variables and auxiliary vector.
17548
17549 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17550
17551         * Makefile: Add rules to build linkobj/libc.so.
17552         * include/libc-symbols.h: Define libc_hidden_nolink.
17553         * include/rpc/auth.h: Mark functions which are to be hidden.
17554         * include/rpc/auth_des.h: Likewise.
17555         * include/rpc/auth_unix.h: Likewise.
17556         * include/rpc/clnt.h: Likewise.
17557         * include/rpc/des_crypt.h: Likewise.
17558         * include/rpc/key_prot.h: Likewise.
17559         * include/rpc/pmap_clnt.h: Likewise.
17560         * include/rpc/pmap_prot.h: Likewise.
17561         * include/rpc/pmap_rmt.h: Likewise.
17562         * include/rpc/rpc_msg.h: Likewise.
17563         * include/rpc/svc.h: Likewise.
17564         * include/rpc/svc_auth.h: Likewise.
17565         * include/rpc/xdr.h: Likewise.
17566         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17567         * nss/Makefile: Likewise.
17568         * sunrpc/Makefile: Don't install headers.  Build library with normal
17569         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17570         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17571         for the compat linking library.  Remove use of INTDEF/INTUSE.
17572         * sunrpc/auth_none.c: Likewise.
17573         * sunrpc/auth_unix.c: Likewise.
17574         * sunrpc/authdes_prot.c: Likewise.
17575         * sunrpc/authuxprot.c: Likewise.
17576         * sunrpc/clnt_gen.c: Likewise.
17577         * sunrpc/clnt_perr.c: Likewise.
17578         * sunrpc/clnt_raw.c: Likewise.
17579         * sunrpc/clnt_simp.c: Likewise.
17580         * sunrpc/clnt_tcp.c: Likewise.
17581         * sunrpc/clnt_udp.c: Likewise.
17582         * sunrpc/clnt_unix.c: Likewise.
17583         * sunrpc/des_crypt.c: Likewise.
17584         * sunrpc/des_soft.c: Likewise.
17585         * sunrpc/get_myaddr.c: Likewise.
17586         * sunrpc/key_call.c: Likewise.
17587         * sunrpc/key_prot.c: Likewise.
17588         * sunrpc/netname.c: Likewise.
17589         * sunrpc/pm_getmaps.c: Likewise.
17590         * sunrpc/pm_getport.c: Likewise.
17591         * sunrpc/pmap_clnt.c: Likewise.
17592         * sunrpc/pmap_prot.c: Likewise.
17593         * sunrpc/pmap_prot2.c: Likewise.
17594         * sunrpc/pmap_rmt.c: Likewise.
17595         * sunrpc/publickey.c: Likewise.
17596         * sunrpc/rpc_cmsg.c: Likewise.
17597         * sunrpc/rpc_common.c: Likewise.
17598         * sunrpc/rpc_dtable.c: Likewise.
17599         * sunrpc/rpc_prot.c: Likewise.
17600         * sunrpc/rpc_thread.c: Likewise.
17601         * sunrpc/rtime.c: Likewise.
17602         * sunrpc/svc.c: Likewise.
17603         * sunrpc/svc_auth.c: Likewise.
17604         * sunrpc/svc_authux.c: Likewise.
17605         * sunrpc/svc_raw.c: Likewise.
17606         * sunrpc/svc_run.c: Likewise.
17607         * sunrpc/svc_simple.c: Likewise.
17608         * sunrpc/svc_tcp.c: Likewise.
17609         * sunrpc/svc_udp.c: Likewise.
17610         * sunrpc/svc_unix.c: Likewise.
17611         * sunrpc/svcauth_des.c: Likewise.
17612         * sunrpc/xcrypt.c: Likewise.
17613         * sunrpc/xdr.c: Likewise.
17614         * sunrpc/xdr_array.c: Likewise.
17615         * sunrpc/xdr_float.c: Likewise.
17616         * sunrpc/xdr_intXX_t.c: Likewise.
17617         * sunrpc/xdr_mem.c: Likewise.
17618         * sunrpc/xdr_rec.c: Likewise.
17619         * sunrpc/xdr_ref.c: Likewise.
17620         * sunrpc/xdr_sizeof.c: Likewise.
17621         * sunrpc/xdr_stdio.c: Likewise.
17622
17623 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17624
17625         [BZ #12650]
17626         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17627         * sysdeps/ia64/dl-tls.h: Likewise.
17628         * sysdeps/powerpc/dl-tls.h: Likewise.
17629         * sysdeps/s390/dl-tls.h: Likewise.
17630         * sysdeps/sh/dl-tls.h: Likewise.
17631         * sysdeps/sparc/dl-tls.h: Likewise.
17632         * sysdeps/x86_64/dl-tls.h: Likewise.
17633         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17634
17635 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17636
17637         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17638         rpath element also skip the following colon.
17639         (expand_dynamic_string_token): Add is_path parameter and pass
17640         down to DL_DST_REQUIRED and _dl_dst_substitute.
17641         (decompose_rpath): Call expand_dynamic_string_token with
17642         non-zero is_path.  Ignore empty rpaths.
17643         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17644         with zero is_path.
17645
17646 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17647
17648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17649         Make cancelable.
17650
17651 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17652
17653         [BZ #12655]
17654         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17655         Patch by Filipe David Manana <fdmanana@apache.org>.
17656
17657 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17658
17659         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17660         Maintain aligned stack.
17661         (CHECK_RSP): Remove unused macro.
17662
17663 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17664
17665         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17666         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17667
17668 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17669
17670         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17671
17672         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17673
17674 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17675
17676         [BZ #12518]
17677         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17678         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17679         * sysdeps/x86_64/memmove.c: New file.
17680         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17681         (memcpy): Renamed to ...
17682         (__new_memcpy): This.
17683         (memcpy): Provide GLIBC_2_14 memcpy.
17684         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17685         (memcpy): Provide GLIBC_2_2_5 memcpy.
17686
17687 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17688
17689         [BZ #12631]
17690         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17691
17692 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17693
17694         * misc/syncfs.c: New file.
17695         * misc/Makefile (routines): Add syncfs.
17696         * posix/unistd.h: Declare syncfs.
17697         * sysdeps/unix/syscalls.list: Add syncfs.
17698
17699 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17700
17701         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17702         open_by_handle_at.
17703         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17704         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17705         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17706         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17707         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17708         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17709         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17710
17711 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17712
17713         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17714         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17715         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17716         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17717         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17718         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17719         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17720
17721         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17722         sync_file_range.c with -fexceptions.
17723         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17724         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17725         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17726         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17727         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17728         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17729         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17730         sync_file_range as cancellation point
17731         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17732         now a wrapper around __call_sync_file_range with cancellation handling.
17733         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17734         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17735         function name to __call_sync_file_range.
17736         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17737         Add call_sync_file_range.
17738
17739 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17740
17741         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17742         bits/timex.h.
17743
17744 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17745
17746         * iconv/iconv.h: Fix typo in comment.
17747         * io/fcntl.h: Likewise.
17748         * libio/stdio.h: Likewise.
17749         * posix/spawn.h: Likewise.
17750         * posix/unistd.h: Likewise.
17751         * stdlib/stdlib.h: Likewise.
17752         * time/time.h: Likewise.
17753         * wcsmbs/wchar.h: Likewise.
17754
17755         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17756         open_by_handle): Add.
17757         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17758         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17759         Augment a few comments.
17760         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17761         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17762         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17763         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17764         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17765         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17766         open_by_handle.
17767
17768         * io/fcntl.h (AT_EMPTY_PATH): Define.
17769
17770 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17771
17772         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17773         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17774         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17775         to...
17776         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17777         * Versions.def: Add GLIBC_2.14.
17778         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17779         Export.
17780
17781 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17782
17783         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17784         round counter.
17785         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17786
17787 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17788
17789         [BZ #12597]
17790         * string/test-strncmp.c (do_page_test): New function.
17791         (check2): Likewise.
17792         (test_main): Call check2.
17793         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17794
17795 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17796
17797         [BZ #12587]
17798         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17799         Handle cache information in CPU leaf 4.
17800         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17801
17802 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17803
17804         [BZ #12583]
17805         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17806         character representation.
17807         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17808
17809 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17810
17811         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17812         END(__isnan) to END(__isnanf) to match function entry point/label
17813         EALIGN(__isnanf,...).
17814
17815 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17816
17817         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17818
17819 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17820
17821         [BZ #12510]
17822         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17823         copy from the symbol referenced in the relocation to initialize the
17824         used variable.
17825         Patch by Piotr Bury <pbury@goahead.com>.
17826         * elf/Makefile: Add rules to build and tst-unique3.
17827         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17828         * elf/tst-unique3.cc: New file.
17829         * elf/tst-unique3.h: New file.
17830         * elf/tst-unique3lib.cc: New file.
17831         * elf/tst-unique3lib2.cc: New file.
17832
17833         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17834
17835 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17836
17837         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17838         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17839         to _start.
17840
17841 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17842
17843         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17844         to-be-loaded object along a path to loader is ld.so.
17845
17846 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17847             Ulrich Drepper  <drepper@gmail.com>
17848
17849         * sysdeps/x86_64/memset.S: After aligning destination, code
17850         branches to different locations depending on the value of
17851         misalignment, when multiarch is enabled. Fix this.
17852
17853 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17854
17855         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17856         Set _x86_64_preferred_memory_instruction for AMD processsors.
17857         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17858         Set bit_Prefer_SSE_for_memop for AMD processors.
17859
17860 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17861
17862         * libio/fmemopen.c (fmemopen): Optimize a bit.
17863
17864 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17865
17866         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17867
17868 2011-03-03  Roland McGrath  <roland@redhat.com>
17869
17870         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17871
17872 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17873
17874         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17875         __bzero_ultra1 instead of __memset_ultra1.
17876
17877 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17878             Ulrich Drepper  <drepper@gmail.com>
17879
17880         [BZ #12509]
17881         * include/link.h (struct link_map): Add l_orig_initfini.
17882         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17883         returning unsuccessfully.
17884         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17885         close of a file loaded at startup, restore the original l_initfini
17886         list.
17887         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17888         list, store the pointer.
17889         * elf/Makefile ($(objpfx)noload-mem): New rule.
17890         (noload-ENV): Define.
17891         (tests): Add $(objpfx)noload-mem.
17892         * elf/noload.c: Include <memcheck.h>.
17893         (main): Call mtrace.  Close all opened handles.
17894
17895 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17896
17897         [BZ #12454]
17898         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17899         dependencies are missing.
17900
17901 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17902
17903         Fix __if_freereq crash: Unlike the generic version which uses free,
17904         Hurd needs munmap.
17905         * sysdeps/mach/hurd/ifreq.h: New file.
17906
17907 2011-01-27  Petr Baudis  <pasky@suse.cz>
17908             Ulrich Drepper  <drepper@gmail.com>
17909
17910         [BZ 12445]#
17911         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17912         to extend_alloca().
17913         * stdio-common/bug23.c: New file.
17914         * stdio-common/Makefile (tests): Add bug23.
17915
17916 2010-09-28  Andreas Schwab  <schwab@redhat.com>
17917             Ulrich Drepper  <drepper@gmail.com>
17918
17919         [BZ #12489]
17920         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
17921         before performing relro protection.  At old place add assertion
17922         to make sure nothing changed.
17923
17924 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
17925             Glauber de Oliveira Costa  <glommer@gmail.com>
17926
17927         * elf/elf.h: Add new ARM TLS relocs.
17928
17929 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
17930
17931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17932         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
17933         cast from r3.
17934         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
17935         'tests' variable.
17936         * sysdeps/wordsize-64/tst-writev.c: New file.
17937
17938 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
17939
17940         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
17941         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
17942         insns in _dl_start to prevent a TOC reference before relocs are
17943         resolved.
17944
17945 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
17946
17947         [BZ #12469]
17948         * Makeconfig: Remove RANLIB definition.
17949         * Makerules: Don't use RANLIB.
17950         * aclocal.m4: Remove ranlib test.
17951         * configure.in: No need to check for ranlib.
17952         * elf/rtld-Rules: Don't use RANLIB.
17953
17954 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17955
17956         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
17957         protection macro.
17958         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
17959         inclusion protection macro.
17960
17961         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
17962         SIGRTMIN and SIGRTMAX and print information in that case only when
17963         SIGRTMIN is defined.
17964
17965 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
17966
17967         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
17968         arginfo fn returning -1.
17969
17970         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
17971         and thousands string is zero terminated.
17972
17973 2011-02-03  Andreas Schwab  <schwab@redhat.com>
17974
17975         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
17976         sysdeps/unix/sysv/linux/bits/socket.h.
17977
17978 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17979
17980         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
17981         (__CPU_COUNT): Remove old macros.
17982         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
17983         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
17984         (__CPU_ALLOC, __CPU_FREE): Add macros.
17985         (__sched_cpualloc, __sched_cpufree): Add declarations.
17986
17987 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
17988
17989         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
17990         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
17991         * nscd/aicache.c (addhstaiX): Return timeout of added value.
17992         (readdhstai): Return value of addhstaiX call.
17993         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
17994         (addgrbyX): Return value returned by cache_addgr.
17995         (readdgrbyname): Return value returned by addgrbyX.
17996         (readdgrbygid): Likewise.
17997         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
17998         (addpwbyX): Return value returned by cache_addpw.
17999         (readdpwbyname): Return value returned by addhstbyX.
18000         (readdpwbyuid): Likewise.
18001         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18002         (addservbyX): Return value returned by cache_addserv.
18003         (readdservbyname): Return value returned by addservbyX:
18004         (readdservbyport): Likewise.
18005         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18006         (addhstbyX): Return value returned by cache_addhst.
18007         (readdhstbyname): Return value returned by addhstbyX.
18008         (readdhstbyaddr): Likewise.
18009         (readdhstbynamev6): Likewise.
18010         (readdhstbyaddrv6): Likewise.
18011         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18012         (readdinitgroups): Return value returned by addinitgroupsX.
18013         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18014         (prune_cache): Keep track of timeout value of re-added entries.
18015         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18016         * nscd/nscd.h: Adjust prototypes of readd* functions.
18017
18018 2011-02-04  Roland McGrath  <roland@redhat.com>
18019
18020         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18021         (nis_stats): Likewise.
18022         * nis/nis_modify.c (nis_modify): Likewise.
18023         * nis/nis_remove.c (nis_remove): Likewise.
18024         * nis/nis_add.c (nis_add): Likewise.
18025
18026         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18027
18028         * posix/fnmatch_loop.c: Add some consts.
18029
18030         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18031
18032 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18033
18034         [BZ #12460]
18035         * config.make.in (config-cflags-novzeroupper): Define.
18036         * configure.in: Substitute libc_cv_cc_novzeroupper.
18037         * elf/Makefile (AVX-CFLAGS): Define.
18038         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18039         (CFLAGS-tst-auditmod4a.c): Likewise.
18040         (CFLAGS-tst-auditmod4b.c): Likewise.
18041         (CFLAGS-tst-auditmod6b.c): Likewise.
18042         (CFLAGS-tst-auditmod6c.c): Likewise.
18043         (CFLAGS-tst-auditmod7b.c): Likewise.
18044         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18045
18046 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18047
18048         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18049         function to the callback.
18050         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18051
18052 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18053
18054         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18055         of errno.
18056
18057 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18058
18059         [BZ #11724]
18060         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18061         of constructors.
18062         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18063         of destructors.
18064         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18065
18066         [BZ #11724]
18067         * elf/Makefile: Add rules to build and run new test.
18068         * elf/tst-initorder.c: New file.
18069         * elf/tst-initorder.exp: New file.
18070         * elf/tst-initordera1.c: New file.
18071         * elf/tst-initordera2.c: New file.
18072         * elf/tst-initordera3.c: New file.
18073         * elf/tst-initordera4.c: New file.
18074         * elf/tst-initorderb1.c: New file.
18075         * elf/tst-initorderb2.c: New file.
18076         * elf/tst-order-a1.c: New file.
18077         * elf/tst-order-a2.c: New file.
18078         * elf/tst-order-a3.c: New file.
18079         * elf/tst-order-a4.c: New file.
18080         * elf/tst-order-b1.c: New file.
18081         * elf/tst-order-b2.c: New file.
18082         * elf/tst-order-main.c: New file.
18083         New test case by George Gensure <werkt0@gmail.com>.
18084
18085 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18086
18087         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18088         decoding ACE if AI_CANONIDN.
18089
18090 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18091
18092         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18093
18094 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18095
18096         * version.h (RELEASE): Bump for 2.13 release.
18097         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18098
18099         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18100
18101         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18102         MADV_NOHUGEPAGE.
18103         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18104         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18105         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18106         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18107         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18108         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18109
18110         * posix/getconf.c: Update copyright year.
18111         * catgets/gencat.c: Likewise.
18112         * csu/version.c: Likewise.
18113         * debug/catchsegv.sh: Likewise.
18114         * debug/xtrace.sh: Likewise.
18115         * elf/ldconfig.c: Likewise.
18116         * elf/ldd.bash.in: Likewise.
18117         * elf/sprof.c (print_version): Likewise.
18118         * iconv/iconv_prog.c: Likewise.
18119         * iconv/iconvconfig.c: Likewise.
18120         * locale/programs/locale.c: Likewise.
18121         * locale/programs/localedef.c: Likewise.
18122         * malloc/memusage.sh: Likewise.
18123         * malloc/mtrace.pl: Likewise.
18124         * nscd/nscd.c (print_version): Likewise.
18125         * nss/getent.c: Likewise.
18126
18127         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18128         PF_CAIF, and PF_ALG.
18129         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18130
18131 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18132
18133         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18134         (modules-names): Use them.
18135         (ifunc-test-modules, ifunc-pie-tests): Define.
18136         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18137         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18138         (test-extras): Likewise.
18139         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18140         $(compile-command.c).
18141         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18142         (all-built-dso): Define.
18143         (check-textrel.out, check-execstack.out): Depend on it.
18144
18145         * configure.in: Don't override --enable-multi-arch.
18146
18147 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18148
18149         [BZ #6812]
18150         * nscd/hstcache.c (tryagain): Define.
18151         (cache_addhst): Return tryagain not notfound for temporary errors.
18152         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18153         failed.
18154
18155 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18156
18157         [BZ #10563]
18158         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18159         to make the syscall.
18160         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18161
18162         [BZ #12378]
18163         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18164         and fall back to matching as normal character if the string ends before
18165         the matching ']' is found.  This is what POSIX requires.
18166         * posix/testfnm.c: Adjust test result.
18167         * posix/globtest.sh: Adjust test result.  Add new test.
18168         * posix/tst-fnmatch.input: Likewise.
18169         * posix/tst-fnmatch2.c: Add new test.
18170
18171 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18172
18173         * elf/Makefile (check-execstack): Revert last change.  Depend on
18174         check-execstack.h.
18175         (check-execstack.h): New target.
18176         (generated): Add check-execstack.h.
18177         * elf/check-execstack.c: Include "check-execstack.h".
18178         (main): Revert last change.
18179         (handle_file): Return zero if GNU_STACK is absent and
18180         DEFAULT_STACK_PERMS doesn't include PF_X.
18181
18182 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18183
18184         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18185         in child fails because the descriptor is already closed.
18186         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18187         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18188         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18189
18190         [BZ #12397]
18191         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18192         syscall.
18193
18194         [BZ #10484]
18195         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18196         temporary buffer used to handle multi lookups locally.
18197         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18198
18199 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18200
18201         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18202         loader is ld.so.
18203
18204 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18205
18206         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18207         alignment for SSE2.
18208
18209 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18210
18211         [BZ #12394]
18212         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18213         characters.  When rounding increased number of integer digits recompute
18214         number of groups.
18215         * stdio-common/tst-grouping.c: New file.
18216         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18217
18218 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18219
18220         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18221         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18222
18223         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18224         void.
18225         * bits/select.h: Likewise.
18226
18227 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18228
18229         * po/ja.po: Update from translation team.
18230
18231 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18232
18233         [BZ #11155]
18234         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18235         implementation just like for lxstat, fxstatat, et al.
18236
18237 2010-12-27  Jim Meyering  <meyering@redhat.com>
18238
18239         [BZ #12348]
18240         * posix/regexec.c (build_trtable): Return failure indication upon
18241         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18242
18243 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18244
18245         [BZ #12201]
18246         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18247         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18248         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18249         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18250
18251         [BZ #12207]
18252         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18253
18254         [BZ #12204]
18255         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18256         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18257
18258 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18259
18260         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18261         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18262         script has SORT_BY_INIT_PRIORITY.
18263         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18264         NO_CTORS_DTORS_SECTIONS is defined.
18265         * elf/soinit.c: Likewise.
18266         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18267         NO_CTORS_DTORS_SECTIONS is defined.
18268         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18269         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18270         * sysdeps/sh/init-first.c: Likewise.
18271         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18272
18273 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18274
18275         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18276         always use the slow path.
18277
18278 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18279
18280         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18281         similar rule which adds the sysdep directories to the header search in
18282         order to pick up the correct platform stackinfo.h.
18283         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18284         perform test if it is, otherwise return successfully without testing.
18285         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18286         DEFAULT_STACK_PERMS define in stackinfo.h.
18287         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18288         defined in stackinfo.h.
18289         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18290         DEFAULT_STACK_PERMS defined in stackinfo.h.
18291         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18292         * sysdeps/ia64/stackinfo.h: Likewise.
18293         * sysdeps/s390/stackinfo.h: Likewise.
18294         * sysdeps/sh/stackinfo.h: Likewise.
18295         * sysdeps/sparc/stackinfo.h: Likewise.
18296         * sysdeps/x86_64/stackinfo.h: Likewise.
18297         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18298         PF_X for powerpc64.  Retain PF_X for powerpc32.
18299
18300 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18301
18302         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18303         accurately.
18304         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18305         GETDENTS_64BIT_ALIGNED.
18306
18307 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18308
18309         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18310
18311 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18312
18313         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18314         _GNU_SOURCE.
18315
18316         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18317         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18318         Remove __restrict.
18319         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18320         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18321
18322 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18323
18324         [BZ #11655]
18325         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18326         are initialized.
18327
18328 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18329
18330         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18331
18332 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18333
18334         * po/it.po: Update from translation team.
18335
18336 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18337
18338         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18339         unused codes.
18340
18341 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18342
18343         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18344
18345 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18346
18347         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18348         specially.
18349         (gaih_getanswer_slice): Likewise.
18350
18351 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18352
18353         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18354
18355 2010-05-31  Petr Baudis  <pasky@suse.cz>
18356
18357         [BZ #11149]
18358         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18359         silently even in the chroot mode.
18360
18361 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18362
18363         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18364         last patch a bit.  Pretty printing
18365
18366 2010-05-31  Petr Baudis <pasky@suse.cz>
18367
18368         [BZ #10085]
18369         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18370         initialization of skip_initgroups_dyn.
18371
18372 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18373
18374         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18375         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18376
18377 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18378
18379         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18380
18381 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18382
18383         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18384         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18385         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18386         ($(objpfx)tst-fnmatch-mem): New rule.
18387         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18388         * posix/tst-fnmatch.c (main): Call mtrace.
18389
18390 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18391
18392         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18393         Support Intel processor model 6 and model 0x2c.
18394
18395 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18396
18397         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18398           signed comparison.
18399
18400 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18401
18402         [BZ #12205]
18403         * string/test-strncasecmp.c (check_result): New function.
18404         (do_one_test): Use it.
18405         (check1): New function.
18406         (test_main): Use it.
18407         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18408         Support strcasecmp and strncasecmp.
18409
18410 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18411
18412         [BZ #12194]
18413         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18414         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18415
18416 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18417
18418         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18419         IFUNC support.
18420         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18421         memset-x86-64.
18422         * sysdeps/x86_64/multiarch/bzero.S: New file.
18423         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18424         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18425         * sysdeps/x86_64/multiarch/memset.S: New file.
18426         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18427         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18428         Set bit_Prefer_SSE_for_memop for Intel processors.
18429         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18430         Define.
18431         (index_Prefer_SSE_for_memop): Define.
18432         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18433
18434 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18435
18436         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18437         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18438
18439 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18440
18441         [BZ #12191]
18442         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18443         (__x86_64_raw_data_cache_size_half): Likewise.
18444         (__x86_64_raw_shared_cache_size): Likewise.
18445         (__x86_64_raw_shared_cache_size_half): Likewise.
18446
18447         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18448         (__x86_64_raw_data_cache_size_half): Likewise.
18449         (__x86_64_raw_shared_cache_size): Likewise.
18450         (__x86_64_raw_shared_cache_size_half): Likewise.
18451         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18452         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18453         and __x86_64_raw_shared_cache_size_half.  Round
18454         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18455         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18456         to multiple of 256 bytes.
18457
18458 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18459
18460         [BZ #12167]
18461         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18462         of inacessible symlinks.  Verify result of symlink before returning it.
18463         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18464         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18465
18466 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18467
18468         * math/math.h (isinf): Fix typo in comment.
18469
18470 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18471
18472         * po/da.po: Update from translation team.
18473
18474 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18475
18476         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18477         is added to the list.
18478
18479 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18480             Ulrich Drepper  <drepper@gmail.com>
18481
18482         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18483         the global list here.  Move code to...
18484         (_dl_add_to_namespace_list): ...here.  New function.
18485         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18486         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18487         * elf/dl-load.c (lose): Don't remove the element from the list.
18488         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18489         (_dl_map_object): Likewise.
18490
18491 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18492
18493         [BZ #12159]
18494         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18495         into all bytes of SSE register.
18496         Patch by Richard Li <richardpku@gmail.com>.
18497
18498 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18499
18500         [BZ #12140]
18501         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18502         perturbing.
18503
18504 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18505
18506         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18507         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18508         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18509         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18511         submachine.
18512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18513
18514 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18515
18516         * include/dlfcn.h (__RTLD_SECURE): Define.
18517         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18518         mode & __RTLD_SECURE instead.
18519         (open_path): Rename preloaded parameter to secure.
18520         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18521         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18522         * elf/dl-deps.c (openaux): Likewise.
18523         * elf/rtld.c (struct map_args): Remove is_preloaded.
18524         (map_doit): Don't use it.
18525         (dl_main): Likewise.
18526         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18527         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18528
18529 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18530
18531         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18532         (sysd-rules-targets): Remove duplicates.
18533         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18534         rtld-%.$o dependency.
18535
18536 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18537
18538         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18539         _dl_map_object do it.
18540
18541 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18542
18543         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18544         fast fma builtins, define the macros in the C99 standard.
18545         (FP_FAST_FMAF): Likewise.
18546         (FP_FAST_FMAL): Likewise.
18547         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18548
18549         * bits/mathdef.h: Update copyright year.
18550         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18551
18552 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18553
18554         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18555         builtins, define the macros in the C99 standard.
18556         (FP_FAST_FMAF): Likewise.
18557         (FP_FAST_FMAL): Likewise.
18558         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18559         multiply/add.
18560         (FP_FAST_FMAF): Likewise.
18561
18562 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18563
18564         [BZ #3268]
18565         * math/libm-test.inc (fma_test): Some new testcases.
18566         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18567         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18568         y and infinite z.  Do multiplication by C already in long double.
18569         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18570         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18571         y and infinite z.  Do bitwise or of inexact bit into u.d.
18572         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18573         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18574         * sysdeps/i386/fpu/s_fma.S: Removed.
18575         * sysdeps/i386/fpu/s_fmal.S: Removed.
18576
18577 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18578
18579         [BZ #3268]
18580         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18581         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18582         computation is not scheduled after fetestexcept.  Fix value
18583         of minimum denormal long double.
18584
18585 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18586
18587         [BZ #3268]
18588         * math/libm-test.inc (fma_test): Add some more tests.
18589         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18590         correctly.
18591
18592 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18593
18594         * scripts/data/localplt-s390-linux-gnu.data: New file.
18595         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18596
18597 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18598
18599         [BZ #3268]
18600         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18601         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18602         instead of dbl-64.
18603         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18604         inlines.
18605         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18606         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18607         if one of x and y is very large and the other is subnormal.
18608         * sysdeps/s390/fpu/s_fmaf.c: New file.
18609         * sysdeps/s390/fpu/s_fma.c: New file.
18610         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18611         * sysdeps/powerpc/fpu/s_fma.S: New file.
18612         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18613         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18614         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18615
18616 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18617
18618         [BZ #3268]
18619         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18620         fma tests.
18621         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18622         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18623         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18624         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18625         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18626         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18627         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18628
18629 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18630
18631         [BZ #12078]
18632         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18633         * posix/bug-regex31.input: Add test case.
18634
18635 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18636
18637         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18638         * posix/bug-regex31.input: New file.
18639
18640         [BZ #12078]
18641         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18642         (parse_sub_exp): Fix last change, use postorder.
18643
18644         * posix/bug-regex31.c: New file.
18645         * posix/Makefile: Add rules to build and run bug-regex31.
18646
18647         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18648
18649         [BZ #12078]
18650         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18651
18652         [BZ #12108]
18653         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18654         to have entries in sys_siglist.
18655
18656         [BZ #12093]
18657         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18658         be NULL.
18659
18660 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18661
18662         [BZ #3268]
18663         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18664         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18665         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18666         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18667         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18668         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18669         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18670         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18671         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18672         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18673         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18674         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18675         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18676         * math/ftestexcept.c (fetestexcept): Likewise.
18677         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18678         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18679         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18680         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18681         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18682         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18683         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18684
18685 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18686
18687         [BZ #12107]
18688         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18689         newline.
18690
18691 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18692
18693         * string/bug-strstr1.c: New file.
18694         * string/Makefile: Add rules to build and run bug-strstr1.
18695
18696 2010-10-05  Eric Blake  <eblake@redhat.com>
18697
18698         [BZ #12092]
18699         * string/str-two-way.h (two_way_long_needle): Always clear memory
18700         when skipping input due to the shift table.
18701
18702 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18703
18704         [BZ #12005]
18705         * malloc/mcheck.c: Handle large requests.
18706
18707         [BZ #12077]
18708         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18709         for strncmp and strncasecmp.
18710         * string/stratcliff.c: Add tests for strcmp and strncmp.
18711         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18712
18713 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18714
18715         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18716         __set_fpscr.
18717
18718 2010-09-30  Andreas Jaeger  <aj@suse.de>
18719
18720         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18721         (CGROUP_SUPER_MAGIC): Define.
18722         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18723         Handle btrfs and cgroup file systems.
18724         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18725         Likewise.
18726
18727 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18728
18729         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18730         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18731
18732 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18733
18734         [BZ #12067]
18735         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18736         trying to locate the ELF header.
18737
18738 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18739
18740         [BZ #11611]
18741         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18742         Mask out sign-bit copies when constructing f_fsid.
18743
18744 2010-09-24  Petr Baudis <pasky@suse.cz>
18745
18746         * debug/stack_chk_fail_local.c: Add missing licence exception.
18747         * debug/warning-nop.c: Likewise.
18748
18749 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18750
18751         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18752         implementing getdents64 using getdents syscall, set d_type if
18753         __ASSUME_GETDENTS32_D_TYPE.
18754
18755 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18756
18757         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18758         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18759
18760 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18761
18762         [BZ #12037]
18763         * posix/unistd.h: Undo change of feature selection for ftruncate from
18764         2010-01-11.
18765
18766 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18767
18768         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18769         detection.
18770
18771 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18772
18773         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18774         fanotify_mark.
18775         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18776
18777 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18778
18779         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18780         variables after CHECK_SP call.
18781         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18782
18783 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18784             Ulrich Drepper  <drepper@redhat.com>
18785
18786         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18787         re-relocationg ld.so.
18788         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18789         _dl_init_paths call.
18790         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18791         here anymore.
18792
18793 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18794
18795         * resolv/res_init.c (__res_vinit): Count the default server we added.
18796
18797 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18798             Ulrich Drepper  <drepper@redhat.com>
18799
18800         [BZ #11968]
18801         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18802         (____longjmp_chk): Use %ebx for saving value across system call.
18803         Add unwind info.
18804
18805 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18806
18807         * manual/Makefile: Don't mix pattern rules with normal rules.
18808
18809 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18810
18811         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18812         operation.
18813         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18814         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18815         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18816         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18817         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18818         Likewise.
18819
18820 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18821
18822         [BZ #11979]
18823         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18824         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18825
18826 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18827
18828         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18829         * sysdeps/x86_64/addmul_1.S: Likewise.
18830         * sysdeps/x86_64/lshift.S: Likewise.
18831         * sysdeps/x86_64/mul_1.S: Likewise.
18832         * sysdeps/x86_64/rshift.S: Likewise.
18833         * sysdeps/x86_64/sub_n.S: Likewise.
18834         * sysdeps/x86_64/submul_1.S: Likewise.
18835
18836 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18837
18838         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18839         Define __sched_param instead of SCHED_* and sched_param when
18840         <bits/sched.h> is included with __need_schedparam defined.
18841         * bits/sched.h [__need_schedparam]
18842         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18843         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18844         (__defined_schedparam): Define to 1.
18845         (__sched_param): New structure, identical to sched_param.
18846         (__need_schedparam): Undefine.
18847
18848 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18849
18850         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18851         (epoll_create1): Declare.
18852
18853         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18854
18855 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18856
18857         [BZ #7066]
18858         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18859         shifting retval into place.
18860
18861 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18862
18863         * nis/rpcsvc/nis.h: Update copyright notice.
18864         * nis/rpcsvc/nis.x: Likewise.
18865         * nis/rpcsvc/nis_callback.h: Likewise.
18866         * nis/rpcsvc/nis_callback.x: Likewise.
18867         * nis/rpcsvc/nis_object.x: Likewise.
18868         * nis/rpcsvc/nis_tags.h: Likewise.
18869         * nis/rpcsvc/yp.h: Likewise.
18870         * nis/rpcsvc/yp.x: Likewise.
18871         * nis/rpcsvc/ypupd.h: Likewise.
18872         * nis/yp_xdr.c: Likewise.
18873         * nis/ypupdate_xdr.c: Likewise.
18874
18875         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18876         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18877         (pmap_getport): Use __libc_rpc_getport.
18878         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18879         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18880         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18881
18882 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18883
18884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18885         fanotify_mark.
18886
18887 2010-08-27  Roland McGrath  <roland@redhat.com>
18888
18889         * sysdeps/i386/i686/multiarch/Makefile
18890         (CFLAGS-varshift.c): New variable.
18891
18892 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18893
18894         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18895         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18896
18897         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18898
18899         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18900
18901 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18902
18903         * sysdeps/x86_64/strlen.S: Unroll the loop.
18904         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18905         strlen-sse2 strlen-sse2-bsf.
18906         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18907         __strlen_no_bsf if bit_Slow_BSF is set.
18908         (__strlen_sse42): Removed.
18909         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18910         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18911
18912 2010-08-25  Roland McGrath  <roland@redhat.com>
18913
18914         * sysdeps/x86_64/multiarch/varshift.S: File removed.
18915         * sysdeps/x86_64/multiarch/varshift.c: New file.
18916         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18917         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
18918         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
18919         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18920
18921 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
18922
18923         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18924         strlen-sse2 strlen-sse2-bsf.
18925         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
18926         __strlen_sse2_bsf if bit_Slow_BSF is unset.
18927         (__strlen_sse2): Removed.
18928         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
18929         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
18930         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
18931         bit_Slow_BSF for Atom.
18932         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
18933         (index_Slow_BSF): Define.
18934         (HAS_SLOW_BSF): Define.
18935
18936 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
18937
18938         [BZ #10851]
18939         * resolv/res_init.c (__res_vinit): When no server address at all
18940         is given default to loopback.
18941
18942 2010-08-24  Roland McGrath  <roland@redhat.com>
18943
18944         * configure.in: Remove config-name.h generation.
18945         * configure: Regenerated.
18946         * config-name.in: File removed.
18947         * scripts/config-uname.sh: New file.
18948         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
18949         ($(objdir)config-name.h): New target.
18950
18951         * sunrpc/rpc_parse.h: Avoid nested comment.
18952
18953 2010-08-24  Richard Henderson  <rth@redhat.com>
18954             Ulrich Drepper  <drepper@redhat.com>
18955             H.J. Lu  <hongjiu.lu@intel.com>
18956
18957         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
18958         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
18959         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
18960         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
18961         _mm_alignr_epi8 with _mm_loadu_si128.
18962         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
18963         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
18964         (__m128i_shift_right): Removed.
18965         * sysdeps/i386/i686/multiarch/varshift.h: New file.
18966         * sysdeps/i386/i686/multiarch/varshift.S: New file.
18967         * sysdeps/x86_64/multiarch/varshift.h: New file.
18968         * sysdeps/x86_64/multiarch/varshift.S: New file.
18969
18970 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
18971
18972         * configure.in: Move assembler checks to before sysdep dir checking.
18973
18974 2010-08-20  Petr Baudis  <pasky@suse.cz>
18975
18976         * LICENSES: Sync the sunrpc license.
18977
18978 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
18979
18980         * sunrpc/auth_des.c: Update copyright notice once again.
18981         * sunrpc/auth_none.c: Likewise.
18982         * sunrpc/auth_unix.c: Likewise.
18983         * sunrpc/authdes_prot.c: Likewise.
18984         * sunrpc/authuxprot.c: Likewise.
18985         * sunrpc/bindrsvprt.c: Likewise.
18986         * sunrpc/clnt_gen.c: Likewise.
18987         * sunrpc/clnt_perr.c: Likewise.
18988         * sunrpc/clnt_raw.c: Likewise.
18989         * sunrpc/clnt_simp.c: Likewise.
18990         * sunrpc/clnt_tcp.c: Likewise.
18991         * sunrpc/clnt_udp.c: Likewise.
18992         * sunrpc/clnt_unix.c: Likewise.
18993         * sunrpc/des_crypt.c: Likewise.
18994         * sunrpc/des_soft.c: Likewise.
18995         * sunrpc/get_myaddr.c: Likewise.
18996         * sunrpc/getrpcport.c: Likewise.
18997         * sunrpc/key_call.c: Likewise.
18998         * sunrpc/key_prot.c: Likewise.
18999         * sunrpc/openchild.c: Likewise.
19000         * sunrpc/pm_getmaps.c: Likewise.
19001         * sunrpc/pm_getport.c: Likewise.
19002         * sunrpc/pmap_clnt.c: Likewise.
19003         * sunrpc/pmap_prot.c: Likewise.
19004         * sunrpc/pmap_prot2.c: Likewise.
19005         * sunrpc/pmap_rmt.c: Likewise.
19006         * sunrpc/rpc/auth.h: Likewise.
19007         * sunrpc/rpc/auth_unix.h: Likewise.
19008         * sunrpc/rpc/clnt.h: Likewise.
19009         * sunrpc/rpc/des_crypt.h: Likewise.
19010         * sunrpc/rpc/key_prot.h: Likewise.
19011         * sunrpc/rpc/netdb.h: Likewise.
19012         * sunrpc/rpc/pmap_clnt.h: Likewise.
19013         * sunrpc/rpc/pmap_prot.h: Likewise.
19014         * sunrpc/rpc/pmap_rmt.h: Likewise.
19015         * sunrpc/rpc/rpc.h: Likewise.
19016         * sunrpc/rpc/rpc_des.h: Likewise.
19017         * sunrpc/rpc/rpc_msg.h: Likewise.
19018         * sunrpc/rpc/svc.h: Likewise.
19019         * sunrpc/rpc/svc_auth.h: Likewise.
19020         * sunrpc/rpc/types.h: Likewise.
19021         * sunrpc/rpc/xdr.h: Likewise.
19022         * sunrpc/rpc_clntout.c: Likewise.
19023         * sunrpc/rpc_cmsg.c: Likewise.
19024         * sunrpc/rpc_common.c: Likewise.
19025         * sunrpc/rpc_cout.c: Likewise.
19026         * sunrpc/rpc_dtable.c: Likewise.
19027         * sunrpc/rpc_hout.c: Likewise.
19028         * sunrpc/rpc_main.c: Likewise.
19029         * sunrpc/rpc_parse.c: Likewise.
19030         * sunrpc/rpc_parse.h: Likewise.
19031         * sunrpc/rpc_prot.c: Likewise.
19032         * sunrpc/rpc_sample.c: Likewise.
19033         * sunrpc/rpc_scan.c: Likewise.
19034         * sunrpc/rpc_scan.h: Likewise.
19035         * sunrpc/rpc_svcout.c: Likewise.
19036         * sunrpc/rpc_tblout.c: Likewise.
19037         * sunrpc/rpc_util.c: Likewise.
19038         * sunrpc/rpc_util.h: Likewise.
19039         * sunrpc/rpcinfo.c: Likewise.
19040         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19041         * sunrpc/rpcsvc/key_prot.x: Likewise.
19042         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19043         * sunrpc/rpcsvc/mount.x: Likewise.
19044         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19045         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19046         * sunrpc/rpcsvc/rex.x: Likewise.
19047         * sunrpc/rpcsvc/rstat.x: Likewise.
19048         * sunrpc/rpcsvc/rusers.x: Likewise.
19049         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19050         * sunrpc/rpcsvc/spray.x: Likewise.
19051         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19052         * sunrpc/rtime.c: Likewise.
19053         * sunrpc/svc.c: Likewise.
19054         * sunrpc/svc_auth.c: Likewise.
19055         * sunrpc/svc_authux.c: Likewise.
19056         * sunrpc/svc_raw.c: Likewise.
19057         * sunrpc/svc_run.c: Likewise.
19058         * sunrpc/svc_simple.c: Likewise.
19059         * sunrpc/svc_tcp.c: Likewise.
19060         * sunrpc/svc_udp.c: Likewise.
19061         * sunrpc/svc_unix.c: Likewise.
19062         * sunrpc/svcauth_des.c: Likewise.
19063         * sunrpc/xcrypt.c: Likewise.
19064         * sunrpc/xdr.c: Likewise.
19065         * sunrpc/xdr_array.c: Likewise.
19066         * sunrpc/xdr_float.c: Likewise.
19067         * sunrpc/xdr_mem.c: Likewise.
19068         * sunrpc/xdr_rec.c: Likewise.
19069         * sunrpc/xdr_ref.c: Likewise.
19070         * sunrpc/xdr_sizeof.c: Likewise.
19071         * sunrpc/xdr_stdio.c: Likewise.
19072
19073         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19074         handling.
19075
19076 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19077
19078         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19079
19080 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19081
19082         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19083         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19084         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19085         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19086         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19087         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19088         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19089         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19090         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19091         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19092         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19093         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19094         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19095         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19096
19097 2010-07-26  Anton Blanchard  <anton@samba.org>
19098
19099         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19100         * malloc/arena.c (heap_trim): Likewise.
19101
19102 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19103
19104         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19105         here.  Not...
19106         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19107         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19108
19109 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19110
19111         * sysdeps/i386/elf/Makefile: New file.
19112
19113 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19114
19115         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19116         from fanotify_init.
19117         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19118         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19119
19120 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19121
19122         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19123         of strncasecmp_l.
19124         * sysdeps/multiarch/strcmp.S: Likewise.
19125
19126 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19127
19128         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19129         strncase_l-nonascii.
19130         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19131         Add strncase_l-ssse3.
19132         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19133         * sysdeps/x86_64/strcmp.S: Likewise.
19134         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19135         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19136         * sysdeps/x86_64/strncase.S: New file.
19137         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19138         * sysdeps/x86_64/strncase_l.S: New file.
19139         * string/Makefile (strop-tests): Add strncasecmp.
19140         * string/test-strncasecmp.c: New file.
19141
19142         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19143         warning.
19144
19145         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19146         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19147
19148 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19149
19150         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19151
19152 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19153
19154         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19155         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19156         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19157
19158 2010-05-01  Alan Modra  <amodra@gmail.com>
19159
19160         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19161         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19162         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19163         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19164         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19165         tidying.  Don't tail-call __sigjmp_save for static lib.
19166         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19167         save location.
19168         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19169         (CALL_MCOUNT): Add eh info, and nop after bl.
19170         (TAIL_CALL_SYSCALL_ERROR): New macro.
19171         (PSEUDO_RET): Use it.
19172         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19173         Correct save location of integer regs and cr.
19174         (_dl_profile_resolve): Correct cr save location.  Delete nops
19175         after bl when SHARED.  Reduce cfi size a little by better
19176         placement of cfi directives.
19177         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19178         make a stack frame.  Instead use parm save area as a temp.
19179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19180         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19182         Don't make a stack frame for parent, use parm save area.
19183         Increase child stack frame to 112 bytes.  Don't save unused reg,
19184         and adjust reg usage.  Set up cfi on error recovery and
19185         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19187         (__makecontext): Add dummy nop after jump to exit.
19188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19189         Use correct parm save area and cr save, reduce stack frame.
19190         Correct cfi for possible PSEUDO_RET frame setup.
19191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19192         Branch to local label emitted by PSEUDO_RET rather than
19193         __syscall_error.
19194
19195 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19196
19197         [BZ #11904]
19198         * locale/programs/locale.c (print_assignment): New function.
19199         (show_locale_vars): Use it.
19200
19201 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19202
19203         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19204         field.
19205         (struct statfs64): Likewise.
19206         (_STATFS_F_FLAGS): Define.
19207         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19208         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19209         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19210         (ST_VALID): Define locally.
19211         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19212         __statvfs_getflags, use the provided value.
19213         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19214         __ASSUME_STATFS_F_FLAGS.
19215
19216         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19217
19218         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19219         Add sys/fanotify.h.
19220         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19221         fanotify_mask for GLIBC_2.13.
19222         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19223         fanotify_init and fanotify_mark.
19224         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19225         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19226
19227         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19228         Add prlimit.
19229         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19230         prlimit64 for GLIBC_2.13.
19231         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19232         prlimit64.
19233         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19234         syscall.
19235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19236         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19237         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19238         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19239         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19240         add prlimit alias.
19241         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19242
19243         [BZ #11903]
19244         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19245         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19246
19247         * nss/Makefile: Add rules to build and run tst-nss-test1.
19248         * shlib-versions: Add entry for libnss_test1.
19249         * nss/nss_test1.c: New file.
19250         * nss/tst-nss-test1.c: New file.
19251
19252         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19253         (__nss_configure_lookup): Set appropriate entry in
19254         __nss_configure_lookup to true.
19255         * nss/nsswitch.h: Define enum with indeces of databases in
19256         databases and __nss_database_custom arrays.  Declare
19257         __nss_database_custom.
19258         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19259         to avoid using nscd when custom rules are installed.
19260         * nss/getXXbyYY_r.c: Likewise.
19261         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19262
19263         * nss/nss_files/files-parse.c: Whitespace fixes.
19264
19265 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19266
19267         [BZ #11883]
19268         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19269         * posix/fnmatch_loop.c: Likewise.
19270
19271 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19272
19273         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19274         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19275         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19276         * Versions.def [GLIBC_2.13]: Add.
19277
19278 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19279
19280         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19281         Also fail if tpwd after pwuid call is NULL.
19282
19283 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19284
19285         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19286         when converting to ms.
19287
19288 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19289
19290         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19291         EOPNOTSUPP errors with ENOTTY.
19292         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19293         EOPNOTSUPP errors with ENOTTY.
19294
19295 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19296
19297         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19298         Add strcasecmp_l-ssse3.
19299         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19300         strcasecmp.
19301         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19302         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19303         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19304
19305 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19306
19307         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19308
19309         * string/Makefile (strop-tests): Add strcasecmp.
19310         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19311         strcasecmp_l-nonascii.
19312         (gen-as-const-headers): Add locale-defines.sym.
19313         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19314         * sysdeps/x86_64/strcasecmp.S: New file.
19315         * sysdeps/x86_64/strcasecmp_l.S: New file.
19316         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19317         * sysdeps/x86_64/locale-defines.sym: New file.
19318         * string/test-strcasecmp.c: New file.
19319
19320         * string/test-strcasestr.c: Test both ends of the range of characters.
19321         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19322
19323 2010-07-29  Roland McGrath  <roland@redhat.com>
19324
19325         [BZ #11856]
19326         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19327
19328 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19329
19330         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19331         for ld.so.
19332
19333 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19334
19335         * manual/memory.texi (Malloc Tunable Parameters): Document
19336         M_PERTURB.
19337
19338 2010-07-26  Roland McGrath  <roland@redhat.com>
19339
19340         [BZ #11840]
19341         * configure.in (-fgnu89-inline check): Set and substitute
19342         gnu89_inline, not libc_cv_gnu89_inline.
19343         * configure: Regenerated.
19344         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19345
19346 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19347
19348         * string/test-strnlen.c: New file.
19349         * string/Makefile (strop-tests): Add strnlen.
19350         * string/tester.c (test_strnlen): Add a few more test cases.
19351         * string/tst-strlen.c: Better error reporting.
19352
19353         * sysdeps/x86_64/strnlen.S: New file.
19354
19355 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19356
19357         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19358         lower-latency instructions.
19359
19360 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19361
19362         * string/test-strcasestr.c: New file.
19363         * string/test-strstr.c: New file.
19364         * string/Makefile (strop-tests): Add strstr and strcasestr.
19365         * string/str-two-way.h: Don't undefine MAX.
19366         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19367
19368 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19369
19370         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19371         strcasestr-nonascii.
19372         (CFLAGS-strcasestr-nonascii.c): Define.
19373         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19374         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19375         Remove unused attribute.
19376
19377 2010-07-20  Roland McGrath  <roland@redhat.com>
19378
19379         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19380         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19381         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19382         like LD_HWCAP_MASK can disable hwcaps.
19383
19384 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19385
19386         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19387
19388 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19389
19390         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19391         call in strcasestr.
19392         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19393         __strcasestr_sse42_nonascii.
19394         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19395         strcasestr-nonascii.c.
19396         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19397
19398 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19399
19400         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19401         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19402         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19403         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19404
19405 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19406
19407         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19408         fcntl.
19409
19410 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19411
19412         [BZ #11577]
19413         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19414         dl_signal_cerror.
19415
19416 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19417
19418         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19419         _PC_PIPE_BUF using F_GETPIPE_SZ.
19420
19421 2010-07-05  Roland McGrath  <roland@redhat.com>
19422
19423         * manual/arith.texi (Rounding Functions): Fix rint description
19424         implicit in round description.
19425
19426 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19427
19428         * elf/Makefile: Fix linking for a few tests to make recent linker
19429         happy.
19430
19431 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19432
19433         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19434         $(common-objpfx)libc_nonshared.a.
19435
19436 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19437
19438         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19439         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19440         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19441         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19442         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19443         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19444         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19445         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19460         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19461         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19462         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19463         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19464         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19465         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19466         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19467         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19468         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19469         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19470         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19471         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19486
19487 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19488
19489         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19490         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19491         * string/memmove.c (memmove): Renamed to ...
19492         (MEMMOVE): ...this.  Default to memmove.
19493         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19494         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19495         (END_CHK): Define.
19496         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19497         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19498         mempcpy-ssse3-back memmove-ssse3-back.
19499         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19500         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19501         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19502         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19503         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19504         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19505         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19506         * sysdeps/x86_64/multiarch/memmove.c: New file.
19507         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19508         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19509         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19510         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19511         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19512         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19513         Define.
19514         (index_Fast_Copy_Backward): Define.
19515         (HAS_ARCH_FEATURE): Define.
19516         (HAS_FAST_REP_STRING): Define.
19517         (HAS_FAST_COPY_BACKWARD): Define.
19518
19519 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19520
19521         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19522         Restore proper fallback handling.
19523
19524 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19525
19526         [BZ #11701]
19527         * posix/group_member.c (__group_member): Correct checking loop.
19528
19529         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19530         OOM in getpwuid_r correctly.  Return error number when the caller
19531         should return, otherwise -1.
19532         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19533         call returning > 0 value.
19534         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19535
19536 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19537
19538         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19539         libc_nonshared.a from targets in modules-names.
19540
19541 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19542
19543         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19544         requires it.
19545
19546 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19547
19548         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19549         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19550         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19551         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19552
19553 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19554
19555         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19556
19557 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19558
19559         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19560         and F_GETPIPE_SZ.
19561         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19562         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19563         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19564         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19565         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19566         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19567
19568 2010-06-14  Roland McGrath  <roland@redhat.com>
19569
19570         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19571
19572 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19573
19574         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19575         __REDIRECT followed by __THROW.
19576         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19577         * posix/getopt.h (getopt): Likewise.
19578
19579 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19580
19581         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19582         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19583         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19584         in AT_FLAGS.
19585         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19586         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19587
19588 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19589
19590         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19591
19592 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19593
19594         [BZ #11640]
19595         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19596         Properly check family and model.
19597
19598 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19599
19600         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19601
19602 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19603
19604         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19605
19606 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19607
19608         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19609         symbol reference.
19610
19611 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19612
19613         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19614         symbol reference.
19615
19616 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19617
19618         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19619         and internal_recvmmsg.
19620         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19621         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19622         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19623         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19624
19625         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19626         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19627         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19628
19629 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19630
19631         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19632
19633 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19634
19635         POWER7 optimizations.
19636         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19637         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19638
19639 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19640
19641         * version.h: Update for 2.13 development version.
19642
19643 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19644
19645         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19646         exceptions.  Return 0.
19647
19648 2010-05-07  Roland McGrath  <roland@redhat.com>
19649
19650         * elf/ldconfig.c (main): Add a const.
19651
19652 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19653
19654         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19655         (args_options): Add no-idn option.
19656         (ahosts_keys_int): Add idn_flags to ai_flags.
19657         (parse_option): Handle 'i' option to clear idn_flags.
19658
19659         * malloc/malloc.c (_int_free): Possible race in the most recently
19660         added check.  Only act on the data if no current modification
19661         happened.
19662
19663 See ChangeLog.17 for earlier changes.