Replace crtendS.o with crtend.o for static link
[platform/upstream/glibc.git] / ChangeLog
1 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
4
5         [BZ #14562]
6         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
7         new chunk size with MALLOC_ALIGN_MASK.
8
9 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
10
11         [BZ #5044]
12         * stdio-common/printf_fphex.c: Include <stdbool.h> and
13         <rounding-mode.h>.
14         (__printf_fphex): Determine rounding using get_rounding_mode and
15         round_away.
16         * stdio-common/tst-printf-round.c (struct hex_test): New
17         structure.
18         (hex_tests): New variable.
19         (test_hex_in_one_mode): New function.
20         (do_test): Also run tests for hex float output.
21
22 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
23
24         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
25         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
26         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
27         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
28         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
29         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
30         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
31         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
32
33 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
34
35         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
36         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
37         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
38         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
39
40 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
41
42         [BZ #14579]
43         * elf/rtld.c (dl_main): Limit the check for self loading to normal
44         mode only.
45         * elf/tst-rtld-load-self.sh: New test.
46         * elf/Makefile: Run it.
47
48 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
49
50         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
51         (tst-writev-ENV): Remove.
52         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
53
54 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
55
56         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
57
58 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
59
60         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
61         unconditional.
62         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
63         Likewise.
64         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
65         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
66         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
67         Likewise.
68
69 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
70
71         [BZ #14587]
72         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
73         * config.make.in (have-cpp-asm-debuginfo): Removed.
74         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
75         * configure: Regenerated.
76
77 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
78
79         [BZ #5044]
80         * stdio-common/printf_fp.c: Include <stdbool.h> and
81         <rounding-mode.h>.
82         (___printf_fp): Determine rounding using get_rounding_mode and
83         round_away.
84         * stdio-common/tst-printf-round.c: New file.
85         * stdio-common/Makefile (tests): Add tst-printf-round.
86         (link-libm): New variable.
87         ($(objpfx)tst-printf-round): Depend in $(link-libm).
88
89 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
90
91         [BZ #14576]
92         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
93         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
94         Likewise.
95         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
96         Likewise.
97
98 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
99
100         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
101         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
102         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
103         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
104
105 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
106
107         [BZ #14518]
108         * include/rounding-mode.h: New file.
109         * sysdeps/generic/get-rounding-mode.h: Likewise.
110         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
111         * stdlib/strtod_l.c: Include <rounding-mode.h>.
112         (MAX_VALUE): New macro.
113         (MIN_VALUE): Likewise.
114         (overflow_value): New function.
115         (underflow_value): Likewise.
116         (round_and_return): Use overflow_value and underflow_value to
117         determine return values in overflow and underflow cases.  Use
118         round_away to determine rounding depending on rounding mode.
119         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
120         determine return values in overflow and underflow cases.
121         * stdlib/tst-strtod-round.c: Include <fenv.h>.
122         (struct test_results): New structure.
123         (struct test): Use struct test_results to store expected results
124         for all rounding modes.
125         (TEST): Include expected results for all rounding modes.
126         (test_in_one_mode): New function.
127         (do_test): Use test_in_one_mode to compute and check results.
128         Check results for all rounding modes.
129         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
130         $(link-libm).
131
132 2012-12-09  Allan McRae  <allan@archlinux.org>
133
134         * sysdeps/i386/fpu/libm-test-ulps: Update
135
136 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
137
138         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
139         (_G_int32_t): Likewise.
140         (_G_uint16_t): Likewise.
141         (_G_uint32_t): Likewise.
142         (_G_HAVE_BOOL): Likewise.
143         (_G_HAVE_ATEXIT): Likewise.
144         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
145         (_G_HAVE_IO_FILE_OPEN): Likewise.
146         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
147         (_G_int32_t): Likewise.
148         (_G_uint16_t): Likewise.
149         (_G_uint32_t): Likewise.
150         (_G_HAVE_BOOL): Likewise.
151         (_G_HAVE_ATEXIT): Likewise.
152         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
153         (_G_HAVE_IO_FILE_OPEN): Likewise.
154         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
155         (_G_int32_t): Likewise.
156         (_G_uint16_t): Likewise.
157         (_G_uint32_t): Likewise.
158         (_G_HAVE_BOOL): Likewise.
159         (_G_HAVE_ATEXIT): Likewise.
160         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
161         (_G_HAVE_IO_FILE_OPEN): Likewise.
162
163 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
164
165         * csu/libc-tls.c: Update copyright years.
166
167 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
168
169         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
170         [!_G_USING_THUNKS]: Remove conditional code.
171         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
172         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
173
174         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
175         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
176         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
177         (_G_VTABLE_LABEL_PREFIX): Likewise.
178         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
179         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
180         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
181         (_G_VTABLE_LABEL_PREFIX): Likewise.
182         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
183         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
184         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
185         (_G_VTABLE_LABEL_PREFIX): Likewise.
186         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
187
188 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
189
190         * libio/Makefile: Include ../Makeconfig before tests.
191         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
192         only if $(build-shared) is yes.
193
194         * iconv/gconv_db.c: Update copyright years.
195
196 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
197
198         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
199         unwind info if defined PIC. Fix special cases description.
200         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
201
202         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
203         DP_HI_MASK entry.
204         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
205
206 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
207
208         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
209
210         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
211         is NULL.
212
213         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
214         (LDLIBS-tst-chk4): This.
215         (LDFLAGS-tst-chk5): Renamed to ...
216         (LDLIBS-tst-chk5): This.
217         (LDFLAGS-tst-chk6): Renamed to ...
218         (LDLIBS-tst-chk6): This.
219         (LDFLAGS-tst-lfschk4): Renamed to ...
220         (LDLIBS-tst-lfschk4): This.
221         (LDFLAGS-tst-lfschk5): Renamed to ...
222         (LDLIBS-tst-lfschk5): This.
223         (LDFLAGS-tst-lfschk6): Renamed to ...
224         (LDLIBS-tst-lfschk6): This.
225
226         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
227         on $(common-objpfx)soversions.mk.
228
229 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
230
231         [BZ #10014]
232         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
233         example host name.
234
235 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
236
237         * malloc/arena.c (arena_get_retry): New function that gets
238         another arena for the caller to try its request on.
239         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
240         current arena cannot fulfill the request.
241         (__libc_memalign): Likewise.
242         (__libc_memalign): Likewise.
243         (__libc_pvalloc): Likewise.
244         (__libc_calloc): Likewise.
245
246 2012-09-05  John Tobey  <john.tobey@gmail.com>
247
248         [BZ #13542]
249         * manual/arith.texi (Operations on Complex): Fix description
250         of carg branch cut.
251
252 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
253
254         [BZ #10014]
255         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
256         host name.
257
258         [BZ #10038]
259         * manual/memory.texi (Memory): Make order of menu items match
260         order of sections.
261
262 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
263
264         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
265         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
266         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
267
268 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
269
270         * csu/libc-tls.c (static_dtv): Renamed to ...
271         (_dl_static_dtv): This.  Make it global.
272         (_dl_initial_dtv): Removed.
273         (__libc_setup_tls): Updated.
274         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
275         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
276         DL_INITIAL_DTV.
277
278 2012-09-06  Petr Machata  <pmachata@redhat.com>
279
280         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
281         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
282         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
283         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
284
285 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
286
287         [BZ #14545]
288         * csu/libc-tls.c (_dl_initial_dtv): New variable.
289         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
290         freeing dtv[-1].
291
292 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
293
294         [BZ #14544]
295         * Makeconfig (link-static-before-libc): Replace $(+prector)
296         with $(+prectorT).
297         (link-static-after-libc): Replace $(+postctor) with
298         $(+postctorT).
299         (link-bounded): Replace $(+prector)/$(+postctor) with
300         $(+prectorT)/$(+postctorT).
301         (+prectorT): New macro.
302         (+postctorT): Likewise.
303
304 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
305
306         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
307         (round_str): Handle values above the maximum for IBM long double
308         as inexact.
309         * stdlib/tst-strtod-round.c (tests): Regenerated.
310
311 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
312
313         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
314         assembler flag.
315         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
316         zarch_nohighgprs around the zarch optimized routines.
317         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
318         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
319         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
320         for zarch.
321
322 2012-09-05  David S. Miller  <davem@davemloft.net>
323
324         * sysdeps/sparc/fpu/libm-test-ulps: Update.
325
326         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
327         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
328         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
329         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
330         entries.
331
332 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
333
334         * malloc/arena.c: Fold copyright years.
335         * malloc/mcheck.c, malloc/memusage.c: Likewise.
336
337 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
338
339         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
340
341 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
342
343         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
344
345 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
346
347         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
348         change internal state upon failure.
349
350 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
351
352         * malloc/mcheck.c (mcheck_check_all): Fix typo.
353         * malloc/memusage.c (mmap): Likewise.
354         (mmap64, mremap): Likewise.  Adjust name in comment.
355
356 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
357
358         * libio/fileops.c: Fix typos in comments.
359         * libio/oldfileops.c: Likewise.
360         * libio/wfileops.c: Likewise.
361
362 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
363
364         [BZ #1349]
365         * malloc/Makefile (tests): Add tst-malloc-usable test case.
366         (tst-malloc-usable-ENV): Set environment for test case.
367         * malloc/hooks.c (malloc_check_get_size): New function to get
368         requested size.
369         * malloc/malloc.c (musable): Use malloc_check_get_size.
370         * malloc/tst-malloc-usable.c: New test case.
371
372 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
373
374         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
375
376 2012-09-05  Allan McRae  <allan@archlinux.org>
377
378         [BZ #13966]
379         * configure.in (CXX_SYSINCLUDES): Use compiler output to
380         determine header location.
381         * configure: Regenerated.
382
383 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
384
385         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
386         float format.
387         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
388         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
389         format.
390         (test): Regenerate.
391
392 2012-09-04  David S. Miller  <davem@davemloft.net>
393
394         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
395         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
396         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
397
398 2012-09-04  Florian Weimer  <fweimer@redhat.com>
399
400         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
401         failures.
402
403         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
404
405 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
406
407         [BZ #9914]
408         * libio/iogetdelim.c: Include <limits.h>.
409         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
410         + len + 1 would overflow.
411
412 2012-09-03  Andreas Jaeger  <aj@suse.de>
413
414         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
415         * sysdeps/i386/fpu/libm-test-ulps: Update.
416
417 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
418
419         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
420         Add s_sinf-sse2, s_conf-sse2.
421
422         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
423         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
424         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
425         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
426
427         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
428         for using routine as __sinf_ia32.
429         Use macro for function declaration and weak_alias.
430         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
431         for using routine as __cosf_ia32.
432         Use macro for function declaration and weak_alias.
433
434         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
435         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
436
437         * sysdeps/x86_64/fpu/s_sinf.S: New file.
438         * sysdeps/x86_64/fpu/s_cosf.S: New file.
439         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
440
441         * math/libm-test.inc (cos_test): Add more test cases.
442         (sin_test): Likewise.
443         (sincos_test): Likewise.
444
445 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
446
447         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
448         (IFUNC_RESOLVE): Make pointers to the specialized implementations
449         hidden.
450         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
451
452 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
453
454         [BZ #14538]
455         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
456         first element of the GOT.
457         (elf_machine_load_address): Return the difference between
458         the runtime address of _DYNAMIC and elf_machine_dynamic ().
459
460 2012-09-01  Allan McRae  <allan@archlinux.org>
461
462         [BZ #13412]
463         * configure.in (AWK): Require gawk version 3.0 or later.
464         * configure: Regenerated.
465
466 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
467
468         * sysdeps/unix/sysv/linux/kernel-features.h
469         (__ASSUME_POSIX_CPU_TIMERS): Remove.
470         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
471         [__NR_clock_getres]: Make code unconditional.
472         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
473         (clock_getcpuclockid): Remove code left unreachable by removal of
474         conditionals.
475         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
476         code unconditional.
477         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
478         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
479         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
480         Make code unconditional.
481         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
482         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
483         * sysdeps/unix/sysv/linux/clock_settime.c
484         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
485         conditional code.
486         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
487         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
488
489 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
490
491         [BZ #14476]
492         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
493         scripts/test-installation.pl.
494
495         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
496         and $ld_so_version if it is set.
497
498 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
499
500         [BZ #14516]
501         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
502         failure if reading from procfs failed.
503         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
504
505 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
506
507         * sysdeps/unix/sysv/linux/kernel-features.h
508         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
509         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
510         Remove conditional code.
511         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
512         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
513         Remove conditional code.
514         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
515         * sysdeps/unix/sysv/linux/i386/fxstat.c
516         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
517         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
518         * sysdeps/unix/sysv/linux/i386/fxstatat.c
519         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
520         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
521         * sysdeps/unix/sysv/linux/i386/lxstat.c
522         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
523         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
524         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
525         Remove conditional code.
526         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
527         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
528         Remove conditional code.
529         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
530         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
531         <kernel-features.h>.
532         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
533         Remove.
534         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
535         Remove conditional code.
536         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
537         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
538         Remove conditional.
539
540 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
541
542         [BZ #5400]
543         * NEWS: Add fixed bug number.
544
545 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
546
547         [BZ #14519]
548         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
549         underflowing exponent in case of negative sign.
550         * stdlib/tst-strtod-round-data: Add more tests.
551         * stdlib/tst-strtod-round.c (tests): Regenerated.
552
553         [BZ #3479]
554         * stdlib/strtod_l.c (NDIG): Remove.
555         (HEXNDIG): Likewise.
556         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
557         smallest representable value.
558         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
559         lie within an exact representation of 1/2 ulp of the result.
560         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
561         unconditionally.
562         (TENS_P9_IDX): Define unconditionally.
563         (TENS_P9_SIZE): Likewise.
564         (TENS_P10_IDX): Likewise.
565         (TENS_P10_SIZE): Likewise.
566         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
567         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
568         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
569         entries for 10^2^13 and 10^2^14.
570         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
571         (TENS_P13_IDX): Define.
572         (TENS_P13_SIZE): Likewise.
573         (TENS_P14_IDX): Likewise.
574         (TENS_P14_SIZE): Likewise.
575         (_fpioconst_pow10): Change array size to
576         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
577         unconditional.
578         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
579         1024]: Add entries for 10^2^13 and 10^2^14.
580         [LAST_POW10 > _LAST_POW10]: Remove #error.
581         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
582         (_fpioconst_pow10): Change array size to
583         FPIOCONST_POW10_ARRAY_SIZE.
584         * stdlib/gen-fpioconst.c: New file.
585         * stdlib/gen-tst-strtod-round.c: Likewise.
586         * stdlib/tst-strtod-round-data: Likewise.
587         * stdlib/tst-strtod-round.c: Likewise.
588         * stdlib/Makefile (tests): Add tst-strtod-round.
589
590         [BZ #14459]
591         * stdlib/strtod_l.c: Include <stdint.h>.
592         (NDEBUG): Do not define.
593         (round_and_return): Change EXPONENT parameter to type intmax_t.
594         Rearrange calculations to avoid internal overflow possibilities.
595         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
596         Rearrange calculations to avoid internal overflow possibilities.
597         Assert that number fits inside MPNSIZE limbs.
598         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
599         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
600         calculations and add assertions to avoid internal overflow
601         possibilities.  Add casts to avoid signed/unsigned operations.
602         * stdlib/tst-strtod-overflow.c: New file.
603         * stdlib/Makefile (tests): Add tst-strtod-overflow.
604
605 2012-08-25  Marek Polacek  <polacek@redhat.com>
606
607         * time/time.h: Fix some typos in comments.
608
609 2012-08-23  Roland McGrath  <roland@hack.frob.com>
610
611         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
612         * posix/tst-rfc3484-2.c: Likewise.
613         * posix/tst-rfc3484-3.c: Likewise.
614
615 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
616
617         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
618         (EF_ARM_ABI_FLOAT_HARD): Likewise.
619
620 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
621
622         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
623         #include of fxstatat64.c.
624
625 2012-08-22  Roland McGrath  <roland@hack.frob.com>
626
627         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
628         * shadow/getspent_r.c: Likewise.
629         * shadow/getspnam.c: Likewise.
630         * shadow/getspnam_r.c: Likewise.
631         * gshadow/getsgent.c: Likewise.
632         * gshadow/getsgent_r.c: Likewise.
633         * gshadow/getsgnam.c: Likewise.
634         * gshadow/getsgnam_r.c: Likewise.
635         * inet/getnetbyad.c: Likewise.
636         * inet/getnetbyad_r.c: Likewise.
637         * inet/getnetbynm.c: Likewise.
638         * inet/getnetbynm_r.c: Likewise.
639         * inet/getnetent.c: Likewise.
640         * inet/getnetent_r.c: Likewise.
641         * inet/getproto.c: Likewise.
642         * inet/getproto_r.c: Likewise.
643         * inet/getprtent.c: Likewise.
644         * inet/getprtent_r.c: Likewise.
645         * inet/getprtname.c: Likewise.
646         * inet/getprtname_r.c: Likewise.
647         * inet/getrpcbyname.c: Likewise.
648         * inet/getrpcbyname_r.c: Likewise.
649         * inet/getrpcbynumber.c: Likewise.
650         * inet/getrpcbynumber_r.c: Likewise.
651         * inet/getrpcent.c: Likewise.
652         * inet/getrpcent_r.c: Likewise.
653         * inet/getaliasent.c: Likewise.
654         * inet/getaliasent_r.c: Likewise.
655         * inet/getaliasname.c: Likewise.
656         * inet/getaliasname_r.c: Likewise.
657         * nscd/getgrgid_r.c: Likewise.
658         * nscd/getgrnam_r.c: Likewise.
659         * nscd/gethstbyad_r.c: Likewise.
660         * nscd/gethstbynm3_r.c: Likewise.
661         * nscd/getpwnam_r.c: Likewise.
662         * nscd/getpwuid_r.c: Likewise.
663         * nscd/getsrvbynm_r.c: Likewise.
664         * nscd/getsrvbypt_r.c: Likewise.
665         * nscd/gai.c: Likewise.
666
667         * configure.in (build_nscd): New substituted variable, set
668         by --disable-build-nscd and defaults to $use_nscd.
669         * configure: Regenerated.
670         * config.make.in (build-nscd): New substituted variable.
671         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
672         Change conditional to require [$(build-nscd) = yes] as well.
673         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
674
675         [BZ# 13696]
676         * configure.in (use_nscd): New substituted variable, set by
677         --disable-nscd.  If enabled, define USE_NSCD.
678         * configure: Regenerated.
679         * config.h.in: Add USE_NSCD.
680         * config.make.in (use-nscd): New substituted variable.
681         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
682         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
683         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
684         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
685         (CFLAGS-getgrnam_r.c): Likewise.
686         (CFLAGS-initgroups.c): Likewise.
687         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
688         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
689         Variables removed.
690         * inet/getnetgrent_r.c
691         (nscd_setnetgrent): New function, broken out of ...
692         (setnetgrent): ... here.  Call it.
693         (innetgr): Conditionalize nscd bits on [USE_NSCD].
694         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
695         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
696         * nscd/Makefile (routines, aux): Move definitions after include of
697         Makeconfig.  Conditionalize on [$(use-nscd) != no].
698         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
699         Conditionalize on [USE_NSCD].
700         (is_nscd, nscd_init_cb): Likewise.
701         (nss_load_library): Conditionalize init callback on [USE_NSCD].
702         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
703         * nss/nss_db/db-init.c: Likewise.
704         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
705         [USE_NSCD].
706         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
707         (make_request): Use it.
708         (cache_valid_p): New function.
709         (__check_pf): Use it.
710         * NEWS: Add item for --disable-nscd.
711
712 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
713
714         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
715         to support sed >= 4.2.1-20-ga9bf076.
716         * configure: Regenerated.
717
718 2012-08-22  Roland McGrath  <roland@hack.frob.com>
719
720         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
721         Conditionalize whole body on [IREL].
722
723 2012-08-22  Jeff Law <law@redhat.com>
724
725         [BZ #14505]
726         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
727         if the family is PF_UNSPEC.
728
729 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
730
731         * Makerules (lib-version): Rename from V.
732         (install-lib-nosubdir): Change V to lib-version.
733
734 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
735
736         [BZ #14252]
737         * powerpc32/power6/wcschr.c: New file.
738         * powerpc32/power6/wcscpy.c: New file.
739         * powerpc32/power6/wcsrchr.c: New file.
740         * powerpc64/power6/wcschr.c: New file.
741         * powerpc64/power6/wcscpy.c: New file.
742         * powerpc64/power6/wcsrchr.c: New file.
743
744 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
745
746         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
747         (two_way_short_needle): Use it.
748         * string/strstr.c (AVAILABLE1_USES_J): Define.
749         * string/strcasestr.c: Likewise.
750
751         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
752         array references.
753         * string/strcasestr.c (TOLOWER): Make side-effect safe.
754
755         [BZ #11607]
756         * NEWS: Add an entry.
757         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
758         define their defaults.
759         (two_way_short_needle): Detect end-of-string on-the-fly.
760         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
761         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
762         * string/bug-strcasestr1.c: New test.
763         * string/Makefile: Run it.
764
765 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
766
767         [BZ #11607]
768         * string/str-two-way.h (two_way_short_needle): Optimize matching of
769         the first character.
770
771 2012-08-21  Roland McGrath  <roland@hack.frob.com>
772
773         * csu/elf-init.c (__libc_csu_irel): Function removed.
774         * csu/libc-start.c (apply_irel): New function.
775         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
776
777 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
778
779         * sysdeps/unix/sysv/linux/kernel-features.h
780         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
781         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
782         <kernel-features.h>.
783         [__NR_fadvise64_64]: Make code unconditional.
784         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
785         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
786         !__NR_fadvise64_64)]: Likewise.
787         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
788         !__NR_fadvise64_64))]: Likewise.
789         [__NR_fadvise64]: Make code unconditional.
790         [!__NR_fadvise64]: Remove conditional code.
791         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
792         <kernel-features.h>.
793         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
794         unconditional.
795         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
796         conditional code.
797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
798         not include <kernel-features.h>.
799         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
800         unconditional.
801         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
802         conditional code.
803         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
804         include <kernel-features.h>.
805         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
806         unconditional.
807         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
808         conditional code.
809
810 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
811
812         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
813         slight instruction rearrangements per scrollpipe analysis.
814         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
815
816 2012-08-20  Roland McGrath  <roland@hack.frob.com>
817
818         * manual/syslog.texi (syslog; vsyslog, closelog):
819         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
820         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
821
822         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
823         DSOCAPS to match condition on defining it.
824
825 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
826
827         * sysdeps/unix/sysv/linux/kernel-features.h
828         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
830         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
831         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
833         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
834         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
836         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
837         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
838
839         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
840         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
841
842         * sysdeps/unix/sysv/linux/kernel-features.h
843         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
844         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
845         unconditional.
846         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
847         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
848         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
849         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
850         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
851         Make code unconditional.
852         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
853         (__mmap64) [!__NR_mmap2]: Likewise.
854         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
855         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
856         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
857         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
858         [__NR_mmap2]: Make code unconditional.
859         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
860         (__mmap64) [!__NR_mmap2]: Likewise.
861
862 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
863
864         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
865
866 2012-08-18  Andreas Jaeger  <aj@suse.de>
867
868         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
869
870 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
871
872         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
873         * include/unistd.h (__have_sock_cloexec): Likewise.
874         (__have_pipe2): Likewise.
875         (__have_dup3): Likewise.
876
877 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
878
879         [BZ #9685]
880         * include/unistd.h (__have_pipe2): Change define into an extern int.
881         (__have_dup3): Likewise.
882         * socket/have_sock_cloexec.c: Include fcntl.h.
883         (__have_pipe2): New variable.
884         (__have_dup3): Likewise.
885
886 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
887
888         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
889
890 2012-08-17  Marek Polacek  <polacek@redhat.com>
891
892         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
893         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
894
895 2012-08-17  Roland McGrath  <roland@hack.frob.com>
896
897         * configure.in: Add AC_SUBST for sysheaders.
898         * configure: Regenerated.
899         * config.make.in (sysheaders): New substituted variable.
900
901         * sysdeps/unix/mkfifo.c: Moved ...
902         * sysdeps/posix/mkfifo.c: ... here.
903         * sysdeps/unix/mkfifoat.c: Moved ...
904         * sysdeps/posix/mkfifoat.c: ... here.
905
906         * sysdeps/unix/utime.c: Moved ...
907         * sysdeps/posix/utime.c: ... here.
908
909         * sysdeps/unix/time.c: Moved ...
910         * sysdeps/posix/time.c: ... here.
911         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
912         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
913
914         * sysdeps/unix/nice.c: Moved ...
915         * sysdeps/posix/nice.c: ... here.
916
917         * sysdeps/unix/alarm.c: Moved ...
918         * sysdeps/posix/alarm.c: ... here.
919
920         * intl/Makefile ($(codeset_mo)): Depend on the input file.
921
922 2012-08-17  Jeff Law <law@redhat.com>
923
924         * intl/Makefile (codeset_mo): New variable.
925         ($(codeset_mo)): New target.
926         (tst-codeset.out): Depend on that.  Remove explicit rule.
927         (tst-gettext3.out, tst-gettext5.out): Likewise.
928         (LOCPATH-ENV, tst-codeset-ENV): New variables.
929         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
930         * intl/tst-codeset.sh: Remove.
931         * intl/tst-gettext3.sh: Likewise.
932         * intl/tst-gettext5.sh: Likewise.
933
934 2012-08-17  Roland McGrath  <roland@hack.frob.com>
935
936         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
937         * sysdeps/unix/syscalls.list: ... here.
938
939         * sysdeps/posix/getaddrinfo.c
940         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
941         (gaiconf_init, gaiconf_reload): Use them.
942         [!_STATBUF_ST_NSEC]
943         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
944         Define using time_t rather than struct timespec.
945
946         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
947         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
948         Macros removed.
949         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
950         [!NO_THREADS].
951         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
952         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
953         Likewise.
954
955         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
956         __libc_cleanup_push argument.
957
958         * bits/param.h: New file.
959         * misc/sys/param.h: New file.
960         * include/sys/param.h: New file.
961         * misc/Makefile (headers): Add bits/param.h.
962         * sysdeps/generic/sys/param.h: File removed.
963         * sysdeps/unix/sysv/linux/bits/param.h: New file.
964         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
965         * sysdeps/mach/hurd/bits/param.h: New file.
966         * sysdeps/mach/hurd/sys/param.h: New file.
967
968         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
969         last change.
970
971         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
972         [_IO_MTSAFE_IO].
973         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
974         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
975         New macros.
976
977         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
978         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
979         rather than -D_IO_MTSAFE_IO conditionally.
980         * stdio-common/Makefile (CPPFLAGS): Likewise.
981         * wcsmbs/Makefile (CPPFLAGS): Likewise.
982         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
983         Use $(libio-mtsafe).
984         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
985         of -D_IO_MTSAFE_IO.
986         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
987         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
988         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
989         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
990         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
991         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
992         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
993         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
994         (CFLAGS-fread_u_chk.c): Likewise.
995         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
996         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
997         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
998         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
999         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1000         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1001         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1002         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1003         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1004
1005         * libio/Makefile: Test [$(libc-reentrant) = yes]
1006         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1007
1008         * Makeconfig
1009         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1010         * sysdeps/pthread/configure: File removed.
1011         * sysdeps/pthread/Makeconfig: New file.
1012         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1013         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1014
1015 2012-08-16  Gary Benson  <gbenson@redhat.com>
1016
1017         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1018         unmapping the first object in a namespace.
1019
1020 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1021
1022         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1023         (__internal_setnetgrent): ... this.  Add internal_function to
1024         definition.  Add libc_hidden_def.
1025         (setnetgrent): Update caller.
1026         (internal_endnetgrent): Renamed to ...
1027         (__internal_endnetgrent): ... this.  Add internal_function to
1028         definition.  Add libc_hidden_def.
1029         (endnetgrent): Update caller.
1030         (internal_getnetgrent_r): Renamed to ...
1031         (__internal_getnetgrent_r): ... this.  Add internal_function to
1032         definition.  Add libc_hidden_def.
1033         (__getnetgrent_r): Update caller.
1034         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1035
1036 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1037
1038         * stdlib/longlong.h: Update from GCC.
1039
1040 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1041
1042         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1043         on _QL, which is set by umul_ppmm but never used.
1044         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1045         variables, which are set by GMP macros but never used.
1046         * stdio-common/_itowa.c (_itowa): Likewise.
1047         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1048         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1049
1050 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1051
1052         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1053         struct La_sh_regs is not constant.
1054         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1055         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1056         and struct La_sparc64_regs are not constant.
1057
1058 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1059
1060         * sysdeps/unix/sysv/linux/kernel-features.h
1061         (__ASSUME_POSIX_TIMERS): Remove.
1062         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1063         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1064         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1065         Make code unconditional.
1066         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1067         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1068         Make code unconditional.
1069         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1070         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1071         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1072         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1073         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1074         Make code unconditional.
1075         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1076         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1077         (__libc_missing_posix_timers): Remove.
1078
1079 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1080
1081         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1082         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1083
1084         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1085
1086         * elf/dl-sym.c: Include <stdlib.h>.
1087
1088         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1089         constants, which avoids warnings in 32-bit builds.
1090
1091         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1092         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1093
1094         * misc/lseek.c: File moved to ...
1095         * io/lseek.c: ... here.
1096
1097         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1098
1099         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1100         shifting LEN more than 31 bits at once.
1101
1102 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1103
1104         [BZ #14195]
1105         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1106         segmentation fault for a case of two empty input strings.
1107         * string/test-strncasecmp.c (check1): Renamed to...
1108         (bz12205): ...this.
1109         (bz14195): Add new testcase for two empty input strings and N > 0.
1110         (test_main): Call new testcase, adapt for renamed function.
1111
1112 2012-08-15  Andreas Jaeger  <aj@suse.de>
1113
1114         [BZ #14090]
1115         * crypt/md5test2.c: New test, based on test supplied by Serge
1116         Belyshev <belyshev@depni.sinp.msu.ru>.
1117         * crypt/Makefile (xtests): Add md5test-giant..
1118         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1119
1120 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1121
1122         [BZ #14090]
1123         * crypt/md5.c (md5_process_block): Don't assume the buffer
1124         length is less than 2**32.
1125         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1126         length is less than 2**64.
1127
1128 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1129
1130         * string/str-two-way.h: Include <sys/param.h>.
1131         (MAX): Macro removed.
1132
1133         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1134         Move #define and #undef of memmove to just before and after
1135         including <string.h>.
1136
1137         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1138         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1139         and after including <string.h>.  Move declarations of
1140         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1141         to before #include "string/memmove.c".
1142
1143         * include/dirent.h: Declare __getdirentries.
1144
1145         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1146         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1147
1148 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1149
1150         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1151         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1152         * sysdeps/i386/configure: Regenerated.
1153         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1154         STABS_CURRENT_FILE, and STABS_FUN.
1155         (END): Remove call to STABS_FUN_END.
1156         (STABS_CURRENT_FILE1): Delete.
1157         (STABS_CURRENT_FILE): Likewise.
1158         (STABS_FUN): Likewise.
1159         (STABS_FUN_END): Likewise.
1160         (STABS_FUN2): Likewise.
1161         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1162         * sysdeps/x86_64/configure: Regenerated.
1163
1164 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1165
1166         * elf/dl-open.c: Include <atomic.h>.
1167         * elf/dl-lookup.c: Likewise.
1168
1169 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1170
1171         * sysdeps/unix/sysv/linux/kernel-features.h
1172         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1173         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1174         unconditionally.
1175         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1176         unconditionally.
1177         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1178         condition on __ASSUME_CLONE_THREAD_FLAGS.
1179
1180 2012-08-14  Andreas Jaeger  <aj@suse.de>
1181
1182         * sysdeps/i386/fpu/libm-test-ulps: Update.
1183
1184 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1185
1186         * include/atomic.h (atomic_exchange_and_add): Split into ...
1187         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1188         New atomic macros.
1189
1190 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1191
1192         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1193
1194 2012-08-13  Jeff Law <law@redhat.com>
1195
1196         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1197         null byte in the output string.
1198
1199 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1200
1201         * sysdeps/unix/sysv/linux/kernel-features.h
1202         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1203         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1204         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1205         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1206         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1207         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1208         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1209
1210 2012-08-09  Jeff Law <law@redhat.com>
1211
1212         [BZ #13939]
1213         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1214         When avoid_arena is set, don't retry in the that arena.  Pick the
1215         next one, whatever it might be.
1216         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1217         (arena_lock): Pass in new parameter to arena_get2.
1218         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1219         arena_get2.
1220         (__libc_malloc): Unify retrying after main arena failure with
1221         __libc_memalign version.
1222         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1223
1224 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1225
1226         [BZ #14166]
1227         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1228         to __redirect_strstr.
1229         (__strstr_sse42): Use typeof __redirect_strstr.
1230         (__strstr_ia32): Likewise.
1231         (__libc_strstr): New prototype.
1232         (strstr): Renamed to ...
1233         (__libc_strstr): This.
1234         (strstr): New strong alias of __libc_strstr.
1235         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1236         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1237         __redirect_time.
1238         Include <time.h>.
1239         (__libc_time): New prototype.
1240         (time_ifunc): Replace time with __libc_time.
1241         (time): New strong alias and hidden definition of __libc_time.
1242         (__GI_time): Remove strong alias.
1243         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1244         Include <stddef.h>.
1245         (memmove): Redefined to __redirect_memmove.
1246         (__memmove_sse2): Use typeof __redirect_memmove.
1247         (__memmove_ssse3): Likewise.
1248         (__memmove_ssse3_back): Likewise.
1249         (__libc_memmove): New prototype.
1250         (memmove): Renamed to ...
1251         (__libc_memmove): This.
1252         (memmove): New strong alias of __libc_memmove.
1253
1254 2012-08-08  Mark Salter  <msalter@redhat.com>
1255
1256         * elf/elf.h
1257         (R_MN10300_TLS_GD): Define.
1258         (R_MN10300_TLS_LD): Likewise.
1259         (R_MN10300_TLS_LDO): Likewise.
1260         (R_MN10300_TLS_GOTIE): Likewise.
1261         (R_MN10300_TLS_IE): Likewise.
1262         (R_MN10300_TLS_LE): Likewise.
1263         (R_MN10300_TLS_DTPMOD): Likewise.
1264         (R_MN10300_TLS_DTPOFF): Likewise.
1265         (R_MN10300_TLS_TPOFF): Likewise.
1266         (R_MN10300_SYM_DIFF): Likewise.
1267         (R_MN10300_ALIGN): Likewise.
1268         (R_MN10300_NUM): Update.
1269
1270 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1271
1272         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1273         Remove.
1274
1275 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1276
1277         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1278
1279         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1280         sysdeps/unix -> sysdeps/posix move.
1281         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1282
1283 2012-08-07      Allan McRae     <allan@archlinux.org>
1284
1285         [BZ #14303]
1286         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1287         (SUNOS_CPP): Likewise.
1288         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1289         not found.
1290         (open_input): Call CPP using execvp.
1291
1292 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1293
1294         * sysdeps/unix/sysv/linux/kernel-features.h
1295         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1296         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1297         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1298         (__ASSUME_WAITID_SYSCALL): Likewise.
1299         * sysdeps/unix/sysv/linux/dl-execstack.c
1300         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1301         code unconditional.
1302         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1303         conditional code.
1304         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1305         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1306         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1307         code.
1308         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1309         unconditional.
1310         [__ASSUME_WAITID_SYSCALL]: Likewise.
1311         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1312
1313 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1314
1315         * sysdeps/unix/closedir.c: Renamed to ...
1316         * sysdeps/posix/closedir.c: ... here.
1317         * sysdeps/unix/dirfd.c: Renamed to ...
1318         * sysdeps/posix/dirfd.c: ... here.
1319         * sysdeps/unix/dirstream.h: Renamed to ...
1320         * sysdeps/posix/dirstream.h: ... here.
1321         * sysdeps/unix/fdopendir.c: Renamed to ...
1322         * sysdeps/posix/fdopendir.c: ... here.
1323         * sysdeps/unix/opendir.c: Renamed to ...
1324         * sysdeps/posix/opendir.c: ... here.
1325         * sysdeps/unix/readdir.c: Renamed to ...
1326         * sysdeps/posix/readdir.c: ... here.
1327         * sysdeps/unix/readdir_r.c: Renamed to ...
1328         * sysdeps/posix/readdir_r.c: ... here.
1329         * sysdeps/unix/rewinddir.c: Renamed to ...
1330         * sysdeps/posix/rewinddir.c: ... here.
1331         * sysdeps/unix/seekdir.c: Renamed to ...
1332         * sysdeps/posix/seekdir.c: ... here.
1333         * sysdeps/unix/telldir.c: Renamed to ...
1334         * sysdeps/posix/telldir.c: ... here.
1335         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1336         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1337         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1338         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1339
1340         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1341         * bits/fcntl.h: ... here.
1342
1343         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1344         not 0.
1345         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1346         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1347         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1348         (struct flock): Move l_start, l_len to the beginning.
1349         Use __pid_t for l_pid.
1350         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1351         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1352         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1353         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1354         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1355         [__USE_LARGEFILE64] (struct flock64): New type.
1356         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1357
1358         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1359         * bits/dirent.h: ... here.
1360
1361         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1362         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1363
1364 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1365
1366         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1367         Change from 2.6.0 to 2.6.16.
1368         * sysdeps/unix/sysv/linux/configure: Regenerated.
1369         * sysdeps/unix/sysv/linux/kernel-features.h
1370         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1371         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1372         version.
1373         (__ASSUME_UTIMES): Likewise.
1374         (__ASSUME_CLONE_STOPPED): Remove.
1375         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1376         architectures, not kernel version.
1377         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1378         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1379         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1380         (__ASSUME_WAITID_SYSCALL): Likewise.
1381         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1382         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1383         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1384         refer to older versions.
1385
1386 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1387
1388         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1389         Define alphasort64 as an alias.
1390         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1391         Define versionsort64 as an alias.
1392         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1393         Define scandir64 as an alias.
1394         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1395         Define scandirat64 as an alias.
1396         * dirent/alphasort64.c (alphasort64):
1397         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1398         * dirent/versionsort64.c: Likewise.
1399         * dirent/scandir64.c: Likewise.
1400         * dirent/scandirat64.c: Likewise.
1401         * sysdeps/wordsize-64/alphasort.c: File removed.
1402         * sysdeps/wordsize-64/alphasort64.c: File removed.
1403         * sysdeps/wordsize-64/scandir.c: File removed.
1404         * sysdeps/wordsize-64/scandir64.c: File removed.
1405         * sysdeps/wordsize-64/scandirat.c: File removed.
1406         * sysdeps/wordsize-64/scandirat64.c: File removed.
1407         * sysdeps/wordsize-64/versionsort.c: File removed.
1408         * sysdeps/wordsize-64/versionsort64.c: File removed.
1409         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1410         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1411         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1412         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1413         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1414         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1415         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1416         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1417
1418         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1419         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1420         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1421         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1422         [defined __arch64__ || defined __sparcv9]
1423         (__INO_T_MATCHES_INO64_T): New macro.
1424         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1425         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1426         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1427         * sysdeps/unix/sysv/linux/bits/dirent.h
1428         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1429         (_DIRENT_MATCHES_DIRENT64): New macro.
1430
1431         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1432         Define lockf64 as an alias.
1433         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1434         Define fseeko64 as an alias.
1435         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1436         Define ftello64 as an alias.
1437         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1438         Define _IO_fgetpos64 and fgetpos64 as aliases.
1439         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1440         Define _IO_fsetpos64 and fsetpos64 as aliases.
1441         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1442         Conditionalize body on this.
1443         * libio/fseeko64.c: Likewise.
1444         * libio/ftello64.c: Likewise.
1445         * libio/iofgetpos64.c: Likewise.
1446         * libio/iofsetpos64.c: Likewise.
1447         * sysdeps/wordsize-64/lockf.c: File removed.
1448         * sysdeps/wordsize-64/lockf64.c: File removed.
1449         * sysdeps/wordsize-64/fseeko.c: File removed.
1450         * sysdeps/wordsize-64/fseeko64.c: File removed.
1451         * sysdeps/wordsize-64/ftello.c: File removed.
1452         * sysdeps/wordsize-64/ftello64.c: File removed.
1453         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1454         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1455         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1456         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1457         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1458         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1459         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1460         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1461         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1462         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1463         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1464         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1465         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1466         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1467
1468         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1469         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1470         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1471         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1472         [defined __arch64__ || defined __sparcv9]
1473         (__OFF_T_MATCHES_OFF64_T): New macro.
1474         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1475         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1476         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1477         (__OFF_T_MATCHES_OFF64_T): New macro.
1478
1479 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1480
1481         * stdlib/secure-getenv.c (__secure_getenv): Replace
1482         GLIBC_2_16 with GLIBC_2_17.
1483
1484 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1485
1486         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1487         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1488
1489 2012-08-03  David S. Miller  <davem@davemloft.net>
1490
1491         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1492
1493 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1494
1495         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1496         Remove.
1497         (__ASSUME_CORRECT_SI_PID): Likewise.
1498         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1499         (__ASSUME_TMPFS_NAME): Likewise.
1500         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1501         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1502         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1503         (HAVE_AUX_SECURE): Make definition unconditional.
1504         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1505         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1506
1507 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1508
1509         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1510         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1511         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1512         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1513         __eloop_threshold instead of SYMLOOP_MAX.
1514
1515         * sysdeps/generic/eloop-threshold.h: New file.
1516         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1517         of MAXSYMLINKS.
1518         * elf/chroot_canon.c (chroot_canon): Likewise.
1519
1520 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1521
1522         [BZ #13717]
1523         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1524         Change to 2.6.0 everywhere.
1525         * sysdeps/unix/sysv/linux/configure: Regenerated.
1526         * sysdeps/unix/sysv/linux/kernel-features.h
1527         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1528         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1529         kernel versions.
1530         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1531         (__ASSUME_FUTEX_REQUEUE): Remove.
1532         (__ASSUME_STATFS64): Define unconditionally.
1533         (__ASSUME_AT_SECURE): Likewise.
1534         (__ASSUME_CORRECT_SI_PID): Likewise.
1535         (__ASSUME_TGKILL): Define without depending on kernel version for
1536         i386.
1537         (__ASSUME_UTIMES): Likewise.
1538         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1539         kernel version.
1540         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1541         (__ASSUME_TMPFS_NAME): Likewise.
1542         * README: Update reference to Linux kernel versions.
1543
1544 2012-08-02  Marek Polacek  <polacek@redhat.com>
1545
1546         [BZ# 14150]
1547         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1548         libc_cv_asm_type_prefix with %.
1549         * configure: Regenerated.
1550         * include/libc-symbols.h: Remove comment about
1551         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1552         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1553         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1554         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1555         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1556         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1557         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1558         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1559         * elf/tst-unique2mod1.c: Likewise.
1560         * elf/tst-unique1mod2.c: Likewise.
1561         * elf/tst-unique1mod1.c: Likewise.
1562         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1563         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1564         Replace ASM_TYPE_DIRECTIVE with .type.
1565         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1566         * sysdeps/i386/sysdep.h: Likewise.
1567         * sysdeps/x86_64/sysdep.h: Likewise.
1568         * sysdeps/sh/sysdep.h: Likewise.
1569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1570         Do not define ASM_TYPE_DIRECTIVE.
1571         * sysdeps/powerpc/sysdep.h: Likewise.
1572         * sysdeps/powerpc/powerpc32/sysdep.h:
1573         Replace ASM_TYPE_DIRECTIVE with .type.
1574         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1575         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1576         * sysdeps/i386/fpu/e_powf.S: Likewise.
1577         * sysdeps/i386/fpu/e_expl.S: Likewise.
1578         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1579         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1580         * sysdeps/i386/fpu/e_pow.S: Likewise.
1581         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1582         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1583         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1584         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1585         * sysdeps/i386/fpu/e_log2.S: Likewise.
1586         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1587         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1588         * sysdeps/i386/fpu/e_powl.S: Likewise.
1589         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1590         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1591         * sysdeps/i386/fpu/e_logl.S: Likewise.
1592         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1593         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1594         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1595         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1596         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1597         * sysdeps/i386/fpu/e_log.S: Likewise.
1598         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1599         * sysdeps/i386/fpu/e_logf.S: Likewise.
1600         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1601         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1602         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1603         * sysdeps/i386/fpu/e_log10.S: Likewise.
1604         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1605         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1606         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1607         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1608         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1609         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1610         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1611         * sysdeps/i386/i686/strtok.S: Likewise.
1612         * sysdeps/i386/i386-mcount.S: Likewise.
1613         * sysdeps/i386/strtok.S: Likewise.
1614         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1615         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1616         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1617         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1618         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1619         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1620         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1621         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1622         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1623         * sysdeps/x86_64/_mcount.S: Likewise.
1624         * sysdeps/x86_64/strtok.S: Likewise.
1625         * sysdeps/sh/_mcount.S: Likewise.
1626
1627 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1628
1629         * libio/iofopen.c: Include <fcntl.h>.
1630         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1631         (_IO_fopen64, fopen64): Define as aliases.
1632         * libio/iofopen64.c: Include <fcntl.h>.
1633         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1634         Conditionalize body on this.
1635         * sysdeps/wordsize-64/iofopen.c: File removed.
1636         * sysdeps/wordsize-64/iofopen64.c: File removed.
1637
1638 2012-08-01  Marek Polacek  <polacek@redhat.com>
1639
1640         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1641         Use dlfcn directly instead of a variable.
1642         (binfmt-subdir): Do not define.
1643         (dlfcn): Likewise.
1644
1645 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1646
1647         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1648         Remove all definitions.
1649         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1650         <kernel-features.h>.
1651         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1652         (miss_F_GETOWN_EX): Remove all definitions.
1653         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1654         macro definition.
1655         [!__ASSUME_FCNTL64]: Remove conditional code.
1656         [__ASSUME_FCNTL64]: Make code unconditional.
1657         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1658         <kernel-features.h>.
1659         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1660         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1661         (lockf64) [__NR_fcntl64]: Make code unconditional.
1662         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1663
1664         * sysdeps/unix/sysv/linux/kernel-features.h
1665         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1666         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1667         Make code unconditional.
1668         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1669         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1671         [__NR_vfork]: Make code unconditional.
1672         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1673         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1675         [__NR_vfork]: Make code unconditional.
1676         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1677         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1678
1679 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1680
1681         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1682         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
1683
1684         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1685         Define mkstemp64 as an alias.
1686         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1687         Define mkstemps64 as an alias.
1688         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1689         Define mkostemp64 as an alias.
1690         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1691         Define mkostemps64 as an alias.
1692         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
1693         Conditionalize body on this.
1694         * misc/mkostemp64.c: Likewise.
1695         * misc/mkostemps64.c: Likewise.
1696         * misc/mkstemps64.c: Likewise.
1697         * sysdeps/wordsize-64/mkstemp64.c: File removed.
1698         * sysdeps/wordsize-64/mkostemp64.c: File removed.
1699         * sysdeps/wordsize-64/mkostemp.c: File removed.
1700         * sysdeps/wordsize-64/mkstemp.c: File removed.
1701         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
1702         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
1703         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
1704         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
1705
1706         [BZ #14138]
1707         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
1708         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
1709         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
1710         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
1711
1712         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
1713         compat_symbol macros from <shlib-compat.h> rather than the underlying
1714         default_symbol_version and symbol_version macros, so that DEFAULT
1715         lines in shlib-versions are respected.
1716         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1717
1718 2012-08-01  Florian Weimer  <fweimer@redhat.com>
1719
1720         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
1721         Declare with warn_unused_result.
1722         (setgid, setregid, setegid, setresgid): Likewise.
1723         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
1724         Likewise.
1725         * WUR-REPORT: Remove set*id functions.
1726
1727 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
1728
1729         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
1730
1731 2012-07-31  Roland McGrath  <roland@hack.frob.com>
1732
1733         * include/sys/socket.h (__libc_accept, __libc_accept4):
1734         Add attribute_hidden.
1735         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
1736
1737         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
1738         use of PTR_MANGLE.
1739         * inet/getnetgrent_r.c (setup): Likewise.
1740
1741         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
1742
1743 2012-07-31  David S. Miller  <davem@davemloft.net>
1744
1745         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1746
1747 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
1748
1749         [BZ #13629]
1750         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
1751         value between 1.0 and 2.0 and smaller part has absolute value less
1752         than 1.0.
1753         * math/s_clog10.c (__clog10): Likewise.
1754         * math/s_clog10f.c (__clog10f): Likewise.
1755         * math/s_clog10l.c (__clog10l): Likewise.
1756         * math/s_clogf.c (__clogf): Likewise.
1757         * math/s_clogl.c (__clogl): Likewise.
1758         * math/libm-test.inc (clog_test): Add more tests.
1759         (clog10_test): Likewise.
1760         * sysdeps/i386/fpu/libm-test-ulps: Update.
1761         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1762
1763 2012-07-31  Florian Weimer  <fweimer@redhat.com>
1764
1765         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
1766         Exit with zero in case no suitable GID is found, and write a
1767         message to standard error.
1768
1769 2012-07-30  Roland McGrath  <roland@hack.frob.com>
1770
1771         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
1772         rather than to 1.
1773         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
1774         (MAXPATHLEN): Removed.
1775         (NOGROUP, NODEV): New macros.
1776         (setbit, clrbit, isset, isclr): New macros.
1777         (howmany, roundup, powerof2): New macros.
1778         (DEV_BSIZE): New macro.
1779
1780         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
1781         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
1782
1783         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
1784         definition on [!__NO_LONG_DOUBLE_MATH].
1785
1786         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
1787         PTR_MANGLE and PTR_DEMANGLE.
1788
1789         * socket/accept4.c (accept4): Rename to __libc_accept4.
1790         Define accept4 as a weak alias.
1791
1792         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
1793         on [_DIRENT_HAVE_D_TYPE].
1794         * io/ftw.c (ftw_dir): Likewise.
1795
1796         * io/xmknod.c (__xmknod): Don't check PATH for being null.
1797
1798         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
1799
1800         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
1801         Use the BSD numbers rather than the arbitrary ones we had.
1802         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
1803         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
1804         (SIGXCPU, SIGXFSZ): New macros.
1805         (_NSIG): Now 32.
1806
1807         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
1808         initializer on [_LIBC_REENTRANT].
1809
1810         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
1811         definitions inside [_POSIX_MAPPED_FILES].
1812
1813         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
1814
1815         * dirent/opendir.c: Include <fcntl.h>.
1816
1817         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
1818         (__libc_getspecific): Likewise.
1819         (__libc_key_create): Likewise.
1820
1821         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
1822         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
1823         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
1824         (tmpfile64): Define as alias.
1825         * sysdeps/wordsize-64/tmpfile.c: File removed.
1826         * sysdeps/wordsize-64/tmpfile64.c: File removed.
1827         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
1828         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
1829
1830         * stdio-common/vfscanf.c: Include <stdbool.h>.
1831         * nss/makedb.c: Likewise.
1832         * stdio-common/_i18n_number.h: Likewise.
1833         * argp/argp-help.c: Likewise.
1834         * posix/wordexp.c: Likewise.
1835         * sysdeps/posix/spawni.c: Likewise.
1836         * nss/nss_files/files-initgroups.c: Likewise.
1837         * stdio-common/reg-modifier.c: Include <stdlib.h>.
1838         * nss/nss_files/files-initgroups.c: Likewise.
1839         * nss/nss_db/db-netgrp.c: Likewise.
1840         * nss/nss_db/db-initgroups.c: Likewise.
1841         * io/fchmodat.c: Include <sys/stat.h>.
1842
1843         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
1844         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
1845
1846         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
1847         [HAVE_MMAP].
1848
1849         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
1850         Add multiple inclusion protection.
1851
1852 2012-07-27  David S. Miller  <davem@davemloft.net>
1853
1854         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1855
1856 2012-07-27  Gary Benson  <gbenson@redhat.com>
1857
1858         [BZ #14298]
1859         * elf/rtld.c: Include <stap-probe.h>.
1860         (dl_main): Added static probes "init_start" and "init_complete".
1861         * elf/dl-load.c: Include <stap-probe.h>.
1862         (lose): Take new parameter "nsid".
1863         Added static probe "map_failed".
1864         (_dl_map_object_from_fd): Pass namespace id to lose.
1865         Added static probe "map_start".
1866         (open_verify): Pass namespace id to lose.
1867         * elf/dl-open.c: Include <stap-probe.h>.
1868         (dl_open_worker) Added static probes "map_complete", "reloc_start"
1869         and "reloc_complete".
1870         * elf/dl-close.c: Include <stap-probe.h>.
1871         (_dl_close_worker): Added static probes "unmap_start" and
1872         "unmap_complete".
1873         * elf/rtld-debugger-interface.txt: New file documenting the above.
1874
1875 2012-07-26  Roland McGrath  <roland@hack.frob.com>
1876
1877         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
1878         rather than a string variable.
1879         * sunrpc/rpc_main.c (h_output): Likewise.
1880         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
1881
1882 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
1883
1884         * inet/check_native.c: New file.
1885
1886 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
1887
1888         [BZ #13629]
1889         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
1890         if larger part has absolute value 1.0.
1891         * math/s_clog10.c (__clog10): Likewise.
1892         * math/s_clog10f.c (__clog10f): Likewise.
1893         * math/s_clog10l.c (__clog10l): Likewise.
1894         * math/s_clogf.c (__clogf): Likewise.
1895         * math/s_clogl.c (__clogl): Likewise.
1896         * math/libm-test.inc (clog_test): Add more tests.
1897         (clog10_test): Likewise.
1898         * sysdeps/i386/fpu/libm-test-ulps: Update.
1899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1900
1901         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
1902         (pltexit): Likewise.
1903         (La_regs): Likewise.
1904         (La_retval): Likewise.
1905         (int_retval): Likewise.
1906         Update #error for removed macros to refer only to definitions in
1907         tst-audit.h.
1908         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
1909         macro.
1910         (pltexit): Likewise.
1911         (La_regs): Likewise.
1912         (La_retval): Likewise.
1913         (int_retval): Likewise.
1914         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
1915         macro.
1916         (pltexit): Likewise.
1917         (La_regs): Likewise.
1918         (La_retval): Likewise.
1919         (int_retval): Likewise.
1920         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
1921         macro.
1922         (pltexit): Likewise.
1923         (La_regs): Likewise.
1924         (La_retval): Likewise.
1925         (int_retval): Likewise.
1926         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
1927         macro.
1928         (pltexit): Likewise.
1929         (La_regs): Likewise.
1930         (La_retval): Likewise.
1931         (int_retval): Likewise.
1932         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
1933         macro.
1934         (pltexit): Likewise.
1935         (La_regs): Likewise.
1936         (La_retval): Likewise.
1937         (int_retval): Likewise.
1938         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
1939         macro.
1940         (pltexit): Likewise.
1941         (La_regs): Likewise.
1942         (La_retval): Likewise.
1943         (int_retval): Likewise.
1944         * sysdeps/generic/tst-audit.h: Update comment to refer only to
1945         macro definitions in tst-audit.h.
1946         * sysdeps/i386/tst-audit.h: New file.
1947         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
1948         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
1949         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
1950         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
1951         * sysdeps/sh/tst-audit.h: Likewise.
1952         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
1953         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
1954         * sysdeps/x86_64/tst-audit.h: Likewise.
1955
1956 2012-07-26  Andreas Jaeger  <aj@suse.de>
1957
1958         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
1959         ptrace.
1960
1961         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
1962         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
1963         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
1964         PTRACE_O_MASK.
1965         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
1966         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
1967         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
1968
1969         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
1970         value.
1971
1972         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
1973         _sigsys.
1974         (si_call_addr, si_syscall, si_arch): Define new macro.
1975         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
1976         _sigsys.
1977         (si_call_addr, si_syscall, si_arch): Define new marcro.
1978         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
1979         _sigsys.
1980         (si_call_addr, si_syscall, si_arch): Define new macro.
1981         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
1982         _sigsys.
1983         (si_call_addr, si_syscall, si_arch): Define new macro.
1984
1985 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1986
1987         [BZ #13717]
1988         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1989         Change to 2.4.21 where previously 2.4.1.
1990         * sysdeps/unix/sysv/linux/configure: Regenerated.
1991         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
1992         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
1993         Linux kernel version.
1994         (__ASSUME_STD_AUXV): Remove.
1995         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
1996         kernel version.
1997         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
1998         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
1999         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2000         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2001         (__ASSUME_NETLINK_SUPPORT): Likewise.
2002         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2003         (__no_netlink_support): Remove conditional definition.
2004         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2005         Remove.
2006         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2007         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2008         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2009         (if_nameindex_ioctl): Remove.
2010         (if_nameindex_netlink): Do not handle __no_netlink_support.
2011         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2012         code.
2013         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2014         Remove conditional code.
2015         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2016         code.
2017         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2018         unconditional.
2019         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2020         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2021         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2022         Remove.
2023         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2024         [!__ASSUME_STD_AUXV]: Remove conditional code.
2025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2026         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2027         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2029         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2030         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2031         code.
2032         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2034         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2035         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2036         conditional code.
2037         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2039         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2040         code.
2041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2042         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2043         conditional code.
2044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2045         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2046         code unconditional.
2047         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2048         conditional code.
2049         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2050         unconditional.
2051         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2052         conditional code.
2053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2054         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2055         unconditional.
2056         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2057         conditional code.
2058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2059         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2060         code unconditional.
2061         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2062         conditional code.
2063         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2064         unconditional.
2065         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2066         conditional code.
2067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2068         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2069         code unconditional.
2070         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2071         conditional code.
2072         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2073         unconditional.
2074         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2075         conditional code.
2076
2077 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2078
2079         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2080         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2081         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2082         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2083         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2084         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2085         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2086         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2087         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2088         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2089         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2090         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2091         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2092         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2093         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2094         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2095         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2096         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2097         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2098         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2099         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2100         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2101         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2102
2103 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2104
2105         * Versions.def: Add GLIBC_2.17.
2106         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2107         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2108         Introduce __libc_secure_getenv.
2109         * stdlib/Versions (2.17): Add secure_getenv
2110         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2111         * stdlib/secure-getenv.c: Rename __secure_getenv to
2112         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2113         symbol __secure_getenv for GLIBC_2.0.
2114         * stdlib/tst-secure-getenv.c: New.
2115         * stdlib/Makefile (tests): Add testcase.
2116         * manual/startup.texi (Environment Access): Document
2117         secure_getenv.
2118         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2119         __libc_secure_getenv.
2120         * inet/ruserpass.c (ruserpass): Likewise.
2121         * malloc/mtrace.c (mtrace): Likewise.
2122         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2123         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2124         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2125         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2126         HAVE_SECURE_GETENV.
2127         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2128         __secure_getenv to __libc_secure_getenv.
2129         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2131         Likewise.
2132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2133         Likewise.
2134         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2135         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2136         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2137         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2138         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2139         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2140         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2141
2142 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2143
2144         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2145         (struct La_i86_retval): Likewise.
2146         (struct La_x86_64_regs): Likewise.
2147         (struct La_x86_64_retval): Likewise.
2148         (struct La_x32_regs): Likewise.
2149         (struct La_x32_retval): Likewise.
2150         (struct La_ppc32_regs): Likewise.
2151         (struct La_ppc32_retval): Likewise.
2152         (struct La_ppc64_regs): Likewise.
2153         (struct La_ppc64_retval): Likewise.
2154         (struct La_sh_regs): Likewise.
2155         (struct La_sh_retval): Likewise.
2156         (struct La_s390_32_regs): Likewise.
2157         (struct La_s390_32_retval): Likewise.
2158         (struct La_s390_64_regs): Likewise.
2159         (struct La_s390_64_retval): Likewise.
2160         (struct La_sparc32_regs): Likewise.
2161         (struct La_sparc32_retval): Likewise.
2162         (struct La_sparc64_regs): Likewise.
2163         (struct La_sparc64_retval): Likewise.
2164         (struct audit_ifaces): Remove architecture-specific pltenter and
2165         pltexit members.
2166         * sysdeps/i386/ldsodefs.h: New file.
2167         * sysdeps/powerpc/ldsodefs.h: Likewise.
2168         * sysdeps/s390/ldsodefs.h: Likewise.
2169         * sysdeps/sh/ldsodefs.h: Likewise.
2170         * sysdeps/sparc/ldsodefs.h: Likewise.
2171         * sysdeps/x86_64/ldsodefs.h: Likewise.
2172
2173 2012-07-25  Marek Polacek  <polacek@redhat.com>
2174
2175         [BZ #6808]
2176         * math/libm-test.inc (yn_test): Add another test.
2177         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2178         to ERANGE when the result is +-Inf.
2179         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2180         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2181         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2182         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2183
2184 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2185
2186         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2187         equal to 0.
2188         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2189         clock_t.
2190         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2191
2192 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2193
2194         * configure.in <sysdeps resolving>: Correct printing
2195         Implies_before.
2196         * configure: Regenerate.
2197
2198 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2199
2200         * math/w_ilogb.c: Include <limits.h>.
2201         * math/w_ilogbl.c: Likewise.
2202
2203 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2204
2205         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2206         va_copy.  Document allowing for unavailable va_copy only as
2207         pre-C99 compatibility.
2208         * manual/string.texi (Copying and Concatenation): Use va_copy
2209         instead of __va_copy in concat example.
2210
2211 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2212
2213         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2214         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2215         it if not null.
2216
2217         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2218         with O_NOLINK passed to __file_name_lookup.
2219
2220         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2221         with O_NOLINK passed to __file_name_lookup.
2222
2223         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2224         negative N or less than NGIDS.
2225
2226         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2227         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2228         enough.  Use memcpy instead of strncpy.
2229
2230 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2231
2232         * elf/Makefile (check-data): Remove.
2233         (localplt.data): New vpath directive.
2234         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2235         instead of $(check-data).
2236         * scripts/data/localplt-generic.data: Move to ...
2237         * sysdeps/generic/localplt.data: ... here.
2238         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2239         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2240         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2242         ... here.
2243         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2245         ... here.
2246         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2247         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2248         ... here.
2249         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2250         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2251         ... here.
2252         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2253         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2254         ... here.
2255         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2256         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2257         ... here.
2258
2259 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2260
2261         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2262         PPC32 and PPC64 files.
2263         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2264         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2265
2266 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2267
2268         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2269         __makecontext_ret to ...
2270         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2271         ... here and call exit if uc_link is NULL.  New file.
2272         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2273         __makecontext_ret.S.
2274         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2275         __makecontext_ret to ...
2276         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2277         ... here and call exit if uc_link is NULL.  New file.
2278         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2279         __makecontext_ret.S.
2280
2281 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2282
2283         * elf/elf.h (R_390_IRELATIVE): New definition.
2284         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2285         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2286         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2287         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2288         (elf_machine_lazy_rel): Likewise.
2289         * sysdeps/s390/dl-irel.h: New file.
2290         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2291         * sysdeps/s390/s390-64/memset.S: New asm code.
2292         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2293         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2294         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2295         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2296         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2297         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2298         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2299         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2300         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2301         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2302         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2303         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2304         * sysdeps/s390/s390-32/memset.S: New asm code.
2305         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2306
2307 2012-07-17  Marek Polacek  <polacek@redhat.com>
2308
2309         [BZ #14349]
2310         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2311         * sysdeps/s390/s390-64/configure.in: Likewise.
2312         * sysdeps/sparc/configure.in: Likewise.
2313         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2314         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2315         * sysdeps/i386/configure.in: Likewise.
2316         * sysdeps/x86_64/configure.in: Likewise.
2317         * sysdeps/sh/configure.in: Likewise.
2318         * sysdeps/s390/s390-32/configure: Regenerated.
2319         * sysdeps/s390/s390-64/configure: Likewise.
2320         * sysdeps/x86_64/configure: Likewise.
2321         * sysdeps/sh/configure: Likewise.
2322         * sysdeps/powerpc/powerpc64/configure: Likewise.
2323         * sysdeps/powerpc/powerpc32/configure: Likewise.
2324         * sysdeps/sparc/configure: Likwise.
2325         * sysdeps/i386/configure: Likewise.
2326
2327         * elf/dl-open.c: Comment fixes.
2328
2329 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2330
2331         * Makefile [CXX] (check-data): Remove.
2332         [CXX] (c++-types.data): New vpath directive.
2333         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2334         vpath.  Do not allow for C++ type data being missing.
2335         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2336         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2337         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2338         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2339         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2340         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2341         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2343         ... here.
2344         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2346         ... here.
2347         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2348         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2349         ... here.
2350         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2351         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2352         ... here.
2353         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2354         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2355         ... here.
2356         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2357         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2358         ... here.
2359         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2360         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2361         ... here.
2362         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2363         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2364
2365         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2366         definitions to architecture-specific files.
2367         (TLS_IE): Likewise.
2368         (TLS_LD): Likewise.
2369         (TLS_GD): Likewise.
2370         * sysdeps/i386/tls-macros.h: New file.
2371         * sysdeps/powerpc/tls-macros.h: Likewise.
2372         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2373         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2374         * sysdeps/sh/tls-macros.h: Likewise.
2375         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2376         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2377         * sysdeps/x86_64/tls-macros.h: Likewise.
2378
2379 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2380
2381         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2382         zero value for regular exit case.
2383
2384         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2385         (__start_context): Preserve zero value for regular exit case.
2386
2387 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2388             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2389
2390         * manual/setjmp.texi (setcontext): Clarify normal process
2391         termination when uc_link is the null pointer.
2392         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2393         exit call.
2394
2395 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2396
2397         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2398         preprocessor.  Test for each exception mask separately.
2399
2400 2012-07-16  Andreas Jaeger  <aj@suse.de>
2401
2402         * po/ru.po: Update from translation team.
2403
2404 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2405
2406         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2407         equal to 0.
2408         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2409         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2410         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2411         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2412         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2413
2414 2012-07-13  Andreas Jaeger  <aj@suse.de>
2415
2416         * po/fr.po: Update from translation team.
2417
2418 2012-07-12  Marek Polacek  <polacek@redhat.com>
2419
2420         [BZ #14173]
2421         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2422         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2423         loop condition.
2424
2425 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2426
2427         [BZ #13717]
2428         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2429         Change to 2.4.1 where previously 2.4.0.
2430         * sysdeps/unix/sysv/linux/configure: Regenerated.
2431         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2432         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2433         version.
2434         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2435         (__ASSUME_AT_CLKTCK): Remove.
2436         (__ASSUME_AT_PAGESIZE): Likewise.
2437         (__ASSUME_AT_XID): Likewise.
2438         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2439         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2440         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2441         unconditionally.
2442         (HAVE_AUX_PAGESIZE): Likewise.
2443         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2444         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2445         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2446
2447 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2448
2449         [BZ #14307]
2450         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2451         the temporary buffer used to invoke __gethostbyname2_r,
2452         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2453         host_data / struct gaih_addrtuple.
2454         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2455         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2456         header file nss/nsswitch.h.
2457         * nss/nsswitch.h (global scope): Add definition of implementation
2458         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2459         resolv/nss_dns/dns-host.c).
2460
2461 2012-07-11  Andreas Jaeger  <aj@suse.de>
2462
2463         * po/fr.po: Update from translation team.
2464
2465         * po/sv.po: Update from translation team
2466         * po/fr.po: Another update from translation team.
2467
2468 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2469
2470         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2471         for subnormals or multiply small sinh result by itself.
2472         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2473         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2474
2475 2012-07-11  David S. Miller  <davem@davemloft.net>
2476
2477         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2478
2479 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2480
2481         [BZ #14347]
2482         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2483         (INTERNAL_MARK): Shift it here.
2484
2485 2012-07-10  Marek Polacek  <polacek@redhat.com>
2486
2487         [BZ #14151]
2488         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2489         libc_cv_asm_global_directive with .globl.
2490         * configure: Regenerated.
2491         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2492         with .globl.
2493         * sysdeps/i386/configure: Regenerated.
2494         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2495         with .globl.
2496         * sysdeps/x86_64/configure: Regenerated.
2497         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2498         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2499         * elf/tst-unique2mod2.c: Likewise.
2500         * elf/tst-unique2mod1.c: Likewise.
2501         * elf/tst-unique1mod2.c: Likewise.
2502         * elf/tst-unique1mod1.c: Likewise.
2503         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2504         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2505         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2506         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2507         * sysdeps/mach/sysdep.h: Likewise.
2508         * sysdeps/i386/sysdep.h: Likewise.
2509         * sysdeps/i386/i386-mcount.S: Likewise.
2510         * sysdeps/x86_64/_mcount.S: Likewise.
2511         * sysdeps/x86_64/sysdep.h: Likewise.
2512         * sysdeps/sh/_mcount.S: Likewise.
2513         * sysdeps/sh/sysdep.h: Likewise.
2514         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2515         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2516         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2517         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2518         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2519         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2520         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2521         * locale/localeinfo.h: Likewise.
2522         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2523         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2524
2525 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2526
2527         [BZ #14336]
2528         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2529         system".
2530         * manual/message.texi (The Uniforum approach): Likewise.
2531         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2532         (glibc iconv Implementation): Likewise.
2533
2534 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2535
2536         [BZ #14337]
2537         * math/s_clog.c (__clog): Avoid scaling a value down where that
2538         could result in underflow.
2539         * math/s_clog10.c (__clog10): Likewise.
2540         * math/s_clog10f.c (__clog10f): Likewise.
2541         * math/s_clog10l.c (__clog10l): Likewise.
2542         * math/s_clogf.c (__clogf): Likewise.
2543         * math/s_clogl.c (__clogl): Likewise.
2544         * math/libm-test.inc (clog_test): Add more tests.
2545         (clog10_test): Likewise.
2546         * sysdeps/i386/fpu/libm-test-ulps: Update.
2547         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2548
2549 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2550
2551         [BZ #14283]
2552         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2553         by 7 not 8 to examine high bit of fractional part.
2554
2555         [BZ #14042]
2556         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2557         for call to __mcount_internal.
2558         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2559         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2560         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2561
2562 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2563
2564         [BZ #14154]
2565         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2566         approximation for values within 0x1p-13f of an odd multiple of
2567         pi/4.
2568         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2569         exception.  Add more tests.
2570         * sysdeps/i386/fpu/libm-test-ulps: Update.
2571
2572         [BZ #6778]
2573         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2574         inputs and return -1 for them.  Do not check for +Inf in case not
2575         reachable for +Inf.
2576         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2577         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2578         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2579         and return -1 for them.  Do not check for +Inf in case not
2580         reachable for +Inf.
2581         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2582         define.
2583         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2584         and return -1 for them.  Do not check for +Inf in case not
2585         reachable for +Inf.
2586         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2587         spurious underflow.
2588         * sysdeps/i386/fpu/libm-test-ulps: Update.
2589         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2590
2591 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2592
2593         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2594
2595 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2596
2597         [BZ #14157]
2598         [BZ #14331]
2599         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2600         could result in spurious underflow.  Scale down values above
2601         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2602         * math/s_csqrtf.c (__csqrtf): Likewise.
2603         * math/s_csqrtl.c (__csqrtl): Likewise.
2604         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2605         spurious underflow.
2606         * sysdeps/i386/fpu/libm-test-ulps: Update.
2607         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2608
2609 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2610
2611         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2612         xopen-msg.sed.
2613         * catgets/xopen-msg.awk: New file.
2614         * catgets/xopen-msg.sed: Removed.
2615
2616         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2617         po2text.sed.
2618         * intl/po2test.awk: New file.
2619         * intl/po2test.sed: Removed.
2620
2621 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2622
2623         [BZ #14328]
2624         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2625         or multiply small sinh result by itself.
2626         * math/s_ctanf.c (__ctanf): Likewise.
2627         * math/s_ctanh.c (__ctanh): Likewise.
2628         * math/s_ctanhf.c (__ctanhf): Likewise.
2629         * math/s_ctanhl.c (__ctanhl): Likewise.
2630         * math/s_ctanl.c (__ctanl): Likewise.
2631         * math/libm-test.inc (ctan_test_tonearest): New function.
2632         (ctan_test_towardzero): Likewise.
2633         (ctan_test_downward): Likewise.
2634         (ctan_test_upward): Likewise.
2635         (ctanh_test_tonearest): Likewise.
2636         (ctanh_test_towardzero): Likewise.
2637         (ctanh_test_downward): Likewise.
2638         (ctanh_test_upward): Likewise.
2639         (main): Call these new functions.
2640         * sysdeps/i386/fpu/libm-test-ulps: Update.
2641         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2642
2643 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2644
2645         * .gitignore: Delete /ports entry.
2646
2647 2012-07-03  Andreas Jaeger  <aj@suse.de>
2648
2649         * po/bg.po: Update from translation team.
2650         * po/cs.po: Likewise.
2651         * po/de.po: Likewise.
2652         * po/hr.po: Likewise.
2653         * po/nl.pl: Likewise.
2654         * po/pl.po: Likewise.
2655         * po/vi.po: Likewise.
2656
2657 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2658
2659         * Makeconfig [!+link] (+link-before-libc): New variable.
2660         [!+link] (+link-after-libc): Likewise.
2661         [!+link] (+link-tests): Likewise.
2662         [!+link] (+link): Define in terms of $(+link-before-libc) and
2663         $(+link-after-libc).
2664         [!+link-static] (+link-static-before-libc): New variable.
2665         [!+link-static] (+link-static-after-libc): Likewise.
2666         [!+link-static] (+link-static-tests): Likewise.
2667         [!+link-static] (+link-static): Define in terms of
2668         $(+link-static-before-libc) and $(+link-static-after-libc).
2669         [build-shared] (link-libc-before-gnulib): New variable.
2670         [build-shared] (link-libc-tests): Likewise.
2671         [build-shared] (link-libc): Define in terms of
2672         $(link-libc-before-gnulib).
2673         [!build-shared] (link-libc-tests): New variable.
2674         (link-libc-static-tests): New variable.
2675         [!gnulib] (gnulib-arch): New variable.
2676         [!gnulib] (gnulib-tests): Likewise.
2677         [!gnulib] (static-gnulib-arch): Likewise.
2678         [!gnulib] (static-gnulib-tests): Likewise.
2679         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
2680         Define with "=" instead of ":=".
2681         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
2682         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
2683         * Rules (binaries-all-notests): New variable.
2684         (binaries-all-tests): Likewise.
2685         (binaries-static-notests): Likewise.
2686         (binaries-static-tests): Likewise.
2687         (binaries-all): Define using $(binaries-all-notests) and
2688         $(binaries-all-tests).
2689         (binaries-static): Define using $(binaries-static-notests) and
2690         $(binaries-static-tests).
2691         (binaries-shared-tests): New variable.
2692         (binaries-shared-notests): Likewise.
2693         (binaries-shared): Remove variable.
2694         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
2695         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
2696         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
2697         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
2698         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
2699         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
2700         * elf/Makefile (sln-modules): New variable.
2701         (extra-objs): Add $(sln-modules:=.o).
2702         (ldconfig-modules): Add static-stubs.
2703         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
2704         * elf/static-stubs.c: New file.
2705
2706         [BZ #14283]
2707         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
2708         by 7 not 8 to examine high bit of fractional part.  Use volatile
2709         variables when splitting into final array of floats if
2710         __FLT_EVAL_METHOD__ != 0.
2711         * math/libm-test.inc (cos_test): Add another test.
2712         (sin_test): Likewise.
2713         * sysdeps/i386/fpu/libm-test-ulps: Update.
2714
2715         [BZ #14273]
2716         * math/libm-test.inc (cosh_test): Add more tests.
2717
2718         * version.h (RELEASE): Set to "development".
2719         (VERSION): Set to "2.16.90".
2720
2721 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
2722
2723         * NEWS: Update copyright. Remove last-updated date.
2724         Mention math library bug fixes and timezone data changes.
2725         * README: Mention GNU/Hurd, x32, and HPPA support status.
2726
2727 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
2728
2729         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
2730
2731 2012-06-27  Andreas Jaeger  <aj@suse.de>
2732
2733         * manual/contrib.texi (Contributors): Add Samuel Thibault.
2734
2735 2012-06-25  Andreas Jaeger  <aj@suse.de>
2736
2737         * sysdeps/s390/fpu/libm-test-ulps: Update.
2738
2739 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
2740             Thomas Schwinge  <thomas@codesourcery.com>
2741
2742         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
2743         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
2744         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
2745         fanotify_mark.
2746
2747 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
2748
2749         * sysdeps/mach/start.c: Remove file.
2750         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
2751         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
2752         * sysdeps/sh/init-first.c: Likewise.
2753
2754         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
2755         registers for frame unwinding purposes, add CFI directives.
2756         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2757         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
2758         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2759         Likewise.
2760
2761         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
2762         __fortify_fail returning.
2763         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2764
2765         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
2766         sysdeps/sh/____longjmp_chk.S.
2767         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
2768         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
2769         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
2770         (gen-as-const-headers): Append sigaltstack-offsets.sym.
2771
2772         * sysdeps/sh/abort-instr.h: New file.
2773         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
2774         process in case exit returns.
2775
2776         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
2777         initialize the GOT register before use.
2778
2779         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
2780         calculation of ARGC > 4.
2781
2782         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
2783         meaningful names to some local labels.
2784
2785 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2786             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2787
2788         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2789         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
2790         (__arch_compare_and_exchange_val_16_acq): Likewise.
2791         (__arch_compare_and_exchange_val_32_acq): Likewise.
2792         (atomic_exchange_and_add): Fix gUSA sequence.
2793         (atomic_add): Likewise.
2794         (atomic_add_negative): Likewise.
2795         (atomic_add_zero): Likewise.
2796         (atomic_bit_test_set): Likewise.
2797
2798 2012-06-22  Andreas Schwab  <schwab@redhat.com>
2799
2800         [BZ #13579]
2801         * include/link.h (struct link_map): Add l_free_initfini.
2802         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
2803         l_initfini.
2804         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
2805         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
2806         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
2807         set.
2808
2809 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
2810
2811         * configure.in: Use AC_LANG_SOURCE.
2812         * configure: Regenerate.
2813
2814 2012-06-22  Roland McGrath  <roland@hack.frob.com>
2815
2816         * configure.in (libc_cv_localstatedir): New substituted variable.
2817         * configure: Regenerated.
2818         * config.make.in (localstatedir): New variable, substituted from
2819         libc_cv_localstatedir.
2820         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
2821         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
2822         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
2823         * sysdeps/gnu/configure: Regenerated.
2824
2825 2012-06-21  Jeff Law  <law@redhat.com>
2826
2827         [BZ #14277]
2828         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
2829         free.  Simplify list management for _LIBC case.
2830
2831 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
2832
2833         [BZ #14273]
2834         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
2835         Clear sign bit of 64-bit integer value before comparing against
2836         overflow value.
2837
2838         * sysdeps/mach/configure: Regenerated.
2839
2840 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2841
2842         [BZ #14278]
2843         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
2844
2845 2012-06-21  Jeff Law  <law@redhat.com>
2846
2847         [BZ #13882]
2848         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
2849         uint16_t for elements in the "seen" array to avoid char overflows.
2850         * elf/dl-fini.c (_dl_sort_fini): Likewise.
2851         * elf/dl-open.c (dl_open_worker): Likewise.
2852
2853 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
2854
2855         * scripts/list-sources.sh: Scan PORTS for translations.
2856         * po/libc.pot: Regenerated.
2857
2858 2012-06-21  Andreas Jaeger  <aj@suse.de>
2859
2860         [BZ #12194]
2861         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
2862         warning.
2863         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
2864         * bits/byteswap-16.h (__bswap_16): Likewise.
2865         * bits/byteswap.h (__bswap_constant_16): Likewise.
2866
2867 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2868
2869         [BZ #14117]
2870         * sysdeps/i386/fpu_control.h: Removed.
2871         * sysdeps/x86_64/fpu_control.h: Moved to ...
2872         * sysdeps/x86/fpu_control.h: Here.
2873
2874         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
2875         (_FPU_SETCW): Likewise.
2876
2877 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
2878
2879         [BZ #14117]
2880         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
2881         * sysdeps/x86/fpu/bits/mathinline.h: This.
2882         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
2883
2884         [BZ #14050]
2885         [BZ #14117]
2886         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
2887         functions if __x86_64__ is defined.
2888
2889 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
2890
2891         * string/endian.h: Add !__ASSEMBLER__ condition for including
2892         conversion interfaces.
2893
2894 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
2895
2896         [BZ #14241]
2897         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
2898         of ABS(x) in calculating zero to negative powers other than odd
2899         integers.
2900         * math/libm-test.inc (pow_test): Add more tests.
2901
2902 2012-06-15  Andreas Jaeger  <aj@suse.de>
2903
2904         * manual/contrib.texi (Contributors): Update entry of Liubov
2905         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
2906         Machado Filho.
2907
2908 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
2909
2910         * string/string.h: Add __wur to GNU version of strerror_r.
2911
2912 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2913
2914         [BZ #14229]
2915         * string/Makefile (tests): Add tst-strtok_r.
2916         * string/tst-strtok_r.c: New file.
2917         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
2918         RAX_LP/RDX_LP on SAVE_PTR.
2919
2920 2012-06-14  Roland McGrath  <roland@hack.frob.com>
2921
2922         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
2923
2924 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
2925
2926         * libm_test.inc (csqrt_test): Allow more spurious underflow
2927         exceptions.
2928         (j0_test): Likewise.
2929         (j1_test): Likewise.
2930         (y0_test): Likewise.
2931         (y1_test): Likewise.
2932
2933 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
2934
2935         * po/Makefile (libc.pot): Use UTF-8 charset.
2936
2937 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
2938
2939         [BZ #14210]
2940         Suppress sign-conversion warning from FD_SET.
2941         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
2942         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
2943         not unsigned long int.
2944         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
2945
2946 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
2947
2948         [BZ #14050]
2949         [BZ #14117]
2950         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
2951         __extern_always_inline instead of __extern_inline.
2952         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
2953         (__signbit): Likewise.
2954         (__signbitl): Support C++ namespace.
2955         (lrintf): New inline function.
2956         (lrint): Likewise.
2957         (llrintf): Likewise.
2958         (llrint): Likewise.
2959         (fmaxf): Likewise.
2960         (fmax): Likewise.
2961         (fminf): Likewise.
2962         (fmin): Likewise.
2963         (rint): Likewise.
2964         (rintf): Likewise.
2965         (ceil): Likewise.
2966         (ceilf): Likewise.
2967         (floor): Likewise.
2968         (floorf): Likewise.
2969         (nearbyint): Likewise.
2970         (nearbyintf): Likewise.
2971
2972 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
2973
2974         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
2975         non-default versions.
2976
2977 2012-06-11  Roland McGrath  <roland@hack.frob.com>
2978
2979         [BZ #14218]
2980         * manual/argp.texi (Argp): Reword argp_parse description slightly.
2981
2982 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
2983
2984         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
2985         (FE_UPWARD, FE_DOWNWARD): Don't define.
2986         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
2987         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2988
2989         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
2990         reading it.
2991         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2992         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2993
2994 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2995
2996         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2997         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
2998         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
2999         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3000
3001 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3002
3003         [BZ #14117]
3004         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3005         * sysdeps/i386/fpu/Implies: New file.
3006         * sysdeps/x86_64/fpu/Implies: Likewise.
3007         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3008         * sysdeps/x86/fpu/bits/fenv.h: This.
3009
3010         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3011         __SSE_MATH__.
3012
3013 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3014
3015         [BZ #14134]
3016         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3017         character 0xffff that matches the last element of the
3018         conversion table.
3019
3020 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3021
3022         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3023         fmodl commit.
3024
3025 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3026
3027         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3028         values higher than 25.6283.
3029
3030 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3031
3032         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3033         subnormal exponent extraction and add some __builtin_expect.
3034         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3035         Fix for subnormal mantissa calculation.
3036
3037 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3038
3039         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3040         cpu2 is -1 and errno is not ENOSYS.
3041
3042 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3043
3044         [BZ #14117]
3045         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3046         * sysdeps/x86/bits/string.h: This.
3047         * sysdeps/x86_64/bits/string.h: Removed.
3048
3049         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3050         if not compiling for x86-64, but compiling for >= i486.
3051
3052         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3053         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3054
3055         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3056         New macro from Linux kernel 3.4.0.
3057         (FP_XSTATE_MAGIC2): Likewise.
3058         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3059         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3060         (struct _fpx_sw_bytes): New struct.
3061         (struct _xsave_hdr): Likewise.
3062         (struct _ymmh_state): Likewise.
3063         (struct _xstate): Likewise.
3064
3065         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3066         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3067         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3068         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3069         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3070         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3071
3072         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3073         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3074         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3075         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3076         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3077         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3078
3079 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3080
3081         [BZ #13743]
3082         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3083         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3084         (sysdep_headers): Include sys/platform/ppc.h.
3085         * sysdeps/powerpc/test-gettimebase.c: Test for
3086         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3087         * manual/Makefile (appendices): Include platform.texi.
3088         * manual/contrib.texi (Contributors): Update @node pointers.
3089         * manual/maint.texi (Maintenance): Likewise.
3090         (Platform): New node.
3091         * manual/platform.texi: New file.  Document the new features.
3092
3093 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3094             Jakub Jelinek  <jakub@redhat.com>
3095
3096         [BZ #14188]
3097         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3098         where __builtin_expect is unavailable.
3099
3100 2012-06-03  David S. Miller  <davem@davemloft.net>
3101
3102         * stdlib/longlong.h: Updated from GCC.
3103
3104 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3105
3106         [BZ #14042]
3107         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3108         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3109         __mcount_internal.
3110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3111         (GLIBC_2.16): Likewise.
3112
3113 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3114
3115         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3116
3117 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3118
3119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3120         (default-abi): New variable.
3121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3122         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3123         variable.
3124         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3125         Likewise.
3126         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3127         Likewise.
3128         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3129         Likewise.
3130
3131         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3132         definition.  Document in comment.
3133
3134 2012-06-01  David S. Miller  <davem@davemloft.net>
3135
3136         * stdlib/longlong.h: Updated from GCC.
3137
3138 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3139
3140         [BZ #14117]
3141         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3142         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3143         sys/debugreg.h sys/io.h here.
3144         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3145         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3146         sys/io.h.
3147         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3148         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3149         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3150         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3151         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3152         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3153
3154         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3155         Define only if __x86_64__ is defined.
3156
3157 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3158
3159         [BZ #14048]
3160         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3161         Use int64_t for variable i.
3162         * math/libm-test.inc (fmod_test): Add more tests.
3163
3164         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3165         z computation is not scheduled after fetestexcept.
3166         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3167         Use math_force_eval instead of asm to ensure calculation scheduled
3168         before exception test.
3169         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3170         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3171
3172 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3173
3174         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3175         computation is not scheduled after fetestexcept.
3176
3177 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3178
3179         [BZ #14117]
3180         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3181         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3182
3183 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3184
3185         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3186         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3187
3188 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3189
3190         [BZ #14117]
3191         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3192         <bits/wordsize.h>.
3193         (__WCHAR_MIN): Support __WORDSIZE == 64.
3194         (__WCHAR_MAX): Likewise.
3195
3196         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3197         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3198
3199         [BZ #14183]
3200         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3201         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3202
3203         [BZ #14117]
3204         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3205         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3206
3207         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3208         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3209
3210         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3211         Defined to 1 if __x86_64__ isn't defined.
3212         (_STAT_VER_LINUX_OLD): New.
3213         (st_atime): Remove duplicate.
3214         (st_mtime): Likewise.
3215         (st_ctime): Likewise.
3216
3217 2012-05-31  David S. Miller  <davem@davemloft.net>
3218
3219         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3220         entries.
3221
3222 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3223
3224         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3225         gen-libm-test.pl.
3226
3227         [BZ #14132]
3228         * elf/dl-reloc.c: Include <_itoa.h>.
3229         (_dl_reloc_bad_type): Remove use of INTUSE.
3230         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3231         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3232         * stdio-common/psiginfo.c (psiginfo): Likewise.
3233         * stdio-common/psignal.c (psignal): Likewise.
3234         * string/strsignal.c (strsignal): Likewise.
3235         * include/signal.h (_sys_siglist): Declare hidden proto.
3236         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3237         INTVARDEF with libc_hidden_data_def.
3238         * stdio-common/itoa-udigits.c: Likewise.
3239         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3240         (_itoa_lower_digits_internal): Remove declaration.
3241         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3242         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3243         (_sys_sigabbrev_internal): Remove aliases.
3244         (_sys_siglist): Define hidden alias.
3245
3246 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3247
3248         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3249         bits/sysctl.h.
3250
3251 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3252
3253         [BZ #14117]
3254         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3255         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3256
3257         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3258         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3259         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3260         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3261         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3262         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3263
3264         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3265         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3266         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3267
3268         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3269         with __addr.
3270         (insw): Likewise.
3271         (insl): Likewise.
3272         (outsb): Likewise.
3273         (outsw): Likewise.
3274         (outsl): Likewise.
3275
3276         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3277         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3278         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3279
3280         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3281         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3282         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3283         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3284         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3285         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3286
3287         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3288         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3289
3290         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3291         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3292
3293         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3294         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3295         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3296
3297         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3298         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3299         to ...
3300         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3301
3302         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3303         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3304         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3305
3306         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3307         for x86-64.
3308         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3309
3310 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3311
3312         * math/math.h (M_El): Use two more decimal places.
3313         (M_LOG2El): Likewise.
3314         (M_LOG10El): Likewise.
3315         (M_LN2l): Likewise.
3316         (M_LN10l): Likewise.
3317         (M_PIl): Likewise.
3318         (M_PI_2l): Likewise.
3319         (M_PI_4l): Likewise.
3320         (M_1_PIl): Likewise.
3321         (M_2_PIl): Likewise.
3322         (M_2_SQRTPIl): Likewise.
3323         (M_SQRT2l): Likewise.
3324         (M_SQRT1_2l): Likewise.
3325
3326 2012-05-31  David S. Miller  <davem@davemloft.net>
3327
3328         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3329         values between float registers.
3330         * sysdeps/sparc/sparc64/memset.S: Likewise.
3331         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3332
3333 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3334
3335         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3336         -D_FORTIFY_SOURCE=1.
3337         (CPPFLAGS-tst-longjmp_chk.c): Define.
3338         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3339         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3340         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3341         CFLAGS-tst-wchar-h.c.
3342
3343 2012-05-31  Marek Polacek  <polacek@redhat.com>
3344
3345         [BZ #14132]
3346         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3347         __endmntent_internal): Remove declaration.
3348         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3349         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3350         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3351
3352 2012-05-30  David S. Miller  <davem@davemloft.net>
3353
3354         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3355         (___Q_simulate_exceptions): Use real FP ops rather than writing
3356         into the %fsr.
3357         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3358         Likewise.
3359
3360 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3361
3362         [BZ #14117]
3363         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3364         * sysdeps/x86/bits/xtitypes.h: This.
3365
3366         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3367         * sysdeps/x86/bits/wordsize.h: This.
3368
3369         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3370         * sysdeps/x86/bits/huge_vall.h: This.
3371
3372         * sysdeps/i386/bits/select.h: Removed.
3373         * sysdeps/x86_64/bits/select.h: Renamed to ...
3374         * sysdeps/x86/bits/select.h: This.
3375
3376         * sysdeps/i386/bits/setjmp.h: Removed.
3377         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3378         * sysdeps/x86/bits/setjmp.h: This.
3379
3380         * sysdeps/i386/bits/mathdef.h: Removed.
3381         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3382         * sysdeps/x86/bits/mathdef.h: This.
3383
3384 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3385
3386         [BZ #14132]
3387         * include/sys/socket.h (__connect_internal)
3388         (__libc_sa_len_internal): Remove declaration.
3389         (__connect, __libc_sa_len): Declare hidden_proto.
3390         (SA_LEN): Remove use of INTUSE.
3391         * socket/connect.c: Add libc_hidden_def.
3392         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3393         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3394         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3395         alias.
3396         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3397         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3398         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3399         of adding _internal alias.
3400
3401 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3402
3403         [BZ #14117]
3404         * sysdeps/i386/bits/link.h: Removed.
3405         * sysdeps/i386/bits/linkmap.h: Likewise.
3406         * sysdeps/x86_64/bits/link.h: Renamed to ...
3407         * sysdeps/x86/bits/link.h: This.
3408         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3409         * sysdeps/x86/bits/linkmap.h: This.
3410
3411         * sysdeps/i386/bits/endian.h: Removed.
3412         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3413         * sysdeps/x86/bits/endian.h: This.
3414
3415         * sysdeps/i386/bits/byteswap.h: Removed.
3416         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3417         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3418         * sysdeps/x86/bits/byteswap.h: This.
3419         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3420         * sysdeps/x86/bits/byteswap-16.h: This.
3421         * sysdeps/i386/Implies: Add x86.
3422         * sysdeps/x86_64/Implies: Likewise.
3423
3424 2012-05-30  David S. Miller  <davem@davemloft.net>
3425
3426         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3427         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3428         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3429         (FP_TRAPPING_EXCEPTIONS): Define.
3430         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3431         (FP_TRAPPING_EXCEPTIONS): Define.
3432         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3433         subnormals only when inexact has been signalled or underflow
3434         exceptions are enabled.
3435         (_FP_PACK_CANONICAL): Likewise.
3436
3437 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3438
3439         [BZ #14183]
3440         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3441         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3442
3443 2012-05-30  Richard Henderson  <rth@twiddle.net>
3444
3445         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3446         with #ifndef NOT_IN_libc.
3447
3448         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3449         marked to avoid plt entry.
3450
3451 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3452
3453         [BZ #14112]
3454         * Makeconfig (default-abi): New macro.
3455         (abi-includes): Likewise.
3456         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3457         $(abi-$(default-abi)-lib-soname) for soname if defined.
3458         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3459         abi-variants.
3460         * Makefile (installed-stubs): Likewise.
3461         * include/stubs-biarch.h: Removed.
3462         * scripts/lib-names.awk: Only handle one library at a time.
3463         * scripts/soversions.awk: Remove WORDSIZE support.
3464         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3465         entries.
3466         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3467         Removed.
3468         (syscall-list-default-condition): Likewise.
3469         (syscall-list-default-condition): Likewise.
3470         (syscall-list-includes): Likewise.
3471         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3472         syscall-list-* with abi-*.  Handle undefined abi-variants.
3473         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3474         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3475         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3476         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3477         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3478         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3479         Removed.
3480         (syscall-list-32-options): Likewise.
3481         (syscall-list-32-condition): Likewise.
3482         (syscall-list-64-options): Likewise.
3483         (syscall-list-64-condition): Likewise.
3484         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3485         macro.
3486         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3487         Renamed to ...
3488         (abi-*): This.
3489         (abi-64-ld-soname): New macro.
3490         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3491         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3492         Renamed to ...
3493         (abi-*): This.
3494         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3495         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3496
3497 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3498
3499         * sysdeps/unix/sysv/linux/kernel-features.h
3500         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3501         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3502         include <kernel-features.h>.
3503         [!__NR_ftruncate64]: Remove conditional code.
3504         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3505         [__NR_ftruncate64]: Make code unconditional.
3506         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3507         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3508         include <kernel-features.h>.
3509         [!__NR_ftruncate64]: Remove conditional code.
3510         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3511         [__NR_ftruncate64]: Make code unconditional.
3512         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3514         include <kernel-features.h>.
3515         [!__NR_ftruncate64]: Remove conditional code.
3516         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3517         [__NR_ftruncate64]: Make code unconditional.
3518         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3520         include <kernel-features.h>.
3521         [!__NR_ftruncate64]: Remove conditional code.
3522         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3523         [__NR_ftruncate64]: Make code unconditional.
3524         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3525
3526         * configure.in (libc_cv_fpie): Weaken to a compile test using
3527         LIBC_TRY_CC_OPTION.
3528         * configure: Regenerated.
3529
3530 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3531
3532         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3533         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3534         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3535         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3536         Refreshed.
3537         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3538         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3539         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3540         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3541         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3542         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3543         Refreshed.
3544
3545 2012-05-27  David S. Miller  <davem@davemloft.net>
3546
3547         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3548         (___Q_zero): New.
3549         (__Q_simulate_exceptions): Return void.  Change to simulate
3550         exceptions by writing into the %fsr.
3551         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3552         (__Qp_handle_exceptions): Likewise.
3553         (numbers): Delete.
3554         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3555         __Qp_handle_exceptions.
3556         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3557         __Qp_handle_exceptions.
3558         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3559         as unused and give dummy FP_RND_NEAREST initializer.
3560         (FP_INHIBIT_RESULTS): Define.
3561         (___Q_simulate_exceptions): Update declaration.
3562         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3563         formatting.
3564         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3565         as unused and give dummy FP_RND_NEAREST initializer.
3566         (__Qp_handle_exceptions): Update declaration.
3567         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3568         formatting.
3569
3570 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3571
3572         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3573         the temporary FPU control word.
3574         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3575         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3576         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3577         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3578         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3579         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3580         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3581         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3582         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3583         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3584         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3585
3586 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3587
3588         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3589         fields.
3590
3591 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3592
3593         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3594         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3595         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3596         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3597         Likewise.
3598         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3599         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3600         Likewise.
3601
3602 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3603
3604         * po/h.po: Update from translation team.
3605
3606 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3607
3608         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3609
3610         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3611         handling of denormals.
3612         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3613         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3614         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3615         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3616         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3617         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3618         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3619         Likewise.
3620
3621 2012-05-26  Marek Polacek  <polacek@redhat.com>
3622
3623         [BZ #14152]
3624         * math/libm-test.inc (fma_test): Don't always expect underflow
3625         exception.
3626
3627 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3628
3629         [BZ #12416]
3630         * elf/tst-execstack.c: Include stackinfo.h.
3631         (do_test): Adjust test case to ensure that pthread_getattr_np
3632         behaviour remains the same after marking stack executable.
3633
3634 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3635
3636         * sysdeps/unix/sysv/linux/kernel-features.h
3637         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3638         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3639         kernel-features.h.
3640         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3641         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3642         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3643         kernel-features.h.
3644         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3645         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3646
3647 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3648
3649         * configure.in: Define the default includes to being none.
3650         * configure: Regenerated.
3651
3652 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3653
3654         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3655         * sysdeps/x86_64/setjmp.S: Likewise.
3656         * sysdeps/i386/bsd-setjmp.S: Likewise.
3657         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3658         * sysdeps/i386/setjmp.S: Likewise.
3659         * sysdeps/i386/__longjmp.S: Likewise.
3660         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3661         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3662
3663         * include/stap-probe.h: New file.
3664         * configure.in: Handle --enable-systemtap.
3665         * configure: Regenerated.
3666         * config.h.in (USE_STAP_PROBE): New #undef.
3667         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3668         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3669         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3670
3671 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3672
3673         [BZ #13717]
3674         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3675         to 2.4.0 where earlier.
3676         * sysdeps/unix/sysv/linux/configure: Regenerated.
3677         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3678         <kernel-features.h>.
3679         [__ASSUME_32BITUIDS]: Make code unconditional.
3680         [!__ASSUME_32BITUIDS]: Remove conditional code.
3681         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
3682         <kernel-features.h>.
3683         [__ASSUME_32BITUIDS]: Make code unconditional.
3684         [!__ASSUME_32BITUIDS]: Remove conditional code.
3685         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
3686         [__ASSUME_32BITUIDS]: Make code unconditional.
3687         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
3688         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
3689         <kernel-features.h>.
3690         [__ASSUME_32BITUIDS]: Make code unconditional.
3691         [!__ASSUME_32BITUIDS]: Remove conditional code.
3692         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
3693         <kernel-features.h>.
3694         [__ASSUME_32BITUIDS]: Make code unconditional.
3695         [!__ASSUME_32BITUIDS]: Remove conditional code.
3696         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
3697         <kernel-features.h>.
3698         [__ASSUME_32BITUIDS]: Make code unconditional.
3699         [!__ASSUME_32BITUIDS]: Remove conditional code.
3700         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
3701         <kernel-features.h>.
3702         [__ASSUME_32BITUIDS]: Make code unconditional.
3703         [!__ASSUME_32BITUIDS]: Remove conditional code.
3704         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
3705         <kernel-features.h>.
3706         [__ASSUME_32BITUIDS]: Make code unconditional.
3707         [!__ASSUME_32BITUIDS]: Remove conditional code.
3708         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
3709         <kernel-features.h>.
3710         [__ASSUME_32BITUIDS]: Make code unconditional.
3711         [!__ASSUME_32BITUIDS]: Remove conditional code.
3712         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
3713         <kernel-features.h>.
3714         [__ASSUME_32BITUIDS]: Make code unconditional.
3715         [!__ASSUME_32BITUIDS]: Remove conditional code.
3716         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3717         <kernel-features.h>.
3718         [__ASSUME_32BITUIDS]: Make code unconditional.
3719         [!__ASSUME_32BITUIDS]: Remove conditional code.
3720         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
3721         <kernel-features.h>.
3722         [__ASSUME_32BITUIDS]: Make code unconditional.
3723         [!__ASSUME_32BITUIDS]: Remove conditional code.
3724         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
3725         <kernel-features.h>.
3726         [__ASSUME_32BITUIDS]: Make code unconditional.
3727         [!__ASSUME_32BITUIDS]: Remove conditional code.
3728         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
3729         <kernel-features.h>.
3730         [__NR_setresgid] (__setresgid): Do not declare.
3731         [__ASSUME_32BITUIDS]: Make code unconditional.
3732         [!__ASSUME_32BITUIDS]: Remove conditional code.
3733         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
3734         <kernel-features.h>.
3735         [__NR_setresuid] (__setresuid): Do not declare.
3736         [__ASSUME_32BITUIDS]: Make code unconditional.
3737         [!__ASSUME_32BITUIDS]: Remove conditional code.
3738         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
3739         <kernel-features.h>.
3740         [__ASSUME_32BITUIDS]: Make code unconditional.
3741         [!__ASSUME_32BITUIDS]: Remove conditional code.
3742         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
3743         <kernel-features.h>.
3744         [__ASSUME_32BITUIDS]: Make code unconditional.
3745         [!__ASSUME_32BITUIDS]: Remove conditional code.
3746         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
3747         <kernel-features.h>.
3748         [__ASSUME_32BITUIDS]: Make code unconditional.
3749         [!__ASSUME_32BITUIDS]: Remove conditional code.
3750         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
3751         <kernel-features.h>.
3752         [__ASSUME_32BITUIDS]: Make code unconditional.
3753         [!__ASSUME_32BITUIDS]: Remove conditional code.
3754         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
3755         <kernel-features.h>.
3756         [__ASSUME_32BITUIDS]: Make code unconditional.
3757         [!__ASSUME_32BITUIDS]: Remove conditional code.
3758         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
3759         <kernel-features.h>.
3760         [__ASSUME_32BITUIDS]: Make code unconditional.
3761         [!__ASSUME_32BITUIDS]: Remove conditional code.
3762         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
3763         <kernel-features.h>.
3764         [__ASSUME_32BITUIDS]: Make code unconditional.
3765         [!__ASSUME_32BITUIDS]: Remove conditional code.
3766         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
3767         <kernel-features.h>.
3768         [__ASSUME_32BITUIDS]: Make code unconditional.
3769         [!__ASSUME_32BITUIDS]: Remove conditional code.
3770         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
3771         <kernel-features.h>.
3772         [__ASSUME_32BITUIDS]: Make code unconditional.
3773         [!__ASSUME_32BITUIDS]: Remove conditional code.
3774         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
3775         <kernel-features.h>.
3776         [__ASSUME_32BITUIDS]: Make code unconditional.
3777         [!__ASSUME_32BITUIDS]: Remove conditional code.
3778         * sysdeps/unix/sysv/linux/kernel-features.h
3779         (__ASSUME_SETRESUID_SYSCALL): Remove.
3780         (__ASSUME_SETRESGID_SYSCALL): Likewise.
3781         (__ASSUME_32BITUIDS): Likewise.
3782         (__ASSUME_LDT_WORKS): Likewise.
3783         (__ASSUME_O_DIRECTORY): Likewise.
3784         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
3785         architecture but not kernel version.
3786         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3787         (__ASSUME_MMAP2_SYSCALL): Likewise.
3788         (__ASSUME_STAT64_SYSCALL): Likewise.
3789         (__ASSUME_IPC64): Likewise.
3790         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
3791         <kernel-features.h>.
3792         [__ASSUME_32BITUIDS]: Make code unconditional.
3793         [!__ASSUME_32BITUIDS]: Remove conditional code.
3794         * sysdeps/unix/sysv/linux/opendir.c: Do not include
3795         <kernel-features.h>.
3796         [__ASSUME_O_DIRECTORY]: Make code unconditional.
3797         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
3798         132096]: Remove conditional code.
3799         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
3800         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3801         <kernel-features.h>.
3802         [__ASSUME_32BITUIDS]: Make code unconditional.
3803         [!__ASSUME_32BITUIDS]: Remove conditional code.
3804         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
3805         <kernel-features.h>.
3806         [__ASSUME_32BITUIDS]: Make code unconditional.
3807         [!__ASSUME_32BITUIDS]: Remove conditional code.
3808         * sysdeps/unix/sysv/linux/setegid.c: Do not include
3809         <kernel-features.h>.
3810         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
3811         unconditional.
3812         (__setresgid): Do not declare.
3813         [__ASSUME_32BITUIDS]: Make code unconditional.
3814         [!__ASSUME_32BITUIDS]: Remove conditional code.
3815         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
3816         <kernel-features.h>.
3817         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
3818         unconditional.
3819         (__setresuid): Do not declare.
3820         [__ASSUME_32BITUIDS]: Make code unconditional.
3821         [!__ASSUME_32BITUIDS]: Remove conditional code.
3822         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3823         <kernel-features.h>.
3824         [__ASSUME_32BITUIDS]: Make code unconditional.
3825         [!__ASSUME_32BITUIDS]: Remove conditional code.
3826         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
3827         <kernel-features.h>.
3828         [__ASSUME_32BITUIDS]: Make code unconditional.
3829         [!__ASSUME_32BITUIDS]: Remove conditional code.
3830
3831 2012-05-25  Richard Henderson  <rth@twiddle.net>
3832
3833         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
3834         dl_hwcap to ifunc resolver.
3835         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
3836         elf_ifunc_invoke.
3837         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
3838         dl_hwcap to ifunc resolver.
3839         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
3840
3841 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3842
3843         [BZ #14153]
3844         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
3845         for |x| <= 2**-26, not 2**-57.
3846         * math/libm-test.inc (acos_test): Do not allow spurious underflow
3847         exception.
3848
3849 2012-05-24  Jeff Law  <law@redhat.com>
3850
3851         * stdio-common/Makefile (tests): Add bug25.
3852         * stdio-common/bug25.c: New test.
3853
3854 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3855
3856         [BZ #13576]
3857         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
3858         multiple of MALLOC_ALIGNMENT in size.
3859         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
3860
3861 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3862
3863         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
3864         Require >= 256.
3865         (FILENAME_MAX): Use macro-int-constant.
3866         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
3867         (_IOFBF): Use macro-int-constant.
3868         (_IOLBF): Likewise.
3869         (_IONBF): Likewise.
3870         (SEEK_CUR): Likewise.
3871         (SEEK_END): Likewise.
3872         (SEEK_SET): Likewise.
3873         (TMP_MAX): Likewise.
3874         (EOF): Use macro-int-constant.  Require < 0.
3875         (NULL): Use macro-constant.  Require == 0.
3876         (stdin): Require type to be FILE *.
3877         (stdout): Likewise.
3878         (stderr): Likewise.
3879         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
3880         macro-int-constant.
3881         (EXIT_SUCCESS): Likewise.
3882         (NULL): Use macro-constant.  Require == 0.
3883         (RAND_MAX): Use macro-int-constant.
3884         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
3885         [C99-based standards] (strtof): Require function.
3886         [C99-based standards] (strtold): Likewise.
3887         [C99-based standards] (strtoll): Likewise.
3888         [C99-based standards] (strtoull): Likewise.
3889         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3890         [ISO || ISO99 || ISO11] (limits.h): Likewise.
3891         [ISO || ISO99 || ISO11] (math.h): Likewise.
3892         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
3893         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3894         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3895
3896 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
3897
3898         [BZ #14132]
3899         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
3900         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
3901         * intl/dgettext.c (DCGETTEXT): Likewise.
3902         * intl/gettext.c (DCGETTEXT): Likewise.
3903         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
3904         * posix/regex_internal.h (gettext): Likewise.
3905         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
3906         Remove declaration.
3907         * include/argz.h (__argz_count_internal)
3908         (__argz_stringify_internal): Remove declaration.
3909         (__argz_count, __argz_stringify): Declare hidden proto.
3910         * intl/dcgettext.c: Remove use of INTDEF.
3911         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
3912         * string/argz-stringify.c: Likewise.
3913         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3914         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3915         Declare hidden proto.
3916         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3917         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3918         Declare hidden proto.
3919         * include/stdio.h (__asprintf_internal): Don't declare.
3920         (__asprintf): Don't define as macro.  Declare hidden proto.
3921         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
3922         (__fsetlocking): Declare hidden proto.
3923         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
3924         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
3925         hidden proto.
3926         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
3927         (_IO_setlinebuf): Remove use of INTUSE.
3928         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
3929         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
3930         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
3931         Remove declaration.
3932         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
3933         (_IO_do_flush): Remove use of INTUSE.
3934         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
3935         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
3936         (_IO_adjust_column, _IO_least_wmarker)
3937         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
3938         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
3939         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
3940         (_IO_default_doallocate, _IO_wdefault_doallocate)
3941         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
3942         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
3943         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
3944         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
3945         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
3946         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
3947         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
3948         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
3949         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
3950         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
3951         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
3952         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
3953         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
3954         proto.
3955         (_IO_flush_all_internal, _IO_adjust_column_internal)
3956         (_IO_default_uflow_internal, _IO_default_finish_internal)
3957         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
3958         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
3959         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
3960         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
3961         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
3962         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
3963         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
3964         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
3965         (_IO_file_close_internal, _IO_file_close_it_internal)
3966         (_IO_file_underflow_internal, _IO_file_overflow_internal)
3967         (_IO_file_init_internal, _IO_file_attach_internal)
3968         (_IO_file_fopen_internal, _IO_file_read_internal)
3969         (_IO_file_sync_internal, _IO_file_seek_internal)
3970         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
3971         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
3972         (_IO_str_underflow_internal, _IO_str_overflow_internal)
3973         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
3974         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
3975         (_IO_list_all_internal, _IO_link_in_internal)
3976         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
3977         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
3978         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
3979         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
3980         (_IO_do_write_internal, _IO_padn_internal)
3981         (_IO_getline_info_internal, _IO_getline_internal)
3982         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
3983         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
3984         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
3985         (_IO_vfscanf_internal, _IO_vfprintf_internal)
3986         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
3987         (_IO_init_internal, _IO_un_link_internal): Don't declare.
3988         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
3989         with libc_hidden_ver, remove use of INTUSE.
3990         * libio/genops.c: Likewise.
3991         * libio/freopen.c: Likewise.
3992         * libio/freopen64.c: Likewise.
3993         * libio/iofclose.c: Likewise.
3994         * libio/iofdopen.c: Likewise.
3995         * libio/iofflush.c: Likewise.
3996         * libio/iofflush_u.c: Likewise.
3997         * libio/iofgets.c: Likewise.
3998         * libio/iofgets_u.c: Likewise.
3999         * libio/iofopen.c: Likewise.
4000         * libio/iofopncook.c: Likewise.
4001         * libio/iofread.c: Likewise.
4002         * libio/iofread_u.c: Likewise.
4003         * libio/ioftell.c: Likewise.
4004         * libio/iofwrite.c: Likewise.
4005         * libio/iogetline.c: Likewise.
4006         * libio/iogets.c: Likewise.
4007         * libio/iogetwline.c: Likewise.
4008         * libio/iopadn.c: Likewise.
4009         * libio/iopopen.c: Likewise.
4010         * libio/ioseekoff.c: Likewise.
4011         * libio/ioseekpos.c: Likewise.
4012         * libio/iosetbuffer.c: Likewise.
4013         * libio/iosetvbuf.c: Likewise.
4014         * libio/ioungetc.c: Likewise.
4015         * libio/ioungetwc.c: Likewise.
4016         * libio/iovdprintf.c: Likewise.
4017         * libio/iovsprintf.c: Likewise.
4018         * libio/iovsscanf.c: Likewise.
4019         * libio/memstream.c: Likewise.
4020         * libio/obprintf.c: Likewise.
4021         * libio/oldfileops.c: Likewise.
4022         * libio/oldiofclose.c: Likewise.
4023         * libio/oldiofdopen.c: Likewise.
4024         * libio/oldiofopen.c: Likewise.
4025         * libio/oldiopopen.c: Likewise.
4026         * libio/oldstdfiles.c: Likewise.
4027         * libio/putc.c: Likewise.
4028         * libio/setbuf.c: Likewise.
4029         * libio/setlinebuf.c: Likewise.
4030         * libio/stdfiles.c: Likewise.
4031         * libio/strops.c: Likewise.
4032         * libio/vasprintf.c: Likewise.
4033         * libio/vscanf.c: Likewise.
4034         * libio/vsnprintf.c: Likewise.
4035         * libio/vswprintf.c: Likewise.
4036         * libio/wfiledoalloc.c: Likewise.
4037         * libio/wfileops.c: Likewise.
4038         * libio/wgenops.c: Likewise.
4039         * libio/wmemstream.c: Likewise.
4040         * libio/wstrops.c: Likewise.
4041         * libio/__fpurge.c: Likewise.
4042         * libio/__fsetlocking.c: Likewise.
4043         * assert/assert.c: Likewise.
4044         * debug/fgets_chk.c: Likewise.
4045         * debug/fgets_u_chk.c: Likewise.
4046         * debug/fread_chk.c: Likewise.
4047         * debug/fread_u_chk.c: Likewise.
4048         * debug/gets_chk.c: Likewise.
4049         * debug/obprintf_chk.c: Likewise.
4050         * debug/vasprintf_chk.c: Likewise.
4051         * debug/vdprintf_chk.c: Likewise.
4052         * debug/vsnprintf_chk.c: Likewise.
4053         * debug/vsprintf_chk.c: Likewise.
4054         * malloc/mtrace.c: Likewise.
4055         * misc/error.c: Likewise.
4056         * misc/syslog.c: Likewise.
4057         * stdio-common/asprintf.c: Likewise.
4058         * stdio-common/fxprintf.c: Likewise.
4059         * stdio-common/getw.c: Likewise.
4060         * stdio-common/isoc99_fscanf.c: Likewise.
4061         * stdio-common/isoc99_scanf.c: Likewise.
4062         * stdio-common/isoc99_vfscanf.c: Likewise.
4063         * stdio-common/isoc99_vscanf.c: Likewise.
4064         * stdio-common/isoc99_vsscanf.c: Likewise.
4065         * stdio-common/printf-prs.c: Likewise.
4066         * stdio-common/printf_fp.c: Likewise.
4067         * stdio-common/printf_fphex.c: Likewise.
4068         * stdio-common/printf_size.c: Likewise.
4069         * stdio-common/putw.c: Likewise.
4070         * stdio-common/scanf.c: Likewise.
4071         * stdio-common/sprintf.c: Likewise.
4072         * stdio-common/tmpfile.c: Likewise.
4073         * stdio-common/vfprintf.c: Likewise.
4074         * stdio-common/vfscanf.c: Likewise.
4075         * stdlib/strfmon_l.c: Likewise.
4076         * sunrpc/openchild.c: Likewise.
4077         * sunrpc/xdr_stdio.c: Likewise.
4078         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4079         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4080
4081 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4082
4083         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4084
4085         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4086         in the third column, to generate for the shared library an IFUNC
4087         that uses _dl_vdso_vsym.
4088         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4089         * Makeconfig (object-suffixes-noshared): New variable.
4090
4091         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4092         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4093         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4094         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4095
4096         [BZ #14132]
4097         * include/sys/time.h (__gettimeofday): Remove macro.
4098         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4099         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4100         Remove INTDEF.
4101         (__gettimeofday): Add libc_hidden_def.
4102         (gettimeofday): Add libc_hidden_weak.
4103         * sysdeps/mach/gettimeofday.c: Likewise.
4104         * sysdeps/posix/gettimeofday.c: Likewise.
4105         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4106         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4107         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4108         (__gettimeofday_internal): Remove strong_alias.
4109         (__gettimeofday): Add libc_hidden_def.
4110         (gettimeofday): Add libc_hidden_weak.
4111         * sysdeps/unix/syscalls.list (gettimeofday):
4112         Remove __gettimeofday_internal alias.
4113
4114 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4115             H.J. Lu  <hongjiu.lu@intel.com>
4116
4117         [BZ #12495]
4118         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4119         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4120         (largebin_index_32_big): New.
4121         (largebin_index): Use it for 16-byte alignment.
4122         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4123         correction with front_misalign.
4124
4125 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4126
4127         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4128         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4129         Likewise.
4130         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4131         Likewise.
4132         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4133         Likewise.
4134         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4135         Likewise.
4136         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4137         Likewise.
4138         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4139         Likewise.
4140         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4141         Likewise.
4142         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4143         Likewise.
4144         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4145         Likewise.
4146         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4147         Likewise.
4148         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4149         Likewise.
4150         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4151         Likewise.
4152
4153         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4154         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4155
4156 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4157
4158         [BZ #10846]
4159         [BZ #14036]
4160         * math/libm-test.inc (exp_test): Add test from bug 14036.
4161         (pow_test): Add test from bug 10846.
4162
4163         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4164         and other flags.
4165         (special_function): Do not include flags in test name.
4166         (parse_args): Likewise.
4167         * sysdeps/i386/fpu/libm-test-ulps: Update.
4168         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4169         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4170         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4171         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4172
4173         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4174         exceptions.
4175         * math/libm-test.inc ("Philosophy"): Update comment about
4176         exception testing.
4177         (UNDERFLOW_EXCEPTION): New macro.
4178         (UNDERFLOW_EXCEPTION_OK): Likewise.
4179         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4180         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4181         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4182         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4183         (INVALID_EXCEPTION_OK): Update value.
4184         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4185         (OVERFLOW_EXCEPTION_OK): Likewise.
4186         (IGNORE_ZERO_INF_SIGN): Likewise.
4187         (test_exceptions): Handle underflow exceptions.
4188         (acos_test): Update for underflow exception expectations.
4189         (cexp_test): Likewise.
4190         (clog_test): Likewise.
4191         (clog10_test): Likewise.
4192         (csqrt_test): Likewise.
4193         (ctan_test): Likewise.
4194         (ctanh_test): Likewise.
4195         (exp_test): Likewise.
4196         (exp10_test): Likewise.
4197         (exp2_test): Likewise.
4198         (expm1_test): Likewise.
4199         (fma_test): Likewise.
4200         (j0_test): Likewise.
4201         (jn_test): Likewise.
4202         (nexttoward_test): Likewise.
4203         (pow_test): Likewise.
4204         (scalbn_test): Likewise.
4205         (scalbln_test): Likewise.
4206         (tan_test): Likewise.
4207         (y1_test): Likewise.
4208         * sysdeps/i386/fpu/libm-test-ulps: Update.
4209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4210
4211 2012-05-23  David S. Miller  <davem@davemloft.net>
4212
4213         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4214         (__libc_sigaction): Remove unused local variables.
4215
4216 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4217
4218         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4219
4220 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4221
4222         mktime: avoid signed integer overflow
4223         * time/mktime.c (__mktime_internal): Do not mishandle the case
4224         where diff == INT_MIN.
4225
4226         mktime: simplify computation of average
4227         * time/mktime.c (ranged_convert): Use new time_t_avg function
4228         instead of rolling our own (probably-slower) code.
4229
4230         mktime: do not assume signed right shift propagates sign bit
4231         * time/mktime.c (isdst_differ): New static function.
4232         (__mktime_internal): No need to normalize tm_isdst now.
4233         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4234         tm_isdst values.
4235
4236         mktime: merge another wrapv change from gnulib
4237         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4238         from some compilers.
4239
4240         mktime: remove incorrect attempt at unusual arithmetics
4241         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4242         The code didn't really work on such machines anyway.
4243         (TYPE_MINIMUM): Assume two's complement.
4244         (twos_complement_arithmetic): Verify that long_int and time_t
4245         are two's complement (or unsigned, in the latter case).
4246
4247         mktime: check signed shifts on long_int and time_t, too
4248         * time/mktime.c (SHR): Check that shifts work as desired
4249         on the types long_int and time_t too, as SHR is used on
4250         such types.
4251
4252         mktime: do not assume 'long' is wide enough
4253         * time/mktime.c (verify): Move decl up.
4254         (long_int): New type.
4255         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4256         to remove assumption in the code that 'long' is wide enough to
4257         store year values.  This assumption is not true on x32 and on
4258         some non-glibc platforms.
4259
4260         mktime: merge wrapv change from gnulib
4261         * time/mktime.c (WRAPV): New macro.
4262         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4263         (guess_time_tm, __mktime_internal): Do not assume that signed
4264         integer overflow wraps around; modern compilers generate code
4265         where this assumption is no longer valid.
4266
4267 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4268
4269         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4270         Replace "jmp L(pseudo_end)" with "ret".
4271         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4272         Likewise.
4273
4274 2012-05-23  Andreas Jaeger  <aj@suse.de>
4275
4276         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4277         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4278
4279 2012-05-23  Andreas Jaeger  <aj@suse.de>
4280             Maximilian Attems  <max@stro.at>
4281
4282         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4283         New macros.
4284
4285 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4286
4287         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4288         code so that pseudo_end is just ret and the stack pointer is
4289         correct also for static library in error case.
4290
4291 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4292
4293         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4294         move to syscalls.list.
4295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4299
4300         * manual/install.texi (Running make install): Do not mention Linux
4301         kernel version for which pt_chown is not needed.
4302         (Linux): Do not mention problems with nscd with 2.0 kernels.
4303         * INSTALL: Regenerated.
4304
4305 2012-05-23  Andreas Jaeger  <aj@suse.de>
4306
4307         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4308         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4309         macro.
4310         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4311         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4312         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4313         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4314         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4315         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4316         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4317         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4318         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4319         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4320         * sysdeps/unix/sysv/linux/bits/in.h
4321         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4322
4323 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4324
4325         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4326         (PREPARE_VERSION): Just use assert instead, it will be elided
4327         under [NDEBUG] anyway.
4328
4329 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4330
4331         * sysdeps/unix/sysv/linux/Makefile: Include
4332         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4333         (sysdep_routines): Remove sysctl.
4334         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4335         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4336         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4337         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4338         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4339
4340 2012-05-22  Andreas Jaeger  <aj@suse.de>
4341
4342         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4343         that pseudo_end is just ret and the stack pointer is correct also
4344         for static library in error case.
4345
4346 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4347
4348         [BZ #14122]
4349         * nss/nsswitch.c (defconfig_entries): New variable.
4350         (__nss_database_lookup): Don't leak defconfig entries.
4351         (nss_parse_service_list): Don't leak on error paths.
4352         (free_database_entries): New function.
4353         (free_defconfig): New function.
4354         (free_mem): Move common code to free_database_entries.
4355
4356 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4357
4358         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4359         Add arch_prctl.
4360         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4361
4362         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4363         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4364         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4365         New macro.
4366         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4367         (INTERNAL_SYSCALL_TYPES): Likewise.
4368         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4369         (LOAD_REGS_TYPES_[1-6]): Likewise.
4370         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4371         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4372
4373 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4374
4375         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4376         copysignl for GLIBC_2_0.
4377         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4378         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4379         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4380         logbl for GLIBC_2_0.
4381         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4382         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4383
4384 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4385
4386         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4387         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4388
4389         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4390         Use "neg %eax".
4391
4392         * time/mktime.c: Update copyright years.
4393
4394 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4395
4396         mktime: merge comment-quoting-style change from gnulib
4397         * time/mktime.c: Quote 'like this' in comments.
4398         The GNU coding standards suggest that we no longer quote `like this',
4399         as "`" and "'" are typically rendered asymmetrically nowadays.
4400         The typical gnulib style is to quote 'like this' when quoting
4401         code, and "like this" when quoting English.
4402
4403         * time/mktime.c (compile-command): Add "-I.".
4404
4405         mktime: merge mktime-internal.h change from gnulib
4406         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4407
4408         mktime: merge time_r change from gnulib
4409         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4410
4411         mktime: merge DEBUG change from gnulib
4412         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4413         case system <time.h> has a #define.
4414
4415         mktime: merge <sys/types.h> change from gnulib
4416         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4417         since <time.t> is now guaranteed to define time_t.
4418
4419         mktime: merge HAVE_CONFIG_H change from gnulib
4420         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4421
4422 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4423
4424         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4425         Use "neg %eax".
4426
4427         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4428         __rlim_t cast.
4429         (struct rusage): Use anonymous union to pad each field to
4430         __syscall_slong_t.
4431
4432 2012-05-21  David S. Miller  <davem@davemloft.net>
4433
4434         * Makefules (o-iterator): Remove .s cases.
4435         (compile-command.s): Delete.
4436         (COMPILE.s): Delete.
4437         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4438
4439 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4440
4441         * configure.in (libc_cv_predef_stack_protector): Only consider
4442         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4443         * configure: Regenerated.
4444
4445 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4446
4447         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4448         New macro.  Use R*LP on int and pointer.
4449         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4450         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4451         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4452         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4453
4454         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4455         [__WORDSIZE_TIME64_COMPAT32] instead of
4456         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4457         (struct utmp): Likewise.
4458         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4459         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4460         Renamed to ...
4461         (__WORDSIZE_TIME64_COMPAT32): This.
4462         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4463         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4464         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4465         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4466         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4467         (__WORDSIZE_TIME64_COMPAT32): New macro.
4468
4469 2012-05-21  Andreas Jaeger  <aj@suse.de>
4470
4471         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4472         only if [SHARED]. Add prototype for __wcschr_ia32.
4473
4474 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4475
4476         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4477         of %rbp unmolested in the jmp_buf while mangling the low bits.
4478         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4479         unmolested high bits of %rbp while demangling the low bits.
4480         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4481
4482 2012-05-21  Andreas Jaeger  <aj@suse.de>
4483
4484         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4485         * sunrpc/svc_simple.c: Use it for registerrpc.
4486         * sunrpc/xcrypt.c: Use it for passwd2des.
4487
4488         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4489
4490 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4491
4492         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4493         Don't define if [__SYSCALL_WORDSIZE != 32].
4494         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4495         New macro.
4496
4497 2012-05-21  Bruno Haible  <bruno@clisp.org>
4498             Andreas Jaeger  <aj@suse.de>
4499
4500         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4501         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4502         inptr and inend for must_buffer_ch.
4503         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4504         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4505         * stdio-common/Makefile (tests): Remove bug15.
4506         (bug15-ENV): Remove macro.
4507         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4508         anymore.
4509
4510 2012-05-19  Andreas Jaeger  <aj@suse.de>
4511             Roland McGrath  <roland@hack.frob.com>
4512
4513         * manual/contrib.texi: Completely rewritten. It contains now an
4514         alphabetical list of contributors and their contributions.
4515
4516 2012-05-21  Richard Henderson  <rth@twiddle.net>
4517
4518         * misc/getauxval.c (__getauxval): Use unsigned long int.
4519         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4520         (getauxval): Use unsigned long int.
4521
4522 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4523
4524         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4525
4526 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4527
4528         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4529         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4530         __alignof__ (long double).
4531
4532 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4533
4534         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4535
4536 2012-05-20  Richard Henderson  <rth@twiddle.net>
4537
4538         * misc/getauxval.c: New file.
4539         * misc/sys/auxv.h: New file.
4540         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4541         (routines): Add getauxval.
4542         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4543         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4544         * elf/dl-sysdep.c (_dl_auxv): Remove.
4545         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4546         * elf/dl-support.c (_dl_auxv): New variable.
4547         (_dl_aux_init): Initialize it.
4548         * manual/startup.texi (Auxiliary Vector): New node.
4549         * sysdeps/generic/bits/hwcap.h: New file.
4550         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4551         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4552         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4553         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4554         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4555         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4557         Update.
4558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4559         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4560         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4561         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4562         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4563         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4564         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4565         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4566
4567 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4568
4569         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4570
4571 2012-05-19  David S. Miller  <davem@davemloft.net>
4572
4573         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4574
4575 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4576
4577         [BZ #14123]
4578         * math/s_ccosh.c: Include <float.h>
4579         (__ccosh): Avoid internal overflow calculating sinh and cosh
4580         values before multiplying by sin and cos values.
4581         * math/s_ccoshf.c: Likewise.
4582         * math/s_ccoshl.c: Likewise.
4583         * math/s_csin.c: Likewise.
4584         * math/s_csinf.c: Likewise.
4585         * math/s_csinl.c: Likewise.
4586         * math/s_csinh.c: Likewise.
4587         * math/s_csinhf.c: Likewise.
4588         * math/s_csinhl.c: Likewise.
4589         * math/libm-test.inc (ccos_test): Add more tests.
4590         (ccosh_test): Likewise.
4591         (csin_test): Likewise.
4592         (csinh_test): Likewise.
4593         * sysdeps/i386/fpu/libm-test-ulps: Update.
4594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4595
4596 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4597
4598         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4599         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4600
4601         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4602
4603 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4604
4605         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4606         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4607         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4608         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4609         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4610         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4611         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4612         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4613         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4614         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4615         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4616         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4617         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4618         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4619         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4620         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4621         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4622         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4623         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4624         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4625         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4626         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4627         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4628         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4629         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4630         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4631         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4632         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4633         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4634         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4635         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4636
4637 2012-05-18  Andreas Jaeger  <aj@suse.de>
4638
4639         * csu/.gitignore: Delete.
4640
4641 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4642
4643         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4644         (timex): Use __syscall_slong_t.
4645
4646 2012-05-18  Andreas Jaeger  <aj@suse.de>
4647             Carlos O'Donell  <carlos_odonell@mentor.com>
4648
4649         * manual/install.texi (Configuring and compiling): Update
4650         description about files modified in the source directory.
4651         * INSTALL: Regenerated.
4652
4653 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4654
4655         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4656         value.  Use "or" to set return value to -1.
4657         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4658         negate return value.
4659
4660 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4661
4662         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4663         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4664         failure if the compiler has Graphite support disabled.
4665         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4666         Likewise.
4667         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4668         CFLAGS-memmove.c): Likewise.
4669         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4670         Likewise.
4671
4672 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4673
4674         * sysdeps/x86_64/x32/_itoa.h: New file.
4675
4676         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4677         getdents system call only if kernel and user dirents have the
4678         same d_ino and d_off.
4679
4680         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4681         LLONG_MAX != LONG_MAX.
4682         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4683         (_fitoa_word): Likewise.
4684
4685         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
4686         years.
4687         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
4688         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
4689         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
4690
4691         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
4692         include <bits/wordsize.h>.  Check __x86_64__ instead of
4693         __WORDSIZE.
4694         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
4695         if __x86_64__ is defined.  Use anonymous union on fpstate.
4696
4697         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
4698         anonymous union.
4699
4700 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
4701
4702         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
4703         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
4704         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
4705         Refer to _rtld_local_ro instead of _rtld_global_ro.
4706         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
4707         Likewise.
4708         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
4709         Likewise.
4710         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
4711         Likewise.
4712         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
4713         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
4714         of _rtld_global, and rtld_progname instead of _dl_argv[0].
4715
4716         * sysdeps/powerpc/powerpc32/dl-machine.c
4717         (__elf_machine_runtime_setup) [PROF]: Don't reference
4718         _dl_prof_resolve.
4719
4720 2012-05-18  Andreas Jaeger  <aj@suse.de>
4721
4722         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
4723         function only available for GCCs before 3.4 since GCC 3.4
4724         introduced a builtin.
4725         (lrint): Likewise.
4726         (llrintf): Likewise.
4727         (llrint): Likewise.
4728         (fmaxf): Likewise.
4729         (fmax): Likewise.
4730         (fminf): Likewise.
4731         (fmin): Likewise.
4732         (rint): Likewise.
4733         (rintf): Likewise.
4734         (nearbyint): Likewise.
4735         (nearbyintf): Likewise.
4736         (ceil): Likewise.
4737         (ceilf): Likewise.
4738         (floor): Likewise.
4739         (floorf): Likewise.
4740
4741 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4742
4743         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
4744         on both fields and cast pointer to __syscall_ulong_t.
4745
4746         * bits/types.h (__fsword_t): New type.
4747         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
4748         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
4749         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4750         (__FSWORD_T_TYPE): Likewise.
4751         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4752         (__FSWORD_T_TYPE): Likewise.
4753         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4754         (__FSWORD_T_TYPE): Likewise.
4755         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
4756         (__FSWORD_T_TYPE): Likewise.
4757         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
4758         __SWORD_TYPE with __fsword_t.
4759         (statfs64): Likewise.
4760
4761 2012-05-17  David S. Miller  <davem@davemloft.net>
4762
4763         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
4764
4765 2012-05-17  Andreas Jaeger  <aj@suse.de>
4766
4767         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
4768         warning.
4769
4770 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4771
4772         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
4773
4774 2012-05-17  Andreas Jaeger  <aj@suse.de>
4775
4776         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
4777         when it is used.
4778
4779 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4780
4781         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
4782
4783 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4784
4785         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
4786         * sysdeps/x86_64/tst-mallocalign1.c: New file.
4787
4788 2012-05-17  Andreas Jaeger  <aj@suse.de>
4789             Carlos O'Donell  <carlos_odonell@mentor.com>
4790
4791         [BZ #14059]
4792         * sysdeps/x86_64/multiarch/init-arch.h
4793         (bit_YMM_Usable): Rename to...
4794         (bit_AVX_Usable): ... this.
4795         (bit_FMA4_Usable): New macro.
4796         (bit_XMM_state): New macro.
4797         (bit_YMM_state): New macro.
4798         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
4799         [__ASSEMBLER__] (index_AVX_Usable): ... this.
4800         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
4801         (CPUID_OSXSAVE): New macro.
4802         (CPUID_AVX): New macro.
4803         (CPUID_FMA4): New macro.
4804         (index_YMM_Usable): Rename to...
4805         (index_AVX_Usable): ... this.
4806         (HAS_AVX): Use HAS_ARCH_FEATURE.
4807         (HAS_FMA4): Likewise.
4808         (HAS_YMM_USABLE): Remove.
4809         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4810         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
4811         are present.
4812         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
4813         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
4814         * sysdeps/x86_64/multiarch/Makefile: Likewise.
4815         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
4816         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
4817
4818 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4819
4820         * math/libm-test.c: Support platforms without multiple rounding modes.
4821         * math/bug-nextafter.c: Support platforms without FP exceptions.
4822         * math/bug-nexttoward.c: Likewise.
4823         * math/test-fenv.c: Likewise.
4824         * math/test-misc.c: Likewise.
4825         * stdlib/bug-getcontext.c: Likewise.
4826
4827 2012-05-17  Andreas Jaeger  <aj@suse.de>
4828
4829         * manual/examples/search.c (critter_cmp): Change signature to
4830         avoid warnings.
4831         * manual/string.texi (Collation Functions): Likewise.
4832
4833 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4834
4835         * bits/types.h: Fold copyright years.
4836         * bits/typesizes.h: Likewise.
4837         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
4838         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
4839         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
4840         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
4841         * time/time.h: Likewise.
4842
4843 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
4844
4845         [BZ #208]
4846         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
4847         in instead of returning them.  Return void.
4848         (__libc_mallinfo): Accumulate over all arenas.
4849         (__malloc_stats): Adjust for change in int_mallinfo interface.
4850
4851 2012-05-16  Roland McGrath  <roland@hack.frob.com>
4852
4853         [BZ #10375]
4854         * configure.in (NM): Add AC_CHECK_TOOL for it.
4855         (libc_extra_cflags): New substituted variable.
4856         Check for -fstack-protector being used implicitly.
4857         * configure: Regenerated.
4858         * config.make.in (config-extra-cflags): New variable,
4859         gets @libc_extra_cflags@.
4860         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
4861
4862         [BZ #10375]
4863         * configure.in: Check for _FORTIFY_SOURCE being predefined.
4864         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
4865         * configure: Regenerated.
4866         * config.make.in (CPPUNDEFS): New substituted variable.
4867         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
4868         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
4869         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
4870
4871 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4872
4873         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
4874         (mq_attr): Use __syscall_slong_t.
4875
4876 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4877
4878         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
4879         Check __x86_64__ instead of __WORDSIZE.
4880         (_STAT_VER_LINUX): Likewise.
4881         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
4882         __syscall_ulong_t and __syscall_slong_t.
4883         (stat64): Likewise.
4884
4885 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4886
4887         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
4888
4889 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4890
4891         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
4892
4893 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4894
4895         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
4896         __syscall_ulong_t.
4897
4898         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
4899         include <bits/wordsize.h>.  Check __x86_64__ instead of
4900         __WORDSIZE.
4901         (greg_t): Use "__extension__ long long int" if __x86_64__ is
4902         defined.
4903         (mcontext_t): Replace "unsigned long" with "unsigned long long".
4904
4905         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
4906         include <bits/wordsize.h>.  Check __x86_64__ instead of
4907         __WORDSIZE.
4908         (user_regs_struct): Use "__extension__ unsigned long long"
4909         instead of "unsigned long" if __x86_64__ is defined.
4910         (user): Likewise.  Pad after pointer field if __ILP32__ is
4911         defined.
4912
4913 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
4914
4915         * configure.in (makeinfo): Require version 4.5 or later.  Allow
4916         versions 5 to 9.
4917         * configure: Regenerated.
4918         * manual/install.texi (texinfo): Increase version requirement to
4919         4.5 or later.
4920         * INSTALL: Regenerated.
4921
4922         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
4923
4924 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4925
4926         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
4927
4928         * sysdeps/x86_64/x32/ffs.c: New file.
4929
4930         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
4931         __syscall_ulong_t.
4932         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
4933         defined.  Use __syscall_ulong_t.
4934         (shminfo): Use __syscall_ulong_t.
4935         (shm_info): Likewise.
4936
4937         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
4938         __syscall_ulong_t.
4939
4940         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
4941         <bits/wordsize.h>.
4942         (msgqnum_t): Use __syscall_ulong_t.
4943         (msglen_t): Likewise.
4944         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
4945         __syscall_ulong_t.
4946
4947         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
4948         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4949
4950         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
4951
4952         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
4953         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
4954
4955         * sysvipc/sys/msg.h (msgbuf): Replace long int with
4956         __syscall_slong_t.
4957
4958         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
4959         include <bits/wordsize.h>.  Check __x86_64__ instead of
4960         __WORDSIZE.
4961
4962         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
4963         "unsigned long long int" if __x86_64__ is defined.
4964         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
4965
4966         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
4967         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4968         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
4969
4970         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
4971         <stdint.h>.
4972         (GET_PC): Cast to uintptr_t first.
4973         (GET_FRAME): Likewise.
4974         (GET_STACK): Likewise.
4975
4976         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
4977         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
4978         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
4979         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
4980         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
4981         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
4982         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
4983         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
4984         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
4985         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
4986         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
4987         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
4988         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4989         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
4990         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
4991         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
4992         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
4993         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
4994         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
4995         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
4996         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
4997         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
4998         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
4999         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5000         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5001         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5002         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5003         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5004         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5005
5006 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5007
5008         * Makerules (+depfiles): Also collect depfiles from .oS in
5009         $(extra-objs).
5010         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5011         .oS, $(libnldbl-routines)).
5012
5013         * Makerules (native-compile-mkdep-flags): Define.
5014         * sunrpc/Makefile (extra-objs): Add $(addprefix
5015         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5016         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5017         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5018         calling $(make-target-directory).
5019
5020 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5021
5022         * bits/types.h (__snseconds_t): Removed.
5023         * time/time.h (struct timespec): Replace __snseconds_t with
5024         __syscall_slong_t.
5025         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5026         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5027         Likewise.
5028         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5029         (__SNSECONDS_T_TYPE): Likewise.
5030         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5031         (__SNSECONDS_T_TYPE): Likewise.
5032         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5033         (__SNSECONDS_T_TYPE): Likewise.
5034
5035 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5036
5037         * sysdeps/mach/hurd/bits/typesizes.h
5038         (__SYSCALL_SLONG_TYPE): New macro.
5039         (__SYSCALL_ULONG_TYPE): Likewise.
5040
5041 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5042
5043         * bits/types.h (__syscall_slong_t): New type.
5044         (__syscall_ulong_t): Likewise.
5045
5046         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5047         (__SYSCALL_ULONG_TYPE): Likewise.
5048         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5049         (__SYSCALL_SLONG_TYPE): Likewise.
5050         (__SYSCALL_ULONG_TYPE): Likewise.
5051         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5052         (__SYSCALL_SLONG_TYPE): Likewise.
5053         (__SYSCALL_ULONG_TYPE): Likewise.
5054         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5055         (__SYSCALL_SLONG_TYPE): Likewise.
5056         (__SYSCALL_ULONG_TYPE): Likewise.
5057
5058 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5059
5060         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5061         Add sigaltstack-offsets.sym.
5062         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5063         <sigaltstack-offsets.h>.
5064         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5065         longjmp_msg pointer.
5066         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5067         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5068         signal stack.
5069         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5070
5071 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5072
5073         * elf/stackguard-macros.h: Remove file.
5074         * sysdeps/generic/stackguard-macros.h: New file.
5075         * sysdeps/i386/stackguard-macros.h: Likewise.
5076         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5077         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5078         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5079         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5080         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5081         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5082         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5083         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5084         <elf/stackguard-macros.h>.
5085
5086         [BZ #14109]
5087         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5088         __aligned__ in attribute.
5089         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5090         (gregset_t): Likewise.
5091
5092 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5093
5094         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5095         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5096         * sysdeps/x86_64/x32/Implies-after: New file.
5097
5098 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5099
5100         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5101         and access return value for _dl_profile_fixup.  Use R10_LP to
5102         load frame size.
5103
5104 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5105
5106         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5107
5108 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5109
5110         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5111         * sysdeps/x86_64/x32/sysdep.h: New file.
5112
5113 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5114
5115         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5116         * sysdeps/x86_64/setjmp.S: Likewise.
5117
5118 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5119
5120         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5121         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5122         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5123         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5124         remove unused global constant.
5125
5126 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5127
5128         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5129         include of <not-cancel.h>.
5130
5131 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5132
5133         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5134
5135 2012-05-15  Jeff Law  <law@redhat.com>
5136             Andreas Jaeger  <aj@suse.de>
5137
5138         [BZ #13594]
5139         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5140         out from...
5141         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5142         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5143         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5144         code changing __hst_map_handle.map.
5145
5146 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5147
5148         * configure.in (sysnames): Look for Implies-before and Implies-after
5149         files.
5150         * configure: Regenerated.
5151
5152 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5153
5154         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5155         8-byte data alignment with LP_SIZE alignment.
5156
5157 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5158
5159         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5160         into R10_LP.
5161
5162 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5163
5164         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5165
5166 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5167
5168         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5169         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5170         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5171         Likewise.
5172         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5173
5174 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5175
5176         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5177         (stackinfo_sub_sp): Likewise.
5178
5179 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5180
5181         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5182         RAX_LP.
5183
5184 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5185
5186         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5187         into R*_LP.
5188
5189 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5190
5191         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5192         sizes into R*_LP.
5193
5194 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5195
5196         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5197
5198 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5199
5200         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5201         into R11_LP and load __x86_64_shared_cache_size_half into
5202         R8_LP.
5203
5204 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5205
5206         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5207         R8_LP.
5208
5209 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5210
5211         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5212         logb for POWER7.
5213         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5214         logbf for POWER7.
5215         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5216         logbl for POWER7.
5217         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5218         powerpc32/power7/fpu/s_logb.c via #include.
5219         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5220         powerpc32/power7/fpu/s_logbf.c via #include.
5221         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5222         powerpc32/power7/fpu/s_logbl.c via #include.
5223
5224 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5225
5226         * README.libm: Remove file.
5227
5228 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5229
5230         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5231         count for x32.  Use R*_LP and omit operand-size suffix.
5232
5233 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5234
5235         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5236         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5237         * sysdeps/x86_64/x32/shlib-versions: New file.
5238
5239 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5240
5241         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5242         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5243         Use _dl_fatal_printf instead.
5244
5245 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5246
5247         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5248         set if not set by the user.  Do not allow for being unset.
5249         * sysdeps/unix/sysv/linux/configure: Regenerated.
5250
5251 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5252
5253         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5254         the `q' suffix from lea and replace .quad with ASM_ADDR.
5255
5256 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5257
5258         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5259         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5260         instead of $17.
5261         (PTR_DEMANGLE): Likewise.
5262
5263 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5264
5265         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5266         (LP_OP): Likewise.
5267         (ASM_ADDR): Likewise.
5268         (RAX_LP): Likewise.
5269         (RBP_LP): Likewise.
5270         (RBX_LP): Likewise.
5271         (RCX_LP): Likewise.
5272         (RDI_LP): Likewise.
5273         (RSI_LP): Likewise.
5274         (RSP_LP): Likewise.
5275         (R8_LP): Likewise.
5276         (R9_LP): Likewise.
5277         (R10_LP): Likewise.
5278         (R10_LP): Likewise.
5279         (R11_LP): Likewise.
5280         (R12_LP): Likewise.
5281         (R13_LP): Likewise.
5282         (R14_LP): Likewise.
5283         (R15_LP): Likewise.
5284
5285 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5286
5287         * sysdeps/x86_64/x32/dl-machine.h: New file.
5288
5289 2012-05-14  Andreas Jaeger  <aj@suse.de>
5290
5291         * manual/Makefile (subdir): Remove export of subdir.
5292         (all): Remove target.
5293         (.PHONY): Remove all from list.
5294         (mkinstalldirs): Remove.
5295         (.PHONY): Remove installdirs from list.
5296         ($(inst_infodir)/libc.info): Use make-target-directory.
5297         (installdirs): Remove.
5298         (subdir_%): Remove.
5299         (glibc-targets): Remove.
5300         (lib): Remove.
5301         (stubs): Remove.
5302         ($(objpfx)stubs ../po/manual.pot): Remove.
5303         ($(objpfx)stamp%): Remove.
5304         (make-target-directory): Remove.
5305         (subdir_install): Remove.
5306         (routines): Remove.
5307         (aux): Remove.
5308         (sources): Remove.
5309         (objects): Remove.
5310         (headers): Remove.
5311
5312         [BZ #13750]
5313         * manual/.gitignore: Remove, it's not needed anymore.
5314         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5315         all files in it.
5316         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5317         directory.
5318         (texis): Renamed to $(objpfx)texis.
5319         (texis-path): New, contains path to generated files.
5320         (chapters.%): Use texis-path for complete path, add extra argument
5321         libc-texinfo.sh.
5322         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5323         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5324         (summary,texi, stamp-summary): Use complete path of
5325         files. Generate files in build dir.
5326         (dir-add.texi): Build in build dir.
5327         (libm-err.texi,stamp-libm-err): Likewise.
5328         (version.texi, stamp-version): Likewise.
5329         (.%c.texi): Likewise.
5330         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5331         (mostlyclean): Remove target.
5332         (realclean): Remove target.
5333         (generated): Add new variable with contents from mostlyclean and
5334         realclean, remove entries duplicated in common-mostlyclean, add
5335         stamp-libm-err and stamp-version.
5336         (generated-dirs): Add libc directory.
5337         ($(inst_infodir)/libc.info): Install files from build dir.
5338
5339         * manual/install.texi (Configuring and compiling): Adjust since
5340         the info files are not part of the tar ball anymore.
5341
5342 2012-05-14  Andreas Jaeger  <aj@suse.de>
5343
5344         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5345         variable.
5346
5347 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5348
5349         [BZ #13717]
5350         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5351         to 2.2.0 where earlier.
5352         * sysdeps/unix/sysv/linux/configure: Regenerated.
5353         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5354         Remove conditional code.
5355         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5356         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5357         Remove conditional code.
5358         [!__NR_lchown]: Likewise.
5359         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5360         [__NR_lchown]: Likewise.
5361         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5362         comment referencing __ASSUME_LCHOWN_SYSCALL.
5363         * sysdeps/unix/sysv/linux/i386/sigaction.c
5364         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5365         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5366         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5367         Remove conditional code.
5368         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5369         (__protocol_available): Remove #if 0 code.
5370         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5371         conditional code.
5372         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5373         * sysdeps/unix/sysv/linux/kernel-features.h
5374         (__ASSUME_GETCWD_SYSCALL): Don't define.
5375         (__ASSUME_REALTIME_SIGNALS): Likewise.
5376         (__ASSUME_PREAD_SYSCALL): Likewise.
5377         (__ASSUME_PWRITE_SYSCALL): Likewise.
5378         (__ASSUME_POLL_SYSCALL): Likewise.
5379         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5380         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5381         non-SPARC.
5382         (__ASSUME_SIOCGIFNAME): Don't define.
5383         (__ASSUME_MSG_NOSIGNAL): Likewise.
5384         (__ASSUME_SENDFILE): Define unconditionally.
5385         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5386         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5387         conditional code.
5388         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5389         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5390         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5391         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5392         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5393         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5394         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5396         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5397         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5399         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5400         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5402         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5403         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5405         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5406         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5408         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5409         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5411         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5412         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5414         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5415         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5417         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5418         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5419         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5420         Remove conditional code.
5421         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5422         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5423         Remove conditional code.
5424         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5425         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5426         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5427         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5428         Remove conditional code.
5429         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5430         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5431         Remove conditional code.
5432         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5433         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5434         Remove conditional code.
5435         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5436         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5437         Remove conditional code.
5438         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5439         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5440         Remove conditional code.
5441         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5442         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5443         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5444         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5445         * sysdeps/unix/sysv/linux/sigaction.c
5446         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5447         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5448         * sysdeps/unix/sysv/linux/sigpending.c
5449         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5450         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5451         * sysdeps/unix/sysv/linux/sigprocmask.c
5452         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5453         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5454         * sysdeps/unix/sysv/linux/sigsuspend.c
5455         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5456         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5457         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5458         (__libc_missing_rt_sigs): Remove.
5459         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5460         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5461         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5462         Remove conditional code.
5463         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5464         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5465         return 1.
5466         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5467         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5468         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5469         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5470
5471 2012-05-14  Andreas Jaeger  <aj@suse.de>
5472
5473         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5474         it's not used in glibc.
5475         (__coshm1): Likewise.
5476         (__acosh1p): Likewise.
5477         (__sgn): Likewise.
5478
5479         * manual/string.texi (Copying and Concatenation): Add missing
5480         variable in concat example.
5481         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5482
5483 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5484
5485         [BZ #14103]
5486         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5487         __builtin_clzl with __builtin_clzll.
5488
5489 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5490
5491         [BZ #14104]
5492         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5493         libc_freeres_ptr.
5494
5495 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5496
5497         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5498         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5499         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5500         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5501
5502 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5503
5504         * NEWS: Update ia64 info.
5505
5506 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5507
5508         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5509         used as bcopy.
5510
5511 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5512
5513         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5514         * sysdeps/unix/syscalls.list (dup3): Likewise.
5515         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5516         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5517
5518 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5519
5520         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5521         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5522
5523 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5524
5525         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5526         thread pointer.
5527         (TLS_IE): Use mov/add instead of movq/addq to load thread
5528         pointer.
5529         (TLS_GD_PREFIX): New.
5530         (TLS_GD): Use it.
5531
5532 2012-05-11  David S. Miller  <davem@davemloft.net>
5533
5534         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5535         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5536         (_FPU_SETCW): Likewise.
5537
5538 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5539
5540         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5541         is 32-byte aligned.
5542
5543 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5544
5545         [BZ #11837]
5546         * iconvdata/gb18030.c: Update tables.
5547         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5548         characters specially.
5549         (BODY for TO_LOOP): Add encoding of missing ranges.
5550
5551 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5552
5553         [BZ #13673]
5554         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5555         * sysdeps/mach/hurd/dup3.c: Likewise.
5556         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5557         * sysdeps/powerpc/memmove.c:: Likewise.
5558
5559 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5560
5561         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5562         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5563
5564 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5565
5566         * elf/elf.h (R_X86_64_RELATIVE64): New.
5567         (R_X86_64_NUM): Updated.
5568         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5569         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5570         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5571         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5572         tst-quad1pie tst-quad2pie
5573         (modules-names): Add tst-quadmod1 tst-quadmod2.
5574         ($(objpfx)tst-quad1): New dependency.
5575         ($(objpfx)tst-quad2): Likewise.
5576         ($(objpfx)tst-quad1pie): Likewise.
5577         ($(objpfx)tst-quad2pie): Likewise.
5578         * sysdeps/x86_64/tst-quad1.c: New file.
5579         * sysdeps/x86_64/tst-quad1pie.c: New file.
5580         * sysdeps/x86_64/tst-quad2.c: Likewise.
5581         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5582         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5583         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5584         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5585         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5586
5587 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5588
5589         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5590         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5591         * streams/stropts.h (t_scalar_t): Define type.
5592
5593         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5594         (_PATH_PRESERVE): Set to "/var/lib".
5595         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5596
5597         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5598         instead of int.
5599
5600         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5601         if __dir_mkfile succeeded.
5602
5603         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5604         checking for _hurd_dtablesize.  Unlock it right after having
5605         finished _hurd_dtable allocation.
5606
5607 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5608
5609         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5610         * sysdeps/mach/hurd/configure: Regenerated.
5611         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5612         special-casing to...
5613         * sysdeps/gnu/configure.in: ... this new file.
5614         * sysdeps/unix/sysv/linux/configure: Regenerated.
5615         * sysdeps/gnu/configure: New generated file.
5616
5617         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5618         for Linux: use nsec instead of usec, as well as:
5619         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5620         members of type struct timespec.
5621         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5622         New macros.
5623         (struct stat64): Likewise.
5624         (_STATBUF_ST_NSEC): New macro.
5625         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5626
5627         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5628         __strtoul_internal rather than strtoul.
5629
5630 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5631
5632         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5633         and reject them.
5634
5635 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5636
5637         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5638         which preserves existing values.
5639         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5640
5641 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5642
5643         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5644         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5645         greater than FD_SETSIZE.
5646
5647 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5648
5649         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5650         allocated, call __vm_protect to finish enabling the existing space, and
5651         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5652         allocate the remainder.
5653
5654 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5655
5656         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5657         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5658
5659 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5660
5661         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5662         sysdeps/mach/hurd/readlink.c.
5663
5664         * posix/tst-sysconf.c (posix_options): Only use
5665         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5666         _POSIX_SYNCHRONIZED_IO when they are defined
5667         * sysdeps/mach/hurd/bits/posix_opt.h:
5668         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5669         (_XOPEN_REALTIME): Undefine macro.
5670         (_XOPEN_REALTIME_THREADS): Undefine macro.
5671         (_XOPEN_SHM): Undefine macro.
5672         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5673         macro to -1.
5674         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5675         macro to -1.
5676         (_POSIX_ASYNC_IO): Undefine macro.
5677         (_POSIX_PRIORITIZED_IO): Undefine macro.
5678         (_POSIX_SPIN_LOCKS): Define macro to -1.
5679
5680         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5681         SA_NODEFER, SA_RESETHAND.
5682         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
5683         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
5684         F_DUPFD_CLOEXEC.
5685
5686 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5687
5688         * elf/Makefile (pldd-modules): Define unconditionally.
5689
5690 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5691
5692         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
5693
5694 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5695
5696         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5697         Return ENOENT when name is empty.
5698         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
5699
5700 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5701
5702         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
5703
5704         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
5705
5706 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5707
5708         Fix mlock in all cases except non-readable pages.
5709         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
5710         instead of VM_PROT_ALL as parameter to __vm_wire function.
5711
5712         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
5713         (__mkdir): When path is `/', just fail with EEXIST.
5714         * sysdeps/mach/hurd/mkdirat.c: Likewise.
5715
5716 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5717
5718         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
5719         <sys/uio.h> (for writev).
5720         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
5721         and <sys/param.h> (for MIN).
5722
5723 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5724
5725         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
5726         REQUESTED_TIME.  Properly set the remaining time and return EINTR
5727         if interrupted.
5728
5729 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5730
5731         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
5732         Depend on against $(link-rpcuserlibs).
5733
5734 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5735
5736         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
5737         (__libc_stack_end): Do not use attribute_relro.
5738         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
5739         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
5740         to libthread-provided value.
5741         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
5742         attribute_relro.
5743
5744 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5745
5746         [BZ #3748]
5747         * bits/libc-lock.h (__libc_once_get): New macro.
5748         * sysdeps/mach/bits/libc-lock.h: Likewise.
5749         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
5750         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
5751         instead of using implementation details.
5752
5753         * libio/fileops.c: Unconditionally include <kernel-features.h>.
5754         * libio/freopen.c: Likewise.
5755         * libio/freopen64.c: Likewise.
5756         * misc/syslog.c: Likewise.
5757         * nscd/connections.c: Likewise.
5758         * nscd/netgroupcache.c: Likewise.
5759         * sysdeps/posix/getcwd.c: Likewise.
5760
5761 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5762
5763         * math/w_ilogbf.c: Add #include <limits.h>.
5764
5765 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5766
5767         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
5768         path instead of returning without unlocking.
5769
5770         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
5771         immediate-write ioctls.
5772         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
5773
5774 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5775
5776         * sysdeps/mach/hurd/i386/init-first.c (init): Use
5777         __builtin_frame_address instead of making assumptions about the
5778         location of the return address relative to DATA.  Force early load of
5779         the return address.
5780         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
5781         __builtin_frame_address.
5782
5783         dup3 for GNU Hurd.
5784         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
5785         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
5786         implement dup3 and do some further code clean-ups.
5787         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
5788         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
5789
5790 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5791
5792         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
5793
5794         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
5795         HURD_CRITICAL_END around holding _hurd_dtable_lock.
5796         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
5797         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
5798         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
5799         d->port.lock.
5800
5801         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
5802         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
5803         when handler == SIG_ERR, not when handler != SIG_ERR.
5804
5805 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5806
5807         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
5808         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
5809         definitions.
5810
5811         accept4 for GNU Hurd.
5812         * include/sys/socket.h (__libc_accept4): New prototype.
5813         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
5814         to implement __libc_accept4.
5815         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
5816         __libc_accept4.
5817         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
5818
5819         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
5820         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
5821         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
5822         signal-defines.sym.
5823
5824 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5825
5826         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
5827
5828 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5829
5830         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
5831         assertion on O_CLOEXEC flag.
5832         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
5833         * hurd/intern-fd.c: Likewise.
5834         * hurd/port2fd.c: Likewise.
5835
5836 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5837
5838         [BZ #3906]
5839         * bits/in.h (IPV6_PKTINFO): Define new macro.
5840         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
5841
5842 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5843
5844         [BZ #13954]
5845         [BZ #13955]
5846         [BZ #13956]
5847         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
5848         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5849         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
5850         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5851         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5852         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5853         * math/libm-test.inc (logb_test) : Additional logb tests.
5854
5855 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
5856             Andreas Jaeger  <aj@suse.de>
5857
5858         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
5859         * configure: Regenerated.
5860         * config.h.in (LINK_OBSOLETE_RPC): New macro.
5861         * config.make.in (link-obsolete-rpc): New substituted variable.
5862         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
5863         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
5864         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5865         (shared-only-routines): Don't set it under [link-obsolete-rpc],
5866         so that libc.a contains the symbols.
5867         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5868         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
5869         * sunrpc/auth_none.c: Likewise.
5870         * sunrpc/auth_unix.c: Likewise.
5871         * sunrpc/authdes_prot.c: Likewise.
5872         * sunrpc/authuxprot.c: Likewise.
5873         * sunrpc/clnt_gen.c: Likewise.
5874         * sunrpc/clnt_perr.c: Likewise.
5875         * sunrpc/clnt_raw.c: Likewise.
5876         * sunrpc/clnt_simp.c: Likewise.
5877         * sunrpc/clnt_tcp.c: Likewise.
5878         * sunrpc/clnt_udp.c: Likewise.
5879         * sunrpc/clnt_unix.c: Likewise.
5880         * sunrpc/des_crypt.c: Likewise.
5881         * sunrpc/des_soft.c: Likewise.
5882         * sunrpc/get_myaddr.c: Likewise.
5883         * sunrpc/key_call.c: Likewise.
5884         * sunrpc/key_prot.c: Likewise.
5885         * sunrpc/netname.c: Likewise.
5886         * sunrpc/pm_getmaps.c: Likewise.
5887         * sunrpc/pm_getport.c: Likewise.
5888         * sunrpc/pmap_clnt.c: Likewise.
5889         * sunrpc/pmap_prot.c: Likewise.
5890         * sunrpc/pmap_prot2.c: Likewise.
5891         * sunrpc/pmap_rmt.c: Likewise.
5892         * sunrpc/publickey.c: Likewise.
5893         * sunrpc/rpc_cmsg.c: Likewise.
5894         * sunrpc/rpc_common.c: Likewise.
5895         * sunrpc/rpc_dtable.c: Likewise.
5896         * sunrpc/rpc_prot.c: Likewise.
5897         * sunrpc/rpc_thread.c: Likewise.
5898         * sunrpc/rtime.c: Likewise.
5899         * sunrpc/svc.c: Likewise.
5900         * sunrpc/svc_auth.c: Likewise.
5901         * sunrpc/svc_raw.c: Likewise.
5902         * sunrpc/svc_run.c: Likewise.
5903         * sunrpc/svc_tcp.c: Likewise.
5904         * sunrpc/svc_udp.c: Likewise.
5905         * sunrpc/svc_unix.c: Likewise.
5906         * sunrpc/svcauth_des.c: Likewise.
5907         * sunrpc/xcrypt.c: Likewise.
5908         * sunrpc/xdr.c: Likewise.
5909         * sunrpc/xdr_array.c: Likewise.
5910         * sunrpc/xdr_float.c: Likewise.
5911         * sunrpc/xdr_intXX_t.c: Likewise.
5912         * sunrpc/xdr_mem.c: Likewise.
5913         * sunrpc/xdr_rec.c: Likewise.
5914         * sunrpc/xdr_ref.c: Likewise.
5915         * sunrpc/xdr_sizeof.c: Likewise.
5916         * sunrpc/xdr_stdio.c: Likewise.
5917
5918 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5919
5920         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
5921         change.  Update copyright years.
5922
5923 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5924
5925         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
5926
5927 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
5928             Joseph Myers  <joseph@codesourcery.com>
5929             Paul Pluzhnikov  <ppluzhnikov@google.com>
5930
5931         [BZ #14012]
5932         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
5933         requiring rpcgen.
5934         [cross-compiling] (extra-libs): Likewise.
5935         [cross-compiling] (extra-libs-others): Likewise.
5936         [cross-compiling] (librpcsvc-routines): Likewise.
5937         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
5938         [cross-compiling] (omit-deps): Likewise.
5939         (sunrpc-CPPFLAGS): New variable.
5940         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
5941         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
5942         (cross-rpcgen-objs): New variable.
5943         (extra-objs): Append $(cross-rpcgen-objs).
5944         ($(cross-rpcgen-objs)): New rule.
5945         ($(objpfx)cross-rpcgen): Likewise.
5946         (rpcgen-cmd): Define to use $(built-program-file).  Expand
5947         comment.
5948         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
5949         ($(objpfx)x%.stmp): Likewise.
5950         * sunrpc/proto.h [IS_IN_build] (_): Define.
5951         [IS_IN_build] (_libc_intl_domainname): Likewise.
5952
5953 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5954
5955         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
5956         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
5957         and R_X86_64_TPOFF64.
5958
5959 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5960
5961         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
5962         sysdeps/unix/sysv/syscalls.list.
5963         (stime): Likewise.
5964         (utime): Likewise.
5965         * sysdeps/unix/sysv/syscalls.list: Remove file.
5966
5967 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5968
5969         [BZ #3440]
5970         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
5971         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
5972         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
5973         (__LC_IDENTIFICATION): Make these macros useful in #if
5974         expressions, as required by C99.
5975
5976 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
5977
5978         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
5979         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
5980         after this.
5981
5982 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5983
5984         * stdlib/longlong.h: Updated from GCC.
5985
5986 2012-05-09  Andreas Jaeger  <aj@suse.de>
5987
5988         * nscd/nscd.c (run_modes): Make named enum, reorder so that
5989         default is first entry.
5990         (run_mode): Set type.
5991         (main): Remove informal message about syslog.
5992         (options): Fix typo.
5993
5994         [BZ #14053]
5995         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
5996         to asm.
5997         (lrint): Likewise.
5998         (llrintf): Likewise.
5999         (llrint): Likewise.
6000         (rint): Likewise.
6001         (rintf): Likewise.
6002         (nearbyint): Likewise.
6003         (nearbyintf): Likewise.
6004
6005 2012-05-09  Andreas Jaeger  <aj@suse.de>
6006             Pedro Alves  <palves@redhat.com>
6007
6008         * nscd/nscd.c (run_mode): Use enum.
6009         (main): Cleanup coding style issue.
6010
6011 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6012             Andreas Jaeger  <aj@suse.de>
6013
6014         * nscd/nscd.c (go_background): Replaced with...
6015         (run_mode): ... this.
6016         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6017         (options): Add -F --foreground.
6018         (main): Implement it.
6019         (parse_opt): Parse it.
6020
6021 2012-05-09  Andreas Jaeger  <aj@suse.de>
6022
6023         [BZ #14083]
6024         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6025         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6026         -Wconversion warning.
6027         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6028         Likewise.
6029
6030 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6031
6032         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6033         == 0.
6034         (LC_ALL): Use macro-int-constant.
6035         (LC_COLLATE): Likewise.
6036         (LC_CTYPE): Likewise.
6037         (LC_MESSAGES): Likewise.
6038         (LC_MONETARY): Likewise.
6039         (LC_NUMERIC): Likewise.
6040         (LC_TIME): Likewise.
6041         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6042         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6043         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6044         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6045         Specify type.
6046         [C99-based standards] (float_t): Expect type.
6047         [C99-based standards] (double_t): Expect type.
6048         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6049         type.
6050         [C99-based standards] (HUGE_VALL): Likewise.
6051         [C99-based standards] (INFINITY): Likewise.
6052         [C99-based standards] (NAN): Likewise.
6053         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6054         [C99-based standards] (FP_NAN): Likewise.
6055         [C99-based standards] (FP_NORMAL): Likewise.
6056         [C99-based standards] (FP_SUBNORMAL): Likewise.
6057         [C99-based standards] (FP_ZERO): Likewise.
6058         [C99-based standards] (FP_FAST_FMA): Use
6059         optional-macro-int-constant.  Specify type.  Require == 1.
6060         [C99-based standards] (FP_FAST_FMAF): Likewise.
6061         [C99-based standards] (FP_FAST_FMAL): Likewise.
6062         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6063         [C99-based standards] (FP_ILOGBNAN): Likewise.
6064         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6065         Specify type.
6066         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6067         [C99-based standards] (math_errhandling): Specify type.
6068         [ISO99 || ISO11] (signgam): Do not allow.
6069         [non-C99-based standards] (copysignf): Do not allow.
6070         [non-C99-based standards] (exp2f): Likewise.
6071         [non-C99-based standards] (log2f): Likewise.
6072         [non-C99-based standards] (modff): Allow.
6073         [non-C99-based standards] (erff): Do not allow.
6074         [non-C99-based standards] (erfcf): Likewise.
6075         [non-C99-based standards] (gammaf): Likewise.
6076         [non-C99-based standards] (hypotf): Likewise.
6077         [non-C99-based standards] (j0f): Likewise.
6078         [non-C99-based standards] (j1f): Likewise.
6079         [non-C99-based standards] (jnf): Likewise.
6080         [non-C99-based standards] (lgammaf): Likewise.
6081         [non-C99-based standards] (tgammaf): Likewise.
6082         [non-C99-based standards] (y0f): Likewise.
6083         [non-C99-based standards] (y1f): Likewise.
6084         [non-C99-based standards] (ynf): Likewise.
6085         [non-C99-based standards] (isnanf): Likewise.
6086         [non-C99-based standards] (acoshf): Likewise.
6087         [non-C99-based standards] (asinhf): Likewise.
6088         [non-C99-based standards] (atanhf): Likewise.
6089         [non-C99-based standards] (cbrtf): Likewise.
6090         [non-C99-based standards] (expm1f): Likewise.
6091         [non-C99-based standards] (ilogbf): Likewise.
6092         [non-C99-based standards] (log1pf): Likewise.
6093         [non-C99-based standards] (logbf): Likewise.
6094         [non-C99-based standards] (nextafterf): Likewise.
6095         [non-C99-based standards] (remainderf): Likewise.
6096         [non-C99-based standards] (rintf): Likewise.
6097         [non-C99-based standards] (scalbf): Likewise.
6098         [non-C99-based standards] (copysignl): Likewise.
6099         [non-C99-based standards] (exp2l): Likewise.
6100         [non-C99-based standards] (log2l): Likewise.
6101         [non-C99-based standards] (modfl): Allow.
6102         [non-C99-based standards] (erfl): Do not allow.
6103         [non-C99-based standards] (erfcl): Likewise.
6104         [non-C99-based standards] (gammal): Likewise.
6105         [non-C99-based standards] (hypotl): Likewise.
6106         [non-C99-based standards] (j0l): Likewise.
6107         [non-C99-based standards] (j1l): Likewise.
6108         [non-C99-based standards] (jnl): Likewise.
6109         [non-C99-based standards] (lgammal): Likewise.
6110         [non-C99-based standards] (tgammal): Likewise.
6111         [non-C99-based standards] (y0l): Likewise.
6112         [non-C99-based standards] (y1l): Likewise.
6113         [non-C99-based standards] (ynl): Likewise.
6114         [non-C99-based standards] (isnanl): Likewise.
6115         [non-C99-based standards] (acoshl): Likewise.
6116         [non-C99-based standards] (asinhl): Likewise.
6117         [non-C99-based standards] (atanhl): Likewise.
6118         [non-C99-based standards] (cbrtl): Likewise.
6119         [non-C99-based standards] (expm1l): Likewise.
6120         [non-C99-based standards] (ilogbl): Likewise.
6121         [non-C99-based standards] (log1pl): Likewise.
6122         [non-C99-based standards] (logbl): Likewise.
6123         [non-C99-based standards] (nextafterl): Likewise.
6124         [non-C99-based standards] (remainderl): Likewise.
6125         [non-C99-based standards] (rintl): Likewise.
6126         [non-C99-based standards] (scalbl): Likewise.
6127         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6128         [non-C99-based standards] (FP_*): Do not allow.
6129         [C99-based standards] (FP_*): Change to
6130         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6131         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6132         allow.
6133         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6134         (SIG_ERR): Likewise.
6135         [X/Open-based standards] (SIG_HOLD): Likewise.
6136         (SIG_IGN): Likewise.
6137         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6138         positive value.
6139         (SIGFPE): Likewise.
6140         (SIGILL): Likewise.
6141         (SIGINT): Likewise.
6142         (SIGSEGV): Likewise.
6143         (SIGTER): Likewise.
6144         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6145         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6146         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6147         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6148         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6149         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6150         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6151         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6152         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6153         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6154         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6155         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6156         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6157         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6158         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6159         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6160         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6161         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6162         [X/Open-based standards] (SIGTRAP): Likewise.
6163         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6164         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6165         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6166         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6167         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6168         allow.
6169
6170 2012-05-08  Ian Wienand  <ianw@vmware.com>
6171
6172         [BZ #14080]
6173         * time/tzset.c (__tzset_parse_tz): Update default rules for
6174         daylight time changes in the Energy Policy Act of 2005.
6175
6176 2012-05-09  Andreas Jaeger  <aj@suse.de>
6177
6178         [BZ #13983]
6179         * elf/ldconfig.c (parse_conf): Change string to make clear that
6180         ldconfig only issued a warning if ld.so.conf does not exist.
6181
6182 2012-05-08  David S. Miller  <davem@davemloft.net>
6183
6184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6185         movxtod instead of popping the value on the stack.
6186
6187         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6188
6189 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6190
6191         * config.h.in: Add HAVE_ARM_PCS_VFP.
6192
6193 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6194
6195         [BZ #13979]
6196         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6197         checking but the checks are disabled for any reason.
6198
6199 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6200
6201         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6202         and ELF64_R_TYPE with ELFW(R_TYPE).
6203
6204 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6205
6206         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6207         (ulimit): Likewise.
6208
6209         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6210         (settimeofday): Likewise.
6211
6212 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6213
6214         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6215         a struct th_u2 inside the union, and move tu_block/tu_code into
6216         a new th_u3 union of tu_block/tu_code inside of that.  Move
6217         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6218         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6219         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6220         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6221         (th_stuff): Change to th_u1.tu_stuff.
6222         (th_data): Define.
6223         (th_msg): Change to th_u1.th_u2.tu_data.
6224
6225 2012-05-07  David S. Miller  <davem@davemloft.net>
6226
6227         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6228
6229         [BZ #14074]
6230         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6231         (SETUP_PIC_REG): Use it.
6232         (SETUP_PIC_REG_LEAF): Use it.
6233
6234 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6235
6236         [BZ #13885]
6237         [BZ #13923]
6238         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6239         USE_AS_EXPM1L.
6240         (EXPL_FINITE): Likewise.
6241         (FLDLOG): Likewise.
6242         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6243         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6244         e_expl.S.
6245         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6246         USE_AS_EXPM1L.
6247         (EXPL_FINITE): Likewise.
6248         (FLDLOG): Likewise.
6249         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6250         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6251         e_expl.S.
6252         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6253         test of -max_value argument for long double.
6254         * sysdeps/i386/fpu/libm-test-ulps: Update.
6255         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6256
6257 2012-05-06  David S. Miller  <davem@davemloft.net>
6258
6259         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6260         quad soft-float symbols whose references which are compiler
6261         generated.
6262         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6263
6264 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6265
6266         [BZ #13884]
6267         [BZ #13914]
6268         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6269         USE_AS_EXP10L.
6270         (EXPL_FINITE): Likewise.
6271         (FLDLOG): Likewise.
6272         (c0): Likewise.
6273         (c1): Likewise.
6274         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6275         Adjust comments for base varying.
6276         (__expl_finite): Change alias to EXPL_FINITE.
6277         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6278         e_expl.S.
6279         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6280         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6281         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6282         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6283         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6284         USE_AS_EXP10L.
6285         (EXPL_FINITE): Likewise.
6286         (FLDLOG): Likewise.
6287         (c0): Likewise.
6288         (c1): Likewise.
6289         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6290         Adjust comments for base varying.
6291         (__expl_finite): Change alias to EXPL_FINITE.
6292         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6293         tests for bugs.
6294         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6295
6296         [BZ #14064]
6297         * math/libm-test.inc (check_float_internal): Correct ulp
6298         calculation for subnormal expected results.
6299
6300 2012-05-06  Andreas Jaeger  <aj@suse.de>
6301
6302         * Makeconfig (+math-flags): New, set to -frounding-math.
6303         (+cflags): Add +math-flags so that all of glibc gets compiled with
6304         it.
6305
6306         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6307
6308 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6309
6310         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6311         Disable one test.
6312
6313         [BZ #13787]
6314         [BZ #13922]
6315         [BZ #14036]
6316         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6317         (__ieee754_expl): Allow for and saturate large arguments.
6318         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6319         (u_threshold): Likewise.
6320         (__exp): Call __ieee754_exp before checking for overflow and
6321         underflow.
6322         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6323         (u_threshold): Likewise.
6324         (__expf): Call __ieee754_expf before checking for overflow and
6325         underflow.
6326         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6327         (u_threshold): Likewise.
6328         (__expl): Call __ieee754_expl before checking for overflow and
6329         underflow.
6330         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6331         (__ieee754_expl): Allow for and saturate large arguments.
6332         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6333         missing overflow exception on overflow.
6334         (expm1_test): Do not allow missing overflow exception on overflow.
6335
6336         * sysdeps/i386/fpu/e_expl.c: Move to ...
6337         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6338         rather than using inline asm.
6339         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6340         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6341         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6342
6343         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6344         (nice): Likewise.
6345         (poll): Likewise.
6346         (signal): Likewise.
6347         (time): Likewise.
6348         (times): Likewise.
6349
6350 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6351
6352         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6353         sysdeps/unix/common/syscalls.list.
6354         (fchmod): Likewise.
6355         (fchown): Likewise.
6356         (ftruncate): Likewise.
6357         (getrusage): Likewise.
6358         (gettimeofday): Likewise.
6359         (setpgid): Likewise.
6360         (setregid): Likewise.
6361         (setreuid): Likewise.
6362         (sigaction): Likewise.
6363         (truncate): Likewise.
6364         (vhangup): Likewise.
6365         * sysdeps/unix/common/syscalls.list: Remove file.
6366         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6367         * sysdeps/unix/sysv/linux/Implies: Likewise.
6368
6369 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6370
6371         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6372         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6373         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6374         Moved to ...
6375         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6376         Here.
6377         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6378         to ...
6379         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6380         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6381         to ...
6382         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6383         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6384         to ...
6385         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6386         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6387         to ...
6388         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6389         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6390         to ...
6391         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6392         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6393         to ...
6394         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6395         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6396         to ...
6397         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6398         Here.
6399         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6400         to ...
6401         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6402         Here.
6403         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6404         to ...
6405         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6406         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6407         Moved to ...
6408         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6409         Here.
6410         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6411         to ...
6412         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6413
6414 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6415
6416         * sysdeps/unix/common/bits/dirent.h: Remove file.
6417         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6418
6419         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6420         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6421         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6422         * sysdeps/unix/bsd/isatty.c: Likewise.
6423         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6424         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6425         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6426
6427 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6428
6429         [BZ #13563]
6430         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6431         long double comparison inaccuracies.
6432         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6433         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6434
6435 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6436
6437         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6438         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6439
6440 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6441
6442         [BZ #14049]
6443         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6444         nonzero digits before rounding a hex value.
6445         * stdlib/tst-strtod.c (tests): Add another test.
6446
6447 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6448
6449         * sysdeps/s390/fpu/libm-test-ulps: Update.
6450
6451 2012-05-03  Andreas Jaeger  <aj@suse.de>
6452
6453         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6454         does not get optimized out.
6455         (malloc_opt_barrier): New.
6456
6457 2012-05-03  Andreas Jaeger  <aj@suse.de>
6458             Roland McGrath  <roland@hack.frob.com>
6459
6460         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6461         intermediate file deletion.
6462         (generated): Add .symlist files.
6463
6464 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6465
6466         [BZ #13775]
6467         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6468         Redirect under this condition.
6469         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6470         [__USE_GNU] (__dprintf_chk): Not under this condition.
6471         [__USE_GNU] (__vdprintf_chk): Likewise.
6472         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6473         under this condition.
6474         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6475         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6476         [__USE_XOPEN2K8] (vdprintf): Likewise.
6477         [__USE_GNU] (__dprintf_chk): Not under this condition.
6478         [__USE_GNU] (__vdprintf_chk): Likewise.
6479         [__USE_GNU] (dprintf): Likewise.
6480         [__USE_GNU] (vdprintf): Likewise.
6481
6482 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6483
6484         * elf/Makefile (common-generated): Set this instead of generated for
6485         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6486         $(all-built-dso)-derived lists.
6487
6488 2012-05-03  Andreas Jaeger  <aj@suse.de>
6489
6490         * sysdeps/i386/fpu/libm-test-ulps: Update.
6491
6492         * FAQ: Removed.
6493         * FAQ.in: Likewise.
6494         * scripts/gen-FAQ.pl: Likewise.
6495         * manual/install.texi (Installation): Point to online location of
6496         FAQ.
6497         * Makefile (files-for-dist): Remove FAQ.
6498         (FAQ): Remove.
6499
6500 2012-05-02  Allan McRae  <allan@archlinux.org>
6501
6502         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6503         (LDFLAGS-reldepmod5.so): Likewise.
6504         (LDFLAGS-reldep6mod1.so): Likewise.
6505         (LDFLAGS-reldep6mod4.so): Likewise.
6506         (LDFLAGS-reldep8mod3.so): Likewise.
6507         (LDFLAGS-unload4mod1.so): Likewise.
6508         (LDFLAGS-unload4mod2.so): Likewise.
6509         (LDFLAGS-tst-initorder): Likewise.
6510         (LDFLAGS-tst-initordera2.so): Likewise.
6511         (LDFLAGS-tst-initordera3.so): Likewise.
6512         (LDFLAGS-tst-initordera4.so): Likewise.
6513         (LDFLAGS-tst-initorderb2.so): Likewise.
6514         (LDFLAGS-noload): Likewise.
6515         (LDFLAGS-next): Likewise.
6516         (LDFLAGS-order2mod1.so): Likewise.
6517         (LDFLAGS-order2mod2.so): Likewise.
6518         (LDFLAGS-tst-initorder2): Likewise.
6519         (LDFLAGS-tst-initorder2a.so): Likewise.
6520         (LDFLAGS-tst-initorder2b.so): Likewise.
6521         (LDFLAGS-tst-initorder2c.so): Likewise.
6522         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6523
6524 2012-05-02  David S. Miller  <davem@davemloft.net>
6525
6526         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6527
6528 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6529
6530         [BZ #14055]
6531         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6532
6533 2012-05-02  Andreas Jaeger  <aj@suse.de>
6534
6535         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6536         since we manipulate rounding mode.
6537         (CPPFLAGS-test-idouble.c): Likewise.
6538         (CPPFLAGS-test-ifloat.c): Likewise.
6539         (CFLAGS-test-ldouble.c): Likewise.
6540         (CFLAGS-test-double.c): Likewise.
6541         (CFLAGS-test-float.c): Likewise.
6542         (CFLAGS-test-misc.c): Likewise.
6543         (CFLAGS-test-test-fenv.c): Likewise.
6544
6545 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6546
6547         [BZ #2550]
6548         [BZ #2570]
6549         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6550         comparisons to determine direction to adjust input.
6551
6552 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6553
6554         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6555         output to the target.
6556
6557         * scripts/localplt.awk: New file.
6558         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6559         (check-localplt-CFLAGS): Variable removed.
6560         ($(all-built-dso:=.jmprel)): New static pattern rule.
6561         (generated): Add those targets.
6562         (localplt-built-dso): New variable.
6563         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6564
6565         * elf/check-localplt.c: File removed.
6566
6567         * scripts/check-execstack.awk: New file.
6568         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6569         (check-execstack-CFLAGS): Variable removed.
6570         ($(objpfx)check-execstack.h): Target removed.
6571         ($(objpfx)execstack-default): New target.
6572         (generated): Add that instead of check-execstack.h.
6573         ($(all-built-dso:=.phdr)): New static pattern rule.
6574         (generated): Add those targets.
6575         * elf/check-execstack.c: File removed.
6576
6577         * scripts/check-textrel.awk: New file.
6578         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6579         (check-textrel-CFLAGS): Variable removed.
6580         (all-built-dso): Use := to define.o
6581         ($(all-built-dso:=.dyn)): New static pattern rule.
6582         (generated): Add those targets.
6583         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6584         * config.make.in (READELF): New substituted variable.
6585         * elf/check-textrel.c: File removed.
6586
6587 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6588
6589         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6590         allow.
6591         * conform/data/ctype.h-data [C99-based standards] (isblank):
6592         Expect function.
6593         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6594         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6595         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6596         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6597         Specify type.  Require positive value.
6598         (EILSEQ): Likewise.
6599         (ERANGE): Likewise.
6600         [ISO || POSIX] (EILSEQ): Do not expect.
6601         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6602         Specify type.  Require positive value.
6603         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6604         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6605         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6606         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6607         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6608         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6609         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6610         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6611         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6612         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6613         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6614         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6615         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6616         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6617         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6618         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6619         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6620         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6621         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6622         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6623         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6624         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6625         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6626         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6627         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6628         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6629         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6630         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6631         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6632         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6633         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6634         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6635         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6636         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6637         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6638         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6639         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6640         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6641         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6642         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6643         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6644         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6645         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6646         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6647         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6648         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6649         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6650         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6651         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6652         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6653         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6654         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6655         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6656         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6657         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6658         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6659         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6660         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6661         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6662         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6663         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6664         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6665         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6666         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6667         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6668         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6669         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6670         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6671         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6672         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6673         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6674         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6675         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6676         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6677         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6678         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6679         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6680         Require >= 2.
6681         (FLT_ROUNDS): Expect as macro, not constant.
6682         (FLT_MANT_DIG): Use macro-int-constant.
6683         (DBL_MANT_DIG): Likewise.
6684         (LDBL_MANT_DIG): Likewise.
6685         (FLT_DIG): Likewise.
6686         (DBL_DIG): Likewise.
6687         (LDBL_DIG): Likewise.
6688         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
6689         (DBL_MIN_EXP): Likewise.
6690         (LDBL_MIN_EXP): Likewise.
6691         (FLT_MAX_EXP): Use macro-int-constant.
6692         (DBL_MAX_EXP): Likewise.
6693         (LDBL_MAX_EXP): Likewise.
6694         (FLT_MAX_10_EXP): Likewise.
6695         (DBL_MAX_10_EXP): Likewise.
6696         (LDBL_MAX_10_EXP): Likewise.
6697         (FLT_MAX): Use macro-constant.
6698         (DBL_MAX): Likewise.
6699         (LDBL_MAX): Likewise.
6700         (FLT_EPSILON): Use macro-constant.  Give upper bound.
6701         (DBL_EPSILON): Likewise.
6702         (LDBL_EPSILON): Likewise.
6703         (FLT_MIN): Likewise.
6704         (DBL_MIN): Likewise.
6705         (LDBL_MIN): Likewise.
6706         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
6707         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
6708         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
6709         [ISO11] (FLT_HAS_SUBNORM): Likewise.
6710         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
6711         [ISO11] (DBL_DECIMAL_DIG): Likewise.
6712         [ISO11] (FLT_DECIMAL_DIG): Likewise.
6713         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
6714         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
6715         [ISO11] (FLT_TRUE_MIN): Likewise.
6716         [ISO11] (LDBL_TRUE_MIN): Likewise.
6717         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6718         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
6719         (SCHAR_MIN): Use macro-int-constant.  Specify type.
6720         (SCHAR_MAX): Likewise.
6721         (UCHAR_MAX): Likewise.
6722         (CHAR_MIN): Likewise.
6723         (CHAR_MAX): Likewise.
6724         (MB_LEN_MAX): Use macro-int-constant.
6725         (SHRT_MIN): Use macro-int-constant.  Specify type.
6726         (SHRT_MAX): Likewise.
6727         (USHRT_MAX): Likewise.
6728         (INT_MAX): Likewise.
6729         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
6730         bound negative.
6731         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6732         bound with "U".
6733         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6734         bound with "L".
6735         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
6736         bound negative.  Suffix upper bound with "L".
6737         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6738         bound with "UL".
6739         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
6740         Specify type.
6741         [C99-based standards] (LLONG_MAX): Likewise.
6742         [C99-based standards] (ULLONG_MAX): Likewise.
6743         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
6744         == 0.
6745         [ISO11] (max_align_t): Require type.
6746         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6747
6748         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
6749         from $CFLAGS, without defining away __attribute__ calls.
6750         (checknamespace): Use $CFLAGS_namespace.
6751
6752         * conform/conformtest.pl (@keywords): Only include C99 keywords
6753         for standards based on C99 or C11.
6754
6755         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
6756         Disable tests.
6757         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
6758         UNIX98]: Likewise.
6759
6760         * conform/conformtest.pl: Handle "macro-int-constant" and test for
6761         usability of symbols in #if.
6762
6763         * conform/conformtest.pl: If macro or constant types start
6764         "promoted:", expect the symbol to be of the following type
6765         promoted by the integer promotions.
6766
6767         * conform/conformtest.pl: Parse all "constant" and "macro" lines
6768         in one place.  Also handle "macro-constant".
6769
6770         * conform/conformtest.pl: Only accept expected macro values with
6771         "==".  Parse all "macro" lines in one place.
6772         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
6773
6774         * conform/conformtest.pl: Handle braced types on "constant" lines
6775         instead of handling "typed-constant".
6776         * conform/data/signal.h-data: Use "constant" instead of
6777         "typed-constant".
6778
6779         * conform/conformtest.pl: Handle "optional-" at start of lines in
6780         one place rather than duplicating several cases.  Handle each
6781         format of "macro" line with initial "optional-".
6782
6783         * conform/conformtest.pl: Only accept expected constant or
6784         optional-constant values with "==".  Parse all "constant" lines in
6785         one place.  Parse all "optional-constant" lines in one place.
6786         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
6787         * conform/data/fmtmsg.h-data: Likewise.
6788         * conform/data/netinet/in.h-data: Likewise.
6789         * conform/data/tar.h-data: Likewise.
6790         * conform/data/limits.h-data: Use "==" form on "constant" and
6791         "optional-constant" lines.
6792
6793         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
6794         Use -std=c99 for XOPEN2K.
6795         (@knownproblems): Remove.
6796         (newtoken): Don't check %isknown.
6797
6798         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
6799         Do not expect macro.
6800         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
6801         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
6802         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
6803         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
6804         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
6805         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
6806         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
6807         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
6808         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
6809         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
6810         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
6811         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
6812         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
6813         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
6814         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
6815         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
6816         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
6817         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
6818         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
6819         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
6820         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
6821         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
6822         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
6823         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
6824         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
6825         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
6826         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
6827         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
6828         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
6829         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
6830         [XPG3] (acosh): Likewise.
6831         [XPG3] (asinh): Likewise.
6832         [XPG3] (atanh): Likewise.
6833         [XPG3] (cbrt): Likewise.
6834         [XPG3] (expm1): Likewise.
6835         [XPG3] (ilogb): Likewise.
6836         [XPG3] (log1p): Likewise.
6837         [XPG3] (logb): Likewise.
6838         [XPG3] (nextafter): Likewise.
6839         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
6840         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
6841         [XPG3] (remainder): Likewise.
6842         [XPG3] (rint): Likewise.
6843         [XPG3 || XPG4 || UNIX98] (round): Likewise.
6844         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
6845         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
6846         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
6847         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
6848         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
6849         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
6850         [UNIX98 || XOPEN2K] (scalb): Expect.
6851         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
6852         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
6853         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
6854         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
6855         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
6856         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
6857         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
6858         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
6859         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
6860         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
6861         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
6862         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
6863         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
6864         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
6865         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
6866         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
6867         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
6868         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
6869         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
6870         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
6871         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
6872         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
6873         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
6874         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
6875         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
6876         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
6877         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
6878         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
6879         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
6880         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
6881         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
6882         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
6883         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
6884         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
6885         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
6886         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
6887         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
6888         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
6889         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
6890         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
6891         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
6892         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
6893         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
6894         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
6895         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
6896         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
6897         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
6898         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
6899         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
6900         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
6901         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
6902         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
6903         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
6904         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
6905         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
6906         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
6907         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
6908         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
6909         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
6910         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
6911         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
6912         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
6913         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
6914         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
6915         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
6916         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
6917         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
6918         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
6919         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
6920         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
6921         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
6922         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
6923         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
6924         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
6925         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
6926         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
6927         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
6928         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
6929         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
6930         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
6931         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
6932         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
6933         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
6934         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
6935         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
6936         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
6937         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
6938         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
6939         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
6940         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
6941         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
6942         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
6943         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
6944         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
6945         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
6946         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
6947         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
6948         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
6949         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
6950         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
6951         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
6952         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
6953         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
6954         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
6955         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
6956         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
6957         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
6958         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
6959         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
6960         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
6961         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
6962         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
6963         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
6964         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
6965         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
6966         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
6967         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
6968         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
6969         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
6970         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
6971         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
6972         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
6973         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
6974         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
6975         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
6976         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
6977         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
6978         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
6979         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
6980         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
6981         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
6982         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
6983         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
6984         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
6985         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
6986         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
6987         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
6988
6989         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
6990         _XOPEN_SOURCE_EXTENDED for XPG4.
6991
6992         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
6993
6994         * Makeconfig (localtime): Remove variable.
6995         (inst_localtime-file): Likewise.
6996
6997 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6998
6999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7000         Update.
7001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7002         Update.
7003         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7004         Update.
7005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7006         Update.
7007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7008         Update.
7009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7010         Update.
7011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7012         Update.
7013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7014         Update.
7015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7016         Update.
7017
7018 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7019
7020         [BZ #2550]
7021         [BZ #2570]
7022         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7023         comparisons to determine direction to adjust input.
7024         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7025         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7026         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7027         Likewise.
7028         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7029         Likewise.
7030         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7031         Likewise.
7032         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7033         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7034         Likewise.
7035         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7036         Likewise.
7037         * math/libm-test.inc (nexttoward_test): Add more tests.
7038
7039 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7040
7041         [BZ #14040]
7042         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7043         in version GLIBC_2.1, not GLIBC_2.0.
7044         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7045         Likewise.
7046
7047 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7048
7049         [BZ #13942]
7050         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7051         (1 - x) * (1 + x).
7052         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7053         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7054         * math/libm-test.inc (acos_test): Add more tests.
7055         (asin_test): Likewise.
7056         * sysdeps/i386/fpu/libm-test-ulps: Update.
7057         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7058
7059         [BZ #14034]
7060         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7061         of square root.
7062         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7063         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7064         * math/libm-test.inc (acos_test_tonearest): New function.
7065         (acos_test_towardzero): Likewise.
7066         (acos_test_downward): Likewise.
7067         (acos_test_upward): Likewise.
7068         (asin_test_tonearest): Likewise.
7069         (asin_test_towardzero): Likewise.
7070         (asin_test_downward): Likewise.
7071         (asin_test_upward): Likewise.
7072         (main): Call the new functions.
7073         * sysdeps/i386/fpu/libm-test-ulps: Update.
7074         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7075
7076         [BZ #13884]
7077         [BZ #13924]
7078         * math/e_exp10.c: Include <float.h>.
7079         (__ieee754_exp10): Handle underflow here rather than multiplying
7080         large negative argument by M_LN10.
7081         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7082         of __ieee754_expf.
7083         * math/e_exp10l.c: Include <float.h>.
7084         (__ieee754_exp10l): Handle underflow here rather than multiplying
7085         large negative argument by M_LN10l.
7086         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7087         spurious overflow exception on underflow.
7088
7089 2012-04-29  Marek Polacek  <polacek@redhat.com>
7090
7091         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7092         (__fortify_function): New macro.
7093         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7094         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7095         __extern_always_inline.
7096         * libio/bits/stdio2.h: Likewise.
7097         * libio/bits/stdio.h: Likewise.
7098         * string/string.h: Likewise.
7099         * string/bits/string3.h: Likewise.
7100         * include/stdio.h: Likewise.
7101         * stdlib/bits/stdlib.h: Likewise.
7102         * stdlib/stdlib.h: Likewise.
7103         * rt/bits/mqueue2.h: Likewise.
7104         * rt/mqueue.h: Likewise.
7105         * posix/bits/unistd.h: Likewise.
7106         * posix/unistd.h: Likewise.
7107         * io/bits/poll2.h: Likewise.
7108         * io/bits/fcntl2.h: Likewise.
7109         * io/fcntl.h: Likewise.
7110         * io/sys/poll.h: Likewise.
7111         * misc/bits/syslog.h: Likewise.
7112         * misc/bits/syslog-ldbl.h: Likewise.
7113         * misc/sys/syslog.h: Likewise.
7114         * socket/bits/socket2.h: Likewise.
7115         * socket/sys/socket.h: Likewise.
7116         * debug/tst-chk1.c: Likewise.
7117         * wcsmbs/bits/wchar2.h: Likewise.
7118         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7119         * wcsmbs/wchar.h: Likewise.
7120
7121 2012-04-29  Andreas Jaeger  <aj@suse.de>
7122
7123         * Makerules (tests): Remove enable-check-abi protection.
7124         (check-abi-warn): Remove.
7125         (check-abi-%): Remove check-abi-warn usage.
7126
7127         * configure.in: Remove check-abi configure option.
7128         * configure: Regenerated.
7129         * config.make.in (enable-check-abi): Remove.
7130
7131 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7132
7133         [BZ #14033]
7134         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7135         double functions to double *_finite functions.
7136
7137         [BZ #13941]
7138         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7139         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7140         LDBL_MIN_EXP.
7141         * stdio-common/Makefile (tests): Add tst-sprintf3.
7142         * stdio-common/tst-sprintf3.c: New file.
7143
7144         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7145         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7146
7147 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7148
7149         * conform/conformtest.pl: Remove duplicate typed-constant
7150         handling.
7151
7152 2012-04-28  David S. Miller  <davem@davemloft.net>
7153
7154         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7155         (check-abi-%): Remove AWK script prerequisite and explicit
7156         abilist directory.
7157         (check-abi): Rewrite to just diff the symlist with the abilist.
7158         (config-tls, config-abi-config): Delete, no longer used.
7159         (update-abi-%): Remove AWK script and explicit abilist directory.
7160         (update-abi): Rewrite to simply compare and conditionally copy the
7161         symlist and the sysdep abilist file.  Remove update-abi-config
7162         checks.
7163         * abilist/ld.abilist: Remove.
7164         * abilist/libBrokenLocale.abilist: Remove.
7165         * abilist/libanl.abilist: Remove.
7166         * abilist/libcrypt.abilist: Remove.
7167         * abilist/libdl.abilist: Remove.
7168         * abilist/librt.abilist: Remove.
7169         * abilist/libthread_db.abilist: Remove.
7170         * abilist/libutil.abilist: Remove.
7171         * scripts/extract-abilist.awk: Remove.
7172         * scripts/merge-abilist.awk: Remove.
7173         * sysdeps/generic/libcidn.abilist: New file.
7174         * sysdeps/generic/libnss_compat.abilist: New file.
7175         * sysdeps/generic/libnss_db.abilist: New file.
7176         * sysdeps/generic/libnss_dns.abilist: New file.
7177         * sysdeps/generic/libnss_files.abilist: New file.
7178         * sysdeps/generic/libnss_hesiod.abilist: New file.
7179         * sysdeps/generic/libnss_nis.abilist: New file.
7180         * sysdeps/generic/libnss_nisplus.abilist: New file.
7181         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7182         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7183         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7184         file.
7185         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7186         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7187         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7188         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7189         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7190         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7191         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7192         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7193         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7194         file.
7195         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7196         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7197         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7198         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7199         file.
7200         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7201         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7202         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7203         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7204         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7205         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7206         file.
7207         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7208         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7209         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7210         file.
7211         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7212         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7213         New file.
7214         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7215         New file.
7216         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7217         New file.
7218         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7219         New file.
7220         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7221         New file.
7222         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7223         New file.
7224         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7225         New file.
7226         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7227         New file.
7228         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7229         New file.
7230         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7231         New file.
7232         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7233         New file.
7234         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7235         New file.
7236         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7237         New file.
7238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7239         file.
7240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7241         New file.
7242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7243         New file.
7244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7245         file.
7246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7247         New file.
7248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7249         New file.
7250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7251         file.
7252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7253         New file.
7254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7255         New file.
7256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7257         New file.
7258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7259         New file.
7260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7261         New file.
7262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7263         New file.
7264         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7265         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7266         file.
7267         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7268         New file.
7269         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7270         file.
7271         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7272         file.
7273         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7274         file.
7275         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7276         file.
7277         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7278         file.
7279         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7280         New file.
7281         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7282         file.
7283         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7284         file.
7285         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7286         New file.
7287         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7288         file.
7289         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7290         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7291         file.
7292         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7293         New file.
7294         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7295         file.
7296         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7297         file.
7298         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7299         file.
7300         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7301         file.
7302         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7303         file.
7304         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7305         New file.
7306         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7307         file.
7308         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7309         file.
7310         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7311         New file.
7312         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7313         file.
7314         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7315         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7316         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7317         file.
7318         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7319         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7320         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7321         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7322         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7323         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7324         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7325         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7326         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7327         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7328         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7329         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7330         file.
7331         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7332         New file.
7333         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7334         file.
7335         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7336         file.
7337         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7338         file.
7339         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7340         file.
7341         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7342         file.
7343         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7344         New file.
7345         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7346         New file.
7347         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7348         file.
7349         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7350         New file.
7351         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7352         file.
7353         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7354         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7355         file.
7356         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7357         New file.
7358         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7359         file.
7360         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7361         file.
7362         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7363         file.
7364         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7365         file.
7366         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7367         file.
7368         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7369         New file.
7370         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7371         New file.
7372         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7373         file.
7374         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7375         New file.
7376         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7377         file.
7378
7379 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7380
7381         * conform/conformtest.pl: Fix typo in handling typed-constant from
7382         allow-header.
7383
7384 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7385
7386         * README: Cut down references to pre-2.6 Linux kernels and
7387         Linuxthreads.  Update lists of configurations in libc and ports
7388         and sort alphabetically.  Say "or newer" with Linux kernel version
7389         requirements.
7390
7391         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7392
7393 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7394
7395         [BZ #887]
7396         * math/libm-test.inc (logb_test_downward): New test to expose
7397         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7398         rounding mode.
7399
7400 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7401
7402         [BZ #14027]
7403         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7404         to be done.
7405         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7406         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7407
7408 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7409
7410         * sysdeps/unix/i386/brk.S: Remove file.
7411         * sysdeps/unix/i386/dl-brk.S: Likewise.
7412         * sysdeps/unix/i386/pipe.S: Likewise.
7413         * sysdeps/unix/i386/sigreturn.S: Likewise.
7414         * sysdeps/unix/i386/syscall.S: Likewise.
7415         * sysdeps/unix/i386/vfork.S: Likewise.
7416         * sysdeps/unix/i386/wait.S: Likewise.
7417
7418         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7419         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7420
7421         * configure.in (arm*-none*): Do not allow without
7422         --enable-hacker-mode.
7423         (netbsd*): Remove case setting base_os.
7424         (386bsd*): Likewise.
7425         (freebsd*): Likewise.
7426         (bsdi*): Likewise.
7427         (osf*): Likewise.
7428         (sunos*): Likewise.
7429         (ultrix*): Likewise.
7430         (newsos*): Likewise.
7431         (dynix*): Likewise.
7432         (*bsd*): Likewise.
7433         (sysv*): Likewise.
7434         (isc*): Likewise.
7435         (esix*): Likewise.
7436         (sco*): Likewise.
7437         (minix*): Likewise.
7438         (irix4*): Likewise.
7439         (irix6*): Likewise.
7440         (solaris[2-9]*): Likewise.
7441         (none): Likewise.
7442         * configure: Regenerated.
7443
7444 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7445
7446         [BZ #11521]
7447         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7448         overflow or cancellation in calculating denominator.
7449         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7450         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7451         down expression to avoid unexpected rounding in newer GCCs.
7452         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7453
7454 2012-04-26  David S. Miller  <davem@davemloft.net>
7455
7456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7457         long-double compat symbols.
7458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7460         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7463         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7464         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7465         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7466         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7467         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7468         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7469         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7470         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7471
7472 2012-04-25  David S. Miller  <davem@davemloft.net>
7473
7474         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7475         HWCAP_* values only after the memory barriers have been defined.
7476         (atomic_full_barrier): Define.
7477         (atomic_read_barrier): Define.
7478         (atomic_write_barrier): Define.
7479
7480 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7481
7482         * shlib-versions: Add libgcc_s version information.
7483         * sysdeps/generic/libgcc_s.h: Remove.
7484         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7485         libgcc_s.h.
7486         * sysdeps/gnu/unwind-resume.c: Likewise.
7487         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7488
7489 2012-04-25  David S. Miller  <davem@davemloft.net>
7490
7491         * sysdeps/unix/sparc/brk.S: Delete.
7492         * sysdeps/unix/sparc/dl-brk.S: Delete.
7493         * sysdeps/unix/sparc/pipe.S: Delete.
7494         * sysdeps/unix/sparc/sysdep.S: Delete.
7495         * sysdeps/unix/sparc/sysdep.h: Delete.
7496         * sysdeps/unix/sparc/vfork.S: Delete.
7497         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7498         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7499         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7500         ret_ERRVAL, r0, r1, MOVE): Define.
7501         (JUMPTARGET): Remove.
7502         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7503         sysdeps/unix/sparc/sysdep.h
7504         (ENTRY, END): Remove.
7505         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7506
7507 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7508
7509         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7510         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7511         -DIS_IN_build.
7512
7513         * timezone/README: Update upstream location and email address for
7514         tzcode and tzdata.
7515         * timezone/zdump.c: Update from tzcode 2012b.
7516         * timezone/zic.c: Likewise.
7517
7518         * configure.in (libc_cv_as_needed): Remove test.
7519         * configure: Regenerated.
7520         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7521         conditional definition.
7522         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7523         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7524         * config.make.in (have-as-needed): Remove variable.
7525
7526 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7527             Paul Pluzhnikov  <ppluzhnikov@google.com>
7528
7529         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7530         strings correctly.
7531
7532 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7533
7534         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7535         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7536         * sysdeps/sh/strlen.S: Likewise.
7537
7538 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7539
7540         * sysdeps/unix/fork.S: Remove file.
7541         * sysdeps/unix/i386/fork.S: Likewise.
7542         * sysdeps/unix/sparc/fork.S: Likewise.
7543
7544         * sysdeps/unix/system.c: Remove file.
7545         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7546
7547         * sysdeps/unix/getegid.S: Remove file.
7548         * sysdeps/unix/geteuid.S: Likewise.
7549
7550 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7551
7552         * scripts/check-localplt.awk: New file.
7553         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7554         of diff.
7555         * scripts/data/localplt-generic.data: Add a comment.
7556
7557         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7558         NODE when __dir_mkfile failed.
7559         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7560         Reported by Ludovic Courtès <ludo@gnu.org>.
7561
7562 2012-04-24  Andreas Jaeger  <aj@suse.de>
7563
7564         * Makerules (common-clean): Also remove gen-as-const-headers
7565         files.
7566
7567 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7568
7569         * Makerules (native-compile): Do not change working directory for
7570         build.  Use $(OUTPUT_OPTION) in command.
7571         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7572
7573 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7574
7575         [BZ #13886]
7576         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7577         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7578         * math/libm-test.inc (floor_test): Add more tests.
7579         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7580
7581 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7582
7583         * sysdeps/unix/getdents.c: Remove file.
7584         * sysdeps/unix/sysv/getdents.c: Likewise.
7585         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7586
7587         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7588         sysdeps/unix/mman/syscalls.list.
7589         (mmap): Likewise.
7590         (mprotect): Likewise.
7591         (msync): Likewise.
7592         (munmap): Likewise.
7593         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7594         * sysdeps/unix/mman/syscalls.list: Remove.
7595         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7596
7597         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7598         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7599         * configure: Regenerated.
7600         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7601         $(libgcc_s_suffix).
7602         * config.make.in (libgcc_s_suffix): Remove variable.
7603
7604 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7605
7606         * sysdeps/unix/sysv/gethostname.c: Move to ...
7607         * sysdeps/posix/gethostname.c: ... here.
7608
7609         * sysdeps/unix/execve.S: Remove file.
7610
7611         * sysdeps/unix/_exit.S: Remove file.
7612
7613 2012-04-23  Andreas Jaeger  <aj@suse.de>
7614
7615         [BZ #13739]
7616         * manual/Makefile: Remove make dist support, there's no
7617         need for a stand-alone documentation tar ball.
7618         (TEXI2DVI): Define always, it's not in Makeconfig.
7619         (dist): Removed.
7620         (tar-it): Removed.
7621         (edition): Removed.
7622         (glibc-doc-$(edition).tar): Removed
7623         (%.Z): Removed.
7624         (%.gz): Removed.
7625         (%.uu): Removed.
7626         (ETAGS): Remove, it's in Makeconfig.
7627         (move-if-change): Remove, it's in Makeconfig.
7628
7629 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7630
7631         [BZ #13970]
7632         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7633         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7634         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7635         (strtod_l, strtof_l, strtold_l): Remove __wur.
7636         It is not necessarily an error to ignore strtol's return value.
7637         One can reliably look at the stored endptr to decide whether
7638         the number had valid syntax.
7639
7640 2012-04-21  Andreas Jaeger  <aj@suse.de>
7641
7642         [BZ #13739]
7643         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7644
7645 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7646
7647         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7648         * sysdeps/unix/sysv/Versions: Remove file.
7649
7650 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7651
7652         [BZ #13927]
7653         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7654
7655 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7656
7657         [BZ #7064]
7658         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7659         version from __vm86.
7660
7661 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7662
7663         * sysdeps/unix/common/lxstat.c: Remove file.
7664         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7665
7666         * sysdeps/unix/sysv/Makefile: Remove file.
7667
7668         * sysdeps/unix/sysv/direct.h: Remove file.
7669
7670         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7671         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7672         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7673         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7674         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7675         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7676         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7677
7678         * sysdeps/unix/sysv/setrlimit.c: Remove file.
7679
7680         * sysdeps/unix/xmknod.c: Remove file.
7681         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7682
7683         * sysdeps/unix/sysv/settimeofday.c: Remove file.
7684
7685         * sysdeps/unix/sysv/i386/time.S: Remove file.
7686
7687         * sysdeps/unix/fxstat.c: Remove file.
7688         * sysdeps/unix/xstat.c: Likewise.
7689         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
7690
7691         * sysdeps/unix/sysv/sigaction.c: Remove file.
7692
7693         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
7694         (sysdep_headers): Remove variable.
7695         [termio.h not in sysdep_headers] (generated): Likewise.
7696         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
7697         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
7698         * sysdeps/unix/sysv/tcdrain.c: Likewise.
7699         * sysdeps/unix/sysv/tcflow.c: Likewise.
7700         * sysdeps/unix/sysv/tcflush.c: Likewise.
7701         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
7702         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
7703         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
7704         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
7705         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
7706
7707         * sysdeps/unix/siglist.c: Remove file.
7708
7709         * sysdeps/unix/getppid.S: Remove file.
7710
7711         * sysdeps/unix/mkdir.c: Remove file.
7712         * sysdeps/unix/rmdir.c: Likewise.
7713
7714 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7715
7716         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
7717         ERR_MAX value.
7718         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
7719         errlist-compat value.
7720
7721 2012-04-18  David S. Miller  <davem@davemloft.net>
7722
7723         * sysdeps/generic/memcopy.h (reg_char): Delete.
7724         * debug/strcat_chk.c: Use char, not reg_char.
7725         * debug/strcpy_chk.c: Likewise.
7726         * debug/strncat_chk.c: Likewise.
7727         * debug/strncpy_chk.c: Likewise.
7728         * string/memchr.c: Likewise.
7729         * string/memrchr.c: Likewise.
7730         * string/rawmemchr.c: Likewise.
7731         * string/strcat.c: Likewise.
7732         * string/strchr.c: Likewise.
7733         * string/strchrnul.c: Likewise.
7734         * string/strcmp.c: Likewise.
7735         * string/strcpy.c: Likewise.
7736         * string/strncat.c: Likewise.
7737         * string/strncmp.c: Likewise.
7738         * string/strncpy.c: Likewise.
7739
7740 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7741
7742         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
7743         __builtin_memcopy is called when src and dest ranges are known to not
7744         overlap.
7745
7746 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7747
7748         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
7749         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
7750         fwd_align_merge macro call.
7751         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
7752         bwd_align_merge macro call.
7753         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7754
7755 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7756
7757         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
7758         bwd_align_merge macros.
7759         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
7760         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
7761         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7762
7763 2012-04-18  David S. Miller  <davem@davemloft.net>
7764
7765         * sysdeps/sparc/sparc64/memcopy.h: Delete.
7766
7767 2012-04-18  Andreas Jaeger  <aj@suse.de>
7768
7769         [BZ# 6794]
7770         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
7771         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
7772         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7773
7774         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
7775         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
7776         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7777
7778         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
7779         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
7780         Adjust for changed ldbl-128 files.
7781
7782         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
7783         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
7784         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7785
7786 2012-04-17  David S. Miller  <davem@davemloft.net>
7787
7788         * sysdeps/sparc/sparc32/memcopy.h: Delete.
7789
7790 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
7791
7792         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
7793         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
7794         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
7795         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
7796         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
7797         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
7798
7799 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7800
7801         [BZ #6794]
7802         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
7803         * math/libm-test.inc: Add ilogb errno and exception tests.
7804         * math/w_ilogb.c: New file: ilogb wrapper.
7805         * math/w_ilogbf.c: New file: ilogbf wrapper.
7806         * math/w_ilogbl.c: New file: ilogbl wrapper.
7807         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
7808         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
7809         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
7810         exception being thrown with 0.0 as argument.
7811         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
7812         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
7813         exception being thrown with 0.0 as argument.
7814         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
7815         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7816         exception being thrown with 0.0 as argument.
7817         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
7818         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7819         exception being thrown with 0.0 as argument.
7820         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
7821         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
7822         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
7823         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
7824         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
7825         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
7826         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
7827         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
7828         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
7829
7830 2012-04-17  Petr Baudis  <pasky@ucw.cz>
7831
7832         * include/sys/uio.h: Change __vector to __iovec to avoid clash
7833         with altivec.
7834
7835 2012-04-16  Marek Polacek  <polacek@redhat.com>
7836
7837         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
7838
7839 2012-04-16  Marek Polacek  <polacek@redhat.com>
7840
7841         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
7842         operands of fdivp instruction.
7843
7844 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7845
7846         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
7847         * elf/tst-auditmod3b.c: Likewise.
7848         * elf/tst-auditmod4b.c: Likewise.
7849         * elf/tst-auditmod5b.c: Likewise.
7850         * elf/tst-auditmod6b.c: Likewise.
7851         * elf/tst-auditmod6c.c: Likewise.
7852         * elf/tst-auditmod7b.c: Likewise.
7853         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
7854         * sysdeps/x86_64/preconfigure.in: Likewise.
7855         * sysdeps/x86_64/preconfigure: Regenerated.
7856
7857 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7858
7859         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
7860         __ILP32__.
7861
7862 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
7863
7864         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7865         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
7866
7867 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
7868
7869         [BZ #13973]
7870         * locale/iso-639.def: Fix gl language name. Spotted by
7871         Yaron Shahrabani.
7872
7873 2012-04-12  Roland McGrath  <roland@hack.frob.com>
7874
7875         [BZ #2074]
7876         * libio/libio.h (__io_write_fn): Update comment.
7877
7878 2012-04-12  Petr Baudis  <pasky@ucw.cz>
7879
7880         [BZ #2074]
7881         * stdio.texi (Hook Functions): The user provided writer function
7882         is not allowed to return -1.
7883
7884 2012-04-11  David S. Miller  <davem@davemloft.net>
7885
7886         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7887
7888 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
7889
7890         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
7891         Add a leading slash to rtkaio.
7892
7893 2012-04-11  Jim Meyering  <meyering@redhat.com>
7894
7895         [BZ #11959]
7896         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
7897         It is not necessarily an error to ignore fwrite's return
7898         value.  One can reliably use ferror to test for errors after
7899         the fact.
7900
7901 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7902
7903         * bits/types.h (__snseconds_t): New type.
7904         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
7905
7906         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
7907         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7908         (__SNSECONDS_T_TYPE): Likewise.
7909         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7910         (__SNSECONDS_T_TYPE): Likewise.
7911         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7912         (__SNSECONDS_T_TYPE): Likewise.
7913
7914 2012-04-10  Andreas Jaeger  <aj@suse.de>
7915
7916         [BZ #2636]
7917         * manual/time.texi (Processor Time): Return type of times is
7918         elapsed real time since an arbitrary point in the past.
7919         (CPU Time): Move CLK_TCK from here...
7920         (Processor Time): ...to here.  Correct description.
7921         * manual/conf.texi (Constants for Sysconf): Correct description of
7922         _SC_CLK_TCK.
7923
7924 2012-04-10  David S. Miller  <davem@davemloft.net>
7925
7926         [BZ #13967]
7927         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
7928         where the is a gap between DT_REL(A) and DT_JMPREL.
7929
7930 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7931
7932         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
7933         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7934         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7935
7936 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7937
7938         * elf/dl-support.c (_dl_inhibit_cache): New variable.
7939         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
7940         (dl_main): Handle --inhibit-cache.
7941         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
7942         _dl_inhibit_cache.
7943         * elf/dl-load.c (_dl_map_object): Use it.
7944         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
7945
7946 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7947
7948         [BZ #13872]
7949         * sysdeps/i386/fpu/e_powl.S (p78): New object.
7950         (__ieee754_powl): Saturate large exponents rather than testing for
7951         overflow of y*log2(x).
7952         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7953         * math/libm-test.inc (pow_test): Do not permit spurious overflow
7954         exceptions.
7955
7956         [BZ #11521]
7957         * math/s_ctan.c: Include <float.h>.
7958         (__ctan): Avoid internal overflow or cancellation in calculating
7959         denominator.
7960         * math/s_ctanf.c: Likewise.
7961         * math/s_ctanl.c: Likewise.
7962         * math/s_ctanh.c: Likewise.
7963         * math/s_ctanhf.c: Likewise.
7964         * math/s_ctanhl.c: Likewise.
7965         * math/libm-test.inc (ctan_test): Add more tests.
7966         (ctanh_test): Likewise.
7967         * sysdeps/i386/fpu/libm-test-ulps: Update.
7968         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7969
7970 2012-04-09  Andreas Jaeger  <aj@suse.de>
7971
7972         [BZ #6894]
7973         * manual/filesys.texi (Directory Entries): Mention that d_namlen
7974         is an optional BSD extension.
7975
7976         [BZ #10254]
7977         * manual/stdio.texi (Opening Streams): Document additional fopen
7978         parameters.
7979
7980 2012-04-09  Roland McGrath  <roland@hack.frob.com>
7981
7982         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
7983         %eax without telling the compiler.
7984
7985 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
7986
7987         [BZ # 13963]
7988         * manual/install.texi: Use sourceware.org.
7989
7990 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7991
7992         [BZ #13873]
7993         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
7994         (__ieee754_pow): Generate overflow and underflow using huge*huge
7995         and tiny*tiny rather than just returning constant infinity or zero
7996         for large exponents.
7997         * math/libm-test.inc (pow_test): Require overflow exceptions for
7998         applicable cases of large exponents.
7999
8000         [BZ #706]
8001         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8002         (__ieee754_pow): Use iterative multiplication algorithm only for
8003         integer exponents with absolute value below 1024.  Check for odd
8004         integer exponents when using algorithm for real exponents.
8005         * math/libm-test.inc (pow_test): Add more tests.
8006         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8007
8008 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8009
8010         [BZ #13705]
8011         * math/libm-test.inc (exp_test): Do not allow overflow exception
8012         on underflow test.
8013
8014 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8015
8016         [BZ #13705]
8017         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8018         instead of __kernel_standard_f.
8019
8020 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8021
8022         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8023         * sysdeps/x86_64/memset_chk.S: Likewise.
8024
8025 2012-04-08  Andreas Jaeger  <aj@suse.de>
8026
8027         [BZ #10153]
8028         * manual/startup.texi (Environment Access): Describe return value
8029         for putenv and setenv.
8030
8031         [BZ #6895]
8032         * manual/filesys.texi (Directory Entries): Add description for
8033         DT_LNK.
8034
8035         [BZ #6890]
8036         * manual/filesys.texi (Directory Entries): Clarify that it's file
8037         system not operating system in the description of DT_UNKNOWN.
8038
8039         [BZ #6578]
8040         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8041
8042 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8043
8044         [BZ #6649]
8045         * manual/llio.texi (Opening and Closing Files): Add cross
8046         reference to explain mode argument.
8047
8048 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8049
8050         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8051         * sysdeps/x86_64/memset_chk.S: Likewise.
8052
8053 2012-04-07  David S. Miller  <davem@davemloft.net>
8054
8055         * elf/elf.h (R_SPARC_WDISP10): Define.
8056         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8057         R_SPARC_SIZE32.
8058         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8059         R_SPARC_SIZE64 and R_SPARC_H34.
8060
8061 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8062
8063         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8064         conditions and remove no longer applicable assertion.
8065
8066 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8067
8068         * bits/byteswap.h: Include <features.h>.
8069         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8070         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8071
8072 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8073
8074         * bits/byteswap.h (__bswap_16): Removed.
8075         Include <bits/byteswap-16.h> to get __bswap_16.
8076         * sysdeps/i386/bits/byteswap.h: Likewise.
8077         * sysdeps/s390/bits/byteswap.h: Likewise.
8078         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8079         * bits/byteswap-16.h: New file.
8080         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8081         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8082         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8083         * string/Makefile (headers): Add bits/byteswap-16.h.
8084
8085 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8086
8087         [BZ #13895]
8088         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8089         extra indirection.
8090         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8091         * nss/tst-nss-static.c: New.
8092
8093 2012-04-06  Robert Millan  <rmh@gnu.org>
8094
8095         [BZ #6486]
8096         * manual/llio.texi (File Position Primitive): lseek
8097         refers to WHENCE when it really means OFFSET.
8098
8099 2012-04-06  Andreas Jaeger  <aj@suse.de>
8100
8101         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8102         strncmp declarations.
8103
8104         * abilist/libc.abilist: Add __poll and __ppoll.
8105
8106 2012-04-05  David S. Miller  <davem@davemloft.net>
8107
8108         * scripts/check-local-headers.sh: Accept a host triplet in the
8109         path matched by the exclude regexp.
8110
8111         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8112         definition.
8113         * sysdeps/powerpc/powerpc32/dl-machine.h
8114         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8115         * sysdeps/s390/s390-32/dl-machine.h
8116         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8117         * sysdeps/sparc/sparc32/dl-machine.h
8118         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8119         * sysdeps/sparc/sparc64/dl-machine.h
8120         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8121
8122         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8123         lazy binding.
8124         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8125         undefined symbol errors.
8126
8127         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8128         DT_NEEDED entries.
8129
8130 2012-04-05  Michael Matz  <matz@suse.de>
8131
8132         [BZ #13592]
8133         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8134
8135 2012-04-05  Andreas Jaeger  <aj@suse.de>
8136
8137         [BZ #13908]
8138         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8139         comment.
8140
8141 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8142
8143         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8144         which ROUND is no valid rounding mode.
8145
8146 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8147
8148         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8149         read again.
8150         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8151
8152 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8153
8154         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8155         an exception using FPU order intentionally.
8156
8157 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8158
8159         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8160         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8161         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8162         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8163
8164 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8165
8166         [BZ #12340]
8167         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8168         EINVAL when BUFLEN is too smal.
8169
8170 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8171
8172         [BZ #13553]
8173         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8174         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8175
8176 2012-04-03  Andreas Jaeger  <aj@suse.de>
8177
8178         [BZ #13938]
8179         * manual/setjmp.texi (System V contexts): Fix sentence.
8180
8181         [BZ #13926]
8182         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8183         New macro for this case.
8184         [!__GNUC__] (__bswap_64): New inline function for this case.
8185         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8186         * bits/byteswap.h: Likewise.
8187         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8188         ull, guard with __GLIBC_HAVE_LONG_LONG.
8189
8190         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8191         __GLIBC_HAVE_LONG_LONG.
8192
8193         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8194         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8195
8196 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8197
8198         [BZ #13691]
8199         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8200         inptr and inend, rather than using last_ch.
8201
8202 2012-04-02  David S. Miller  <davem@davemloft.net>
8203
8204         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8205         * stdio-common/printf-parse.h (read_int): Change return type to
8206         'int', return -1 on INT_MAX overflow.
8207         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8208         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8209         overflows INT_MAX.  Check for overflow of in-format-string precision
8210         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8211         SIZE_MAX not INT_MAX for integer overflow test.
8212         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8213         skip the construct in the format string but do not record anything.
8214         * stdio-common/bug22.c: Adjust to test both width/prevision
8215         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8216         explicitly for proper errno values.
8217
8218 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8219
8220         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8221         CHAR_MAX.
8222         * string/test-strcmp.c [! WIDE]: Likewise.
8223         * time/tst-mktime2.c: Likewise for INT_MAX.
8224         * string/test-string.h: #include <sys/param.h> for MIN.
8225
8226         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8227         * sysdeps/i386/init-first.c (init): Likewise.
8228         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8229         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8230         * sysdeps/sh/init-first.c (init): Likewise.
8231
8232 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8233
8234         * po/ru.po: Update from translation team.
8235         * po/vi.po: Likewise.
8236
8237 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8238
8239         * resolv/nss_dns/dns-host.c: Merge copyright years.
8240
8241 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8242
8243         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8244         Optimize memcpy with prefetch if
8245         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8246         src, dst pointers have unequal 16 byte alignments.
8247
8248 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8249
8250         [BZ #13928]
8251         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8252         from a CNAME entry and return the minimum ttl for the query.
8253         (gaih_getanswer_slice): Likewise.
8254
8255 2012-03-30  Jeff Law  <law@redhat.com>
8256
8257         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8258         due to long keys.
8259         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8260         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8261
8262         * resolv/nss_dns/dns-host.c: Update copyright year.
8263
8264 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8265
8266         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8267         requests to save a system call.  Fix check that all bytes are sent.
8268
8269         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8270         comments for sendmmsg.
8271
8272 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8273
8274         [BZ #13691]
8275         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8276         with only 1 character between 0x0041 and 0x01b0.
8277         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8278         * wcsmbs/tst-mbsnrtowcs.c: New file.
8279
8280 2012-03-29  David S. Miller  <davem@davemloft.net>
8281
8282         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8283         small copies by hand.
8284
8285 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8286
8287         [BZ #13761]
8288         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8289         _nss_compat_initgroups_dyn): Fall back to malloc/free
8290         for large group memberships.
8291
8292 2012-03-28  David S. Miller  <davem@davemloft.net>
8293
8294         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8295         that branches into memcpy.
8296         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8297         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8298         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8299         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8300         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8301         bits.
8302         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8303         implementation too.
8304         * sysdeps/sparc/mempcpy.S: New file.
8305
8306         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8307         the IFUNC routine in the libc case.
8308         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8309
8310         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8311         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8312         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8313         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8314         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8315         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8316         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8317         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8318
8319         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8320         loop to 256 bytes instead of 64 bytes and fix test signedness.
8321
8322         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8323         * sysdeps/sparc/sparc32/Makefile: rather than here...
8324         * sysdeps/sparc/sparc64/Makefile: and here.
8325
8326 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8327
8328         * malloc/mallocbug.c: Avoid warnings about unused variables.
8329
8330 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8331
8332         [BZ #13760]
8333         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8334         in the right place. Discard and retry query if response is
8335         larger than input buffer size.
8336
8337 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8338
8339         [BZ #369]
8340         [BZ #2678]
8341         [BZ #3866]
8342         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8343         x for large integer exponent.
8344         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8345         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8346         sign of result as needed afterwards.
8347         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8348         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8349         result for underflowing pow the same as for overflow.
8350         (__kernel_standard_l): Handle powl overflow and underflow here
8351         rather than calling __kernel_standard.
8352         * math/libm-test.inc (pow_test): Add more tests.
8353
8354         [BZ #3868]
8355         [BZ #13879]
8356         [BZ #13910]
8357         [BZ #13911]
8358         [BZ #13912]
8359         [BZ #13913]
8360         [BZ #13915]
8361         [BZ #13916]
8362         [BZ #13917]
8363         [BZ #13918]
8364         [BZ #13919]
8365         [BZ #13920]
8366         [BZ #13921]
8367         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8368         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8369         (__kernel_standard_l): New function.
8370         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8371         __kernel_standard.
8372         * math/w_acosl.c (__acosl): Likewise.
8373         * math/w_asinl.c (__asinl): Likewise.
8374         * math/w_atan2l.c (__atan2l): Likewise.
8375         * math/w_atanhl.c (__atanhl): Likewise.
8376         * math/w_coshl.c (__coshl): Likewise.
8377         * math/w_exp10l.c (__exp10l): Likewise.
8378         * math/w_exp2l.c (__exp2l): Likewise.
8379         * math/w_fmodl.c (__fmodl): Likewise.
8380         * math/w_hypotl.c (__hypotl): Likewise.
8381         * math/w_j0l.c (__j0l, __y0l): Likewise.
8382         * math/w_j1l.c (__j1l, __y1l): Likewise.
8383         * math/w_jnl.c (__jnl, __ynl): Likewise.
8384         * math/w_lgammal.c (__lgammal): Likewise.
8385         * math/w_log10l.c (__log10l): Likewise.
8386         * math/w_log2l.c (__log2l): Likewise.
8387         * math/w_logl.c (__logl): Likewise.
8388         * math/w_powl.c (__powl): Likewise.
8389         * math/w_remainderl.c (__remainderl): Likewise.
8390         * math/w_scalbl.c (sysv_scalbl): Likewise.
8391         * math/w_sinhl.c (__sinhl): Likewise.
8392         * math/w_sqrtl.c (__sqrtl): Likewise.
8393         * math/w_tgammal.c (__tgammal): Likewise.
8394         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8395         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8396         * math/libm-test.inc (acos_test): Add more tests.
8397         (acosh_test): Likewise.
8398         (asin_test): Likewise.
8399         (atanh_test): Likewise.
8400         (exp_test): Likewise.
8401         (exp10_test): Likewise.
8402         (exp2_test): Likewise.
8403         (expm1_test): Likewise.
8404         (lgamma_test): Likewise.
8405         (log_test): Likewise.
8406         (log10_test): Likewise.
8407         (log1p_test): Likewise.
8408         (log2_test): Likewise.
8409         (pow_test): Do not allow some spurious overflow exceptions.
8410         (sqrt_test): Add more tests.
8411         (tgamma_test): Likewise.
8412         (y0_test): Likewise.
8413         (y1_test): Likewise.
8414         (yn_test): Likewise.
8415
8416 2012-03-27  Anton Blanchard  <anton@samba.org>
8417
8418         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8419         MAP_HUGETLB.
8420         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8421         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8422         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8423
8424 2012-03-27  David S. Miller  <davem@davemloft.net>
8425
8426         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8427
8428         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8429         have-as-vis3 check.
8430
8431 2012-03-27  Andreas Jaeger  <aj@suse.de>
8432
8433         * sysdeps/x86_64/elf/configure.in: Moved to ...
8434         * sysdeps/x86_64/configure.in: ... here.
8435         * sysdeps/x86_64/elf/start.S: Moved to ...
8436         * sysdeps/x86_64/start.S: ... here.
8437         * sysdeps/x86_64/elf/configure: Delete.
8438
8439         * sysdeps/x86_64/configure.in: Merge contents from
8440         sysdeps/i386/configure.in (without i686 check).
8441
8442         * sysdeps/i386/elf/Versions: Merge into ...
8443         * sysdeps/i386/Versions: ... this.
8444         * sysdeps/i386/elf/Versions: Delete file.
8445         * sysdeps/i386/elf/start.S: Moved to ...
8446         * sysdeps/i386/start.S: ...here.
8447         * sysdeps/i386/elf/configure.in: Merge into...
8448         * sysdeps/i386/configure.in: ...here.
8449         * sysdeps/i386/elf/configure.in: Delete file.
8450         * sysdeps/i386/elf/configure: Delete file.
8451
8452         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8453         * debug/backtracesyms.c: ... here.
8454         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8455         * debug/backtracesymsfd.c: ... here.
8456         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8457         * sysdeps/generic/ifunc-sel.h: ... here.
8458
8459         * sysdeps/unix/i386/start.c: Delete file.
8460         * sysdeps/unix/sparc/start.c: Delete file.
8461         * sysdeps/unix/start.c: Delete file.
8462
8463         * sysdeps/sh/elf/configure.in: Moved to ...
8464         * sysdeps/sh/configure.in: ... here.
8465         * sysdeps/sh/elf/start.S: Moved to ...
8466         * sysdeps/sh/start.S: ... here.
8467         * sysdeps/sh/elf/configure: Delete file.
8468
8469         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8470         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8471         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8472         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8473         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8474         * sysdeps/powerpc/powerpc64/start.S: here.
8475         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8476         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8477         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8478         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8479         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8480
8481         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8482         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8483         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8484         * sysdeps/powerpc/powerpc32/start.S: ... here.
8485         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8486         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8487         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8488
8489         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8490         * sysdeps/powerpc/ifunc-sel.h: ... here.
8491         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8492         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8493
8494         * sysdeps/sparc/elf/configure.in: Moved to ...
8495         * sysdeps/sparc/configure.in: ... here.
8496         * sysdeps/sparc/elf/configure: Delete file.
8497         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8498         * sysdeps/sparc/sparc32/start.S: ... here.
8499         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8500         * sysdeps/sparc/sparc64/start.S: ... here.
8501         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8502         * sysdeps/sparc/sparc32/Makefile: ... this.
8503         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8504         * sysdeps/sparc/sparc64/Makefile: ... this.
8505
8506         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8507         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8508         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8509         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8510         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8511         * sysdeps/s390/s390-32/setjmp.S: ... here.
8512         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8513         * sysdeps/s390/s390-32/configure.in: ... here.
8514         * sysdeps/s390/s390-32/elf/configure: Delete file.
8515         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8516         * sysdeps/s390/s390-32/start.S: ... here.
8517
8518         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8519         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8520         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8521         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8522         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8523         * sysdeps/s390/s390-64/setjmp.S: ... here.
8524         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8525         * sysdeps/s390/s390-64/configure.in: ... here
8526         * sysdeps/s390/s390-64/elf/configure: Delete file.
8527         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8528         * sysdeps/s390/s390-64/start.S: ... here.
8529         * sysdeps/s390/s390-64/elf/configure: Delete.
8530
8531         * configure.in: Remove support for elf directories in sysdeps.
8532
8533         * configure: Regenerated.
8534         * sysdeps/i386/configure: Regenerated.
8535         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8536         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8537         * sysdeps/s390/s390-32/configure: Regenerated.
8538         * sysdeps/s390/s390-64/configure: Regenerated.
8539         * sysdeps/sh/configure: Regenerated.
8540         * sysdeps/sparc/configure: Regenerated.
8541         * sysdeps/x86_64/configure: Regenerated.
8542
8543 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8544
8545         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8546
8547         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8548         denormal result into account.
8549
8550 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8551
8552         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8553         Reported by Allan McRae <allan@archlinux.org>.
8554
8555 2012-03-23  Jeff Law  <law@redhat.com>
8556
8557         * nss/getnssent.c (__nss_getent): Fix typo.
8558
8559 2012-03-23  David S. Miller  <davem@davemloft.net>
8560
8561         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8562
8563 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8564
8565         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8566         to pad to uint64_t for each field.
8567         (dl_tls_index): Replace unsigned long with uint64_t.
8568
8569 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8570         Paul Pluzhnikov  <ppluzhnikov@google.com>
8571
8572         [BZ #6528]
8573         * grp/Makefile (otherlibs): Don't set it.
8574         * inet/Makefile (otherlibs): Likewise.
8575         * login/Makefile (otherlibs): Likewise.
8576         * nscd/Makefile (otherlibs): Likewise.
8577         * posix/Makefile (otherlibs): Likewise.
8578         * pwd/Makefile (otherlibs): Likewise.
8579         * rt/Makefile (otherlibs): Likewise.
8580         * sunrpc/Makefile (otherlibs): Likewise.
8581         * nss/Makefile (otherlibs): Likewise.
8582         Add libnss_files to routines and static-only-routines.
8583         ($(objpfx)getent): Remove rule.
8584         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8585         static-only-routines.
8586
8587 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8588
8589         [BZ #13892]
8590         * math/s_cexp.c: Include <float.h>.
8591         (__cexp): Handle exp result overflowing not necessarily
8592         overflowing both real and imaginary parts of result.
8593         * math/s_cexpf.c: Likewise.
8594         * math/s_cexpl.c: Likewise.
8595         * math/libm-test.inc (cexp_test): Add more tests.
8596         * sysdeps/i386/fpu/libm-test-ulps: Update.
8597         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8598
8599 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8600
8601         * include/link.h (ELFW): New macro.
8602         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8603         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8604
8605 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8606
8607         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8608         with uint64_t.
8609
8610 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8611
8612         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8613         declaration.
8614         (struct La_x32_retval): Likewise.
8615
8616 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8617
8618         * sysdeps/x86_64/preconfigure.in: New file.
8619         * sysdeps/x86_64/preconfigure: New generated file.
8620
8621 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8622
8623         [BZ #13824]
8624         * math/e_exp2l.c: Include <float.h>.
8625         (__ieee754_exp2l): Handle overflow and underflow cases
8626         separately.  Only pass fractional part of argument to
8627         __ieee754_expl.
8628         * math/libm-test.inc (exp2_test): Add more tests.
8629
8630         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8631         negating x to take absolute value.
8632         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8633         Likewise.
8634         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8635         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8636         Likewise.
8637         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8638         computing low part if x was negated.
8639         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8640
8641 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8642
8643         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8644         la_x32_gnu_pltexit.
8645         (pltexit): Cast int_retval to ptrdiff_t.
8646         * elf/tst-auditmod3b.c: Likewise.
8647         * elf/tst-auditmod4b.c: Likewise.
8648         * elf/tst-auditmod5b.c: Likewise.
8649         * elf/tst-auditmod6b.c: Likewise.
8650         * elf/tst-auditmod6c.c: Likewise.
8651         * elf/tst-auditmod7b.c: Likewise.
8652
8653         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8654         and x32_gnu_pltexit.
8655
8656         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8657         __ELF_NATIVE_CLASS.
8658         (La_x32_regs): New macro.
8659         (La_x32_retval): Likewise.
8660         (la_x32_gnu_pltenter): New function prototype.
8661         (la_x32_gnu_pltexit): Likewise.
8662
8663 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8664
8665         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8666         exponent.
8667
8668         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8669
8670         * configure.in (libc_cv_cc_nofma): Check for option to disable
8671         generation of FMA instructions.
8672         * configure: Regenerate.
8673         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8674         * sysdeps/ieee754/dbl-64/Makefile: New file.
8675         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8676         Remove brandred-fma4.
8677         (CFLAGS-brandred-fma4.c): Remove.
8678         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8679         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8680         define.
8681         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8682         define.
8683
8684 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8685
8686         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8687         LLONG_MAX != LONG_MAX.
8688         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8689         (_fitoa_word): Likewise.
8690         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
8691         LLONG_MAX != LONG_MAX.
8692         * stdio-common/_itowa.h: Include <_itoa.h>.
8693         (_itowa_word): Use _ITOA_WORD_TYPE on value.
8694         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
8695         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
8696         only if not defined.
8697         (_ITOA_WORD_TYPE): Likewise.
8698         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8699         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
8700
8701 2012-03-21  David S. Miller  <davem@davemloft.net>
8702
8703         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8704
8705 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8706
8707         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
8708         of x86_64 when setting libc_cv_slibdir, libdir and
8709         libc_cv_localedir.
8710         * sysdeps/unix/sysv/linux/configure: Regenerated.
8711
8712 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8713
8714         * manual/lang.texi (Old Varargs): Remove section.
8715         (How Variadic): Update menu.
8716         (va_start): Do not mention varargs.h.
8717
8718 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8719             Joseph Myers  <joseph@codesourcery.com>
8720
8721         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
8722         link test.
8723         * configure: Regenerated.
8724
8725 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8726
8727         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
8728         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
8729         conformtest.pl
8730
8731 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8732
8733         * NOTES: Remove.
8734         * Makefile (files-for-dist): Remove NOTES.
8735         (NOTES): Remove rule.
8736         * README: Don't refer to NOTES.
8737         * manual/creature.texi: Don't include macros.texi.
8738         * manual/intro.texi (creature.texi): Remove comment referring to
8739         NOTES.
8740
8741         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
8742         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
8743         * configure: Regenerated.
8744         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
8745         LIBC_TRY_CC_OPTION.
8746         (libc_cv_as_i686): Likewise.
8747         (libc_cv_cc_avx): Likewise.
8748         (libc_cv_cc_sse2avx): Likewise.
8749         (libc_cv_cc_fma4): Likewise.
8750         (libc_cv_cc_novzeroupper): Likewise.
8751         * sysdeps/i386/configure: Regenerated.
8752
8753         [BZ #13883]
8754         * sysdeps/i386/fpu/s_cexp.S: Remove.
8755         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8756         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8757         * math/libm-test.inc (cexp_test): Add more tests.
8758         * sysdeps/i386/fpu/libm-test-ulps: Update.
8759         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8760
8761 2012-03-21  Allan McRae  <allan@archlinux.org>
8762
8763         * timezone/Makefile: Do not install iso3166.tab and zone.tab
8764
8765 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8766
8767         [BZ #13871]
8768         * math/w_exp2.c: Do not include <float.h>.
8769         (o_threshold, u_threshold): Remove.
8770         (__exp2): Calculate result before checking finiteness and calling
8771         __kernel_standard.
8772         * math/w_exp2f.c: Likewise.
8773         * math/w_exp2l.c: Likewise.
8774         * math/libm-test.inc (exp2_test): Require overflow exception for
8775         1e6 input.
8776
8777         [BZ #3866]
8778         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
8779         range of signed 64-bit integers before using fistpll.  Remove
8780         checks for whether integers fit in mantissa bits.
8781         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
8782         the range of signed 32-bit integers before using fistpl.  Remove
8783         checks for whether integers fit in mantissa bits.
8784         * sysdeps/i386/fpu/e_powl.S (p64): New object.
8785         (__ieee754_powl): Test for y outside the range of signed 64-bit
8786         integers before using fistpll.  Reduce 64-bit values to 63-bit
8787         ones as needed.
8788         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
8789         divide-by-zero is raised for zero to large negative powers.
8790         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
8791         (__ieee754_powl): Test for y outside the range of signed 64-bit
8792         integers before using fistpll.  Reduce 64-bit values to 63-bit
8793         ones as needed.
8794         * math/libm-test.inc (pow_test): Add more tests.
8795
8796 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8797
8798         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
8799         <stdio-common/_itoa.h>.
8800         * debug/segfault.c: Likewise.
8801         * elf/dl-cache.c: Likewise.
8802         * elf/dl-minimal.c: Likewise.
8803         * elf/dl-misc.c: Likewise.
8804         * elf/dl-sysdep.c: Likewise.
8805         * elf/dl-version.c: Likewise.
8806         * elf/rtld.c: Likewise.
8807         * hurd/hurdsock.c: Likewise.
8808         * hurd/lookup-retry.c: Likewise.
8809         * malloc/malloc.c: Likewise.
8810         * malloc/mtrace.c: Likewise.
8811         * nscd/nscd_getgr_r.c: Likewise.
8812         * nscd/nscd_getpw_r.c: Likewise.
8813         * nscd/nscd_getserv_r.c: Likewise.
8814         * posix/getopt_init.c: Likewise.
8815         * posix/wordexp.c: Likewise.
8816         * stdio-common/_itoa.c: Likewise.
8817         * stdio-common/printf_fphex.c: Likewise.
8818         * stdio-common/vfprintf.c: Likewise.
8819         * string/_strerror.c: Likewise.
8820         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8821         * sysdeps/i386/i686/hp-timing.h: Likewise.
8822         * sysdeps/mach/_strerror.c: Likewise.
8823         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
8824         * sysdeps/mach/hurd/sethostid.c: Likewise.
8825         * sysdeps/mach/hurd/xmknodat.c: Likewise.
8826         * sysdeps/mach/xpg-strerror.c: Likewise.
8827         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
8828         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
8829         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
8830         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
8831         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
8832         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
8833         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8834         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8835         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
8836         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
8837         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
8838         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
8839         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
8840         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8841         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8842         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
8843         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
8844         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
8845         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
8846         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
8847         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
8848
8849         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
8850
8851         * stdio-common/_itoa.h: Moved to ...
8852         * sysdeps/generic/_itoa.h: Here.
8853
8854         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
8855
8856         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
8857         instead of "_itoa.h" and "_itowa.h".
8858         * stdio-common/vfprintf.: Likewise.
8859
8860 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8861
8862         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
8863         <bits/wordsize.h>.
8864         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
8865         (__signbit): Likwise.
8866         (llrintf): Likwise.
8867         (llrint): Likwise.
8868
8869 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8870
8871         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
8872         __WORDSIZE != 64.
8873
8874 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
8875
8876         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
8877         OVERFLOW_EXCEPTION_OK.
8878         * math/libm-test.inc ("Philosophy"): Update comment about
8879         exception testing.
8880         (OVERFLOW_EXCEPTION): Define.
8881         (OVERFLOW_EXCEPTION_OK): Likewise.
8882         (INVALID_EXCEPTION_OK): Renumber.
8883         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8884         (IGNORE_ZERO_INF_SIGN): Likewise.
8885         (test_exceptions): Handle FE_OVERFLOW.
8886         (exp10_test): Expect overflow exceptions.
8887         (exp2_test): Likewise.
8888         (expm1_test): Likewise.
8889         (nextafter_test): Likewise.
8890         (pow_test): Likewise.
8891         (scalbn_test): Likewise.
8892         (scalbln_test): Likewise.
8893
8894 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8895
8896         * sysdeps/x86_64/bits/atomic.h
8897         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
8898         64bit integer.
8899         (atomic_exchange_acq): Likewise.
8900         (__arch_exchange_and_add_body): Likewise.
8901         (__arch_add_body): Likewise.
8902         (atomic_add_negative): Likewise.
8903         (atomic_add_zero): Likewise.
8904
8905 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8906
8907         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
8908         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
8909
8910 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8911
8912         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
8913         Check __x86_64__ instead of __WORDSIZE.
8914
8915 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8916
8917         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
8918
8919 2012-03-19  David S. Miller  <davem@davemloft.net>
8920
8921         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8922
8923         * sysdeps/sparc/fpu/fenv_private.h: New file.
8924         * sysdeps/sparc/fpu/math_private.h: Use it.
8925         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
8926         Remove.
8927         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
8928         (libc_feholdexcept_setroundl): Remove.
8929         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
8930         Remove.
8931         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
8932         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
8933
8934 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8935
8936         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
8937         int64_t instead of long int.
8938         (INSERT_WORDS64): Likwise.
8939
8940 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8941
8942         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
8943         _Unwind_GetCFA return to _Unwind_Ptr first.
8944
8945 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
8946
8947         [BZ #13629]
8948         * math/s_clog.c: Include <float.h>.
8949         (__clog): Scale large or subnormal inputs.
8950         * math/s_clogf.c: Likewise.
8951         * math/s_clogl.c: Likewise.
8952         * math/s_clog10.c: Include <float.h>.
8953         (M_LOG10_2): Define.
8954         (__clog10): Scale large or subnormal inputs.
8955         * math/s_clog10f.c: Likewise.
8956         * math/s_clog10l.c: Likewise.
8957         * math/libm-test.inc (clog_test): Add more tests.
8958         (clog10_test): Likewise.
8959         * sysdeps/i386/fpu/libm-test-ulps: Update.
8960         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8961
8962         [BZ #11451]
8963         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
8964         x and y.
8965         * math/libm-test.inc (atan2_test): Add another test.
8966
8967         * Makerules (common-objdir-compile): Remove.
8968         * sysdeps/unix/Makefile (config-generated): Do not add
8969         $(unix-generated) to variable.
8970         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
8971         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
8972         Remove rule.
8973         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
8974         Likewise.
8975         [generic bits/local_lim.h] (before-compile): Do not append to
8976         variable.
8977         [generic bits/local_lim.h] (common-generated): Likewise.
8978         [generic sys/param.h] (before-compile): Do not append to variable.
8979         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
8980         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
8981         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
8982         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
8983         include.
8984         [generic sys/param.h] (sys/param.h-includes): Remove variable.
8985         [generic sys/param.h] (sys/param.h-includes): Remove rule.
8986         [generic sys/param.h] ($(addprefix
8987         $(common-objpfx),$(sys/param.h-includes))): Likewise.
8988         [generic sys/param.h] (common-generated): Do not append to
8989         variable.
8990         [generic sys/param.h] (sysdep_headers): Likewise.
8991         [generic bits/errno.h] (before-compile): Do not append to
8992         variable.
8993         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
8994         rule.
8995         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
8996         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
8997         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
8998         [generic bits/errno.h] (common-generated): Do not append to
8999         variable.
9000         [generic bits/ioctls.h] (before-compile): Do not append to
9001         variable.
9002         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9003         rule.
9004         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9005         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9006         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9007         rule.
9008         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9009         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9010         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9011         [generic bits/ioctls.h] (common-generated): Do not append to
9012         variable.
9013         [generic sys/syscall.h] (syscall.h): Remove variable.
9014         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9015         rule.
9016         [generic sys/syscall.h] (before-compile): Do not append to
9017         variable.
9018         [generic sys/syscall.h] (common-generated): Likewise.
9019         * sysdeps/unix/errnos-tmpl.c: Remove file.
9020         * sysdeps/unix/errnos.awk: Likewise.
9021         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9022         * sysdeps/unix/ioctls.awk: Likewise.
9023         * sysdeps/unix/mk-local_lim.c: Likewise.
9024         * sysdeps/unix/snarf-ioctls: Likewise.
9025
9026 2012-03-19  Richard Henderson  <rth@twiddle.net>
9027
9028         * sysdeps/i386/fpu/fenv_private.h: New file.
9029         * sysdeps/i386/fpu/math_private.h: Use it.
9030         (math_opt_barrier, math_force_eval): Remove.
9031         (libc_feholdexcept_setround_53bit): Remove.
9032         (libc_feupdateenv_53bit): Remove.
9033         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9034         (math_opt_barrier, math_force_eval): Remove.
9035         (libc_feholdexcept): Remove.
9036         (libc_feholdexcept_setround): Remove.
9037         (libc_fetestexcept, libc_fesetenv): Remove.
9038         (libc_feupdateenv_test): Remove.
9039         (libc_feupdateenv, libc_feholdsetround): Remove.
9040         (libc_feresetround): Remove.
9041
9042         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9043         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9044
9045         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9046         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9047         (libc_feupdateenv_testl): New.
9048         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9049         (libc_feupdateenv_testf): New.
9050         (libc_feupdateenv): Use libc_feupdateenv_test.
9051         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9052         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9053
9054         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9055         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9056         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9057         (libc_feresetround_noex): New.
9058         (libc_feresetround_noexf): New.
9059         (libc_feresetround_noexl): New.
9060         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9061         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9062         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9063         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9064         SET_RESTORE_ROUND.
9065         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9066         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9067         (__cos): Likewise.
9068         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9069         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9070         SET_RESTORE_ROUND_NOEX.
9071         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9072         SET_RESTORE_ROUND_NOEXF.
9073         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9074         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9075         (libc_feholdsetroundf): New.
9076         (libc_feresetround, libc_feresetroundf): New.
9077
9078         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9079         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9080         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9081
9082         * sysdeps/generic/math_private.h: Include <fenv.h>.
9083         (default_libc_feholdexcept): New.
9084         (default_libc_feholdexcept_setround): New.
9085         (default_libc_fesetenv, default_libc_feupdateenv): New.
9086         (libc_feholdexcept): Only define if undefined.
9087         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9088         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9089         (libc_feholdexcept_setroundl): Likewise.
9090         (libc_feholdexcept_setround_53bit): Likewise.
9091         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9092         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9093         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9094         (libc_feupdateenv_53bit): Likewise.
9095         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9096         (libc_feholdexcept): Convert from macro to inline function.
9097         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9098         (libc_fesetenv, libc_feupdateenv): Likewise.
9099
9100         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9101         not previously defined.
9102         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9103         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9104         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9105         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9106         * sysdeps/ieee754/flt-32/math_private.h: New file.
9107         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9108         math_private.h below SET_FLOAT_WORD.
9109         (__isnan, __isinf_ns, __finite): Remove.
9110         (__isnanf, __isinf_nsf, __finitef): Remove.
9111
9112 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9113
9114         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9115
9116 2012-03-17  David S. Miller  <davem@davemloft.net>
9117
9118         [BZ #6471]
9119         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9120         for 2.16.
9121
9122 2012-03-16  David S. Miller  <davem@davemloft.net>
9123
9124         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9125         warnings.
9126
9127         [BZ #6471]
9128         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9129         properly.
9130         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9131         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9132         sysdep_routines when subdir is sysvipc.
9133         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9134         __getshmlba helper.
9135
9136         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9137
9138 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9139
9140         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9141         [__LP64__].
9142
9143 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9144
9145         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9146         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9147         (__lround): Renamed to ...
9148         (__llround): This.  Replace long int with long long int.
9149         Define lround functions as aliases of llround functions.
9150         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9151
9152 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9153
9154         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9155         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9156         adresses to uintptr_t.  Replace "long int" and "unsigned long
9157         int" with "greg_t" on va_arg.
9158
9159 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9160
9161         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9162         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9163
9164         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9165         Move e_machine check before EI_CLASS check.  Handle x32
9166         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9167         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9168         SKIP_EM_IA_64 and include
9169         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9170
9171         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9172         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9173         (add_system_dir): New macro.
9174
9175         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9176         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9177
9178 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9179
9180         [BZ #2551]
9181         [BZ #2552]
9182         [BZ #2553]
9183         [BZ #2554]
9184         [BZ #2562]
9185         [BZ #2563]
9186         [BZ #2565]
9187         [BZ #2566]
9188         [BZ #2576]
9189         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9190         (y0): Likewise.
9191         * math/w_j0f.c (j0f): Likewise.
9192         (y0f): Likewise.
9193         * math/w_j0l.c (__j0l): Likewise.
9194         (__y0l): Likewise.
9195         * math/w_j1.c (j1): Likewise.
9196         (y1): Likewise.
9197         * math/w_j1f.c (j1f): Likewise.
9198         (y1f): Likewise.
9199         * math/w_j1l.c (__j1l): Likewise.
9200         (__y1l): Likewise.
9201         * math/w_jn.c (jn): Likewise.
9202         (yn): Likewise.
9203         * math/w_jnf.c (jnf): Likewise.
9204         (ynf): Likewise.
9205         * math/w_jnl.c (__jnl): Likewise.
9206         (__ynl): Likewise.
9207         * math/libm-test.inc (j0_test): Add more tests.
9208         (j1_test): Likewise.
9209         (jn_test): Likewise.  Add trailing semicolon to existing test.
9210         (y0_test): Likewise.
9211         (y1_test): Likewise.
9212         * sysdeps/i386/fpu/libm-test-ulps: Update.
9213         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9214
9215         [BZ #13851]
9216         [BZ #13854]
9217         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9218         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9219         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9220         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9221         (__tanl): Set errno for infinite argument.
9222         * sysdeps/i386/fpu/mptan.c: Remove.
9223         * sysdeps/i386/fpu/s_tan.S: Likewise.
9224         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9225         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9226         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9227         * math/libm-test.inc (tan_test): Add more tests and enable more
9228         tests for double and long double.
9229         * sysdeps/i386/fpu/libm-test-ulps: Update.
9230         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9231
9232 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9233
9234         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9235         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9236
9237 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9238
9239         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9240         * configure.in: Use it for both main tree and add-ons.
9241         * configure: Regenerated.
9242
9243 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9244
9245         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9246
9247 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9248
9249         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9250         in comment.
9251
9252         [BZ #13851]
9253         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9254         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9255         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9256         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9257         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9258         infinite argument.
9259         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9260         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9261         != 0 for prec == 2.
9262         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9263         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9264         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9265         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9266         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9267         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9268         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9269         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9270         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9271         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9272         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9273         * math/libm-test.inc (cos_test): Add more tests and enable more
9274         tests for long double.
9275         (sin_test): Likewise.
9276         (sincos_test): Likewise.
9277         * sysdeps/i386/fpu/libm-test-ulps: Update.
9278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9279
9280 2012-03-16  David S. Miller  <davem@davemloft.net>
9281
9282         * sysdeps/sparc/fpu/math_private.h: New file.
9283
9284 2012-03-15  David S. Miller  <davem@davemloft.net>
9285
9286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9287         file.
9288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9290         file.
9291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9292         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9293         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9294         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9295         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9296         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9297         sysdep routines.
9298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9299
9300         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9301         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9302
9303         * sysdeps/sparc/sparc-ifunc.h: New file.
9304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9305         sparc-ifunc.h
9306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9308         Likewise.
9309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9310         Likewise.
9311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9315         Likewise.
9316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9321         Likewise.
9322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9323         Likewise.
9324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9328         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9329         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9330         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9331         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9332         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9333         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9334         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9335         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9336         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9337         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9338         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9339         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9340         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9341         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9342         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9343         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9344         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9345         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9346         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9347         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9348
9349 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9350
9351         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9352         scaling.
9353         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9354
9355 2012-03-15  Andreas Jaeger  <aj@suse.de>
9356
9357         [BZ #13852]
9358         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9359         ieee754/flt-32 implementation for sin, cos and sincos.
9360         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9361         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9362         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9363         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9364         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9365         ieee754/flt-32 implementation for tan.
9366
9367         * math/libm-test.inc (cos_test): Enable some large input tests for
9368         float as well
9369         (sin_test): Likewise.
9370         (sincos_test): Likewise.
9371         (tan_test): Add tests for large input.
9372
9373         * sysdeps/i386/fpu/libm-test-ulps: Update.
9374
9375 2012-03-15  Andreas Jaeger  <aj@suse.de>
9376
9377         [BZ #13658]
9378         * math/libm-test.inc (cos_test): Add more test cases.
9379         (sin_test): Likewise.
9380         (sincos_test): Likewise.
9381
9382 2012-03-15  Andreas Jaeger  <aj@suse.de>
9383
9384         [BZ #13837]
9385         * math/libm-test.inc (cos_test): Add a test case for large input
9386         value.
9387         (sin_test): Likewise.
9388         (sincos_test): Likewise.
9389
9390 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9391         Joseph Myers  <joseph@codesourcery.com>
9392
9393         [BZ #13658]
9394         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9395         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9396         * sysdeps/i386/fpu/branred.c: Likewise.
9397         * sysdeps/i386/fpu/dosincos.c: Likewise.
9398         * sysdeps/i386/fpu/mpa.c: Likewise.
9399         * sysdeps/i386/fpu/s_cos.S: Likewise.
9400         * sysdeps/i386/fpu/s_sin.S: Likewise.
9401         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9402         * sysdeps/i386/fpu/sincos32.c: Likewise.
9403
9404         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9405         Define.
9406         (libc_feupdateenv_53bit): Define.
9407         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9408         Define.
9409         (libc_feupdateenv_53bit): Define.
9410
9411         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9412         53 bit (without extend i386 double precision).
9413
9414         * math/libm-test.inc (sincos_test): Add tests for large input.
9415         (sin): Likewise.
9416         (cos): Likewise.
9417
9418         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9419
9420 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9421
9422         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9423
9424 2012-03-15  David S. Miller  <davem@davemloft.net>
9425
9426         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9427         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9428         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9429         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9430         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9431         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9432         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9433         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9434         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9435         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9436         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9437         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9438         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9439         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9440         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9441         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9442         file.
9443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9445         file.
9446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9448         file.
9449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9451         file.
9452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9453         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9454         fmin/fmax sysdep routines.
9455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9456
9457 2012-03-14  David S. Miller  <davem@davemloft.net>
9458
9459         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9460         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9461         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9462         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9463         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9464         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9465         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9466         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9467         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9468         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9469         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9470         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9471         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9472         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9473         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9474         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9475         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9476         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9477         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9478         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9479         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9480         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9481         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9482         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9483         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9484         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9485         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9486         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9487         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9488         routines.
9489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9490         file.
9491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9493         file.
9494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9496         file.
9497         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9499         file.
9500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9502         file.
9503         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9505         file.
9506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9507         file.
9508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9509         file.
9510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9511         file.
9512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9513         New file.
9514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9515         file.
9516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9517         file.
9518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9520         file.
9521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9523         file.
9524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9526         file.
9527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9529         VIS3 routines.
9530
9531         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9532         New file.
9533
9534         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9535
9536         * sysdeps/sparc/configure.in: New file.
9537         * sysdeps/sparc/configure: Generate.
9538         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9539         * configure: Regenerate.
9540         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9541         * config.make.in (have-as-vis3): New.
9542         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9543         available use -Av9d instead of -Av9a.
9544         * sysdeps/sparc/sparc64/Makefile: Likewise.
9545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9547         New file.
9548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9549         file.
9550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9551         New file.
9552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9553         file.
9554         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9555         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9556         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9557         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9558         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9559
9560         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9561         fzeros/fnegs to load 0x80000000 into a float register instead of
9562         using the stack.
9563         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9564
9565 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9566
9567         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9568         bits/syscall.h.
9569         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9570         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9571         ($(inst_includedir)/bits/syscall.h): Remove rule.
9572         ($(objpfx)bits/syscall.d): Include instead of
9573         $(objpfx)syscall-list.d.
9574         (generated): Change syscall-list.h and syscall-list.d to
9575         bits/syscall.h and bits/syscall.d.
9576
9577 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9578
9579         [BZ #13846]
9580         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9581
9582 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9583
9584         [BZ #13841]
9585         * math/s_csqrt.c: Include <float.h>.
9586         (__csqrt): Scale large or subnormal inputs.
9587         * math/s_csqrtf.c: Likewise.
9588         * math/s_csqrtl.c: Likewise.
9589         * math/libm-test.inc (csqrt_test): Add more tests.
9590         * sysdeps/i386/fpu/libm-test-ulps: Update.
9591         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9592
9593         [BZ #13840]
9594         * math/libm-test.inc (hypot_test): Add more tests.
9595
9596 2012-03-13  David S. Miller  <davem@davemloft.net>
9597
9598         [BZ #13840]
9599         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9600         double-precision for the calculation instead of scaling.
9601
9602 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9603
9604         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9605         manipulate bits before adding and subtracting TWO52[sx].
9606         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9607         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9608         Likewise.
9609         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9610
9611 2012-03-13  David S. Miller  <davem@davemloft.net>
9612
9613         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9614         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9615         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9616         rtld-global-offsets.h
9617         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9618
9619         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9620         large parameters.
9621
9622         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9623
9624         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9625         'err' in the ifdef scope in which it is actually used.
9626
9627         * nss/nss_db/db-init.c: Include string.h
9628
9629 2012-03-12  David S. Miller  <davem@davemloft.net>
9630
9631         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9632         masking out of the most significant byte of random value used.
9633         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9634         Fix coding style in previous change.
9635
9636         * sysdeps/unix/sysv/linux/kernel-features.h
9637         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9638         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9639         expression.
9640         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9641         later.
9642
9643 2012-03-11  David S. Miller  <davem@davemloft.net>
9644
9645         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9646         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9647         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9648         for 'resultvar' otherwise things get truncated on 64-bit.
9649
9650         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9651         Fix masking out of the most significant byte of random value used.
9652
9653         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9654
9655 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9656
9657         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9658
9659 2012-03-09  David S. Miller  <davem@davemloft.net>
9660
9661         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9662         variables with appropriate CPP guards.
9663         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9664         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9665         on resulting framesize and the management of the outregs buffer for pltexit.
9666         Preserve floating point return values across _dl_call_pltexit call.
9667         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9668         framesize and the management of the outregs buffer for pltexit.
9669         Preserve floating point return values across _dl_call_pltexit
9670         call.
9671         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9672         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9673         (print_exit): Fix format string for return register value.
9674
9675 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
9676
9677         * sunrpc/Makefile (others): Add rpcgen.
9678         ($(objpfx)rpcgen): Remove special build rule and dependency on
9679         libc.
9680         * sunrpc/rpcgen.c: New file.
9681
9682 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
9683
9684         [BZ #13673]
9685         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
9686         * stdio-common/bug-vfprintf-nargs.c: Likewise.
9687         * sysdeps/i386/crti.S: Likewise.
9688         * sysdeps/i386/crtn.S: Likewise.
9689         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
9690         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
9691         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
9692         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
9693         * sysdeps/sh/crti.S: Likewise.
9694         * sysdeps/sh/crtn.S: Likewise.
9695         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9696
9697         [BZ #13673]
9698         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
9699         with URL.
9700         * locale/programs/locfile-kw.gperf: Likewise.
9701         * locale/programs/charmap-kw.h: Regenerated.
9702         * locale/programs/locfile-kw.h: Likewise.
9703
9704         [BZ #13673]
9705         * intl/plural.y: Replace FSF snail mail address with URL.
9706         * intl/plural.c: Regenerated.
9707
9708 2012-03-09  Richard Henderson  <rth@twiddle.net>
9709
9710         * include/math_private.h: Remove file.
9711         * math/math_private.h: Move file ...
9712         * sysdeps/generic/math_private.h: ... here.
9713
9714         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
9715         * sysdeps/powerpc/fpu/math_private.h: Likewise.
9716         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9717
9718         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
9719         and <math_private.h>.
9720         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9721         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9722         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9723         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9724         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9725         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
9726         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9727         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9728         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9729         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9730         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9731         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9732         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9733         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9734         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9735         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9736         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9737         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9738         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9739         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9740         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9741         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9742         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9743         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9744         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9745         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9746         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9747         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9748         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9749         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9750         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9751         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9752         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9753         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9754         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9755         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9756         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9757         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9758         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9759         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9760         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
9761         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9762         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9763         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
9764         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
9765         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9766         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9767         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9768         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9769         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
9770         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9771         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9772         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
9773         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9774         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
9775         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9776         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9777         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
9778         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
9779         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
9780         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9781         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9782         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9783         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
9784         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9785         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9786         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9787         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9788         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
9789         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
9790         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9791         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9792         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9793         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9794         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
9795         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
9796         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
9797         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9798         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
9799         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9800         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9801         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9802         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9803         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9804         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9805         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
9806         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
9807         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9808         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9809         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9810         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9811         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9812         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9813         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9814         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9815         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9816         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9817         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9818         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9819         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9820         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9821         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9822         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9823         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9824         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9825         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9826         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9827         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9828         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9829         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9830         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9831         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9832         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9833         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9834         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9835         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9836         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9837         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
9838         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9839         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9840         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
9841         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
9842         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9843         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
9844         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
9845         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
9846         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
9847         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
9848         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
9849         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9850         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9851         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9852         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
9853         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9854         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9855         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9856         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9857         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
9858         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
9859         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9860         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9861         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9862         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9863         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
9864         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
9865         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
9866         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
9867         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9868         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9869         * sysdeps/ieee754/k_standard.c: Likewise.
9870         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9871         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9872         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9873         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9874         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9875         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9876         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9877         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9878         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9879         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9880         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9881         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9882         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9883         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9884         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9885         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9886         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
9887         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9888         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9889         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
9890         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
9891         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
9892         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9893         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9894         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
9895         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
9896         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9897         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9898         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
9899         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9900         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
9901         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
9902         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9903         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9904         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
9905         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9906         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9907         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
9908         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
9909         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9910         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9911         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9912         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
9913         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9914         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9915         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9916         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9917         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9918         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9919         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9920         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9921         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
9922         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9923         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9924         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9925         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9926         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
9927         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
9928         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9929         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9930         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9931         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9932         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9933         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9934         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9935         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9936         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9937         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9938         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9939         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9940         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9941         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9942         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9943         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9944         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9945         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9946         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
9947         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9948         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9949         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
9950         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
9951         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
9952         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9953         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9954         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
9955         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9956         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9957         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
9958         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9959         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9960         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
9961         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9962         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
9963         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
9964         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9965         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9966         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
9967         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
9968         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
9969         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
9970         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9971         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9972         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9973         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9974         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
9975         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9976         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9977         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
9978         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
9979         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9980         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9981         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9982         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9983         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9984         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9985         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9986         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9987         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9988         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9989         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9990         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9991         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9992         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9993         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9994         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9995         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9996         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9997         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9998         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9999         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10000         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10001         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10002         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10003         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10004         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10005         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10006         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10007         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10008         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10009         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10010         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10011         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10012         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10013         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10014         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10015         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10016         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10017         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10018         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10019         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10020         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10021         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10022         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10023         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10024         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10025         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10026         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10027         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10028         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10029         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10030         * sysdeps/ieee754/s_lib_version.c: Likewise.
10031         * sysdeps/ieee754/s_matherr.c: Likewise.
10032         * sysdeps/ieee754/s_signgam.c: Likewise.
10033         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10034         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10035         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10036         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10037         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10038         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10039         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10040         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10041         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10042         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10043         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10044         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10045         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10046         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10047         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10048         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10049         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10050         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10051         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10052         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10053         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10054
10055 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10056
10057         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10058         * sunrpc/rpc_main.c: Likewise.
10059         * sunrpc/rpc_svcout.c: Likewise.
10060
10061 2012-03-09  David S. Miller  <davem@davemloft.net>
10062
10063         * include/math_private.h: New file.
10064
10065 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10066
10067         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10068         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10069         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10070         from <bits/socket_type.h>.
10071         (enum __socket_type): Don't define here.
10072         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10073         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10074         bits/socket_type.h.
10075
10076         [BZ #13566]
10077         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10078         checking __USE_GNU.
10079
10080         * Makerules ($(inst_includedir)/%.h): New rule.
10081         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10082         (install-others): Remove variable setting.
10083         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10084
10085 2012-03-08  Richard Henderson  <rth@twiddle.net>
10086
10087         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10088         from macro to inline function; merge with the
10089         !__LIBC_INTERNAL_MATH_INLINES version.
10090         (__ieee754_sqrtf): Likewise.
10091
10092         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10093         to inline function.
10094         (__rintf, __floor, __floorf): Likewise.
10095
10096         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10097         macro to inline function.
10098         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10099
10100         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10101         not <math/math_private.h>.
10102
10103 2012-03-08  David S. Miller  <davem@davemloft.net>
10104
10105         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10106         copyright year.
10107         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10108
10109 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10110
10111         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10112         normalization.
10113         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10114         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10115
10116 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10117
10118         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10119         be defined individually, they must be defined as a block.  Define
10120         S for printing a string instead of hidint the different by using a
10121         macro for adding the 'l'.
10122         * stdio-common/tst-fphex-wide.c: Adjust.
10123
10124 2012-03-07  Marek Polacek  <polacek@redhat.com>
10125
10126         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10127
10128 2012-03-08  Marek Polacek  <polacek@redhat.com>
10129
10130         [BZ #13806]
10131         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10132         * stdio-common/tst-fphex.c: Define a few macros to make the
10133         test reusable.  Use them.
10134         * stdio-common/tst-fphex-wide.c: New file.
10135
10136 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10137
10138         [BZ #6911]
10139         * manual/macros.texi (gnusystems): New macro.
10140         (nongnusystems): Likewise.
10141         (gnulinuxhurdsystems): Likewise.
10142         (gnuhurdsystems): Likewise..
10143         (gnulinuxsystems): Likewise.
10144         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10145         variants of the GNU system, not "GNU system".
10146         * manual/conf.texi: Likewise.
10147         * manual/errno.texi: Likewise.  Update example of errno macro
10148         expansion.
10149         * manual/filesys.texi: Likewise.
10150         (getumask): Document as specific to GNU/Hurd.
10151         * manual/install.texi: Likewise.  Reword some references to
10152         GNU/Linux.
10153         * manual/intro.texi: Likewise.
10154         * manual/io.texi: Likewise.
10155         (File Name Portability): Detail which constraints are inapplicable
10156         to all GNU systems and which are only inapplicable to GNU/Hurd.
10157         * manual/job.texi: Likewise.
10158         * manual/llio.texi: Likewise.
10159         (O_NOCTTY): Document as present on GNU/Linux.
10160         * manual/maint.texi: Likewise.
10161         * manual/memory.texi: Likewise.
10162         * manual/pattern.texi: Likewise.
10163         * manual/pipe.texi: Likewise.
10164         * manual/process.texi: Likewise.
10165         * manual/resource.texi: Likewise.
10166         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10167         child on GNU/Hurd.
10168         * manual/setjmp.texi: Likewise.
10169         * manual/signal.texi: Likewise.
10170         * manual/startup.texi: Likewise.
10171         * manual/stdio.texi: Likewise.
10172         * manual/terminal.texi: Likewise.
10173         (ONLCR): Document as POSIX.
10174         (OXTABS): Document availability on GNU/Linux as XTABS.
10175         (ONOEOT): Document availability separately from other bits.
10176         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10177         * manual/time.texi: Likewise.
10178         * manual/users.texi: Likewise.
10179         * INSTALL: Regenerated.
10180         * sysdeps/gnu/errlist.c: Regenerated.
10181
10182         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10183         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10184         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10185         puts.
10186         * configure: Regenerated.
10187
10188 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10189
10190         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10191         default includes instead of AC_HEADER_CHECK.
10192         * sysdeps/i386/configure: Regenerated.
10193
10194         [BZ #10716]
10195         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10196         * math/s_cacoshf.c (__cacoshf): Likewise.
10197         * math/s_cacoshl.c (__cacoshl): Likewise.
10198         * math/s_casinh.c (__casinh): Set signs of result from argument.
10199         * math/s_casinhf.c (__casinhf): Likewise.
10200         * math/s_casinhl.c (__casinhl): Likewise.
10201         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10202         (casinh_test): Add more tests.
10203         * sysdeps/i386/fpu/libm-test-ulps: Update.
10204         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10205
10206 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10207
10208         * po/zh_TW.po: Update from translation team.
10209
10210         * login/Makefile (distribute): Remove variable.
10211         * catgets/Makefile: Likewise.
10212         * mach/Makefile: Likewise.
10213         * malloc/Makefile: Likewise.
10214         * misc/Makefile: Likewise.
10215         * iconv/Makefile: Likewise.
10216         * nscd/Makefile: Likewise.
10217         * hurd/Makefile: Likewise.
10218         * manual/Makefile: Likewise.
10219         * locale/Makefile: Likewise.
10220         * intl/Makefile: Likewise.
10221         * conform/Makefile: Likewise.
10222         * nss/Makefile: Likewise.
10223         * time/Makefile: Likewise.
10224         * soft-fp/Makefile: Likewise.
10225         * dirent/Makefile: Likewise.
10226         * gmon/Makefile: Likewise.
10227         * po/Makefile: Likewise.
10228         * rt/Makefile: Likewise.
10229         * socket/Makefile: Likewise.
10230         * math/Makefile: Likewise.
10231         * signal/Makefile: Likewise.
10232         * debug/Makefile: Likewise.
10233         * elf/Makefile: Likewise.
10234         * timezone/Makefile: Likewise.
10235         * stdlib/Makefile: Likewise.
10236         * iconvdata/Makefile: Likewise.
10237         * sunrpc/Makefile: Likewise.
10238         * io/Makefile: Likewise.
10239         * argp/Makefile: Likewise.
10240         * inet/Makefile: Likewise.
10241         * hesiod/Makefile: Likewise.
10242         * grp/Makefile: Likewise.
10243         * csu/Makefile: Likewise.
10244         * wctype/Makefile: Likewise.
10245         * crypt/Makefile: Likewise.
10246         * libio/Makefile: Likewise.
10247         * string/Makefile: Likewise.
10248         * nis/Makefile: Likewise.
10249         * resolv/Makefile: Likewise.
10250         * stdio-common/Makefile: Likewise.
10251         * wcsmbs/Makefile: Likewise.
10252         * dlfcn/Makefile: Likewise.
10253         * posix/Makefile: Likewise.
10254
10255         [BZ #6959]
10256         * timezone/Makefile: Don't install timezone files, just the programs
10257         and scripts.
10258
10259 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10260
10261         * nss/databases.def: Add missing gshadow entry.
10262
10263         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10264
10265 2012-03-06  Marek Polacek  <polacek@redhat.com>
10266
10267         [BZ #13726]
10268         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10269         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10270         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10271         * stdio-common/tst-long-dbl-fphex.c: New file.
10272
10273 2012-03-06  David S. Miller  <davem@davemloft.net>
10274
10275         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10276         (set_obp_int): New function.
10277         (get_obp_int): New function.
10278         (__get_clockfreq_via_dev_openprom): Likewise.
10279         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10280         Avoid unused variable warnings on 'val' and use builtin_expect.
10281         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10282         __builtin_expect.
10283         (INLINE_CLONE_SYSCALL): Likewise.
10284
10285 2012-03-05  David S. Miller  <davem@davemloft.net>
10286
10287         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10288
10289 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10290
10291         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10292
10293         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10294         only for |x| >= 40.
10295         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10296
10297 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10298
10299         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10300         Replace gettimeofday with __vdso_gettimeofday.
10301
10302         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10303         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10304         __vdso_clock_gettime and __vdso_getcpu.
10305
10306         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10307         time with __vdso_time.
10308
10309 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10310
10311         * manual/lang.texi (size_t): Note types to which size_t may be
10312         equivalent with the GNU C Library, but do not describe when
10313         differences between them are significant.
10314
10315 2012-03-05  Andreas Jaeger  <aj@suse.de>
10316
10317         * sysdeps/i386/fpu/libm-test-ulps: Update.
10318
10319 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10320
10321         [BZ #3976]
10322         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10323         (__ieee754_pow): Save and restore rounding mode and use
10324         round-to-nearest for main computations.
10325         * math/libm-test.inc (pow_test_tonearest): New function.
10326         (pow_test_towardzero): Likewise.
10327         (pow_test_downward): Likewise.
10328         (pow_test_upward): Likewise.
10329         (main): Call the new functions.
10330         * sysdeps/i386/fpu/libm-test-ulps: Update.
10331         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10332
10333         [BZ #3976]
10334         * math/libm-test.inc (cosh_test_tonearest): New function.
10335         (cosh_test_towardzero): Likewise.
10336         (cosh_test_downward): Likewise.
10337         (cosh_test_upward): Likewise.
10338         (sinh_test_tonearest): Likewise.
10339         (sinh_test_towardzero): Likewise.
10340         (sinh_test_downward): Likewise.
10341         (sinh_test_upward): Likewise.
10342         (main): Call the new functions.
10343         * sysdeps/i386/fpu/libm-test-ulps: Update.
10344         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10345
10346 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10347
10348         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10349         default stack guard is set in last bytes.
10350         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10351
10352 2012-03-05  Kees Cook  <keescook@chromium.org>
10353
10354         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10355
10356         [BZ #13656]
10357         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10358         possibly allocate from heap instead of stack.
10359         * stdio-common/bug-vfprintf-nargs.c: New file.
10360         * stdio-common/Makefile (tests): Add nargs overflow test.
10361
10362 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10363
10364         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10365
10366 2012-03-03  Marek Polacek  <polacek@redhat.com>
10367
10368         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10369         * math/math_private.h: Likewise.
10370         * stdlib/tst-strtod.c: Likewise.
10371         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10372         * sysdeps/x86_64/bits/atomic.h: Likewise.
10373
10374 2012-03-02  David S. Miller  <davem@davemloft.net>
10375
10376         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10377         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10378         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10379         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10380         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10381         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10382         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10383         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10384
10385 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10386
10387         [BZ #13792]
10388         * manual/examples/README: New file, says the example source files
10389         can be used under GPL>=2.
10390         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10391         line containing just "*/".
10392         * manual/examples/add.c: Add copyright header (GPL>=2).
10393         * manual/examples/argp-ex1.c: Likewise.
10394         * manual/examples/argp-ex2.c: Likewise.
10395         * manual/examples/argp-ex3.c: Likewise.
10396         * manual/examples/argp-ex4.c: Likewise.
10397         * manual/examples/atexit.c: Likewise.
10398         * manual/examples/db.c: Likewise.
10399         * manual/examples/dir.c: Likewise.
10400         * manual/examples/dir2.c: Likewise.
10401         * manual/examples/execinfo.c: Likewise.
10402         * manual/examples/filecli.c: Likewise.
10403         * manual/examples/filesrv.c: Likewise.
10404         * manual/examples/fmtmsgexpl.c: Likewise.
10405         * manual/examples/genpass.c: Likewise.
10406         * manual/examples/inetcli.c: Likewise.
10407         * manual/examples/inetsrv.c: Likewise.
10408         * manual/examples/isockad.c: Likewise.
10409         * manual/examples/longopt.c: Likewise.
10410         * manual/examples/memopen.c: Likewise.
10411         * manual/examples/memstrm.c: Likewise.
10412         * manual/examples/mkfsock.c: Likewise.
10413         * manual/examples/mkisock.c: Likewise.
10414         * manual/examples/mygetpass.c: Likewise.
10415         * manual/examples/pipe.c: Likewise.
10416         * manual/examples/popen.c: Likewise.
10417         * manual/examples/rprintf.c: Likewise.
10418         * manual/examples/search.c: Likewise.
10419         * manual/examples/select.c: Likewise.
10420         * manual/examples/setjmp.c: Likewise.
10421         * manual/examples/sigh1.c: Likewise.
10422         * manual/examples/sigusr.c: Likewise.
10423         * manual/examples/stpcpy.c: Likewise.
10424         * manual/examples/strdupa.c: Likewise.
10425         * manual/examples/strftim.c: Likewise.
10426         * manual/examples/strncat.c: Likewise.
10427         * manual/examples/subopt.c: Likewise.
10428         * manual/examples/swapcontext.c: Likewise.
10429         * manual/examples/termios.c: Likewise.
10430         * manual/examples/testopt.c: Likewise.
10431         * manual/examples/testpass.c: Likewise.
10432         * manual/examples/timeval_subtract.c: Likewise.
10433
10434         [BZ #13792]
10435         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10436         function to ...
10437         * manual/timeval_subtract.c.texi: ... here, new file.
10438
10439 2012-03-02  David S. Miller  <davem@davemloft.net>
10440
10441         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10442
10443 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10444
10445         [BZ #3976]
10446         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10447         (__sin): Save and restore rounding mode and use round-to-nearest
10448         for all computations.
10449         (__cos): Save and restore rounding mode and use round-to-nearest
10450         for all computations.
10451         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10452         <fenv.h>.
10453         (tan): Save and restore rounding mode and use round-to-nearest for
10454         all computations.
10455         * math/libm-test.inc (cos_test_tonearest): New function.
10456         (cos_test_towardzero): Likewise.
10457         (cos_test_downward): Likewise.
10458         (cos_test_upward): Likewise.
10459         (sin_test_tonearest): Likewise.
10460         (sin_test_towardzero): Likewise.
10461         (sin_test_downward): Likewise.
10462         (sin_test_upward): Likewise.
10463         (tan_test_tonearest): Likewise.
10464         (tan_test_towardzero): Likewise.
10465         (tan_test_downward): Likewise.
10466         (tan_test_upward): Likewise.
10467         (main): Call the new functions.
10468         * sysdeps/i386/fpu/libm-test-ulps: Update.
10469         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10470
10471         [BZ #10135]
10472         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10473         small n, then large n, before computing and testing k+n.
10474         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10475         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10476         Likewise.
10477         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10478         Likewise.
10479         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10480         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10481         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10482         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10483         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10484         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10485         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10486         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10487         * math/libm-test.inc (scalbn_test): Add more tests.
10488         (scalbln_test): Likewise.
10489
10490         * manual/filesys.texi (mode_t): Describe constraints on size and
10491         signedness, not exact equivalence to a particular type.
10492         (ino_t): Likewise.
10493         (ino64_t): Likewise.
10494         (dev_t): Likewise.
10495         (nlink_t): Likewise.
10496         (blkcnt_t): Likewise.
10497         (blkcnt64_t): Likewise.
10498         * manual/llio.texi (off_t): Likewise.
10499
10500         [BZ #3976]
10501         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10502         (__ieee754_exp): Save and restore rounding mode and use
10503         round-to-nearest for all computations.
10504         * math/libm-test.inc (exp_test_tonearest): New function.
10505         (exp_test_towardzero): Likewise.
10506         (exp_test_downward): Likewise.
10507         (exp_test_upward): Likewise.
10508         (main): Call the new functions.
10509         * sysdeps/i386/fpu/libm-test-ulps: Update.
10510         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10511
10512 2012-03-01  Chris Demetriou  <cgd@google.com>
10513
10514         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10515         have predictable order.
10516
10517 2012-03-01  David S. Miller  <davem@davemloft.net>
10518
10519         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10520
10521         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10522         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10523         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10524         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10525
10526         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10527         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10528         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10529         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10530         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10531         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10532         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10533         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10534         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10535
10536         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10537
10538         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10539         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10540         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10541
10542         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10543         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10544         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10545         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10546         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10547         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10548         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10549         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10550         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10551         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10552         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10553         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10554         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10555         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10556         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10557         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10558         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10559         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10560         * sysdeps/sparc/elf/configure: Regenerated.
10561
10562 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10563
10564         * configure.in (AS, LD): Require binutils 2.20 or later.
10565         * configure: Regenerated.
10566         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10567         as required minimum version.
10568         * INSTALL: Regenerated.
10569
10570         [BZ #2541]
10571         [BZ #4108]
10572         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10573         before squaring exponent.
10574         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10575         bottom long double and 27 bits of top long double before squaring
10576         exponent.
10577         * math/libm-test.inc (erfc_test): Add more tests.
10578         * sysdeps/i386/fpu/libm-test-ulps: Update.
10579         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10580         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10581
10582 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10583
10584         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10585         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10586         containing bit-fields.
10587         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10588         * soft-fp/single.h (_FP_UNION_S): Likewise.
10589         * soft-fp/double.h (_FP_UNION_D): Likewise.
10590
10591 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10592
10593         [BZ #13786]
10594         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10595         not include ../strcmp.S.
10596         [USE_AS_STRNCASECMP_L]: Likewise.
10597         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10598         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10599         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10600         (__strncasecmp_l_ia32): Define as alias to
10601         __strncasecmp_l_nonascii.
10602
10603         [BZ #5794]
10604         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10605         * sysdeps/i386/fpu/libm-test-ulps: Update.
10606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10607
10608         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10609         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10610
10611 2012-02-29  Jeff Law  <law@redhat.com>
10612
10613         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10614         out of bounds read.
10615
10616 2012-02-29  Marek Polacek  <polacek@redhat.com>
10617
10618         [BZ #13706]
10619         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10620         * elf/Makefile: Add rules to run tst-unused-dep.out.
10621
10622 2012-02-28  David S. Miller  <davem@davemloft.net>
10623
10624         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10625         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10626         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10627         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10628         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10629         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10630
10631 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10632
10633         * math/libm-test.inc (llround_test): Move one test from
10634         lround_test.  Use TEST_f_L in moved test.
10635         (lround_test): Move misplaced test to llround_test.  Add testcase
10636         from bug 2561.
10637
10638 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10639
10640         * sysdeps/x86_64/fpu/e_expf.S: New file.
10641         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10642
10643 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10644
10645         [BZ #13637]
10646         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10647         of remain_len that may cause incomplete multi-byte character and
10648         false match.
10649         * posix/bug-regex33.c: New file.
10650         * posix/Makefile (tests): Add bug-regex33.
10651
10652 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10653
10654         * manual/macros.texi: New file.
10655         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10656         * manual/libc.texinfo: Include macros.texi.
10657         * manual/creatute.texi: Likewise.
10658         * manual/install.texi: Likewise.
10659         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10660         @glibcadj{} in references to the GNU C Library.
10661         * manual/charset.texi: Likewise.
10662         * manual/conf.texi: Likewise.
10663         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10664         when not using those macros.
10665         * manual/creature.texi: Likewise.
10666         * manual/crypt.texi: Likewise.
10667         * manual/errno.texi: Likewise.
10668         * manual/filesys.texi: Likewise.
10669         * manual/header.texi: Likewise.
10670         * manual/install.texi: Likewise.
10671         * manual/intro.texi: Likewise.
10672         * manual/io.texi: Likewise.
10673         * manual/job.texi: Likewise.
10674         * manual/lang.texi: Likewise.
10675         * manual/libc.texiinfo: Likewise.
10676         * manual/llio.texi: Likewise.
10677         * manual/locale.texi: Likewise.
10678         * manual/maint.texi: Likewise.
10679         * manual/math.texi: Likewise.
10680         * manual/memory.texi: Likewise.
10681         * manual/message.texi: Likewise.
10682         * manual/nss.texi: Likewise.
10683         * manual/pattern.texi: Likewise.
10684         * manual/process.texi: Likewise.
10685         * manual/resource.texi: Likewise.
10686         * manual/search.texi: Likewise.
10687         * manual/setjmp.texi: Likewise.
10688         * manual/signal.texi: Likewise.
10689         * manual/socket.texi: Likewise.
10690         * manual/startup.texi: Likewise.
10691         * manual/stdio.texi: Likewise.
10692         * manual/string.texi: Likewise.
10693         * manual/sysinfo.texi: Likewise.
10694         * manual/syslog.texi: Likewise.
10695         * manual/terminal.texi: Likewise.
10696         * manual/time.texi: Likewise.
10697         * manual/users.texi: Likewise.
10698         * INSTALL: Regenerated.
10699         * NOTES: Regenerated.
10700         * sysdeps/gnu/errlist.c: Regenerated.
10701
10702 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
10703
10704         * include/dirent.h: Include <dirstream.h> before
10705         <dirent/dirent.h>.
10706
10707 2012-02-28  David S. Miller  <davem@davemloft.net>
10708
10709         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
10710         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
10711         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
10712         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
10713
10714 2012-02-27  David S. Miller  <davem@davemloft.net>
10715
10716         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
10717         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
10718         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
10719         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
10720
10721         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
10722         frame pointer instead of stack pointer relative arg slot.
10723         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10724         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10725         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10726
10727 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
10728
10729         [BZ #3992]
10730         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
10731
10732 2012-02-27  David S. Miller  <davem@davemloft.net>
10733
10734         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
10735         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10736         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10737         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
10738         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10739         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10740         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
10741         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
10742
10743 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10744
10745         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
10746         later.  Allow versions 5-9.
10747         * configure: Regenerated.
10748         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
10749         required minimum version and 4.6 as recommended version.  Do not
10750         mention bugs in GCC 2.7 and 2.8.
10751         * INSTALL: Regenerated.
10752
10753 2012-02-27  David S. Miller  <davem@davemloft.net>
10754
10755         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
10756         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
10757         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
10758         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
10759         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
10760         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
10761         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
10762         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
10763
10764         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
10765         manipulate bits before adding and subtracting TWO112[sx].
10766         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10767
10768 2012-02-27  Roland McGrath  <roland@hack.frob.com>
10769
10770         [BZ #13775]
10771         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
10772         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
10773         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
10774         being in POSIX, because they are in 1003.1-2008.
10775
10776         * rt/tst-aio.c: Include <fcntl.h>.
10777         * rt/tst-aio7.c: Likewise.
10778         * rt/tst-aio64.c: Likewise.
10779
10780         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
10781
10782 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10783
10784         * manual/install.texi (--with-headers): Describe headers as
10785         interface headers, not private headers.
10786         (Specific advice for GNU/Linux systems): Describe use of headers
10787         from "make headers_install", not private headers from older
10788         kernels.
10789         * INSTALL: Regenerated.
10790         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
10791         Change to 2.6.19.
10792         * sysdeps/unix/sysv/linux/configure: Regenerated.
10793
10794         * manual/llio.texi (fclean): Remove documentation.
10795
10796         * manual/Makefile (libc-texi-generated): New variable.  Include
10797         version.texi.
10798         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
10799         $(libc-texi-generated), not duplicated list of files.
10800         (version.texi, stamp-version): New rules.
10801         (realclean): Remove $(libc-texi-generated), not individual files
10802         from that list.  Do not remove dir-add.texinfo.
10803         * manual/libc.texinfo: Comment out uses of edition numbers and
10804         references to printed manual.  Remove last-updated dates.
10805         (EDITION): Comment out.
10806         (ISBN): Likewise.
10807         (VERSION, UPDATED): Remove.
10808         (version.texi): Include.
10809
10810 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
10811
10812         * sysdeps/posix/spawni.c: Include <signal.h>.
10813         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
10814         * sysdeps/pthread/aio_fsync.c: Likewise.
10815
10816 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
10817
10818         * conform/Makefile (tests): Run only when not cross-compiling and
10819         when fast-check is not defined.
10820
10821         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
10822         * conform/data/limits.h-data: Fixes for POSIX2008.
10823         * conform/run-conformtest.sh: Run all tests.
10824         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
10825         headers.
10826         * include/bits/dlfcn.h: Likewise.
10827         * include/langinfo.h: Likewise.
10828         * include/monetary.h: Likewise.
10829         * include/sys/poll.h: Likewise.
10830
10831         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
10832         for __USE_GNU.
10833         * posix/spawn.h: Define __need_sigset_t.
10834         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
10835         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
10836         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
10837         to get sigevent_t only.
10838         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
10839         only for __USE_GNU.
10840         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10841         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10842         process_vm_writev only for __USE_GNU.
10843         * termios/termios.h: Declare tcgetsid also for POSIX2008.
10844
10845         * conform/Makefile: For now ignore errors from run-conformtest.
10846         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
10847         POSIX to avoid namespace pollution.  Don't prepend headers.
10848         * conform/data/aio.h-data: Fixes for POSIX testing.
10849         * conform/data/fcntl.h-data: Likewise.
10850         * conform/data/glob.h-data: Likewise.
10851         * conform/data/grp.h-data: Likewise.
10852         * conform/data/pthread.h-data: Likewise.
10853         * conform/data/pwd.h-data: Likewise.
10854         * conform/data/signal.h-data: Likewise.
10855         * conform/data/spawn.h-data: Likewise.
10856         * conform/data/stdio.h-data: Likewise.
10857         * conform/data/stdlib.h-data: Likewise.
10858         * conform/data/stropts.h-data: Likewise.
10859         * conform/data/sys/mman.h-data: Likewise.
10860         * conform/data/sys/stat.h-data: Likewise.
10861         * conform/data/sys/types.h-data: Likewise.
10862         * conform/data/sys/wait.h-data: Likewise.
10863         * conform/data/time.h-data: Likewise.
10864         * conform/data/unistd.h-data: Likewise.
10865         * conform/data/utime.h-data: Likewise.
10866
10867         * io/sys/stat.h: fchmod was always in POSIX.
10868         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
10869         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
10870         * rt/aio.h: Define __need_timespec before including <time.h>.
10871         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
10872         struct.  Add forward declaration of pthread_attr_t and use it in
10873         sigevent.
10874         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10875         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10876         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
10877         always remove CLK_TCK definition.
10878
10879 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
10880
10881         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
10882
10883 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
10884
10885         * conform/run-conformtest.sh: New file.
10886         * conform/Makefile: Run run-conformtest for tests.
10887         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
10888         support.
10889
10890         * conform/data/uchar.h-data: New file.
10891         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
10892         * conform/data/arpa/inet.h-data: Likewise.
10893         * conform/data/assert.h-data: Likewise.
10894         * conform/data/complex.h-data: Likewise.
10895         * conform/data/cpio.h-data: Likewise.
10896         * conform/data/ctype.h-data: Likewise.
10897         * conform/data/dirent.h-data: Likewise.
10898         * conform/data/dlfcn.h-data: Likewise.
10899         * conform/data/errno.h-data: Likewise.
10900         * conform/data/fcntl.h-data: Likewise.
10901         * conform/data/float.h-data: Likewise.
10902         * conform/data/fmtmsg.h-data: Likewise.
10903         * conform/data/fnmatch.h-data: Likewise.
10904         * conform/data/ftw.h-data: Likewise.
10905         * conform/data/glob.h-data: Likewise.
10906         * conform/data/grp.h-data: Likewise.
10907         * conform/data/iconv.h-data: Likewise.
10908         * conform/data/inttypes.h-data: Likewise.
10909         * conform/data/langinfo.h-data: Likewise.
10910         * conform/data/libgen.h-data: Likewise.
10911         * conform/data/limits.h-data: Likewise.
10912         * conform/data/locale.h-data: Likewise.
10913         * conform/data/math.h-data: Likewise.
10914         * conform/data/monetary.h-data: Likewise.
10915         * conform/data/mqueue.h-data: Likewise.
10916         * conform/data/ndbm.h-data: Likewise.
10917         * conform/data/net/if.h-data: Likewise.
10918         * conform/data/netdb.h-data: Likewise.
10919         * conform/data/netinet/in.h-data: Likewise.
10920         * conform/data/nl_types.h-data: Likewise.
10921         * conform/data/poll.h-data: Likewise.
10922         * conform/data/pthread.h-data: Likewise.
10923         * conform/data/pwd.h-data: Likewise.
10924         * conform/data/regex.h-data: Likewise.
10925         * conform/data/sched.h-data: Likewise.
10926         * conform/data/search.h-data: Likewise.
10927         * conform/data/semaphore.h-data: Likewise.
10928         * conform/data/setjmp.h-data: Likewise.
10929         * conform/data/signal.h-data: Likewise.
10930         * conform/data/spawn.h-data: Likewise.
10931         * conform/data/stdarg.h-data: Likewise.
10932         * conform/data/stdio.h-data: Likewise.
10933         * conform/data/stdlib.h-data: Likewise.
10934         * conform/data/string.h-data: Likewise.
10935         * conform/data/strings.h-data: Likewise.
10936         * conform/data/stropts.h-data: Likewise.
10937         * conform/data/sys/ipc.h-data: Likewise.
10938         * conform/data/sys/mman.h-data: Likewise.
10939         * conform/data/sys/msg.h-data: Likewise.
10940         * conform/data/sys/resource.h-data: Likewise.
10941         * conform/data/sys/select.h-data: Likewise.
10942         * conform/data/sys/sem.h-data: Likewise.
10943         * conform/data/sys/shm.h-data: Likewise.
10944         * conform/data/sys/socket.h-data: Likewise.
10945         * conform/data/sys/stat.h-data: Likewise.
10946         * conform/data/sys/statvfs.h-data: Likewise.
10947         * conform/data/sys/time.h-data: Likewise.
10948         * conform/data/sys/timeb.h-data: Likewise.
10949         * conform/data/sys/times.h-data: Likewise.
10950         * conform/data/sys/types.h-data: Likewise.
10951         * conform/data/sys/uio.h-data: Likewise.
10952         * conform/data/sys/un.h-data: Likewise.
10953         * conform/data/sys/utsname.h-data: Likewise.
10954         * conform/data/sys/wait.h-data: Likewise.
10955         * conform/data/syslog.h-data: Likewise.
10956         * conform/data/tar.h-data: Likewise.
10957         * conform/data/termios.h-data: Likewise.
10958         * conform/data/utime.h-data: Likewise.
10959         * conform/data/utmpx.h-data: Likewise.
10960         * conform/data/varargs.h-data: Likewise.
10961         * conform/data/wchar.h-data: Likewise.
10962         * conform/data/wctype.h-data: Likewise.
10963         * conform/data/wordexp.h-data: Likewise.
10964
10965         * include/stropts.h: New file.
10966         * include/uchar.h: New file.
10967         * include/aio.h: Changes to allow conformtest.pl to use the headers.
10968         * include/assert.h: Likewise.
10969         * include/ctype.h: Likewise.
10970         * include/dirent.h: Likewise.
10971         * include/dlfcn.h: Likewise.
10972         * include/fcntl.h: Likewise.
10973         * include/fnmatch.h: Likewise.
10974         * include/glob.h: Likewise.
10975         * include/grp.h: Likewise.
10976         * include/libio.h: Likewise.
10977         * include/locale.h: Likewise.
10978         * include/math.h: Likewise.
10979         * include/net/if.h: Likewise.
10980         * include/netdb.h: Likewise.
10981         * include/netinet/in.h: Likewise.
10982         * include/pthread.h: Likewise.
10983         * include/pwd.h: Likewise.
10984         * include/regex.h: Likewise.
10985         * include/sched.h: Likewise.
10986         * include/search.h: Likewise.
10987         * include/setjmp.h: Likewise.
10988         * include/signal.h: Likewise.
10989         * include/stdio.h: Likewise.
10990         * include/stdlib.h: Likewise.
10991         * include/string.h: Likewise.
10992         * include/sys/cdefs.h: Likewise.
10993         * include/sys/mman.h: Likewise.
10994         * include/sys/msg.h: Likewise.
10995         * include/sys/resource.h: Likewise.
10996         * include/sys/select.h: Likewise.
10997         * include/sys/socket.h: Likewise.
10998         * include/sys/stat.h: Likewise.
10999         * include/sys/statvfs.h: Likewise.
11000         * include/sys/time.h: Likewise.
11001         * include/sys/times.h: Likewise.
11002         * include/sys/uio.h: Likewise.
11003         * include/sys/utsname.h: Likewise.
11004         * include/sys/wait.h: Likewise.
11005         * include/termios.h: Likewise.
11006         * include/time.h: Likewise.
11007         * include/ulimit.h: Likewise.
11008         * include/unistd.h: Likewise.
11009         * include/utime.h: Likewise.
11010         * include/wchar.h: Likewise.
11011         * include/wctype.h: Likewise.
11012         * include/wordexp.h: Likewise.
11013
11014         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11015
11016         * time/time.h: TIME_UTC must be a macro.
11017         Make timespec_get available for ISO C11 only as well.
11018
11019 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11020
11021         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11022         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11023
11024 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11025
11026         * configure.in: Use -o not -a in test for unsupported multi-arch.
11027
11028 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11029
11030         * manual/texinfo.tex: Update to version 2012-01-19.16.
11031
11032 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11033
11034         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11035
11036 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11037
11038         [BZ #13738]
11039         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11040         * manual/fdl-1.3.texi: New file.
11041         * manual/fdl-1.1.texi: File removed.
11042
11043         [BZ #13738]
11044         * manual/libc.texinfo (FDL_VERSION): New @set.
11045         Use it for mention of FDL in cover text.
11046         (Documentation License): Use it in @include file name.
11047
11048 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11049             Roland McGrath  <roland@hack.frob.com>
11050
11051         [BZ #5461]
11052         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11053         not LONG_LONG_MAX and LONG_LONG_MIN.
11054         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11055         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11056         name.
11057         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11058
11059 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11060
11061         [BZ #2547]
11062         [BZ #11365]
11063         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11064         manipulate bits before adding and subtracting TWO23[sx].
11065         * math/libm-test.inc (nearbyint_test): Add more tests.
11066
11067 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11068
11069         [BZ #2548]
11070         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11071         bits before adding and subtracting TWO23[sx].
11072         * math/libm-test.inc (rint_test): Add more tests.
11073         (rint_test_tonearest): Likewise.
11074         (rint_test_towardzero): Likewise.
11075         (rint_test_downward): Likewise.
11076         (rint_test_upward: Likewise.
11077
11078 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11079
11080         [BZ #10110]
11081         * include/stdc-predef.h: New file.  Extracted from features.h.
11082         * include/features.h: Include stdc-predef.h.
11083         * Makefile (headers): Add stdc-predef.h.
11084         * CONFORMANCE (Compiler limitations): Update.
11085
11086 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11087
11088         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11089
11090 2012-02-21  David S. Miller  <davem@davemloft.net>
11091
11092         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11093         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11094
11095 2012-02-20  David S. Miller  <davem@davemloft.net>
11096
11097         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11098         using a normal save/restore sequence, rather than allocating a
11099         dummy stack frame just to store a frame pointer and restore.
11100         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11101
11102 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11103
11104         * manual/install.texi: Fix stray word in line-wrapped comment.
11105
11106 2012-02-20  David S. Miller  <davem@davemloft.net>
11107
11108         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11109         both binutils and gcc support GOTDATA.
11110
11111         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11112         "rd %pc" in the PIC register setup sequences.
11113
11114         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11115         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11116         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11117         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11118         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11119         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11120         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11121         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11122         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11123         (SYSCALL_ERROR_HANDLER): Likewise.
11124         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11125         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11126         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11127         (SYSCALL_ERROR_HANDLER): Likewise.
11128
11129         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11130         (HAVE_GCC_GOTDATA): New.
11131         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11132         relocation support in both binutils and gcc.
11133         * sysdeps/sparc/elf/configure: Regenerate.
11134
11135         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11136         * sysdeps/sparc/sparc32/elf/configure: Delete.
11137         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11138         * sysdeps/sparc/sparc64/elf/configure: Delete.
11139         * sysdeps/sparc/elf/configure.in: New file.
11140         * sysdeps/sparc/elf/configure: Generate.
11141
11142         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11143         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11144         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11145         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11146         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11147
11148 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11149
11150         * manual/install.texi: Do not mention specific glibc version
11151         numbers.
11152         * manual/libc.texinfo (VERSION, UPDATED): Update.
11153         (@copying): Use @copyright{} and range of years.
11154
11155 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11156
11157         [BZ #13695]
11158         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11159         [crti.S not in sysdirs] (generated): Do not append.
11160         [crti.S not in sysdirs] (omit-deps): Likewise.
11161         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11162         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11163         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11164         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11165         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11166         Likewise.
11167         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11168         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11169         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11170         * csu/defs.awk: Remove file.
11171         * sysdeps/generic/initfini.c: Likewise.
11172         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11173         variable.
11174         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11175         Likewise.
11176
11177 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11178
11179         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11180         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11181         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11182         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11183         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11184         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11185         <bits/epoll.h>.
11186         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11187         (__EPOLL_PACKED): Define to empty if not defined by
11188         <bits/epoll.h>.
11189         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11190         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11191         bits/epoll.h.
11192
11193 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11194
11195         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11196         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11197         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11198         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11199         <bits/timerfd.h>.
11200         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11201         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11202         bits/timerfd.h.
11203
11204 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11205
11206         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11207         in C locale.
11208         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11209         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11210         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11211         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11212
11213 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11214
11215         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11216         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11217
11218 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11219
11220         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11221         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11222         defined.
11223         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11224         Likewise.
11225         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11226         entry for 2.16.
11227
11228 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11229
11230         * math/w_acos.c: Use non-signaling floating-point comparisons.
11231         * math/w_acosf.c: Likewise.
11232         * math/w_acosh.c: Likewise.
11233         * math/w_acoshf.c: Likewise.
11234         * math/w_acoshl.c: Likewise.
11235         * math/w_acosl.c: Likewise.
11236         * math/w_asin.c: Likewise.
11237         * math/w_asinf.c: Likewise.
11238         * math/w_asinl.c: Likewise.
11239         * math/w_atanh.c: Likewise.
11240         * math/w_atanhf.c: Likewise.
11241         * math/w_atanhl.c: Likewise.
11242         * math/w_exp2.c: Likewise.
11243         * math/w_exp2f.c: Likewise.
11244         * math/w_exp2l.c: Likewise.
11245         * math/w_j0.c: Likewise.
11246         * math/w_j0f.c: Likewise.
11247         * math/w_j0l.c: Likewise.
11248         * math/w_j1.c: Likewise.
11249         * math/w_j1f.c: Likewise.
11250         * math/w_j1l.c: Likewise.
11251         * math/w_jn.c: Likewise.
11252         * math/w_jnf.c: Likewise.
11253         * math/w_log.c: Likewise.
11254         * math/w_log10.c: Likewise.
11255         * math/w_log10f.c: Likewise.
11256         * math/w_log10l.c: Likewise.
11257         * math/w_log2.c: Likewise.
11258         * math/w_log2f.c: Likewise.
11259         * math/w_log2l.c: Likewise.
11260         * math/w_logf.c: Likewise.
11261         * math/w_logl.c: Likewise.
11262         * math/w_sqrt.c: Likewise.
11263         * math/w_sqrtf.c: Likewise.
11264         * math/w_sqrtl.c: Likewise.
11265         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11266         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11267         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11268         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11269         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11270
11271 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11272
11273         [BZ #9739]
11274         * manual/string.texi (strnlen): Use correct parameter name in
11275         equivalent expression.
11276
11277 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11278
11279         [BZ #11174]
11280         * manual/users.texi (seteuid): Consistently use neweuid for
11281         argument name.
11282
11283 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11284
11285         [BZ #13704]
11286         * manual/nss.texi (Services in the NSS configuration): Correct
11287         list of services in example configuration file.
11288
11289 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11290
11291         [BZ #11322]
11292         * manual/arith.texi: Remove statements about negative zero
11293         behaving identically to zero.
11294
11295 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11296
11297         [BZ #5993]
11298         * manual/install.texi: Do not document upgrading from libc5.
11299
11300 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11301
11302         [BZ #4596]
11303         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11304
11305 2012-02-18  David S. Miller  <davem@davemloft.net>
11306
11307         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11308         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11309         %o7 across the call.
11310         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11311         instead.
11312         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11313         SETUP_PIC_REG_LEAF.
11314         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11315         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11316         * sysdeps/sparc/crtn.S: Likewise.
11317
11318 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11319
11320         * aout/Makefile: Remove.
11321
11322 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11323
11324         [BZ #13058]
11325         * manual/examples/argp-ex1.c (main): Format definition in GNU
11326         style.
11327         * manual/examples/argp-ex2.c (main): Likewise.
11328         * manual/examples/argp-ex3.c (main): Likewise.
11329         * manual/examples/argp-ex4.c (main): Likewise.
11330         * manual/examples/longopt.c (main): Use new-style prototype
11331         definition.
11332         * manual/examples/strncat.c (main): Specify return type and use
11333         (void) for arguments.
11334         * manual/examples/subopt.c (main): Use char **argv argument.
11335
11336 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11337
11338         [BZ #5077]
11339         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11340         rounding modes.
11341
11342 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11343
11344         [BZ #6907]
11345         * manual/string.texi (strchr): Change when strchrnul is
11346         recommended.
11347
11348 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11349
11350         [BZ #174]
11351         * manual/locale.texi (setlocale): Document LOCPATH.
11352
11353 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11354
11355         [BZ #10210]
11356         * manual/process.texi (execle): Move @dots{} before last argument.
11357
11358 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11359
11360         [BZ #12047]
11361         * manual/charset.texi (Generic Charset Conversion): Fix typo
11362         (LC_TYPE -> LC_CTYPE).
11363
11364 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11365
11366         [BZ #5805]
11367         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11368         (scalbnf): Likewise.
11369         (scalbnl): Likewise.
11370         (scalbln): Likewise.
11371         (scalblnf): Likewise.
11372         (scalblnl): Likewise.
11373         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11374         (vwarnx): Likewise.
11375         (verr): Likewise.
11376         (verrx): Likewise.
11377         * manual/filesys.texi (telldir): Use braces around return type.
11378         * manual/llio.texi (mmap): Add space after comma.
11379         (mmap64): Likewise.
11380         * manual/math.texi (jn): Use @var{} on parameter names.
11381         (jnf): Likewise.
11382         (jnl): Likewise.
11383         (yn): Likewise.
11384         (ynf): Likewise.
11385         (ynl): Likewise.
11386         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11387         line.
11388         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11389         "...".
11390         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11391         (sched_get_priority_max): Likewise.
11392         * manual/signal.texi (sigvec): Add space after comma.
11393         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11394         names.
11395         (if_indextoname): Likewise.
11396         (if_freenameindex): Likewise.
11397         (sendto): Use ',' instead of '.' in prototype.
11398         * manual/startup.texi (syscall): Use @dots{} instead of literal
11399         "...".
11400         * manual/stdio.texi (__fpending): Separate initial words of
11401         paragraph from @deftypefun line.
11402         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11403         "...".
11404         (vsyslog): Use @var{} on parameter names.
11405         * manual/terminal.texi (stty): Use @var{} on parameter names.
11406         * manual/users.texi (getutmp): Use @var{} on parameter names.
11407         (getutmpx): Likewise.
11408
11409 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11410
11411         [BZ #6884]
11412         * manual/stdio.texi (fopen): Fix typos in description of
11413         ",ccs=STRING".
11414
11415 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11416
11417         [BZ #4026]
11418         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11419         get clock_id definition.
11420
11421 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11422
11423         [BZ #4822]
11424         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11425         (madvise): Cast every argument to void on its own.
11426
11427 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11428
11429         [BZ #9902]
11430         * manual/startup.texi (Exit Status): Fix typo.
11431
11432 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11433
11434         [BZ #10140]
11435         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11436         * manual/examples/argp-ex2.c: Likewise.
11437         * manual/examples/argp-ex3.c: Likewise.
11438
11439 2012-02-16  Richard Henderson  <rth@redhat.com>
11440
11441         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11442         * sysdeps/s390/s390-32/initfini.c: Remove.
11443         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11444         * sysdeps/s390/s390-64/initfini.c: Remove.
11445
11446 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11447
11448         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11449         compiler output for sysdeps/generic/initfini.c.
11450         * sysdeps/sh/elf/initfini.c: Remove file.
11451
11452 2012-02-16  David S. Miller  <davem@davemloft.net>
11453
11454         [BZ #11494]
11455         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11456
11457         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11458         * sysdeps/sparc/crti.S: New file.
11459         * sysdeps/sparc/crtn.S: New file.
11460         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11461         * sysdeps/sparc/sparc64/Makefile: Likewise.
11462
11463 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11464
11465         [BZ #3335]
11466         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11467
11468 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11469
11470         [BZ #4822]
11471         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11472
11473         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11474         (write, read, close): Likewise.
11475         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11476
11477 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11478
11479         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11480         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11481         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11482         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11483         <bits/signalfd.h>.
11484         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11485         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11486         bits/signalfd.h.
11487
11488 2012-02-14  Marek Polacek  <polacek@redhat.com>
11489
11490         * sysdeps/x86_64/crti.S: New file.
11491         * sysdeps/x86_64/crtn.S: New file.
11492         * sysdeps/x86_64/elf/initfini.c: Remove file.
11493
11494 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11495
11496         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11497         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11498         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11499         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11500         <bits/inotify.h>.
11501         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11502         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11503         bits/inotify.h.
11504
11505 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11506
11507         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11508         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11509         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11510         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11511         <bits/eventfd.h>.
11512         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11513         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11514         bits/eventfd.h.
11515
11516 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11517
11518         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11519         __feraiseexcept instead of feraiseexcept.
11520
11521         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11522         nanosleep invocations.
11523         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11524         strings, and add error checking for a nanosleep invocations.
11525
11526 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11527
11528         Replace FSF snail mail address with URLs, as per GNU coding standards.
11529         Most of the snail mail addresses were wrong anyway, and omitting
11530         them makes the source code easier to maintain.  Almost all of the
11531         changes are to license notices and to locale LC_IDENTIFICATION
11532         addresses, except for this one:
11533         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11534         not its snail mail address.
11535
11536 2012-02-09  Richard Henderson  <rth@twiddle.net>
11537
11538         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11539         of kernel-features.h.
11540
11541         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11542
11543 2012-02-08  Marek Polacek  <polacek@redhat.com>
11544
11545         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11546         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11547         * sysdeps/gnu/_G_config.h: Likewise.
11548         * sysdeps/generic/_G_config.h: Likewise.
11549
11550 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11551
11552         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11553         tests.
11554         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11555
11556         * sysdeps/powerpc/powerpc32/crti.S: New file.
11557         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11558         * sysdeps/powerpc/powerpc64/crti.S: New file.
11559         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11560
11561         * Makeconfig (have-initfini): Don't set.
11562         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11563         * configure.in (nopic_initfini): Don't substitute.
11564         * config.h.in (HAVE_INITFINI): Don't #undef.
11565         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11566         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11567
11568 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11569
11570         Support crti.S and crtn.S provided directly by architectures.
11571         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11572         [crti.S in sysdirs] (omit-deps): Likewise.
11573         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11574         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11575         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11576         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11577         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11578         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11579         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11580         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11581         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11582         compiler output for sysdeps/generic/initfini.c.
11583         * sysdeps/i386/elf/Makefile: Remove file.
11584         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11585
11586 2012-02-07  Marek Polacek  <polacek@redhat.com>
11587
11588         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11589         * sysdeps/gnu/_G_config.h: Likewise.
11590         * sysdeps/mach/hurd/_G_config.h: Likewise.
11591
11592 2012-02-07  Marek Polacek  <polacek@redhat.com>
11593
11594         * math/Makefile (tests): Add tst-CMPLX2.
11595         * math/tst-CMPLX2.c: New file.
11596
11597 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11598
11599         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11600
11601         * math/libm-test.inc (jn_test): Add missing L suffix.
11602
11603 2012-02-06  Marek Polacek  <polacek@redhat.com>
11604
11605         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11606         * sysdeps/i386/fpu/e_powf.S: Likewise.
11607         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11608         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11609         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11610         * sysdeps/i386/fpu/e_pow.S: Likewise.
11611         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11612         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11613         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11614         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11615         * sysdeps/i386/fpu/e_log2.S: Likewise.
11616         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11617         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11618         * sysdeps/i386/fpu/e_powl.S: Likewise.
11619         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11620         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11621         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11622         * sysdeps/i386/fpu/e_logl.S: Likewise.
11623         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11624         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11625         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11626         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11627         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11628         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11629         * sysdeps/i386/fpu/e_log.S: Likewise.
11630         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11631         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11632         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11633         * sysdeps/i386/fpu/e_logf.S: Likewise.
11634         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11635         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11636         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11637         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11638         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11639         * sysdeps/i386/fpu/e_log10.S: Likewise.
11640         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11641         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11642         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11643         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11644         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11645         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11646         * sysdeps/i386/asm-syntax.h: Likewise.
11647         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11648         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11649         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11650         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11651         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11652         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11653         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11654         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11655         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11656         * sysdeps/powerpc/sysdep.h: Likewise.
11657         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11658         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11659
11660 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11661
11662         [BZ #411]
11663         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11664
11665 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11666
11667         * sysdeps/i386/sysdep.h: Include <features.h>.
11668         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11669         version.
11670
11671 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11672
11673         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11674         Define.
11675         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11676         LOAD_PIC_REG_STR.
11677
11678 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11679
11680         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11681         (SETUP_PIC_REG): Use GET_PC_THUNK.
11682         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
11683         macro.
11684
11685 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11686
11687         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
11688         for non-PIC compilation.
11689         (SETUP_PIC_REG): Add .p2align directive.
11690         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
11691         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
11692         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
11693         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
11694         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
11695         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
11696         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11697         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11698         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
11699         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
11700         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
11701         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
11702         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
11703         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
11704         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
11705         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11706         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11707         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
11708         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
11709         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
11710         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
11711         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11712         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
11713         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
11714         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
11715         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
11716         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11717         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11718         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
11719         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
11720         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
11721         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11722         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
11723         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
11724         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
11725         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
11726         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
11727         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
11728         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
11729         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
11730         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
11731
11732 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11733
11734         * math/tst-CMPLX.c: Include <stdio.h>.
11735
11736 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
11737
11738         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
11739         float.
11740         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11741         * sysdeps/sparc/bits/mathdef.h: Likewise.
11742
11743 2012-01-31  Marek Polacek  <polacek@redhat.com>
11744
11745         * libio/libio.h: Don't define _PARAMS.
11746         * locale/programs/config.h: Don't define PARAMS.
11747         * stdlib/strtol_l.c: Likewise.
11748         (__strtol_l): Remove PARAMS from the prototype.
11749
11750 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
11751
11752         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
11753         names.  Just use the correct names.  Remove unnecessary wrapper
11754         functions.
11755         * malloc/arena.c: Likewise.
11756         * malloc/hooks.c: Likewise.
11757
11758         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
11759         ARENA_TEST says not to.  Simplify test for creation of a new arena.
11760         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
11761
11762 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
11763
11764         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
11765         into tail calls.
11766         (update_get_addr): New function.
11767         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
11768         GET_ADDR_MODULE parameter.
11769
11770 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11771
11772         * crypt/cert.c: Remove __STDC__ conditionals.
11773         * crypt/crypt-entry.c: Likewise.
11774         * crypt/crypt_util.c: Likewise.
11775         * libio/filedoalloc.c: Likewise.
11776         * libio/fileops.c: Likewise.
11777         * libio/genops.c: Likewise.
11778         * libio/iofclose.c: Likewise.
11779         * libio/iofdopen.c: Likewise.
11780         * libio/iofopen.c: Likewise.
11781         * libio/iofopen64.c: Likewise.
11782         * libio/iogetdelim.c: Likewise.
11783         * libio/iopopen.c: Likewise.
11784         * libio/obprintf.c: Likewise.
11785         * libio/oldfileops.c: Likewise.
11786         * libio/oldiofclose.c: Likewise.
11787         * libio/oldiofdopen.c: Likewise.
11788         * libio/oldiofopen.c: Likewise.
11789         * libio/oldiopopen.c: Likewise.
11790         * libio/wfiledoalloc.c: Likewise.
11791         * libio/wgenops.c: Likewise.
11792         * locale/programs/xmalloc.c: Likewise.
11793         * misc/syslog.c: Likewise.
11794         * stdio-common/xbug.c: Likewise.
11795         * string/memchr.c: Likewise.
11796         * string/memcmp.c: Likewise.
11797         * string/memrchr.c: Likewise.
11798         * string/rawmemchr.c: Likewise.
11799         * sysdeps/posix/getcwd.c: Likewise.
11800         * time/strftime_l.c: Likewise.
11801
11802 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11803
11804         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
11805         * config.make.in (config-cflags-sse2avx): Define.
11806         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
11807         Fix typo.
11808
11809 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
11810
11811         * scripts/config.guess: Update from upstream config git repository.
11812         * scripts/config.sub: Likewise.
11813
11814 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
11815
11816         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
11817         (EM_NUM): Update.
11818         (R_TILEPRO_*, R_TILEGX_*): New macros.
11819
11820         * scripts/firstversions.awk: Fix bug in version range handling.
11821
11822         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
11823
11824         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
11825
11826         * include/sys/epoll.h: New file.
11827         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
11828         libc_hidden_def.
11829
11830 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
11831
11832         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
11833         Avoid unnecessary __WORDSIZE == 64 test.
11834         (fmaxf): Use VEX format if possible.
11835         (fmax): Likewise.
11836         (fminf): Likewise.
11837         (fmin): Likewise.
11838
11839         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
11840         * math/math_private.h: Remove libc_fegetround* and
11841         libc_fesetround*.
11842         * sysdeps/i386/configure.in: Check for -msse2avx.
11843         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
11844         also if SSE2AVX is defined.
11845         Remove libc_fegetround* and libc_fesetround*.
11846         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
11847         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
11848         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
11849         of HAS_YMM_USABLE.
11850         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11851         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11852         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11853         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11854         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11855
11856         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
11857
11858 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11859
11860         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
11861         size is not set.
11862         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
11863
11864 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
11865
11866         [BZ #13618]
11867         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
11868         relocation.
11869         * Makeconfig (libm): Define.
11870         * elf/Makefile: Add rules to build and run tst-relsort1.
11871         * elf/tst-relsort1.c: New file.
11872         * elf/tst-relsort1mod1.c: New file.
11873         * elf/tst-relsort1mod2.c: New file.
11874
11875 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
11876
11877         * math/s_ldexp.c: Remove __STDC__ conditionals.
11878         * math/s_ldexpf.c: Likewise.
11879         * math/s_ldexpl.c: Likewise.
11880         * math/s_nextafter.c: Likewise.
11881         * math/s_nexttowardf.c: Likewise.
11882         * math/s_significand.c: Likewise.
11883         * math/s_significandf.c: Likewise.
11884         * math/s_significandl.c: Likewise.
11885         * math/w_jnl.c: Likewise.
11886         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11887         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11888         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11889         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11890         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11891         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11892         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
11893         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11894         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11895         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11896         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11897         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11898         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11899         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11900         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11901         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11902         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11903         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11904         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11905         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11906         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11907         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11908         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11909         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11910         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11911         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11912         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11913         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11914         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11915         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11916         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11917         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11918         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11919         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11920         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11921         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11922         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11923         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11924         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11925         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11926         * sysdeps/ieee754/k_standard.c: Likewise.
11927         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11928         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11929         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11930         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11931         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11932         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11933         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11934         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11935         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11936         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11937         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11938         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11939         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11940         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11941         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11942         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11943         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11944         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11945         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11946         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11947         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11948         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11949         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11950         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11951         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11952         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11953         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11954         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11955         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11956         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11957         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11958         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
11959         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11960         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11961         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11962         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11963         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11964         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11965         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11966         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
11967         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11968         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11969         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
11970         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
11971         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11972         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
11973         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11974         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11975         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11976         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11977         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11978         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11979         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11980         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11981         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11982         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11983         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11984         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11985         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11986         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11987         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11988         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11989         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11990         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11991         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11992         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11993         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11994         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11995         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11996         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11997         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11998         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11999         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12000         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12001         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12002         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12003         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12004         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12005         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12006         * sysdeps/ieee754/s_matherr.c: Likewise.
12007         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12008         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12009         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12010         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12011
12012 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12013
12014         * crypt/md5.h: Remove __STDC__ conditionals.
12015         * libio/libioP.h: Likewise.
12016         * locale/programs/config.h: Likewise.
12017         * sysdeps/generic/sysdep.h: Likewise.
12018         * sysdeps/i386/asm-syntax.h: Likewise.
12019         * sysdeps/s390/asm-syntax.h: Likewise.
12020         * sysdeps/unix/sysdep.h: Likewise.
12021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12023
12024 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12025
12026         * libio/libio.h: Remove __STDC__ conditionals.
12027         * malloc/obstack.h: Likewise.
12028         * math/complex.h: Likewise.
12029         * math/math.h: Likewise.
12030         * sysdeps/generic/_G_config.h: Likewise.
12031         * sysdeps/gnu/_G_config.h: Likewise.
12032         * sysdeps/mach/hurd/_G_config.h: Likewise.
12033         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12034         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12035         * sysdeps/sparc/bits/mathdef.h: Likewise.
12036
12037 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12038
12039         [BZ #13583]
12040         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12041         Clean up HAS_* macros.
12042         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12043         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12044         possible.
12045         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12046         HAS_AVX.
12047         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12048         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12049         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12050         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12051         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12052
12053 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12054
12055         * elf/tst-unique3.cc (gets): Remove declaration.
12056         * elf/tst-unique3lib.cc (gets): Likewise.
12057         * elf/tst-unique3lib2.cc (gets): Likewise.
12058         * elf/tst-unique4.cc (gets): Likewise.
12059
12060 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12061
12062         * include/stdio.h: Add C++ protection.  Add gets declarations and
12063         definitions.
12064         * debug/tst-chk1.c: Don't declare gets here.
12065         * stdio-common/tst-gets.c: Likewise.
12066
12067 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12068
12069         * posix/glob: Remove directory.
12070
12071 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12072
12073         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12074
12075 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12076
12077         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12078         of the non-standard EPFNOSUPPORT.
12079
12080 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12081
12082         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12083         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12084         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12085
12086 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12087
12088         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12089
12090 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12091
12092         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12093         transient errors.
12094         * nscd/grpcache.c (cache_addgr): Likewise.
12095         * nscd/hstcache.c (cache_addhst): Likewise.
12096         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12097         * nscd/pwdcache.c (cache_addpw): Likewise.
12098         * nscd/servicescache.c (cache_addserv): Likewise.
12099
12100 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12101
12102         * malloc/malloc.c: Various cleanups.
12103         * malloc/hooks.c: Likewise.
12104
12105         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12106         * stdlib/bug-fmtmsg1.c: New file.
12107
12108         * stdlib/fmtmsg.c (init): Add missing unlock.
12109         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12110
12111 2012-01-12  Marek Polacek  <polacek@redhat.com>
12112
12113         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12114         and _GNU_SOURCE.
12115
12116 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12117
12118         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12119         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12120         macro to ensure uniqueness of label name.
12121         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12122         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12123
12124 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12125
12126         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12127
12128         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12129         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12130         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12131         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12132
12133 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12134
12135         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12136
12137         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12138         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12139         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12140
12141         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12142
12143         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12144         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12145         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12146         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12147
12148         * math/bits/math-finite.h: Add ldexp support.
12149
12150 2012-01-10  Marek Polacek  <polacek@redhat.com>
12151
12152         * locale/programs/localedef.h (show_archive_content): Add noreturn
12153         attribute.
12154
12155 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12156
12157         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12158
12159 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12160
12161         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12162
12163         * io/Makefile (headers): Add bits/poll2.h.
12164
12165 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12166
12167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12168         typo #include statement.
12169
12170 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12171
12172         * include/sys/cdefs.h: Define __attribute_alloc_size.
12173         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12174         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12175         * elf/pldd.c: Likewise.
12176         * iconv/iconv_charmap.c: Likewise.
12177         * iconv/iconvconfig.c: Likewise.
12178         * iconv/strtab.c: Likewise.
12179         * locale/programs/locale.c: Likewise.
12180         * locale/programs/localedef.h: Likewise.
12181         * locale/programs/simple-hash.c: Likewise.
12182         * nscd/nscd.h: Likewise.
12183         * nss/makedb.c: Likewise.
12184         * sysdeps/generic/ldconfig.h: Likewise.
12185         * locale/programs/localedef.c: Remove xmalloc prototype.
12186         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12187
12188 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12189
12190         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12191         appropriate.
12192
12193 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12194
12195         * math/Makefile (tests): Add tst-CMPLX.
12196         * math/tst-CMPLX.c: New file.
12197
12198         * math/complex.h (CMPLXL): Fix typo.
12199
12200         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12201         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12202         GLIBC_2.16.
12203         * debug/tst-chk1.c: Add poll and ppoll tests.
12204         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12205         * include/sys/poll.h: Add hidden proto for ppoll.
12206         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12207         * sysdeps/mach/hurd/ppoll.c: Likewise.
12208         * io/ppoll.c: Likewise.
12209         * debug/poll_chk.c: New file.
12210         * debug/ppoll_chk.c: New file.
12211         * include/bits/poll2.h: New file.
12212         * io/bits/poll2.h: New file.
12213
12214         [BZ #1350]
12215         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12216
12217         * configure.in: static is always set to yes.  Remove.
12218         * config.make.in: Don't set build-static.
12219         * Makeconfig: Remove use of build-static.
12220         * dlfcn/Makefile: Likewise.
12221         * elf/Makefile: Likewise.
12222         * math/Makefile: Likewise.
12223         * misc/Makefile: Likewise.
12224         * nptl/Makefile: Likewise.
12225         * sysdeps/mach/hurd/Makefile: Likewise.
12226
12227         * configure.in: PWD_P is not used anymore.
12228         * config.make.in: Remove PWD_P entry.
12229
12230         * configure.in: Remove last remnants of RANLIB.
12231         No need to check for signed size_t anymore.
12232         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12233         and IA-64.
12234         Remove __builtin_expect test because we require at least gcc 3.4.
12235         * aclocal.m4: Likewise.
12236
12237         * wcsmbs/mbrtoc16.c: Implement using towc function.
12238         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12239         * wcsmbs/wcsmbsload.c: Likewise.
12240         * iconv/gconv_simple.c: Likewise.
12241         * iconv/gconv_int.h: Likewise.
12242         * iconv/gconv_builtin.h: Likewise.
12243         * iconv/iconv_prog.c: Remove CHAR16 handling.
12244
12245         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12246
12247         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12248
12249         * configure.in: Remove --with-elf and --enable-bounded options.
12250         Dont set base_machine for ia64.  More non-ELF conditions removed.
12251         Remove testing and setting of leading underscore information.
12252         * config.make.in (build-bounded): Set to no.
12253         * config.h.in: Remove NO_UNDERSCORES entry.
12254         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12255         them.
12256         * csu/start.c: Remove !NO_UNDERSCORE code.
12257         * locale/localeinfo.h: Likewise.
12258         * sysdeps/generic/machine-gmon.h: Likewise.
12259         * sysdeps/generic/sysdep.h: Likewise.
12260         * sysdeps/i386/sysdep.h: Likewise.
12261         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12262         * sysdeps/mach/sysdep.h: Likewise.
12263         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12264         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12265         * sysdeps/sh/sysdep.h: Likewise.
12266         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12267         * sysdeps/unix/i386/sysdep.S: Likewise.
12268         * sysdeps/unix/sparc/start.c: Likewise.
12269         * sysdeps/unix/sparc/sysdep.S: Likewise.
12270         * sysdeps/unix/sparc/sysdep.h: Likewise.
12271         * sysdeps/unix/start.c: Likewise.
12272         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12273         * sysdeps/x86_64/sysdep.h: Likewise.
12274
12275 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12276
12277         [BZ #13553]
12278         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12279         for non-gcc.
12280         * argp/argp-fmtstream.h: Use const instead __const.
12281         * argp/argp.h: Likewise.
12282         * assert/assert.h: Likewise.
12283         * bits/fenv.h: Likewise.
12284         * bits/sched.h: Likewise.
12285         * bits/sigset.h: Likewise.
12286         * bits/sigthread.h: Likewise.
12287         * catgets/nl_types.h: Likewise.
12288         * conform/data/pthread.h-data: Likewise.
12289         * crypt/crypt-private.h: Likewise.
12290         * crypt/crypt.h: Likewise.
12291         * crypt/crypt_util.c: Likewise.
12292         * ctype/ctype.h: Likewise.
12293         * debug/execinfo.h: Likewise.
12294         * debug/mbsnrtowcs_chk.c: Likewise.
12295         * debug/mbsrtowcs_chk.c: Likewise.
12296         * debug/wcsnrtombs_chk.c: Likewise.
12297         * debug/wcsrtombs_chk.c: Likewise.
12298         * debug/wcstombs_chk.c: Likewise.
12299         * dirent/dirent.h: Likewise.
12300         * dlfcn/dlfcn.h: Likewise.
12301         * elf/neededtest4.c: Likewise.
12302         * grp/grp.h: Likewise.
12303         * gshadow/gshadow.h: Likewise.
12304         * iconv/gconv.h: Likewise.
12305         * iconv/gconv_int.h: Likewise.
12306         * iconv/gconv_simple.c: Likewise.
12307         * iconv/iconv.h: Likewise.
12308         * iconv/loop.c: Likewise.
12309         * iconv/skeleton.c: Likewise.
12310         * include/aio.h: Likewise.
12311         * include/aliases.h: Likewise.
12312         * include/argz.h: Likewise.
12313         * include/arpa/inet.h: Likewise.
12314         * include/assert.h: Likewise.
12315         * include/dirent.h: Likewise.
12316         * include/dlfcn.h: Likewise.
12317         * include/execinfo.h: Likewise.
12318         * include/fcntl.h: Likewise.
12319         * include/fenv.h: Likewise.
12320         * include/glob.h: Likewise.
12321         * include/grp.h: Likewise.
12322         * include/libintl.h: Likewise.
12323         * include/mntent.h: Likewise.
12324         * include/netdb.h: Likewise.
12325         * include/pwd.h: Likewise.
12326         * include/rpc/netdb.h: Likewise.
12327         * include/sched.h: Likewise.
12328         * include/search.h: Likewise.
12329         * include/shadow.h: Likewise.
12330         * include/signal.h: Likewise.
12331         * include/stdio.h: Likewise.
12332         * include/stdlib.h: Likewise.
12333         * include/string.h: Likewise.
12334         * include/sys/socket.h: Likewise.
12335         * include/sys/stat.h: Likewise.
12336         * include/sys/statfs.h: Likewise.
12337         * include/sys/statvfs.h: Likewise.
12338         * include/sys/syslog.h: Likewise.
12339         * include/sys/time.h: Likewise.
12340         * include/sys/uio.h: Likewise.
12341         * include/time.h: Likewise.
12342         * include/unistd.h: Likewise.
12343         * include/utmp.h: Likewise.
12344         * include/wchar.h: Likewise.
12345         * include/wctype.h: Likewise.
12346         * inet/aliases.h: Likewise.
12347         * inet/arpa/inet.h: Likewise.
12348         * inet/netinet/ether.h: Likewise.
12349         * inet/netinet/in.h: Likewise.
12350         * intl/libintl.h: Likewise.
12351         * io/bits/fcntl2.h: Likewise.
12352         * io/fcntl.h: Likewise.
12353         * io/ftw.h: Likewise.
12354         * io/sys/poll.h: Likewise.
12355         * io/sys/stat.h: Likewise.
12356         * io/sys/statfs.h: Likewise.
12357         * io/sys/statvfs.h: Likewise.
12358         * io/utime.h: Likewise.
12359         * libio/bits/stdio.h: Likewise.
12360         * libio/bits/stdio2.h: Likewise.
12361         * libio/libio.h: Likewise.
12362         * libio/libioP.h: Likewise.
12363         * libio/stdio.h: Likewise.
12364         * locale/lc-ctype.c: Likewise.
12365         * locale/locale.h: Likewise.
12366         * login/utmp.h: Likewise.
12367         * malloc/arena.c: Likewise.
12368         * malloc/malloc.c: Likewise.
12369         * malloc/malloc.h: Likewise.
12370         * malloc/mcheck.c: Likewise.
12371         * malloc/mtrace.c: Likewise.
12372         * math/bits/mathcalls.h: Likewise.
12373         * math/fenv.h: Likewise.
12374         * math/math_private.h: Likewise.
12375         * misc/bits/error.h: Likewise.
12376         * misc/bits/syslog.h: Likewise.
12377         * misc/err.h: Likewise.
12378         * misc/error.h: Likewise.
12379         * misc/fstab.h: Likewise.
12380         * misc/mntent.h: Likewise.
12381         * misc/regexp.h: Likewise.
12382         * misc/search.h: Likewise.
12383         * misc/sgtty.h: Likewise.
12384         * misc/sys/mman.h: Likewise.
12385         * misc/sys/syslog.h: Likewise.
12386         * misc/sys/uio.h: Likewise.
12387         * misc/sys/xattr.h: Likewise.
12388         * misc/ttyent.h: Likewise.
12389         * nis/rpcsvc/ypclnt.h: Likewise.
12390         * nss/nss.h: Likewise.
12391         * posix/bits/unistd.h: Likewise.
12392         * posix/fnmatch.h: Likewise.
12393         * posix/glob.h: Likewise.
12394         * posix/sched.h: Likewise.
12395         * posix/spawn.h: Likewise.
12396         * posix/sys/wait.h: Likewise.
12397         * posix/unistd.h: Likewise.
12398         * posix/wordexp.h: Likewise.
12399         * pwd/pwd.h: Likewise.
12400         * resolv/netdb.h: Likewise.
12401         * resource/sys/resource.h: Likewise.
12402         * rt/aio.h: Likewise.
12403         * rt/bits/mqueue2.h: Likewise.
12404         * rt/mqueue.h: Likewise.
12405         * shadow/shadow.h: Likewise.
12406         * signal/signal.h: Likewise.
12407         * socket/send.c: Likewise.
12408         * socket/sendto.c: Likewise.
12409         * socket/sys/socket.h: Likewise.
12410         * stdio-common/printf.h: Likewise.
12411         * stdlib/bits/stdlib.h: Likewise.
12412         * stdlib/fmtmsg.h: Likewise.
12413         * stdlib/monetary.h: Likewise.
12414         * stdlib/stdlib.h: Likewise.
12415         * stdlib/ucontext.h: Likewise.
12416         * streams/stropts.h: Likewise.
12417         * string/argz.h: Likewise.
12418         * string/bits/string2.h: Likewise.
12419         * string/string.h: Likewise.
12420         * string/strings.h: Likewise.
12421         * sunrpc/rpc/auth.h: Likewise.
12422         * sunrpc/rpc/auth_des.h: Likewise.
12423         * sunrpc/rpc/clnt.h: Likewise.
12424         * sunrpc/rpc/netdb.h: Likewise.
12425         * sunrpc/rpc/pmap_clnt.h: Likewise.
12426         * sunrpc/rpc/xdr.h: Likewise.
12427         * sysdeps/generic/inttypes.h: Likewise.
12428         * sysdeps/generic/net/if.h: Likewise.
12429         * sysdeps/generic/sys/swap.h: Likewise.
12430         * sysdeps/gnu/net/if.h: Likewise.
12431         * sysdeps/gnu/utmpx.h: Likewise.
12432         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12433         * sysdeps/i386/i486/bits/string.h: Likewise.
12434         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12435         * sysdeps/s390/bits/string.h: Likewise.
12436         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12437         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12438         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12439         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12440         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12441         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12442         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12443         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12444         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12445         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12446         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12447         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12448         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12449         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12450         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12451         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12452         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12453         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12454         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12455         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12456         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12457         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12458         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12459         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12460         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12461         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12462         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12463         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12464         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12465         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12466         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12467         * sysvipc/sys/ipc.h: Likewise.
12468         * sysvipc/sys/msg.h: Likewise.
12469         * sysvipc/sys/sem.h: Likewise.
12470         * sysvipc/sys/shm.h: Likewise.
12471         * termios/termios.h: Likewise.
12472         * time/sys/time.h: Likewise.
12473         * time/time.h: Likewise.
12474         * wcsmbs/bits/wchar2.h: Likewise.
12475         * wcsmbs/uchar.h: Likewise.
12476         * wcsmbs/wchar.h: Likewise.
12477         * wctype/wctype.h: Likewise.
12478
12479         [BZ #13551]
12480         * Makeconfig: Remove all but ELF support including AIX support.
12481         * Makerules: Likewise.
12482         * config.h.in: Likewise.
12483         * config.make.in: Likewise.
12484         * configure: Likewise.
12485         * configure.in: Likewise.
12486         * csu/Makefile: Likewise.
12487         * csu/version.c: Likewise.
12488         * debug/Makefile: Likewise.
12489         * dlfcn/Makefile: Likewise.
12490         * elf/Makefile: Likewise.
12491         * extra-lib.mk: Likewise.
12492         * iconv/Makefile: Likewise.
12493         * include/libc-symbols.h: Likewise.
12494         * include/shlib-compat.h: Likewise.
12495         * resolv/Makefile: Likewise.
12496         * resolv/res_libc.c: Likewise.
12497         * rt/Makefile: Likewise.
12498         * sysdeps/i386/asm-syntax.h: Likewise.
12499         * sysdeps/i386/sysdep.h: Likewise.
12500         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12501         * sysdeps/mach/sysdep.h: Likewise.
12502         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12503         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12504         * sysdeps/s390/asm-syntax.h: Likewise.
12505         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12506         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12507         * sysdeps/sh/sysdep.h: Likewise.
12508         * sysdeps/unix/sparc/sysdep.h: Likewise.
12509         * sysdeps/wordsize-32/divdi3.c: Likewise.
12510         * sysdeps/x86_64/sysdep.h: Likewise.
12511
12512         * argp/Versions: Remove _argp_unlock_xxx.
12513
12514         [BZ #13559]
12515         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12516         * abilist/libBrokenLocale.abilist: Likewise.
12517         * abilist/libanl.abilist: Likewise.
12518         * abilist/libc.abilist: Likewise.
12519         * abilist/libcrypt.abilist: Likewise.
12520         * abilist/libdl.abilist: Likewise.
12521         * abilist/libm.abilist: Likewise.
12522         * abilist/libnsl.abilist: Likewise.
12523         * abilist/libpthread.abilist: Likewise.
12524         * abilist/libresolv.abilist: Likewise.
12525         * abilist/librt.abilist: Likewise.
12526         * abilist/libthread_db.abilist: Likewise.
12527         * abilist/libutil.abilist: Likewise.
12528         * abilist/libnss_db.abilist: New file.
12529
12530         * scripts/abilist.awk: Add support for indirect functions.
12531
12532         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12533
12534         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12535
12536         * shlib-versions: Remove entries for ports architectures.
12537
12538         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12539         files in ports.
12540         * elf/stackguard-macros.h: Remove support for IA-64.
12541         * elf/tst-auditmod1.c: Likewise.
12542         * sysdeps/generic/ldsodefs.h: Likewise.
12543
12544         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12545         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12546         configure files.
12547
12548         [BZ #13552]
12549         * configure.in: Remove --enable-omitfp support.
12550         * FAQ.in: Adjust.
12551         * config.make.in: Likewise.
12552         * Makeconfig: Likewise.
12553         * manual/install.texi: Likewise.
12554
12555         In case anyone cares, the IA-64 architecture could move to ports.
12556         * sysdeps/ia64/*: Removed.
12557         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12558         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12559
12560         [BZ #13555]
12561         * configure.in: Remove entries for unsupported architectures.
12562
12563         [BZ #13533]
12564         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12565         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12566         routines.
12567         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12568         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12569         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12570         fall back to using wcrtomb.
12571         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12572         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12573         renaming.
12574         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12575         * wcsmbs/tst-c16c32-1.c: New file.
12576
12577         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12578         local variable.
12579
12580         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12581
12582         * elf/tst-unique3.cc: Add explicit declaration of gets.
12583         * elf/tst-unique3lib.cc: Likewise.
12584         * elf/tst-unique3lib2.cc: Likewise.
12585         * elf/tst-unique4.cc: Likewise.
12586
12587         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12588
12589 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12590
12591         [BZ #13566]
12592         * assert/assert.h (static_assert): Don't define for C++.
12593         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12594         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12595
12596 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12597
12598         * iconv/loop.c (single loop): Fix assertion in storing of
12599         remaining bytes.
12600
12601         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12602
12603 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12604
12605         * posix/getconf.c: Update copyright year.
12606         * nss/getent.c: Likewise.
12607         * nss/makedb.c: Likewise.
12608         * iconv/iconvconfig.c: Likewise.
12609         * iconv/iconv_prog.c: Likewise.
12610         * elf/ldconfig.c: Likewise.
12611         * elf/pldd.c: Likewise.
12612         * elf/sotruss.ksh: Likewise.
12613         * catgets/gencat.c: Likewise.
12614         * csu/version.c: Likewise.
12615         * elf/ldd.bash.in: Likewise.
12616         * elf/sprof.c (print_version): Likewise.
12617         * locale/programs/locale.c: Likewise.
12618         * locale/programs/localedef.c: Likewise.
12619         * login/programs/pt_chown.c: Likewise.
12620         * nscd/nscd.c (print_version): Likewise.
12621         * debug/xtrace.sh: Likewise.
12622         * malloc/memusage.sh: Likewise.
12623         * malloc/mtrace.pl: Likewise.
12624         * debug/catchsegv.sh: Likewise.
12625
12626 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12627
12628         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12629         pure attribute.
12630
12631 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12632
12633         [BZ #13533]
12634         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12635         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12636         transformations.
12637         * iconv/gconv_int.h: Likewise.
12638         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12639         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12640         from libc for GLIBC_2.16.
12641         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12642         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12643         * wcsmbs/uchar.h: Really define mbstate_t.
12644         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12645         * wcsmbs/c16rtomb.c: New file.
12646         * wcsmbs/mbrtoc16.c: New file.
12647         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12648         for C/POSIX locale.
12649         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12650         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12651
12652         * wcsmbs/wchar.h: Add missing __restrict.
12653
12654 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12655
12656         [BZ #13532]
12657         * time/Makefile (routines): Add timespec_get.
12658         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12659         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12660         timespec for ISO C11.
12661         * time/timespec_get.c: New file.
12662         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12663         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12664
12665         [BZ #13531]
12666         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12667         * stdlib/stdlib.h: Declare aligned_alloc.
12668         * Versions.def: Add GLIBC_2.16 for libc.
12669         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12670
12671         [BZ 13527]
12672         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12673         ISO C11.
12674
12675         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12676         code.
12677
12678         [BZ #13528]
12679         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12680
12681         [BZ #13529]
12682         * assert/assert.h (static_assert): Define.
12683
12684         * version.h: Update for 2.16 development version.
12685
12686         [BZ #13526]
12687         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
12688         _ISOC11_SOURCE.
12689
12690         * version.h (RELEASE): Bump for 2.15 release.
12691         * include/features.h (__GLIBC_MINOR__): Bump to 15.
12692
12693         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
12694         Patch by Marek Polacek <mpolacek@redhat.com>.
12695
12696         * bits/byteswap.h: Protect long long constants with __extension__.
12697         * sysdeps/i386/bits/byteswap.h: Likewise.
12698         * sysdeps/ia64/bits/byteswap.h: Likewise.
12699         * sysdeps/s390/bits/byteswap.h: Likewise.
12700         * sysdeps/x86_64/bits/byteswap.h: Likewise.
12701
12702 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12703
12704         [BZ #13540]
12705         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
12706         destination buffer.
12707         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
12708
12709 2011-12-23  Marek Polacek  <polacek@redhat.com>
12710
12711         * elf/dl-addr.c (determine_info): Add inline keyword.
12712         * elf/tst-auditmod4b.c (check_avx): Likewise.
12713         * elf/tst-auditmod6b.c (check_avx): Likewise.
12714         * elf/tst-auditmod6c.c (check_avx): Likewise.
12715         * elf/tst-auditmod7b.c (check_avx): Likewise.
12716
12717 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12718
12719         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
12720         !__SSE_MATH__.
12721
12722 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12723
12724         [BZ #13540]
12725         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
12726         processing for last bytes.
12727
12728 2011-08-06  Bruno Haible  <bruno@clisp.org>
12729
12730         [BZ #13061]
12731         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
12732         U+0385, not to U+1FEE.
12733
12734         [BZ #13062]
12735         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
12736         entry for U+00A5 U+0301.
12737
12738 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12739
12740         [BZ #13166]
12741         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
12742         buffer for the output is too small.
12743
12744         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
12745         optimization.
12746
12747         [BZ #13185]
12748         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
12749         SSE flags if possible.
12750
12751 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12752
12753         [BZ #13540]
12754         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
12755         processing for last bytes.
12756
12757 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
12758
12759         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
12760         (syscall-list-default-options, syscall-list-default-condition)
12761         (syscall-list-includes): Define.
12762         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
12763         list of ABIs and options and #if conditions for each ABI.  Do not
12764         handle common syscalls between ABIs specially.
12765         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
12766         Remove.
12767         (syscall-list-variants, syscall-list-32bit-options)
12768         (syscall-list-32bit-condition, syscall-list-64bit-options)
12769         (syscall-list-64bit-condition): Define.
12770         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
12771         (syscall-list-variants, syscall-list-32bit-options)
12772         (syscall-list-32bit-condition, syscall-list-64bit-options)
12773         (syscall-list-64bit-condition): Define.
12774         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
12775         Remove.
12776         (syscall-list-variants, syscall-list-32bit-options)
12777         (syscall-list-32bit-condition, syscall-list-64bit-options)
12778         (syscall-list-64bit-condition): Define.
12779         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
12780         Remove.
12781         (syscall-list-variants, syscall-list-32bit-options)
12782         (syscall-list-32bit-condition, syscall-list-64bit-options)
12783         (syscall-list-64bit-condition): Define.
12784
12785 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12786
12787         * locale/iso-639.def: Add brx entry.
12788
12789         [BZ #13328]
12790         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
12791         Proposed by Mariusz_Cukr <marcukr@op.pl>.
12792
12793         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
12794         __feraiseexcept_renamed.
12795
12796 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12797
12798         [BZ #13538]
12799         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
12800         EPOLLET with unsigned values.
12801         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12802         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12803
12804         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
12805         to large cancellation.
12806         * math/s_cacoshf.c: Likewise.
12807         * math/s_cacoshl.c: Likewise.
12808
12809 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
12810
12811         [BZ #13305]
12812         [BZ #12786]
12813         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
12814         * math/s_cacoshf.c: Likewise.
12815         * math/s_cacoshl.c: Likewise.
12816
12817 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12818
12819         [BZ #13439]
12820         * iconv/gconv.h: Define __GCONV_SWAP.
12821         * iconvdata/unicode.c: The swap bit must be stored in __flags.
12822         * iconvdata/utf-16.c: Likewise.
12823         * iconvdata/utf-32.c: Likewise.
12824
12825 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
12826
12827         [BZ #13524]
12828         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
12829         numerator after shifting it by one limb.
12830
12831 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
12832
12833         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
12834         under [__USE_EXTERN_INLINES].
12835
12836 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12837
12838         [BZ #13446]
12839         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
12840
12841 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12842
12843         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
12844         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
12845         optimized code.
12846         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
12847         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
12848         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
12849         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
12850         for strncasecmp/strncasecmp_l compilation.
12851         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
12852         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
12853
12854 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
12855
12856         [BZ #13484]
12857         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
12858         of __asm__.
12859
12860 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12861
12862         [BZ #13506]
12863         * time/tzfile.c (__tzfile_read): Check values from file header.
12864
12865 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
12866
12867         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
12868         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
12869         * powerpc/powerpc32/dl-start.S: Likewise.
12870         * powerpc/powerpc32/elf/start.S: Likewise.
12871         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
12872         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
12873         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
12874         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
12875         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
12876         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
12877         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
12878         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
12879         * powerpc/powerpc32/fpu/s_round.S: Likewise.
12880         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
12881         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
12882         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
12883         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
12884         * powerpc/powerpc32/memset.S: Likewise.
12885         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
12886         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
12887         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
12888         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
12889         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
12890         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
12891         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
12892         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
12893         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
12894         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
12895         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
12896         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12897         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12898
12899 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12900
12901         * math/libm-test.inc: Added more nearbyint tests.
12902         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
12903         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
12904         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
12905         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
12906
12907 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
12908
12909         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
12910         FD_CLOEXEC.
12911
12912 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12913
12914         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
12915         Add wcscpy-ssse3 wcscpy-c.
12916         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
12917         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
12918         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
12919         * sysdeps/x86_64/wcschr.S: New file.
12920         * sysdeps/x86_64/wcsrchr.S: New file.
12921         * string/test-strcmp.c: Remove checking of wcscmp function for
12922         wrong alignments.
12923         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
12924         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
12925         wcsrchr-sse2 wcsrchr-c.
12926         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
12927         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
12928         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
12929         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
12930         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
12931         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
12932         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
12933         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
12934         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
12935         * wcsmbc/wcschr.c (WCSCHR): New macro.
12936
12937 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12938
12939         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
12940         * wcsmbs/test-wcsrchr.c: New file.
12941         * string/test-strrchr.c: Add wcsrchr support.
12942         (WIDE): New macro.
12943         * wcsmbs/test-wcscpy.c: New file.
12944         * string/test-strcpy.c: Add wcscpy support.
12945         (WIDE): New macro.
12946
12947 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
12948
12949         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
12950         the inner loop.
12951
12952 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
12953
12954         [BZ #13472]
12955         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
12956
12957 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
12958
12959         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
12960         Minor optimizations.
12961
12962         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
12963         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
12964         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
12965
12966 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
12967
12968         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
12969         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
12970         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
12971         for gcc to avoid warnings.
12972         * inet/Makefile (tests): Add tst-checks.
12973         * inet/tst-checks.c: New file.
12974
12975         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
12976         warning.
12977
12978         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
12979         __wmemcmp_sse2.
12980
12981         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
12982         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
12983
12984         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
12985
12986 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
12987
12988         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
12989         problem.
12990
12991         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
12992
12993 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
12994
12995         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
12996         conditional on GCC version.
12997         (__arch_compare_and_exchange_val_8_acq)
12998         (__arch_compare_and_exchange_val_16_acq)
12999         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13000         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13001         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13002
13003 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13004
13005         * sysdeps/sh/backtrace.c: New file.
13006
13007 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13008
13009         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13010         parenthesis.
13011
13012 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13013
13014         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13015         falling back to utime.
13016
13017 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13018
13019         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13020         expectations for float.
13021
13022 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13023
13024         * locale/weight.h (findidx): Add parameter len.
13025         * locale/weightwc.h (findidx): Likewise.
13026         * posix/fnmatch_loop.c (FCT): Adjust caller.
13027         * posix/regcomp.c (build_equiv_class): Likewise.
13028         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13029         * posix/regexec.c (check_node_accept_bytes): Likewise.
13030         * string/strcoll_l.c (STRCOLL): Likewise.
13031         * string/strxfrm_l.c (STRXFRM): Likewise.
13032
13033 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13034
13035         * Makefile.in: Remove CVSOPT handling.
13036         * configure.in: Remove use of AC_REVISION.
13037         * iconvdata/Makefile (distribute): No need to filter out CVS.
13038         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13039         handling.
13040
13041 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13042
13043         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13044         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13045         [USE_AS_STRNCASECMP_L]: Likewise.
13046         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13047         NO_TLS_DIRECT_SEG_REFS.
13048         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13049         Fix argument offsets for non-PIC.
13050         [USE_AS_STRNCASECMP_L]: Likewise.
13051         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13052         NO_TLS_DIRECT_SEG_REFS.
13053
13054 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13055
13056         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13057         O_CLOEXEC.
13058         * locale/loadlocale.c (_nl_load_locale): Likewise.
13059
13060 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13061
13062         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13063         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13064         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13065         (SYSCALL_GETTIME): Set errno on error.
13066
13067         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13068         count references to noai6ai_cached.
13069
13070 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13071
13072         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13073
13074         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13075         FD_CLOEXEC for /proc/self/maps.
13076
13077         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13078         FD_CLOEXEC for /proc/meminfo.
13079
13080         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13081         gai.conf.
13082
13083         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13084         FD_CLOEXEC for given file.
13085
13086         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13087
13088         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13089         FD_CLOEXEC for /etc/hosts.
13090         (_gethtent): Likewise.
13091
13092         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13093
13094         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13095         cancellation and set FD_CLOEXEC for /etc/netgroup.
13096
13097         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13098         reading /etc/publickey.
13099
13100         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13101         allow cancellation when reading /etc/group.
13102
13103         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13104         cancellation.
13105         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13106
13107         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13108         when using data file.
13109
13110         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13111
13112         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13113         (write_nis_obj): Use "c" and "e" in fopen.
13114
13115         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13116
13117         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13118
13119         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13120
13121         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13122
13123         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13124         locale.alias.
13125
13126         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13127
13128         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13129
13130         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13131
13132         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13133         file parsing and set FD_CLOEXEC.
13134
13135 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13136
13137         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13138
13139 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13140
13141         * malloc/arena.c (arena_get2): Don't call reused_arena when
13142         _int_new_arena failed.
13143
13144 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13145
13146         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13147         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13148         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13149         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13150         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13151         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13152         to compile strcasecmp and strncasecmp.
13153         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13154         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13155
13156         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13157
13158 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13159
13160         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13161         locale-defines.sym to gen-as-const-headers.
13162         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13163         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13164         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13165         to compile strcasecmp and strncasecmp.
13166         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13167         strcasecmp_l and strncasecmp_l.
13168         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13169         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13170         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13171         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13172         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13173         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13174         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13175         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13176         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13177         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13178         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13179
13180 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13181
13182         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13183         result of SYSDEP_GETTIME_CPU to retval.
13184         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13185         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13186
13187         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13188         variable.
13189
13190         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13191         mantissa words.
13192         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13193
13194         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13195         from unused variable.
13196
13197         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13198         DWARF definitions.
13199         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13200         for assembling.
13201
13202         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13203         over namespaces.
13204
13205         * sunrpc/rpc_prot.c (rejected): Fix case value.
13206
13207         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13208         unsigned long long int to avoid warnings in shift.
13209
13210         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13211         of use of trans.
13212         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13213         variable tmp.
13214
13215         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13216         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13217         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13218
13219         * nis/nis_table.c (nis_list): Use variable of correct type for
13220         result of __follow_path call.
13221
13222 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13223
13224         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13225         of math functions ceil, trunc, floor, round, and sqrt, when
13226         avaliable on the platform.
13227         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13228         name clash.
13229         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13230         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13231         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13232
13233 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13234
13235         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13236         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13237
13238 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13239
13240         * include/unistd.h: Fix __readlink return type.
13241         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13242
13243 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13244
13245         * stdlib/ucontext.h: Undo last change for makecontext.
13246
13247 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13248
13249         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13250
13251         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13252         * setjmp/setjmp.h: Mark functions as non-leaf.
13253         * setjmp/bits/setjmp2.h: Likewise.
13254         * stdlib/ucontext.h: Likewise.
13255
13256 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13257
13258         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13259         (reused_arena): Don't check arena limit.
13260         (arena_get2): Atomically check arena limit.
13261
13262 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13263
13264         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13265         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13266
13267         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13268         instructions.
13269
13270 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13271
13272         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13273         handler when locking.
13274
13275         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13276         Fix size of allocated buffer.
13277
13278 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13279
13280         [BZ #10103]
13281         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13282         declarations for long double functions.
13283         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13284
13285         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13286
13287 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13288
13289         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13290         installed.
13291
13292         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13293         is disabled.
13294
13295 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13296
13297         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13298
13299 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13300
13301         * include/alloca.h (stackinfo_alloca_round): Define.
13302         (extend_alloca): Use it.
13303         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13304         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13305         here.
13306
13307         * scripts/check-local-headers.sh: Ignore libaudit.h.
13308
13309         * nscd/Makefile (extra-objs): Make recursively expanded.
13310
13311 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13312
13313         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13314         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13315
13316         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13317         * posix/tst-rfc3484-2.c: Likewise.
13318         * posix/tst-rfc3484-3.c: Likewise.
13319
13320         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13321         process_vm_writev.
13322         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13323         process_vm_writev.
13324         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13325         process_vm_writev from libc using GLIBC_2.15 version.
13326
13327         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13328
13329 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13330
13331         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13332         stack usage.
13333
13334 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13335
13336         [BZ #13367]
13337         * nss/getent.c (initgroups_keys): Show error message in case no group
13338         names are given.
13339
13340         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13341         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13342         __bump_nl_timestamp.
13343         * nscd/connections (nscd_init): When host database is served open
13344         netlink socket and request notification about configuration changes.
13345         (main_loop_poll): Track netlink file descriptor and bump timestamp
13346         in case data becomes available.
13347         (main_loop_epoll): Likewise.
13348         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13349         (database_pers_head): Add extra_data fileds.
13350         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13351         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13352         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13353         Adjust caller.
13354         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13355         in6ai data, call __free_in6ai.
13356         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13357         Add -DHAVE_NETLINK.
13358         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13359         interface information.  Reuse previous data if netlink timestamp
13360         is not changed.
13361         (__bump_nl_timestamp): New function.
13362         (__free_in6ai): New function.
13363
13364 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13365
13366         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13367         close_not_cancel_no_status here.
13368         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13369
13370 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13371
13372         [BZ #13276]
13373         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13374         return value.
13375
13376         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13377         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13378         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13379
13380 2011-07-03  Andreas Jaeger  <aj@suse.de>
13381
13382         [BZ #10709]
13383         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13384         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13385         * math/libm-test.inc (sin_test): Add test case.
13386
13387 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13388
13389         [BZ #13337]
13390         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13391         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13392
13393         * elf/chroot_canon.c (chroot_canon): Cleanups.
13394
13395         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13396
13397         [BZ #13335]
13398         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13399         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13400
13401         * string/test-strchr.c: Make usable for strchrnul testing.
13402         * string/test-strchrnul.c: New file.
13403         * string/Makefile (strop-tests): Add strchrnul.
13404
13405         * po/it.po: Update from translation team.
13406         * po/es.po: Likewise.
13407
13408 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13409
13410         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13411         the three constants needed as parameters.  Drop the others.
13412         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13413         __m128i_strloadu_tolower.
13414         Create and initialize variable zero and use it in all the places
13415         where _mm_setzero_si128 was used.
13416
13417         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13418         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13419         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13420         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13421         anymore.
13422         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13423         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13424         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13425         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13426         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13427         __mpranred, __mptan.
13428         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13429         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13430         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13431         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13432         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13433         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13434         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13435         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13436         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13437
13438 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13439
13440         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13441         redefine if SHARED.
13442         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13443
13444         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13445         wide char related routines to wcsmbs subdir.
13446
13447 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13448
13449         [BZ #13344]
13450         * misc/sys/cdefs.h (__THROWNL): Define.
13451         * posix/unistd.h: Use __THREADNL instead of __THREAD
13452         for memory synchronization functions.
13453
13454 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13455
13456         [BZ #13349]
13457         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13458         doesn't exist.
13459         * manual/stdio.texi (Obstack Streams): Node removed.
13460
13461 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13462
13463         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13464         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13465         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13466
13467         * math/math_private.h (math_force_eval): Allow non-addressable
13468         arguments.
13469         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13470
13471 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13472
13473         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13474         file is not needed.
13475
13476         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13477         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13478         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13479         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13480         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13481         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13482         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13483         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13484         Add AVX variants.
13485         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13486         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13487         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13488         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13489         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13490         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13491         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13492         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13493         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13494         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13495         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13496         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13497         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13498         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13499         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13500         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13501         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13502         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13503         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13504
13505         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13506         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13507
13508         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13509         place.  Use VEX encoding when compiling for AVX.
13510
13511 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13512
13513         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13514         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13515
13516         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13517
13518 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13519
13520         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13521         useless if() expression.
13522         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13523         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13524         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13525         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13526         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13527         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13528         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13529         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13530         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13531         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13532         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13533         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13534         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13535         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13536         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13537         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13538         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13539         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13540         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13541
13542         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13543
13544 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13545
13546         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13547         condition.
13548         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13549
13550 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13551
13552         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13553         .text section.  Avoid duplicate constants.
13554         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13555         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13556         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13557         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13558         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13559         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13560         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13561         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13562         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13563         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13564         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13565         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13566         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13567         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13568         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13569         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13570         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13571         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13572         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13573         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13574         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13575         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13576         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13577         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13578         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13579         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13580         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13581         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13582         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13583         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13584         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13585         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13586         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13587         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13588         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13589         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13590         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13591         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13592         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13593         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13594         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13595         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13596         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13597         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13598         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13599
13600 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13601
13602         * sysdeps/x86_64/dla.h: Move to ...
13603         * sysdeps/x86_64/fpu/dla.h: ...here.
13604         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13605         situations.  Use __builtin_fma only for gcc 4.6 and up.
13606
13607         * config.make.in: Add have-mfma4 entry.
13608         * configure.in: Substitute libc_cv_cc_fma4.
13609         * math/Makefile (dbl-only-routines): Add sincostab.
13610         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13611         Use __sincostab not sincos.
13612         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13613         name is a macro.
13614         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13615         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13616         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13617         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13618         using __copysign.
13619         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13620         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13621         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13622         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13623         and __inv.
13624         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13625         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13626         __copysign.
13627         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13628         define aliases when function name is a macro.
13629         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13630         sysdeps/ieee754/dbl-64/sincos.tbl.
13631         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13632         fma4-enabled routines.
13633         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13634         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13635         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13636         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13637         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13638         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13639         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13640         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13641         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13642         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13643         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13644         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13645         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13646         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13647         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13648         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13649         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13650         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13651         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13652         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13653         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13654         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13655         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13656         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13657         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13658         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13659         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13660         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13661         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13662         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13663
13664         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13665         rename.
13666         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13667         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13668         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13669         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13670         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13671         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13672         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13673         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13674
13675 2011-10-24  Andreas Schwab  <schwab@redhat.com>
13676
13677         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13678
13679 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13680
13681         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13682
13683         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
13684         prediction.
13685         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
13686
13687         * string/strnlen.c: Don't define STRNLEN, reverse logic.
13688         Remove unused variable magic_bits.
13689         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
13690
13691         * string/strnlen.c: Define and use STRNLEN macro.
13692         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
13693         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
13694         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
13695         * wcsmbs/wcslen.c: Define and use WCSLEN.
13696         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
13697         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
13698         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
13699         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
13700         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
13701         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
13702         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13703
13704 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13705
13706         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13707         strnlen-sse2-no-bsf.
13708         Rename strlen-no-bsf to strlen-sse2-no-bsf.
13709         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
13710         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
13711         Add strnlen support.
13712         (USE_AS_STRNLEN): New macro.
13713         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
13714         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
13715         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
13716         * sysdeps/x86_64/wcslen.S: New file.
13717
13718 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
13719
13720         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
13721         XMM-moves are used for copying on small sizes.
13722
13723 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13724
13725         * wcsmbs/Makefile (strop-tests): Add wcschr.
13726         * wcsmbs/test-wcschr.c: New file.
13727         * string/test-strchr.c: Update.
13728         Add wcschr support.
13729         (WIDE): New macro.
13730
13731 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13732
13733         * wcsmbs/Makefile (strop-tests): Add wcslen.
13734         * wcsmbs/test-wcslen.c: New file.
13735         * string/test-strlen.c: Update.
13736         Add wcslen support.
13737         (WIDE): New macro.
13738
13739 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13740
13741         * po/it.po: Update from translation team.
13742
13743 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13744
13745         * sysdeps/x86_64/wcscmp.S: Update.
13746         Fix wrong comparison semantics.
13747         wcscmp shall use signed comparison not unsigned.
13748         Don't use substraction to avoid overflow bug.
13749         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
13750         * wcsmbc/wcscmp.c: Likewise.
13751         * string/test-strcmp.c: Likewise.
13752         Add new tests to check cases with negative values.
13753
13754 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13755
13756         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
13757         * sysdeps/x86_64/dla.h: ...here.  New file.
13758         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
13759         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13760         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13761         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13762         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13763         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13764         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13765         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13766         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13767
13768 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
13769
13770         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
13771         __ynl_finite aliases.
13772
13773 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13774
13775         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13776
13777         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
13778         define DLA_FMA.
13779         [DLA_FMA] (EMULV): Use DLA_FMA.
13780         [DLA_FMA] (MUL12): Use EMULV.
13781         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
13782         that are not needed.
13783         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13784         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13785         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13786         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13787         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13788         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13789         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13790
13791 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
13792
13793         * math/s_nan.c: Undef __nan.
13794         * math/s_nanf.c: Undef __nanf.
13795         * math/s_nanl.c: Undef __nanl.
13796         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
13797         "math_private.h".
13798
13799 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13800
13801         * math/s_catan.c: Add branch predictions.
13802         * math/s_catanf.c: Likewise.
13803         * math/s_catanh.c: Likewise.
13804         * math/s_catanhf.c: Likewise.
13805         * math/s_catanhl.c: Likewise.
13806         * math/s_catanl.c: Likewise.
13807         * math/s_cexp.c: Likewise.
13808         * math/s_cexpf.c: Likewise.
13809         * math/s_cexpl.c: Likewise.
13810         * math/s_clog.c: Likewise.
13811         * math/s_clog10.c: Likewise.
13812         * math/s_clog10f.c: Likewise.
13813         * math/s_clog10l.c: Likewise.
13814         * math/s_clogf.c: Likewise.
13815         * math/s_clogl.c: Likewise.
13816         * math/s_csqrt.c: Likewise.
13817         * math/s_csqrtf.c: Likewise.
13818         * math/s_csqrtl.c: Likewise.
13819         * math/s_ctanf.c: Likewise.
13820         * math/s_ctanh.c: Likewise.
13821         * math/s_ctanhf.c: Likewise.
13822         * math/s_ctanhl.c: Likewise.
13823         * math/s_ctanl.c: Likewise.
13824
13825         * math/math_private.h: Define __nan, __nanf, __nanl.
13826         * math/s_cacosh.c: Include <math_private.h>.
13827         * math/s_cacoshl.c: Likewise.
13828         * math/s_casinh.c: Likewise.
13829         * math/s_casinhf.c: Likewise.
13830         * math/s_casinhl.c: Likewise.
13831         * math/s_ccos.c: Rely entire on ccosh.
13832         * math/s_ccosf.c: Rely entire on ccoshf.
13833         * math/s_ccosl.c: Rely entirely on ccoshl.
13834         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
13835         Remove tests for FE_INVALID.
13836         * math/s_ccoshf.c: Likewise.
13837         * math/s_ccoshl.c: Likewise.
13838         * math/s_csin.c: Likewise.
13839         * math/s_csinf.c: Likewise.
13840         * math/s_csinh.c Likewise.
13841         * math/s_csinhf.c: Likewise.
13842         * math/s_csinhl.c: Likewise.
13843         * math/s_csinl.c: Likewise.
13844         * math/s_ctan.c: Likewise.
13845         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
13846         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
13847         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
13848
13849 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
13850
13851         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
13852         compilation problems.
13853
13854         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
13855         __builtin_expect.
13856
13857 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
13858
13859         * sysdeps/i386/configure.in: Test for -mfma4 option.
13860         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
13861         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
13862         COMMON_CPUID_INDEX_80000001.
13863         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
13864         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
13865         use it if FMA3 is not supported.
13866         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13867
13868         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
13869         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
13870
13871 2011-10-20  Andreas Schwab  <schwab@redhat.com>
13872
13873         [BZ #12892]
13874         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
13875         it would create a cycle with a link time dependency.
13876
13877 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
13878
13879         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
13880         instruction.
13881         * string/Makefile (strop-tests): Add rawmemchr.
13882         * string/test-rawmemchr.c: New file.
13883
13884         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
13885         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
13886         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
13887         when compiling str{,n}casecmp and when AVX is available.  Hook up
13888         new optimized code in initializers.
13889
13890 2011-10-19  Andreas Schwab  <schwab@redhat.com>
13891
13892         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
13893         __feraiseexcept instead of feraiseexcept.
13894
13895 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
13896
13897         * math/math_private.h: Define defaults for libc_fetestexcept and
13898         libc_feupdateenv.
13899         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
13900         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13901         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13902         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13903         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13904         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13905         libc_fetestexcept and libc_feupdateenv.
13906
13907         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
13908         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
13909         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
13910         * sysdeps/x86_64/fpu/math_private.h: Define special version of
13911         libc_feholdexcept_setround.
13912
13913         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
13914         Add s_nearbyint-c and s_nearbyintf-c.
13915         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
13916         nearbyintf inlines.
13917         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
13918         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
13919         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
13920         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
13921
13922         * math/math_private.h: Define defaults for libc_fegetround,
13923         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
13924         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
13925         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
13926         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
13927         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
13928         standard functions.
13929         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13930         Remove comments and hacks for old compiler versions.
13931         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13932         libc_fegetround, libc_fesetround, libc_feholdexcept, and
13933         libc_feholdexceptl.
13934
13935 2011-10-18  Andreas Schwab  <schwab@redhat.com>
13936
13937         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
13938         (__feraiseexcept_renamed): Add __NTH.
13939         (feraiseexcept): Add __NTH.  Rename local variables to fix
13940         namespace violations.
13941
13942 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
13943
13944         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
13945
13946         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
13947
13948         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
13949         recently added interfaces.
13950         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
13951
13952         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
13953         about macro parameter expansion.
13954
13955         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
13956         __NO_MATH_INLINES is defined.  Cleanups.
13957
13958         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
13959         and __floorf is target has SSE4.1.
13960         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
13961         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
13962         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
13963         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
13964
13965         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
13966         name.
13967         (floorf): Likewise.
13968
13969         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
13970
13971 2011-10-17  Andreas Schwab  <schwab@redhat.com>
13972
13973         * misc/sys/cdefs.h: Fix last change.
13974
13975         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
13976         database lookup.
13977
13978 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
13979
13980         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
13981
13982         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
13983         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13984         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13985         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13986         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13987         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13988         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13989         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13990         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13991         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
13992         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
13993         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
13994         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
13995         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
13996         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
13997         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
13998         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
13999         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14000         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14001         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14002         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14003         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14004
14005         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14006         ceil, ceilf, floor, floorf.
14007
14008         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14009         Perform IRELATIVE relocations last.
14010
14011         * elf/do-rel.h: Add another parameter nrelative, replacing the
14012         local variable with the same name.  Change name of the function
14013         to end in Rel or Rela (uppercase).
14014         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14015         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14016         elf_dynamic_do_##reloc function.
14017
14018 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14019
14020         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14021         is sufficient, at least on modern CPUs.
14022
14023         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14024
14025         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14026         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14027
14028         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14029         __expl_finite.
14030         * math/bits/math-finite.h: Add entries for exp.
14031         * math/e_expl.c: Add __*_finite alias.
14032         * sysdeps/i386/fpu/e_exp.S: Likewise.
14033         * sysdeps/i386/fpu/e_expf.S: Likewise.
14034         * sysdeps/i386/fpu/e_expl.c: Likewise.
14035         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14036         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14037         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14038         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14039         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14040         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14041         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14042
14043         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14044         is sufficient, at least on modern CPUs.
14045
14046         * ctype/ctype-info.c (__ctype_init): Define.
14047         * include/ctype.h (__ctype_init): Declare.
14048         (__ctype_b_loc): The variable is always initialized.
14049         (__ctype_toupper_loc): Likewise.
14050         (__ctype_tolower_loc): Likewise.
14051         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14052         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14053
14054 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14055
14056         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14057
14058         * configure.in: Also look in $cxxmachine/include for C++ system
14059         headers.
14060
14061 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14062
14063         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14064         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14065         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14066         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14067         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14068         (USE_AS_WMEMCMP): New macro.
14069         Fixing indents.
14070         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14071         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14072         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14073         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14074         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14075         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14076         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14077         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14078         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14079         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14080         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14081         (USE_AS_WMEMCMP): New macro.
14082         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14083         * sysdeps/string/test-memcmp.c: Update.
14084         Fix simple_wmemcmp.
14085         Add new tests.
14086         * wcsmbs/wmemcmp.c: Update.
14087         (WMEMCMP): New macro.
14088         Fix overflow bug.
14089
14090 2011-10-12  Andreas Jaeger  <aj@suse.de>
14091
14092         [BZ #13268]
14093         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14094
14095 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14096
14097         * libio/iofwide.c (do_length): Avoid warning.
14098
14099         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14100
14101 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14102
14103         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14104
14105         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14106         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14107         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14108         * sysdeps/i386/i686/fpu/e_log.S: New file.
14109         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14110         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14111
14112         * ctype/ctype.h: Add support for inlined isXXX functions when
14113         compiling C++ code.
14114
14115 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14116
14117         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14118
14119         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14120
14121 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14122
14123         [BZ #13291]
14124         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14125
14126 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14127
14128         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14129         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14130         feraiseexcept.
14131
14132         * sysdeps/x86_64/memrchr.S: Check for zero size.
14133
14134         * string/stratcliff.c: Add memrchr tests.
14135
14136 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14137
14138         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14139         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14140         rawmemchr-sse2 rawmemchr-sse2-bsf.
14141         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14142         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14143         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14144         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14145         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14146         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14147         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14148         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14149         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14150         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14151         * string/memrchr.c (MEMRCHR): New macro.
14152
14153 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14154
14155         Add integration with gcc's -ffinite-math-only and optimize wrapper
14156         functions in libm.
14157         * Versions.def: Define GLIBC_2.15 version for libm.
14158         * math/Makefile (headers): Add bits/math-finite.h.
14159         * math/bits/math-finite.h: New file.
14160         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14161         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14162         * math/e_acoshl.c: Add __*_finite alias.
14163         * math/e_acosl.c: Likewise.
14164         * math/e_asinl.c: Likewise.
14165         * math/e_atan2l.c: Likewise.
14166         * math/e_atanhl.c: Likewise.
14167         * math/e_coshl.c: Likewise.
14168         * math/e_exp10.c: Likewise.
14169         * math/e_exp10f.c: Likewise.
14170         * math/e_exp10l.c: Likewise.
14171         * math/e_exp2l.c: Likewise.
14172         * math/e_fmodl.c: Likewise.
14173         * math/e_gammal_r.c: Likewise.
14174         * math/e_hypotl.c: Likewise.
14175         * math/e_j0l.c: Likewise.
14176         * math/e_j1l.c: Likewise.
14177         * math/e_jnl.c: Likewise.
14178         * math/e_lgammal_r.c: Likewise.
14179         * math/e_log10l.c: Likewise.
14180         * math/e_log2l.c: Likewise.
14181         * math/e_logl.c: Likewise.
14182         * math/e_powl.c: Likewise.
14183         * math/e_sinhl.c: Likewise.
14184         * math/e_sqrtl.c: Likewise.
14185         * math/e_scalb.c: Completely rewritten and optimized.
14186         * math/e_scalbf.c: Likewise.
14187         * math/e_scalbl.c: Likewise.
14188         * math/w_acos.c: Likewise.
14189         * math/w_acosf.c: Likewise.
14190         * math/w_acosl.c: Likewise.
14191         * math/w_acosh.c: Likewise.
14192         * math/w_acoshf.c: Likewise.
14193         * math/w_acoshl.c: Likewise.
14194         * math/w_asin.c: Likewise.
14195         * math/w_asinf.c: Likewise.
14196         * math/w_asinl.c: Likewise.
14197         * math/w_atan2.c: Likewise.
14198         * math/w_atan2f.c: Likewise.
14199         * math/w_atan2l.c: Likewise.
14200         * math/w_atanh.c: Likewise.
14201         * math/w_atanhf.c: Likewise.
14202         * math/w_atanhl.c: Likewise.
14203         * math/w_exp10.c: Likewise.
14204         * math/w_exp10f.c: Likewise.
14205         * math/w_exp10l.c: Likewise.
14206         * math/w_fmod.c: Likewise.
14207         * math/w_fmodf.c: Likewise.
14208         * math/w_fmodl.c: Likewise.
14209         * math/w_j0.c: Likewise.
14210         * math/w_j0f.c: Likewise.
14211         * math/w_j0l.c: Likewise.
14212         * math/w_j1.c: Likewise.
14213         * math/w_j1f.c: Likewise.
14214         * math/w_j1l.c: Likewise.
14215         * math/w_jn.c: Likewise.
14216         * math/w_jnf.c: Likewise.
14217         * math/w_log.c: Likewise.
14218         * math/w_logf.c: Likewise.
14219         * math/w_logl.c: Likewise.
14220         * math/w_log10.c: Likewise.
14221         * math/w_log10f.c: Likewise.
14222         * math/w_log10l.c: Likewise.
14223         * math/w_log2.c: Likewise.
14224         * math/w_log2f.c: Likewise.
14225         * math/w_log2l.c: Likewise.
14226         * math/w_pow.c: Likewise.
14227         * math/w_powf.c: Likewise.
14228         * math/w_powl.c: Likewise.
14229         * math/w_remainder.c: Likewise.
14230         * math/w_remainderf.c: Likewise.
14231         * math/w_remainderl.c: Likewise.
14232         * math/w_scalb.c: Likewise.
14233         * math/w_scalbf.c: Likewise.
14234         * math/w_scalbl.c: Likewise.
14235         * math/w_sqrt.c: Likewise.
14236         * math/w_sqrtf.c: Likewise.
14237         * math/w_sqrtl.c: Likewise.
14238         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14239         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14240         used.
14241         * math/math_private.h: Declare __kernel_standard_f.
14242         * math/w_cosh.c: Remove cruft and optimize a bit.
14243         * math/w_coshf.c: Likewise.
14244         * math/w_coshl.c: Likewise.
14245         * math/w_exp2.c: Likewise.
14246         * math/w_exp2f.c: Likewise.
14247         * math/w_exp2l.c: Likewise.
14248         * math/w_hypot.c: Likewise.
14249         * math/w_hypotf.c: Likewise.
14250         * math/w_hypotl.c: Likewise.
14251         * math/w_lgamma.c: Likewise.
14252         * math/w_lgamma_r.c: Likewise.
14253         * math/w_lgammaf.c: Likewise.
14254         * math/w_lgammaf_r.c: Likewise.
14255         * math/w_lgammal.c: Likewise.
14256         * math/w_lgammal_r.c: Likewise.
14257         * math/w_sinh.c: Likewise.
14258         * math/w_sinhf.c: Likewise.
14259         * math/w_sinhl.c: Likewise.
14260         * math/w_tgamma.c: Likewise.
14261         * math/w_tgammaf.c: Likewise.
14262         * math/w_tgammal.c: Likewise.
14263         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14264         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14265         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14266         Minor optimizations.  Pretty printing.  Remove cruft.
14267         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14268         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14269         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14270         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14271         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14272         * sysdeps/i386/fpu/e_asin.S: Likewise.
14273         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14274         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14275         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14276         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14277         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14278         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14279         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14280         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14281         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14282         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14283         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14284         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14285         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14286         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14287         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14288         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14289         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14290         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14291         * sysdeps/i386/fpu/e_log.S: Likewise.
14292         * sysdeps/i386/fpu/e_log10.S: Likewise.
14293         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14294         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14295         * sysdeps/i386/fpu/e_log2.S: Likewise.
14296         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14297         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14298         * sysdeps/i386/fpu/e_logf.S: Likewise.
14299         * sysdeps/i386/fpu/e_logl.S: Likewise.
14300         * sysdeps/i386/fpu/e_pow.S: Likewise.
14301         * sysdeps/i386/fpu/e_powf.S: Likewise.
14302         * sysdeps/i386/fpu/e_powl.S: Likewise.
14303         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14304         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14305         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14306         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14307         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14308         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14309         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14310         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14311         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14312         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14313         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14314         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14315         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14316         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14317         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14318         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14319         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14320         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14321         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14322         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14323         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14324         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14325         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14326         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14327         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14328         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14329         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14330         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14331         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14332         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14333         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14334         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14335         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14336         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14337         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14338         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14339         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14340         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14341         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14342         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14343         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14344         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14345         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14346         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14347         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14348         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14349         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14350         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14351         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14352         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14353         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14354         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14355         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14356         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14357         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14358         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14359         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14360         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14361         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14362         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14363         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14364         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14365         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14366         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14367         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14368         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14369         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14370         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14371         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14372         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14373         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14374         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14375         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14376         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14377         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14378         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14379         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14380         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14381         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14382         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14383         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14384         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14385         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14386         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14387         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14388         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14389         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14390         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14391         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14392         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14393         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14394         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14395         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14396         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14397         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14398         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14399         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14400         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14401         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14402         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14403         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14404         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14405         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14406         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14407         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14408         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14409         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14410         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14411         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14412         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14413         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14414         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14415         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14416         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14417         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14418         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14419         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14420         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14421         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14422         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14423         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14424         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14425         (__isnanf): Likewise.
14426         (__isinf_ns): Likewise.
14427         (__isinf_nsf): Likewise.
14428         (__finite): Likewise.
14429         (__finitef): Likewise.
14430         (__ieee754_sqrt): Define as macro.
14431         (__ieee754_sqrtf): Define as macro.
14432         (__ieee754_sqrtl): Define as macro.
14433         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14434         inlined copy.
14435         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14436         __FINITE_MATH_ONLY__ consistent.
14437         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14438
14439 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14440
14441         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14442         of rawmemchr.
14443
14444         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14445
14446 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14447
14448         * po/ja.po: Update from translation team.
14449
14450 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14451
14452         * locale/programs/locarchive.c (prepare_address_space): New function.
14453         (create_archive, enlarge_archive, open_archive): Use it.
14454
14455         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14456         inside [SHARED], where it is used.
14457
14458         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14459
14460         * nss/getent.c (netgroup_keys): Remove unused variable.
14461         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14462
14463 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14464
14465         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14466         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14467         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14468         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14469         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14470         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14471         * math/Makefile (libm-calls): Add s_isinf_ns.
14472         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14473         * math/multc3.c: Likewise.
14474         * math/s_casin.c: Likewise.
14475         * math/s_casinf.c: Likewise.
14476         * math/s_casinl.c: Likewise.
14477         * math/s_ccos.c: Likewise.
14478         * math/s_ccosf.c: Likewise.
14479         * math/s_ccosl.c: Likewise.
14480         * math/s_ctan.c: Likewise.
14481         * math/s_ctanf.c: Likewise.
14482         * math/s_ctanh.c: Likewise.
14483         * math/s_ctanhf.c: Likewise.
14484         * math/s_ctanhl.c: Likewise.
14485         * math/s_ctanl.c: Likewise.
14486         * math/w_fmod.c: Likewise.
14487         * math/w_fmodf.c: Likewise.
14488         * math/w_fmodl.c: Likewise.
14489         * math/w_remainder.c: Likewise.
14490         * math/w_remainderf.c: Likewise.
14491         * math/w_remainderl.c: Likewise.
14492         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14493         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14494         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14495         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14496         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14497         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14498         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14499         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14500
14501         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14502         of the number.
14503         * stdio-common/printf_fphex.c: Likewise.
14504         * stdio-common/printf_size.c: Likewise.
14505
14506         * math/e_exp10.c: Include math_private.h using <...> not "...".
14507         * math/e_exp10f.c: Likewise.
14508         * math/e_exp10l.c: Likewise.
14509         * math/e_exp2l.c: Likewise.
14510         * math/e_j0l.c: Likewise.
14511         * math/e_j1l.c: Likewise.
14512         * math/e_jnl.c: Likewise.
14513         * math/e_lgammal_r.c: Likewise.
14514         * math/e_rem_pio2l.c: Likewise.
14515         * math/e_scalb.c: Likewise.
14516         * math/e_scalbf.c: Likewise.
14517         * math/e_scalbl.c: Likewise.
14518         * math/k_cosl.c: Likewise.
14519         * math/k_sinl.c: Likewise.
14520         * math/k_tanl.c: Likewise.
14521         * math/s_cacoshf.c: Likewise.
14522         * math/s_catan.c: Likewise.
14523         * math/s_catanf.c: Likewise.
14524         * math/s_catanh.c: Likewise.
14525         * math/s_catanhf.c: Likewise.
14526         * math/s_catanhl.c: Likewise.
14527         * math/s_catanl.c: Likewise.
14528         * math/s_ccosh.c: Likewise.
14529         * math/s_ccoshf.c: Likewise.
14530         * math/s_ccoshl.c: Likewise.
14531         * math/s_cexp.c: Likewise.
14532         * math/s_cexpf.c: Likewise.
14533         * math/s_cexpl.c: Likewise.
14534         * math/s_clog.c: Likewise.
14535         * math/s_clog10.c: Likewise.
14536         * math/s_clog10f.c: Likewise.
14537         * math/s_clog10l.c: Likewise.
14538         * math/s_clogf.c: Likewise.
14539         * math/s_clogl.c: Likewise.
14540         * math/s_csin.c: Likewise.
14541         * math/s_csinf.c: Likewise.
14542         * math/s_csinh.c: Likewise.
14543         * math/s_csinhf.c: Likewise.
14544         * math/s_csinhl.c: Likewise.
14545         * math/s_csinl.c: Likewise.
14546         * math/s_csqrt.c: Likewise.
14547         * math/s_csqrtf.c: Likewise.
14548         * math/s_csqrtl.c: Likewise.
14549         * math/s_ctan.c: Likewise.
14550         * math/s_ctanf.c: Likewise.
14551         * math/s_ctanh.c: Likewise.
14552         * math/s_ctanhf.c: Likewise.
14553         * math/s_ctanhl.c: Likewise.
14554         * math/s_ctanl.c: Likewise.
14555         * math/s_ldexp.c: Likewise.
14556         * math/s_ldexpf.c: Likewise.
14557         * math/s_ldexpl.c: Likewise.
14558         * math/s_significand.c: Likewise.
14559         * math/s_significandf.c: Likewise.
14560         * math/s_significandl.c: Likewise.
14561         * math/w_acos.c: Likewise.
14562         * math/w_acosf.c: Likewise.
14563         * math/w_acosh.c: Likewise.
14564         * math/w_acoshf.c: Likewise.
14565         * math/w_acoshl.c: Likewise.
14566         * math/w_acosl.c: Likewise.
14567         * math/w_asin.c: Likewise.
14568         * math/w_asinf.c: Likewise.
14569         * math/w_asinl.c: Likewise.
14570         * math/w_atan2.c: Likewise.
14571         * math/w_atan2f.c: Likewise.
14572         * math/w_atan2l.c: Likewise.
14573         * math/w_atanh.c: Likewise.
14574         * math/w_atanhf.c: Likewise.
14575         * math/w_atanhl.c: Likewise.
14576         * math/w_cosh.c: Likewise.
14577         * math/w_coshf.c: Likewise.
14578         * math/w_coshl.c: Likewise.
14579         * math/w_dremf.c: Likewise.
14580         * math/w_exp10.c: Likewise.
14581         * math/w_exp10f.c: Likewise.
14582         * math/w_exp10l.c: Likewise.
14583         * math/w_exp2.c: Likewise.
14584         * math/w_exp2f.c: Likewise.
14585         * math/w_fmod.c: Likewise.
14586         * math/w_fmodf.c: Likewise.
14587         * math/w_fmodl.c: Likewise.
14588         * math/w_hypot.c: Likewise.
14589         * math/w_hypotf.c: Likewise.
14590         * math/w_hypotl.c: Likewise.
14591         * math/w_j0.c: Likewise.
14592         * math/w_j0f.c: Likewise.
14593         * math/w_j0l.c: Likewise.
14594         * math/w_j1.c: Likewise.
14595         * math/w_j1f.c: Likewise.
14596         * math/w_j1l.c: Likewise.
14597         * math/w_jn.c: Likewise.
14598         * math/w_jnf.c: Likewise.
14599         * math/w_jnl.c: Likewise.
14600         * math/w_lgamma.c: Likewise.
14601         * math/w_lgamma_r.c: Likewise.
14602         * math/w_lgammaf.c: Likewise.
14603         * math/w_lgammaf_r.c: Likewise.
14604         * math/w_lgammal.c: Likewise.
14605         * math/w_lgammal_r.c: Likewise.
14606         * math/w_log.c: Likewise.
14607         * math/w_log10.c: Likewise.
14608         * math/w_log10f.c: Likewise.
14609         * math/w_log10l.c: Likewise.
14610         * math/w_log2.c: Likewise.
14611         * math/w_log2f.c: Likewise.
14612         * math/w_log2l.c: Likewise.
14613         * math/w_logf.c: Likewise.
14614         * math/w_logl.c: Likewise.
14615         * math/w_pow.c: Likewise.
14616         * math/w_powf.c: Likewise.
14617         * math/w_powl.c: Likewise.
14618         * math/w_remainder.c: Likewise.
14619         * math/w_remainderf.c: Likewise.
14620         * math/w_remainderl.c: Likewise.
14621         * math/w_scalb.c: Likewise.
14622         * math/w_scalbf.c: Likewise.
14623         * math/w_scalbl.c: Likewise.
14624         * math/w_sinh.c: Likewise.
14625         * math/w_sinhf.c: Likewise.
14626         * math/w_sinhl.c: Likewise.
14627         * math/w_sqrt.c: Likewise.
14628         * math/w_sqrtf.c: Likewise.
14629         * math/w_sqrtl.c: Likewise.
14630         * math/w_tgamma.c: Likewise.
14631         * math/w_tgammaf.c: Likewise.
14632         * math/w_tgammal.c: Likewise.
14633
14634         * po/ja.po: Update from translation team.
14635
14636 2011-09-29  Andreas Jaeger  <aj@suse.de>
14637
14638         [BZ #13179]
14639         * sunrpc/netname.c (netname2host): Fix logic.
14640
14641         [BZ #6779]
14642         [BZ #6783]
14643         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14644         correctly.
14645         * math/w_remainder.c (__remainder): Likewise.
14646         * math/w_remainderf.c (__remainderf): Likewise.
14647         * math/libm-test.inc (remainder_test): Add test cases.
14648
14649 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14650
14651         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14652         sdiv_qrnnd.
14653
14654 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14655
14656         * string/test-memcmp.c: Avoid unncessary #defines.
14657         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14658
14659 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14660
14661         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14662         Use new sse2 version for core i3 - i7 as it's faster
14663         than sse42 version.
14664         (bit_Prefer_PMINUB_for_stringop): New.
14665         * sysdeps/x86_64/rawmemchr.S: Update.
14666         Replace with faster SSE2 version.
14667         * sysdeps/x86_64/memrchr.S: New file.
14668         * sysdeps/x86_64/memchr.S: Update.
14669         Replace with faster SSE2 version.
14670
14671 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14672
14673         * elf/dl-load.c (lose): Add cast to avoid warning.
14674
14675 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14676
14677         * po/ca.po: Update from translation team.
14678
14679         * inet/getnetgrent_r.c: Hook up nscd.
14680         * nscd/Makefile (routines): Add nscd_netgroup.
14681         (nscd-modules): Add netgroupcache.
14682         (CFLAGS-netgroupcache.c): Define.
14683         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
14684         (cache_search): Add const to second parameter.
14685         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
14686         INNETGR.
14687         (dbs): Add netgrdb entry.
14688         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
14689         (verify_persistent_db): Handle netgrdb.
14690         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
14691         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
14692         GETFDNETGR.
14693         (netgroup_response_header): Define.
14694         (innetgroup_response_header): Define.
14695         (datahead): Add netgroup_response_header and innetgroup_response_header
14696         elements.
14697         * nscd/nscd.conf: Add entries for netgroup cache.
14698         * nscd/nscd.h (dbtype): Add netgrdb.
14699         (_PATH_NSCD_NETGROUP_DB): Define.
14700         (netgroup_iov_disabled): Declare.
14701         (xmalloc, xcalloc, xrealloc): Move declarations here.
14702         (cache_search): Adjust prototype.
14703         Add netgroup-related prototypes.
14704         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
14705         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
14706         (__nscd_innetgr): Declare.
14707         * nscd/selinux.c (perms): Use access_vector_t as element type and
14708         add netgroup-related initializers.
14709         * nscd/netgroupcache.c: New file.
14710         * nscd/nscd_netgroup.c: New file.
14711         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
14712         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
14713         For four parameters use innetgr.
14714         * nss/nss_files/files-init.c: Add definition and callback for netgr.
14715         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
14716         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
14717         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
14718
14719         * nscd/connections.c (register_traced_file): Don't register file
14720         for disabled databases.
14721
14722 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
14723
14724         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
14725
14726         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
14727         from tree and freeing node.
14728
14729 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
14730
14731         * nss/nsswitch.c (__nss_database_lookup): Handle
14732         nss_parse_service_list out of memory case.
14733
14734 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
14735
14736         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
14737         out of memory case.
14738
14739 2011-10-04  Andreas Schwab  <schwab@redhat.com>
14740
14741         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
14742         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
14743         pass it down.
14744         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
14745         elf_machine_rela, elf_machine_lazy_rel.
14746         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
14747         (ELF_DYNAMIC_DO_REL): Likewise.
14748         (ELF_DYNAMIC_DO_RELA): Likewise.
14749         (ELF_DYNAMIC_RELOCATE): Likewise.
14750         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
14751         to ELF_DYNAMIC_DO_REL.
14752         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
14753         (dl_main): In trace mode always set __RTLD_NOIFUNC.
14754         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
14755         elf_machine_rela.
14756         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
14757         skip_ifunc, don't call ifunc function if non-zero.
14758         (elf_machine_rela): Likewise.
14759         (elf_machine_lazy_rel): Likewise.
14760         (elf_machine_lazy_rela): Likewise.
14761         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14762         (elf_machine_lazy_rel): Likewise.
14763         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14764         Likewise.
14765         (elf_machine_lazy_rel): Likewise.
14766         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14767         Likewise.
14768         (elf_machine_lazy_rel): Likewise.
14769         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
14770         (elf_machine_lazy_rel): Likewise.
14771         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
14772         (elf_machine_lazy_rel): Likewise.
14773         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14774         (elf_machine_lazy_rel): Likewise.
14775         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
14776         (elf_machine_lazy_rel): Likewise.
14777         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
14778         (elf_machine_lazy_rel): Likewise.
14779         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14780         (elf_machine_lazy_rel): Likewise.
14781
14782 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
14783
14784         * nss/nss_files/files-init.c (_nss_files_init): Use static
14785         initialization for all the *_traced_file variables.
14786
14787 2011-09-28  Andreas Schwab  <schwab@redhat.com>
14788
14789         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14790
14791 2011-09-27  Roland McGrath  <roland@hack.frob.com>
14792
14793         [BZ #13226]
14794         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
14795
14796 2011-09-27  Andreas Schwab  <schwab@redhat.com>
14797
14798         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14799         Reread the line before reparsing it.
14800
14801 2011-09-26  Andreas Schwab  <schwab@redhat.com>
14802
14803         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
14804
14805 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
14806             Maxim Kuvyrkov  <maxim@codesourcery.com>
14807             Joseph Myers  <joseph@codesourcery.com>
14808
14809         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
14810         if needed for __stack_chk_guard.
14811
14812 2011-09-19  Roland McGrath  <roland@hack.frob.com>
14813
14814         * sysdeps/posix/spawni.c (script_execute): Always define it.
14815         It will be optimized away if unused.
14816         (maybe_script_execute): New function.
14817         (__spawni): Call it.
14818
14819         * Makerules: Don't include tls.make.
14820         (config-tls): Always set to thread.
14821         * tls.make.c: File removed.
14822
14823 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
14824
14825         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
14826         * config.make.in (CPPFLAGS-config): New substituted variable.
14827
14828 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14829
14830         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
14831
14832         [BZ #13192]
14833         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
14834         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
14835
14836 2011-09-15  Roland McGrath  <roland@hack.frob.com>
14837
14838         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
14839         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
14840         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14841         (CALL_FAIL): Likewise.
14842         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
14843         (CALL_FAIL): Macro removed.
14844         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
14845
14846 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14847
14848         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
14849         for __FINITE_MATH_ONLY__ == 1.
14850
14851 2011-09-15  Andreas Schwab  <schwab@redhat.com>
14852
14853         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
14854         __ieee754_sqrt instead of sqrt.
14855         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
14856         __ieee754_sqrtf instead of sqrtf.
14857         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
14858         __floorf instead of floorf.
14859         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
14860         __floorf, __truncf instead of floorf, truncf.
14861
14862 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
14863
14864         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
14865
14866         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
14867         __extern_always_inline.
14868         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
14869         32-bit.
14870
14871 2011-09-14  Andreas Schwab  <schwab@redhat.com>
14872
14873         * elf/rtld.c (dl_main): Also relocate in dependency order when
14874         doing symbol dependency testing.
14875
14876 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
14877
14878         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14879         Always define `refsym'.
14880
14881 2011-09-13  Andreas Schwab  <schwab@redhat.com>
14882
14883         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
14884         (__FD_ELT): Renamed from __FDELT.
14885         * misc/bits/select2.h (__FD_ELT): Likewise.
14886         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
14887         __FD_MASK instead of __FDELT, __FDMASK.
14888         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14889         Likewise.
14890         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14891         Likewise.
14892
14893         * elf/Makefile (gen-ldd): Fix pattern.
14894
14895         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
14896         (init_tls): Likewise.
14897
14898 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
14899
14900         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
14901
14902 2011-09-12  Andreas Schwab  <schwab@redhat.com>
14903
14904         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
14905         `struct cmsghdr *' instead of `void *'.
14906         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
14907         Likewise.
14908
14909 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
14910
14911         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
14912         if non-absolute.
14913         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
14914         ldd_rewrite_script.
14915
14916 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
14917
14918         * configure.in: Remove --with-tls option.
14919         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
14920         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
14921         out in case it is missing.
14922         * sysdeps/ia64/elf/configure.in: Likewise.
14923         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
14924         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
14925         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
14926         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
14927         * sysdeps/sh/elf/configure.in: Likewise.
14928         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
14929         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14930         * sysdeps/x86_64/elf/configure.in: Likewise.
14931         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
14932         * sysdeps/mach/hurd/tls.h: Likewise.
14933
14934         [BZ #13067]
14935         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
14936
14937         [BZ #13090]
14938         * configure.in: Fix use of AC_INIT.
14939
14940         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
14941
14942 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
14943
14944         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
14945         __set_errno.
14946         * malloc/hooks.c: Likewise.
14947
14948         [BZ #11929]
14949         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
14950         variables statically.
14951         (narenas): Initialize.
14952         (list_lock): Initialize.
14953         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
14954         initializtion of main_arena and list_lock.  Small cleanups.
14955         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
14956         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
14957         Add initializers to main_arena and mp_.
14958         (malloc_state): Remove pagesize member.  Change all users to use
14959         GLRO(dl_pagesize).
14960
14961         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
14962         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
14963         is always initialized.
14964
14965         * malloc/malloc.c: Removed unused configurations and dead code.
14966         * malloc/arena.c: Likewise.
14967         * malloc/hooks.c: Likewise.
14968         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
14969
14970         * include/tls.h: Removed.  USE___THREAD must always be defined.
14971         * bits/libc-tsd.h: Don't handle !USE___THREAD.
14972         * elf/dl-libc.c: Likewise.
14973         * elf/dl-tsd.c: Likewise.
14974         * include/errno.h: Likewise.
14975         * include/netdb.h: Likewise.
14976         * include/resolv.h: Likewise.
14977         * inet/herrno-loc.c: Likewise.
14978         * inet/herrno.c: Likewise.
14979         * malloc/arena.c: Likewise.
14980         * malloc/hooks.c: Likewise.
14981         * malloc/malloc.c: Likewise.
14982         * resolv/res-state.c: Likewise.
14983         * resolv/res_libc.c: Likewise.
14984         * sysdeps/i386/dl-machine.h: Likewise.
14985         * sysdeps/ia64/dl-machine.h: Likewise.
14986         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
14987         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14988         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
14989         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
14990         * sysdeps/sh/dl-machine.h: Likewise.
14991         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
14992         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
14993         * sysdeps/unix/i386/sysdep.S: Likewise.
14994         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
14995         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14996         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14997         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
14998         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14999         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15000         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15001         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15002         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15003         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15004         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15005         * sysdeps/x86_64/dl-machine.h: Likewise.
15006         * tls.make.c: Likewise.
15007
15008         * configure.in: Remove --with-__thread option.  Make tests for
15009         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15010         tls_model attribute fail if no support is available.  Remove
15011         USE_IN_LIBIO.
15012         * Makeconfig: Adjust for dropped configure option.  All features are
15013         now mandatory.
15014         * Makerules: Likewise.
15015         * Versions.def: Likewise.
15016         * argp/argp-fmtstream.c: Likewise.
15017         * argp/argp-fmtstream.h: Likewise.
15018         * argp/argp-help.c: Likewise.
15019         * assert/assert.c: Likewise.
15020         * config.h.in: Likewise.
15021         * config.make.in: Likewise.
15022         * configure: Likewise.
15023         * configure.in: Likewise.
15024         * csu/Versions: Likewise.
15025         * csu/init.c: Likewise.
15026         * elf/tst-audit2.c: Likewise.
15027         * elf/tst-tls10.c: Likewise.
15028         * elf/tst-tls10.h: Likewise.
15029         * elf/tst-tls11.c: Likewise.
15030         * elf/tst-tls12.c: Likewise.
15031         * elf/tst-tls14.c: Likewise.
15032         * elf/tst-tlsmod11.c: Likewise.
15033         * elf/tst-tlsmod12.c: Likewise.
15034         * elf/tst-tlsmod13.c: Likewise.
15035         * elf/tst-tlsmod13a.c: Likewise.
15036         * elf/tst-tlsmod14a.c: Likewise.
15037         * elf/tst-tlsmod15b.c: Likewise.
15038         * elf/tst-tlsmod16a.c: Likewise.
15039         * elf/tst-tlsmod16b.c: Likewise.
15040         * elf/tst-tlsmod7.c: Likewise.
15041         * elf/tst-tlsmod8.c: Likewise.
15042         * elf/tst-tlsmod9.c: Likewise.
15043         * gmon/gmon.c: Likewise.
15044         * grp/fgetgrent_r.c: Likewise.
15045         * grp/putgrent.c: Likewise.
15046         * hurd/fopenport.c: Likewise.
15047         * include/libc-symbols.h: Likewise.
15048         * include/tls.h: Likewise.
15049         * intl/gettextP.h: Likewise.
15050         * intl/loadinfo.h: Likewise.
15051         * locale/global-locale.c: Likewise.
15052         * locale/localeinfo.h: Likewise.
15053         * mach/devstream.c: Likewise.
15054         * malloc/arena.c: Likewise.
15055         * malloc/set-freeres.c: Likewise.
15056         * misc/err.c: Likewise.
15057         * misc/getttyent.c: Likewise.
15058         * misc/mntent_r.c: Likewise.
15059         * posix/getopt.c: Likewise.
15060         * posix/wordexp.c: Likewise.
15061         * pwd/fgetpwent_r.c: Likewise.
15062         * resolv/Versions: Likewise.
15063         * resolv/res_hconf.c: Likewise.
15064         * shadow/fgetspent_r.c: Likewise.
15065         * shadow/putspent.c: Likewise.
15066         * stdio-common/printf_fphex.c: Likewise.
15067         * stdio-common/tmpfile.c: Likewise.
15068         * stdlib/abort.c: Likewise.
15069         * stdlib/fmtmsg.c: Likewise.
15070         * sunrpc/auth_unix.c: Likewise.
15071         * sunrpc/clnt_perr.c: Likewise.
15072         * sunrpc/clnt_tcp.c: Likewise.
15073         * sunrpc/clnt_udp.c: Likewise.
15074         * sunrpc/clnt_unix.c: Likewise.
15075         * sunrpc/openchild.c: Likewise.
15076         * sunrpc/svc_simple.c: Likewise.
15077         * sunrpc/svc_tcp.c: Likewise.
15078         * sunrpc/svc_udp.c: Likewise.
15079         * sunrpc/svc_unix.c: Likewise.
15080         * sunrpc/xdr.c: Likewise.
15081         * sunrpc/xdr_array.c: Likewise.
15082         * sunrpc/xdr_rec.c: Likewise.
15083         * sunrpc/xdr_ref.c: Likewise.
15084         * sunrpc/xdr_stdio.c: Likewise.
15085
15086 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15087
15088         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15089
15090 2011-07-03  Andreas Jaeger  <aj@suse.de>
15091
15092         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15093         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15094         regenerate with gen-libm-tests.pl.
15095
15096 2010-05-12  Petr Baudis  <pasky@suse.cz>
15097
15098         [BZ #11589]
15099         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15100         around j0() zero points by switching to j1().
15101         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15102         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15103         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15104         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15105
15106 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15107
15108         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15109         instead of 0.
15110         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15111         instead of 0.                              .
15112         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15113         Patch in part by Pavel Roskin <proski@gnu.org>.
15114
15115         [BZ #13138]
15116         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15117         realloc.
15118         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15119         Free memory block if necessary.
15120
15121         [BZ #12847]
15122         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15123         be NULL.  Don't lock in this case.
15124
15125 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15126
15127         * elf/elf.h (ELFOSABI_GNU): New macro.
15128         (ELFOSABI_LINUX): Define to that.
15129
15130 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15131
15132         * string/strncat.c (strncat): Undef the symbol in case it has been
15133         defined in bits/string.h.
15134
15135 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15136
15137         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15138
15139         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15140         link map.
15141
15142 2011-08-17  Andreas Jaeger  <aj@suse.de>
15143
15144         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15145
15146 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15147             Ian Lance Taylor  <iant@google.com>
15148
15149         * math/libm-test.inc (lround_test): New testcase.
15150         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15151
15152 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15153
15154         * Makefile: Remove support for automatic cvs check-ins.
15155         * Makerules: Likewise.
15156         * config.make.in: Likewise.
15157         * configure.in: Likewise.
15158         * intl/Makefile: Likewise.
15159         * locale/Makefile: Likewise.
15160         * po/Makefile: Likewise.
15161         * posix/Makefile: Likewise.
15162         * sysdeps/gnu/Makefile: Likewise.
15163         * sysdeps/mach/hurd/Makefile: Likewise.
15164         * sysdeps/sparc/sparc32/Makefile: Likewise.
15165
15166         [BZ #13118]
15167         * posix/Makefile (bug-regex32-ENV): Define.
15168         Patch by John Stanley <jpsinthemix@verizon.net>.
15169
15170         * misc/Makefile (headers): Add bits/select2.h.
15171         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15172         * misc/bits/select2.h: New file.
15173         * include/bits/select2.h: New file.
15174         * debug/Makefile (routines): Add fdelt_chk.
15175         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15176         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15177         FD_ISSET.
15178         * debug/fdelt_chk.c: New file.
15179
15180         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15181         * wcsmbs/test-wmemcmp.c: Likewise.
15182         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15183         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15184
15185 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15186
15187         * string/Makefile (strop-tests): Add memcmp.
15188         * string/test-wmemcmp.c: New file.
15189         * string/test-memcmp.c: Add wmemcmp support.
15190
15191 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15192
15193         [BZ #13153]
15194         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15195         2011-07-19 change.
15196
15197         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15198         garbage value in a __mach_port_mod_refs call in the cases of the
15199         task-self and thread-self ports.
15200
15201 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15202
15203         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15204
15205 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15206
15207         * elf/dl-load.c (lose): Check for non-null L.
15208
15209 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15210
15211         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15212
15213         * elf/dl-libc.c (dlerror_run): Pass back error code from
15214         dl_catch_error.
15215
15216         [BZ #13123]
15217         * elf/dl-load.c (lose): Free l_origin if it is valid.
15218
15219         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15220         names.
15221         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15222         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15223         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15224         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15225         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15226         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15227
15228 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15229
15230         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15231         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15232         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15233         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15234         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15235         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15236         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15237         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15238         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15239         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15240
15241 2011-08-15  Alan Modra  <amodra@gmail.com>
15242
15243         [BZ #13092]
15244         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15245         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15246         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15247         ppc_mcount to static-only-routines.
15248         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15249         __mcount_internal.
15250         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15251         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15252
15253 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15254
15255         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15256         for finite and infinity parameters.
15257
15258 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15259
15260         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15261         and add nop instructions for throughput optimization.
15262         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15263
15264 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15265
15266         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15267         aligned copy for power7 with vector-scalar instructions.
15268         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15269
15270 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15271
15272         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15273         AVX check.
15274
15275 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15276
15277         [BZ #13144]
15278         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15279         last change.
15280
15281 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15282
15283         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15284         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15285         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15286         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15287         clock_gettime.
15288
15289 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15290
15291         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15292         Forgot to demangle the pointer.
15293
15294         * sysdeps/i386/sysdep.h: Define atom_text_section.
15295         * sysdeps/x86_64/sysdep.h: Likewise.
15296         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15297         section with atom_text_section.
15298         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15299         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15300         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15301         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15302         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15303
15304         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15305         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15306         already be defined.  Change to take two parameters and don't assign
15307         result to variable.  Adjust all users.
15308         Define INTERNAL_GETTIME if not already defined.
15309         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15310         call.
15311         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15312         HAVE_CLOCK_GETTIME_VSYSCALL.
15313         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15314
15315         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15316         gettimeofday vsyscall, just use time.
15317
15318 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15319
15320         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15321         <errno.h>.
15322
15323 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15324
15325         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15326         syscall on x86-64.
15327         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15328         syscall.
15329         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15330         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15331         syscall if possible.
15332
15333 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15334
15335         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15336         e_ident.  Don't pass to find_mapsXX.
15337         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15338
15339 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15340
15341         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15342         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15343         * sysdeps/x86_64/multiarch/strchr.S: Update.
15344         Check bit_slow_BSF bit.
15345         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15346         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15347         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15348
15349 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15350
15351         [BZ #13134]
15352         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15353         before glibc 2.15.
15354         (tryshell): Define.
15355         (__spawni): Change last parameter to be flag.  Test
15356         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15357         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15358         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15359         * posix/spawni.c: Likewise.
15360         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15361         * posix/spawnp.c: Likewise.  Change normal version to use
15362         SPAWN_XFLAGS_USE_PATH.
15363         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15364         SPAWN_XFLAGS_TRY_SHELL.
15365
15366         [BZ #13150]
15367         * posix/glob.h: Remove gcc 1.x support.
15368
15369         [BZ #13068]
15370         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15371
15372 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15373
15374         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15375         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15376         strrchr-sse2-bsf
15377         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15378         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15379         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15380         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15381         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15382         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15383
15384 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15385
15386         * sysdeps/x86_64/wcscmp.S: New file.
15387
15388         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15389         wcscmp-c wcscmp-sse2
15390         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15391         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15392         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15393         * wcsmbs/wcscmp.c: Allow renaming.
15394
15395 2011-09-05  David S. Miller  <davem@davemloft.net>
15396
15397         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15398         stack slot, rather than the struct return pointer slot.
15399         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15400         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15401         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15402         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15403
15404 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15405
15406         * po/ja.po: Update from translation team.
15407
15408         [BZ #13144]
15409         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15410         kernel in 64-bit binaries.
15411
15412 2011-09-01  David S. Miller  <davem@davemloft.net>
15413
15414         * elf/elf.h (HWCAP_SPARC_*): Move to..
15415         * sysdeps/sparc/sysdep.h: this new file and add new values.
15416         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15417         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15418         _DL_HWCAP_COUNT to 24.
15419         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15420         entries.
15421         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15422         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15423         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15424         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15425         instead of magic constants.
15426         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15427
15428 2011-08-31  David S. Miller  <davem@davemloft.net>
15429
15430         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15431         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15432         Reimplement to do errno handling inline.
15433         (SYSCALL_ERROR_HANDLER): New macro.
15434         (__SYSCALL_STRING): Do not do errno handling in asm.
15435         (__CLONE_SYSCALL_STRING): Delete.
15436         (__INTERNAL_SYSCALL_STRING): Delete.
15437         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15438         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15439         (PSEUDO): Reimplement to do errno handling inline.
15440         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15441         (SYSCALL_ERROR_HANDLER): New macro.
15442         (__SYSCALL_STRING): Do not do errno handling in asm.
15443         (__CLONE_SYSCALL_STRING): Delete.
15444         (__INTERNAL_SYSCALL_STRING): Delete.
15445         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15446         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15447         i386.
15448         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15449         (inline_syscall*): Add 'err' argument.
15450         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15451         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15452         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15453         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15454
15455         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15456         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15457
15458 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15459
15460         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15461
15462 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15463
15464         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15465         directive.
15466
15467 2011-08-24  David S. Miller  <davem@davemloft.net>
15468
15469         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15470
15471 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15472
15473         * elf/Makefile: Add rules to build and run unload8 test.
15474         * elf/unload8.c: New file.
15475         * elf/unload8mod1.c: New file.
15476         * elf/unload8mod1x.c: New file.
15477         * elf/unload8mod2.c: New file.
15478         * elf/unload8mod3.c: New file.
15479
15480         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15481         it wasn't used.
15482
15483 2011-08-23  David S. Miller  <davem@davemloft.net>
15484
15485         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15486         subtract stack bias.
15487         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15488         %sp not %fp in calculations.
15489         (_JMPBUF_UNWINDS_ADJ): Likewise.
15490
15491         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15492         (aio_suspend): Call it to force an exception region around the
15493         AIO_MISC_WAIT() invocation.
15494
15495 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15496
15497         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15498         backslash.
15499
15500 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15501
15502         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15503         protection macro.
15504         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15505         and <dl-machine.h>.
15506         (Elf64_FuncDesc): Remove.
15507
15508 2011-08-22  David S. Miller  <davem@davemloft.net>
15509
15510         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15511         sigaltstack check, add missing cfi directives.
15512         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15513         missing cfi directives, and sigaltstack handling.
15514
15515 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15516
15517         [BZ #11724]
15518         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15519         object is seen twice.
15520         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15521
15522         * elf/Makefile (distribute): Add tst-initorder2.c.
15523         (tests): Add tst-initorder2.
15524         (modules-names): Add tst-initorder2a tst-initorder2b
15525         tst-initorder2c tst-initorder2d.  Add rules to build them.
15526         ($(objpfx)tst-initorder2.out): New rule.
15527         * elf/tst-initorder2.c: New file.
15528         * elf/tst-initorder2.exp: New file.
15529
15530 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15531
15532         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15533
15534         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15535         dependencies back to end of function.
15536
15537         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15538         $(elfobjdir)/ld.so.
15539
15540 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15541
15542         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15543         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15544         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15545         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15546         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15547         of __vdso_gettimeofday.
15548         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15549         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15550         attribute_hidden.
15551         (_libc_vdso_platform_setup): Remove initialization of
15552         __vdso_gettimeofday and __vdso_time.
15553
15554 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15555
15556         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15557         and fgetc_unlocked.
15558         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15559         getc_unlocked.
15560
15561         * elf/dl-open.c (add_to_global): Report additions to the global scope
15562         for LD_DEBUG=scopes.
15563         (dl_open_worker): Also print scope of newly loaded dependencies.
15564         (_dl_show_scope): Indicate if there is no scope.
15565
15566         [BZ #13114]
15567         * stdio-common/Makefile (tests): Add bug24.
15568         * stdio-common/bug24.c: New file.
15569
15570 2011-08-19  Andreas Jaeger  <aj@suse.de>
15571
15572         [BZ #13114]
15573         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15574         non-existant file when using close-on-exec mode.
15575
15576 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15577
15578         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15579         the very first instruction.
15580
15581         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15582         the CFI state in the end.
15583         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15584         inclusion of dl-trampoline.h.
15585         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15586
15587 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15588
15589         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15590         expectations for long double.
15591
15592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15593         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15594
15595 2011-08-14  David S. Miller  <davem@davemloft.net>
15596
15597         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15598         artificual limit depends upon the system page size.
15599
15600 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15601
15602         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15603         * resolv/Makefile: Define CFLAGS-libresolv.
15604
15605 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15606
15607         * nss/makedb.c (compute_tables): Make variables used in nested
15608         function static.
15609
15610 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15611
15612         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15613         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15614         if buffer was too small.
15615
15616         * elf/pldd.c (main): Attach to all threads in the process.
15617         Rewrite /proc handling to use *at functions.
15618
15619 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15620
15621         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15622         specifies first scope to show.
15623         (dl_open_worker): Update callers.  Move printing scope of new
15624         object to before the relocation.
15625         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15626         * sysdeps/generic/ldsodefs.h: Update declaration.
15627
15628         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15629         string for the scope number.
15630
15631 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15632
15633         * nscd/servicescache.c (cache_addserv): Make sure written is always
15634         initialized.
15635
15636 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15637
15638         * sysdeps/i386/i486/bits/atomic.h
15639         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15640         statement expression, so as to suppress "set but not used" warning.
15641         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15642
15643         * string/strncat.c (STRNCAT): Use prototype definition.
15644
15645         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15646         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15647         -Iprograms here.
15648         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15649         (localedef-modules): Add localedef.
15650         (locale-modules): Add locale.
15651
15652         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15653         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15654         to avoid a warning.
15655
15656 2011-08-14  David S. Miller  <davem@davemloft.net>
15657
15658         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15659         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15660
15661 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15662
15663         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15664         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15665         * elf/rtld.c (dl_main): Set l_name of vDSO.
15666         Call _dl_show_scope when DL_DEBUG_SCOPES.
15667         (process_dl_debug): Recognize scopes flag and also set it for all.
15668         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15669         Declare _dl_show_scope.
15670
15671         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15672         (do_dlopen): Pass caller_dlopen to dl_open.
15673         (__libc_dlopen_mode): Initialize caller_dlopen.
15674
15675         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15676         of libc.  Make tolower call locale-independent.  Optimize a bit by
15677         using isdigit instead of isalnum.
15678         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15679
15680 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
15681
15682         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
15683         was a dependency or dynamically loaded.
15684
15685 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
15686
15687         * intl/l10nflist.c: Allow architecture-specific pop function.
15688         * sysdeps/x86_64/l10nflist.c: New file.
15689
15690         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
15691         classification.
15692
15693 2011-08-10  Andreas Schwab  <schwab@redhat.com>
15694
15695         * include/dirent.h: Add libc_hidden_proto for scandirat and
15696         scandirat64.  Don't declare __scandirat64.
15697         * dirent/scandirat.c: Add libc_hidden_def.
15698         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
15699         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
15700
15701 2011-08-10  David S. Miller  <davem@davemloft.net>
15702
15703         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
15704         enum.
15705         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15706         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15707         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15708
15709 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
15710
15711         * Versions.def [libc]: Add GLIBC_2.15.
15712         * dirent/Makefile (routines): Add scandirat and scandirat64.
15713         * dirent/Versions [libc]: Export scandirat and scandirat64 for
15714         GLIBC_2.15.
15715         * dirent/dirent.h: Declare scandirat and scandirat64.
15716         * dirent/scandirat.c: New file.
15717         * dirent/scandirat64.c: New file.
15718         * sysdeps/wordsize-64/scandirat.c: New file.
15719         * sysdeps/wordsize-64/scandirat64.c: New file.
15720         * dirent/opendir.c: Define opendirat.
15721         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
15722         using scandirat.
15723         * dirent/scandir64.c: Adjust for scandir.c change.
15724         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
15725         __scandirat64, and __scandir_cancel_handler.
15726         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
15727         additional parameter and use openat instead of open (outside of ld.so).
15728         Add new __opendir as wrapper around __opendirat.
15729         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
15730         here without requiring old scandirat implementation.
15731
15732 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
15733
15734         * dirent/scandir.c (cancel_handler): Renamed to
15735         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
15736         defined.  Adjust users.
15737         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
15738         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15739
15740 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
15741
15742         * string/test-string.h (IMPL): Use __STRING to expand name and then
15743         stringify it.
15744
15745         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
15746         of cleanups.
15747
15748 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15749
15750         * string/Makefile: Update.
15751         (strop-tests): Append strncat.
15752         * string/test-wcscmp.c: New file.
15753         New comprehensive test for wcscmp.
15754         * string/test-strcmp.c: Update.
15755         (WIDE): New define.
15756
15757 2011-07-22  Andreas Schwab  <schwab@redhat.com>
15758
15759         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
15760         line.
15761
15762 2011-07-26  Andreas Schwab  <schwab@redhat.com>
15763
15764         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
15765         encoding to ACE if AI_IDN.
15766
15767 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
15768
15769         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
15770         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
15771
15772 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15773
15774         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
15775         Fix overflow bug in strncat.
15776         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
15777
15778         * string/test-strncat.c: Update.
15779         Add new tests for checking overflow bugs.
15780
15781 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15782
15783         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15784         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
15785         * sysdeps/i386/i686/multiarch/strcat.S: New file.
15786         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
15787         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
15788         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
15789         * sysdeps/i386/i686/multiarch/strncat.S: New file.
15790         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
15791         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
15792
15793         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
15794         (USE_AS_STRCAT): Define.
15795         Add strcat and strncat support.
15796         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15797
15798 2011-07-25  Andreas Schwab  <schwab@redhat.com>
15799
15800         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
15801         __n bigger than INT_MAX+1.
15802         (__strncmp_g): Likewise.
15803
15804 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
15805
15806         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
15807         * libio/stido.h: Likewise.
15808
15809         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
15810         (AF_NFC): Define.
15811         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
15812         (AF_NFC): Define.
15813
15814         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
15815         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15816         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15817         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
15818         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15819
15820         [BZ #13021]
15821         * scripts/test-installation.pl: Don't expect libnss_test1 to be
15822         installed.
15823
15824         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
15825         typo.
15826         (_dl_x86_64_save_sse): Likewise.
15827
15828 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
15829
15830         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
15831         OSXSAVE.
15832         (_dl_x86_64_save_sse): Likewise.
15833
15834         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
15835
15836         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
15837
15838 2011-07-21  Andreas Schwab  <schwab@redhat.com>
15839
15840         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
15841         change.
15842         (_dl_x86_64_save_sse): Use correct AVX check.
15843
15844 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15845
15846         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
15847         bug in strncpy/strncat.
15848         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
15849
15850 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
15851
15852         * string/tester.c (test_strcat): Add tests for different alignments
15853         of source and destination.
15854         (test_strncat): Likewise.
15855
15856 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15857
15858         [BZ #12852]
15859         * posix/glob.c (glob): Check passed in values before using them in
15860         expressions to avoid some overflows.
15861         (glob_in_dir): Likewise.
15862
15863         [BZ #13007]
15864         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
15865         check for AVX enablement so that we don't crash with old kernels and
15866         new hardware.
15867         * elf/tst-audit4.c: Add same checks here.
15868         * elf/tst-audit6.c: Likewise.
15869
15870         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
15871
15872 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
15873
15874         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
15875
15876 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15877
15878         * po/cs.po: Update from translation team.
15879         * po/bg.po: Likewise.
15880
15881 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
15882
15883         * misc/sys/cdefs.h: Add support for const attribute.
15884         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
15885         to gnu_dev_{major,minor,makedev} functions.
15886
15887 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
15888
15889         * intl/dcigettext.c (get_output_charset): Add missing bracket.
15890
15891 2011-07-20  Andreas Schwab  <schwab@redhat.com>
15892
15893         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
15894         strlen results.
15895
15896 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15897
15898         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
15899         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
15900         register in order to avoid conflicts with the soft frame pointer
15901         being held in r11 when necessary.
15902         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
15903         (INTERNAL_VSYSCALL_NCS): Likewise.
15904
15905 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
15906
15907         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
15908         * elf/dl-fini.c (_dl_fini): Adjust caller.
15909         * elf/dl-close.c (_dl_close_worker): Likewise.
15910         * sysdeps/generic/ldsodefs.h: Adjust declaration.
15911
15912 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15913
15914         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
15915         "aux_cache->nlibs < 0".
15916
15917         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
15918         in the reload-count case.
15919
15920 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15921
15922         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15923         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
15924         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
15925         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
15926         * sysdeps/x86_64/multiarch/strcat.S: New file.
15927         * sysdeps/x86_64/multiarch/strncat.S: New file.
15928         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
15929         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
15930         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
15931         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
15932         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
15933         (USE_AS_STRCAT): Define.
15934         Add strcat and strncat support.
15935         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15936         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15937         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
15938         * string/strncat.c: Update.
15939         (USE_AS_STRNCAT): Define.
15940         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15941         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
15942         and i7.
15943         * sysdeps/x86_64/multiarch/init-arch.h
15944         (bit_Prefer_PMINUB_for_stringop): New.
15945         (index_Prefer_PMINUB_for_stringop): Likewise.
15946         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
15947         bit_Prefer_PMINUB_for_stringop.
15948
15949 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15950
15951         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
15952         buffer64.
15953         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
15954         of casting of buffer.
15955         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
15956         buffer32 and buffer64.
15957         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
15958         writes instead of casting of buffer.
15959         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
15960         buffer32.
15961         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
15962         casting of buffer.
15963
15964 2011-07-19  Andreas Schwab  <schwab@redhat.com>
15965
15966         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
15967
15968 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15969
15970         * nscd/nscd.c (termination_handler): Don't do anything for a database
15971         if it has not yet been initialized.
15972
15973 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15974
15975         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15976
15977 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15978
15979         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15980
15981 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15982
15983         * po/nl.po: Update from translation team.
15984         * po/sv.po: Likewise.
15985
15986 2011-07-16  Roland McGrath  <roland@hack.frob.com>
15987
15988         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
15989         now disallowed by GCC.
15990
15991         * configure.in (use-default-link): Default to yes if a test -shared
15992         link meets our qualifications.
15993         * configure: Regenerated.
15994
15995         * config.make.in (output-format): New variable.
15996         * configure.in: Check for ld --print-output-format support.
15997         * configure: Regenerated.
15998         * Makerules ($(common-objpfx)format.lds)
15999         [$(output-format) != unknown]: Just use $(output-format),
16000         instead of the linker-script munging.
16001
16002 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16003
16004         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16005         of $(common-objpfx)shlib.lds.
16006         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16007
16008         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16009         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16010
16011         * configure.in (-z relro check): Adjust test code to add a large
16012         writable data section after it.
16013         * configure: Regenerated.
16014
16015 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16016
16017         * configure.in (-z relro check): Fix test code to make the variable
16018         truly const.
16019         * configure: Regenerated.
16020
16021 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16022
16023         * nscd/nscd.h (struct traced_file): Define.
16024         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16025         elements.  Add traced_files.
16026         (inotify_fd): Declare.
16027         (register_traced_file): Declare.
16028         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16029         (inotify_fd): Export.
16030         (resolv_conf_descr): Remove.
16031         (nscd_init): Move inotify descriptor creation to main.
16032         Don't register files for notification here.
16033         (register_traced_file): New function.
16034         (invalidate_cache): Don't use reset_res to determine whether to call
16035         res_init, go through the list of registered files.
16036         (main_loop_poll): The inotify descriptors are now stored in the
16037         structures for the traced files.
16038         (main_loop_epoll): Likewise
16039         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16040         to __nss_disable_nscd.
16041         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16042         for a database anymore.  Check the records for all the registered
16043         files instead.
16044         * nss/Makefile (libnss_files-routines): Add files-init.
16045         (libnss_db-routines): Add db-init.
16046         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16047         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16048         * nss/nss_db/db-init.c: New file.
16049         * nss/nss_files/files-init.c: New file.
16050         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16051         __nss_lookup_function.
16052         (__nss_lookup_function): Call nss_load_library.
16053         (nss_load_all_libraries): New function.
16054         (__nss_disable_nscd): Take parameter with callback function for files
16055         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16056         used for the cached services.
16057         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16058         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16059         options for features to all the files in nscd.
16060
16061         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16062
16063 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16064
16065         * csu/elf-init.c (__libc_csu_init): Comment typo.
16066
16067 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16068
16069         * po/pl.po: Update from translation team.
16070         * po/ja.po: Likewise.
16071         * po/ru.po: Likewise.
16072         * po/ko.po: Likewise.
16073         * po/fr.po: Likewise.
16074
16075 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16076
16077         * configure.in (.ctors/.dtors header and trailer check):
16078         Use an empirical test on a built program.
16079         * configure: Regenerated.
16080
16081         * configure.in (-z relro check): Use an empirical test on a built DSO.
16082         Detect, but do not require, on ia64.
16083         * configure: Regenerated.
16084
16085         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16086         Update tests that use readelf to use $READELF instead.
16087         * configure: Regenerated.
16088
16089 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16090
16091         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16092         if the result is not used.
16093
16094 2011-07-05  Andreas Jaeger  <aj@suse.de>
16095
16096         [BZ#9696]
16097         * stdlib/tst-strtod.c: Add testcase.
16098
16099 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16100
16101         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16102         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16103         The latter has a higher limit.  Take additional parameter to pass to
16104         the new function.
16105         (__pathconf): Pass file to __statfs_link_max.
16106         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16107         __statfs_link_max.
16108         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16109         __statfs_link_max.
16110
16111         [BZ #12868]
16112         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16113         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16114         Handle Lustre.
16115         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16116         (__statfs_filesize_max): Likewise.
16117         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16118
16119 2011-07-05  Andreas Jaeger  <aj@suse.de>
16120
16121         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16122
16123 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16124
16125         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16126         `status' variable.
16127         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16128         Likewise.
16129
16130 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16131
16132         * Makefile (strop-tests): Add strncat.
16133         * string/test-strncat.c: New file.
16134
16135 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16136
16137         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16138
16139 2011-06-21  Andreas Jaeger  <aj@suse.de>
16140
16141         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16142         Copy rule from iconvdata/Makefile.
16143
16144 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16145
16146         [BZ #12922]
16147         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16148         but no long options are defined, just return 'W'.
16149
16150 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16151
16152         [BZ #9696]
16153         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16154
16155 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16156
16157         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16158         netgroups to read.
16159         (innetgr): Likewise.
16160
16161 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16162
16163         * config.make.in (install_root): Default to $(DESTDIR).
16164
16165 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16166
16167         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16168
16169 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16170
16171         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16172
16173         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16174         containing directory rather than embedding absolute directory names.
16175
16176         * scripts/check-local-headers.sh: Rewritten using awk.
16177         Match by word, not by line.  Print error messages for matches.
16178         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16179
16180         * Makerules [shlib-lds-flags empty]:
16181         ($(common-objpfx)libc_pic.opts): New target.
16182         ($(common-objpfx)libc_pic.os.clean): New target.
16183         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16184
16185         * config.make.in (OBJCOPY): New variable.
16186         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16187         * configure: Regenerated.
16188
16189         * config.make.in (use-default-link): New variable.
16190         * configure.in (use_default_link): Grok --with-default-link to set it.
16191         * configure: Regenerated.
16192         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16193         (shlib-lds, shlib-lds-flags): Define to empty.
16194
16195         * Makerules (shlib-lds): New variable.
16196         (shlib-lds-flags): New variable.
16197         (build-shlib, build-moduile, build-module-asneeded): Use it.
16198         ($(common-objpfx)libc.so): Use $(shlib-lds).
16199         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16200         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16201
16202         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16203         DT_FLAGS/DT_FLAGS_1 with zero flags.
16204
16205         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16206         linker script munging.
16207
16208 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16209
16210         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16211         as 128-bit value.
16212         * crypt/sha512.c (sha512_process_block): Perform total addition using
16213         128-bit if possible.
16214         (__sha512_finish_ctx): Likewise.
16215         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16216         as 64-bit value.
16217         * crypt/sha256.c (SWAP64): Define.
16218         (sha256_process_block): Perform total addition using 64-bit if
16219         possible.
16220         (__sha256_finish_ctx): Likewise.
16221
16222 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16223
16224         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16225         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16226         * nscd/hstcache.c (cache_addhst): Likewise.
16227         * nscd/grpcache.c (cache_addgr): Likewise.
16228         * nscd/aicache.c (addhstaiX): Likewise
16229         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16230
16231 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16232
16233         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16234         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16235         * nscd/hstcache.c (cache_addhst): Likewise.
16236         * nscd/grpcache.c (cache_addgr): Likewise.
16237         * nscd/aicache.c (addhstaiX): Likewise
16238
16239 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16240
16241         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16242         domain only when needed.
16243
16244 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16245
16246         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16247         is always restored.
16248
16249 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16250
16251         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16252         are re-adding the entry.
16253         * nscd/servicescache.c (cache_addserv): Likewise.
16254
16255 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16256
16257         * sysdeps/generic/dl-irel.h: fix protection against multiple
16258         inclusions.
16259         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16260
16261 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16262
16263         [BZ #12935]
16264         * malloc/memusage.sh: Fix quoting in message.
16265         * debug/xtrace.sh: Likewise.
16266
16267         * configure.in: Remove support for --experimental-malloc option, make
16268         it the default.
16269         * config.make.in: Likewise.
16270         * malloc/Makefile: Likewise.
16271
16272 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16273
16274         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16275         two-byte characters.
16276
16277 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16278
16279         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16280         AC_CACHE_CHECK invocation.
16281         * configure: Regenerated.
16282
16283         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16284
16285 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16286
16287         [BZ #12350]
16288         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16289         bit from old_res_options.
16290
16291         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16292
16293         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16294         value type for setfct.
16295
16296 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16297
16298         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16299         __gettimeofday instead of gettimeofday.
16300
16301 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16302
16303         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16304
16305 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16306
16307         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16308
16309         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16310         info.
16311
16312 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16313
16314         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16315         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16316         strcpy-sse2-unaligned strncpy-sse2-unaligned
16317         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16318         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16319         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16320         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16321         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16322         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16323         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16324         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16325         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16326         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16327         (STRCPY): Support SSE2 and SSSE3 versions.
16328
16329 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16330
16331         [BZ #12874]
16332         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16333         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16334         kernels which artificially limit size of requests.
16335
16336 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16337
16338         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16339         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16340         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16341         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16342         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16343         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16344         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16345         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16346         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16347         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16348         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16349         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16350         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16351         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16352         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16353         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16354         Enable unaligned load optimization for Intel Core i3, i5 and i7
16355         processors.
16356         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16357         Define.
16358         (index_Fast_Unaligned_Load): Define.
16359         (HAS_FAST_UNALIGNED_LOAD): Define.
16360
16361 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16362
16363         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16364
16365 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16366
16367         [BZ #12907]
16368         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16369         until it is clear that the information is realy needed.
16370         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16371
16372 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16373
16374         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16375
16376 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16377
16378         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16379         /sys/devices/system/cpu/online if it is usable.
16380
16381         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16382         reading the information from the /proc filesystem to once a second.
16383
16384 2011-06-21  Andreas Jaeger  <aj@suse.de>
16385
16386         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16387         NULL after inclusion of kernel headers.
16388
16389 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16390
16391         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16392         calls to internal_setent.
16393
16394         [BZ #12885]
16395         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16396         addresses using gethostbyname4_r ignore IPv4 addresses.
16397
16398         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16399         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16400
16401         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16402
16403 2011-06-20  David S. Miller  <davem@davemloft.net>
16404
16405         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16406         inclusions.
16407         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16408
16409         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16410         (elf_irel): Use it.
16411         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16412         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16413         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16414         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16415         * sysdeps/x86_64/dl-irel.h: Likewise.
16416
16417         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16418         * elf/dl-sym.c: Likewise.
16419
16420 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16421
16422         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16423         need to dereference resplen2.
16424
16425 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16426
16427         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16428
16429 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16430
16431         * Makeconfig: Define vardbdir and inst_vardbdir.
16432         * nss/Makefile: Add rules to install db-Makefile.
16433
16434         * nss/nss_db/db-XXX.c: Cleanup.
16435
16436         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16437         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16438         GLIBC_PRIVATE.
16439         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16440         * nss/makedb.c: Implement -g option to specify that value strings
16441         are generated and should not be added to table iterated over for
16442         get*ent calls.
16443         * nss/nss_db/db-initgroups.c: New file.
16444
16445         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16446         interface.
16447
16448         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16449         (internal_getgrouplist): Adjust to name change.
16450         Update use_initgroups_entry if this is not the first call.
16451         * nss/databases.def: Add initgroups entry.
16452
16453         * nss/makedb.c (compute_tables): Check result of multiple hash table
16454         sizes to minimize maximum chain length.
16455
16456 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16457
16458         * Versions.def: Add entry for libnss_db.
16459         * shlib-versions: Likewise.
16460         * nss/Makefile: Add rules to build libnss_db.
16461         * nss/Versions: Add libnss_db information.  Organize libnss_files
16462         entries better.
16463         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16464         makedb progra.  Some minor improvements to generate smaller files.
16465         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16466         here from...
16467         * nss/makedb.c: ...here.
16468         Improve database format to be smaller and require less memory at
16469         runtime.
16470         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16471         db anymore.
16472         * nss/nss_db/db-netgrp.c: Likewise.
16473         * nss/nss_db/db-open.c: Likewise.
16474         * nss/nss_files/flies-XXX.x: Adjust comments.
16475         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16476         * nss/nss_files/files-grp.c: Likewise.
16477         * nss/nss_files/files-hosts.c: Likewise.
16478         * nss/nss_files/files-network.c: Likewise.
16479         * nss/nss_files/files-proto.c: Likewise.
16480         * nss/nss_files/files-pwd.c: Likewise.
16481         * nss/nss_files/files-rpc.c: Likewise.
16482         * nss/nss_files/files-service.c: Likewise.
16483         * nss/nss_files/files-sgrp.c: Likewise.
16484         * nss/nss_files/files-spwd.c: Likewise.
16485         * nss/nss_db/db-alias.c: Removed.
16486         * nss/nss_db/dummy-db.h: Removed.
16487
16488 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16489
16490         * nss/makedb.c: Rewritten to not use database library.
16491         * nss/Makefile: Update to build new makedb program.
16492
16493 2011-06-14  Andreas Jaeger  <aj@suse.de>
16494
16495         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16496         memset declaration.
16497
16498 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16499
16500         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16501         tmpbuf.
16502
16503 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16504
16505         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16506         * elf/Makefile ($(objpfx)ld.so): Likewise.
16507
16508         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16509         Don't list ld.so twice in dependencies.
16510
16511         * posix/bug-regex31.c: Include <stdlib.h>.
16512
16513         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16514
16515         * nis/nss_compat/compat-spwd.c
16516         (getspent_next_nss_netgr): Remove unused variable.
16517         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16518
16519         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16520         nonmembers" output to use the right array.
16521
16522         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16523
16524         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16525
16526         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16527         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16528         * catgets/gencat.c (read_input_file): Likewise.
16529         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16530
16531         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16532         variable definition inside #if's controlling its use.
16533
16534         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16535
16536         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16537
16538         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16539
16540         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16541         unreachable code.
16542
16543         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16544
16545         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16546         * configure: Regenerated.
16547
16548         * Makerules: Revert last change.
16549         * elf/Makefile: Likewise.
16550
16551 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16552
16553         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16554         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16555         (reloc-link): Likewise.
16556
16557 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16558
16559         * elf/Makefile: Add rules to build pldd.
16560         * elf/pldd.c: New file.
16561         * elf/pldd-xx.c: New file.
16562
16563 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16564
16565         * version.h: Update for 2.15 development version.
16566
16567 2011-06-07  David S. Miller  <davem@davemloft.net>
16568
16569         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16570         ifuncs.
16571         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16572         elf_machine_lazy_rel): Likewise.
16573         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16574         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16575         elf_machine_lazy_rel): Likewise.
16576         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16577         dl_hwcap via passed in argument.
16578         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16579         Likewise.
16580
16581 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16582
16583         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16584
16585 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16586
16587         [BZ #12849]
16588         * manual/fdl-1.1.texi: New file, verbatim from:
16589         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16590         * manual/lgpl-2.1.texi: New file, verbatim from:
16591         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16592         * manual/Makefile (licenses): New variable, list those new file names.
16593         (texis): Use it.
16594         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16595
16596         * manual/fdl.texi: File removed.
16597         * manual/lesser.texi: File removed.
16598         * manual/libc.texinfo (Copying, Documentation License):
16599         Use new @include file names, put @appendix directive before @include.
16600
16601 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16602
16603         [BZ #12841]
16604         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16605         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16606         (mq_open): Add __NTH.
16607
16608 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16609
16610         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16611         Assume Intel Core i3/i5/i7 processor if AVX is available.
16612
16613 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16614
16615         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16616         typo.
16617
16618 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16619
16620         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16621         memory.  Use alloca_account.  Fix memory leak when retrying.
16622
16623 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16624
16625         * version.h (RELEASE): Bump for 2.14 release.
16626         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16627
16628         * config.make.in (RANLIB): Remove entry.
16629
16630 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16631
16632         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16633         (libc.pot): Work around missing support for .ksh extension in xgettext.
16634
16635         [BZ #12684]
16636         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16637         if both request failed.
16638         (send_dg): In case of server errors clear resplen or *resplen2.
16639
16640         [BZ #12454]
16641         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16642         when there are multiple maps.
16643         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16644         (_dl_fini): Remove test here.
16645
16646         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16647
16648 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16649
16650         [BZ #12350]
16651         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16652         bit from old_res_options.
16653         (gaih_inet): Likewise.
16654
16655         [BZ #11099]
16656         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16657         as signed.
16658
16659         * resolv/res_init.c (res_setoptions): Make the code more compact.
16660
16661         [BZ #11558]
16662         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16663         set RES_USEVC.
16664
16665         [BZ #11634]
16666         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16667
16668         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16669
16670         [BZ #11781]
16671         * malloc/malloc.h: Declare malloc hook variables as volatile.
16672
16673         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16674         in last patch.
16675
16676         [BZ #11799]
16677         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16678         raise in the comment.
16679         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16680         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16681         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16682
16683 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
16684
16685         [BZ #12811]
16686         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
16687         grow the buffers more if it already has to be sufficient.
16688         (build_wcs_upper_buffer): Likewise.
16689         * posix/regexec.c (check_matching): Likewise.
16690         (clean_state_log_if_needed): Likewise.
16691         (extend_buffers): Don't enlarge buffers beyond size of the input
16692         buffer.
16693         Patches mostly by Emil Wojak <emil@wojak.eu>.
16694         * posix/bug-regex32.c: New file.
16695         * posix/Makefile (tests): Add bug-regex32.
16696
16697         * locale/findlocale.c (_nl_find_locale): Return right away if
16698         _nl_explode_name failed.
16699         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
16700
16701         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
16702
16703         * debug/xtrace.sh: Unify messages.
16704         * malloc/memusage.sh: Likewise.
16705
16706         [BZ #12813]
16707         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
16708         time symbol from vDSO.  Substitute with vsyscall if not available.
16709         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
16710         __vdso_time.
16711
16712         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
16713         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
16714         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
16715         Add sendmmsg and internal_sendmmsg.
16716         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
16717         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
16718         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
16719
16720         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
16721         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
16722         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
16723
16724 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
16725
16726         [BZ #12813]
16727         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
16728         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
16729         available.
16730         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
16731         __vdso_getcpu.
16732
16733         [BZ #12814]
16734         * iconvdata/Makefile (tests): Add bug-iconv9.
16735         * iconvdata/bug-iconv9.c: New file.
16736
16737 2011-05-27  Andreas Schwab  <schwab@redhat.com>
16738
16739         [BZ #12814]
16740         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
16741
16742 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16743
16744         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16745         (struct user_regs_struct): Change intcs field back to cs.
16746
16747 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
16748
16749         * po/ja.po: Update from translation team.
16750
16751 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
16752
16753         [BZ #12795]
16754         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
16755         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
16756
16757 2011-05-20  Andreas Schwab  <schwab@redhat.com>
16758
16759         * stdlib/longlong.h: Update from GCC.
16760
16761 2011-05-23  Andreas Schwab  <schwab@redhat.com>
16762
16763         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
16764         parameter name.
16765         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
16766         Add parameter name.
16767         (__sysconf): Pass it down.
16768
16769 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
16770
16771         [BZ #12671]
16772         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
16773         some situations.
16774         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
16775         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
16776         add in in __libc_use_alloca calls.  Adjust callers.
16777         (glob): Use malloc in some situations.
16778
16779         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
16780         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
16781         pltexit.
16782
16783 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
16784
16785         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
16786         and CLOCK_BOOTTIME_ALARM.
16787
16788         [BZ #12782]
16789         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
16790         is returned.
16791
16792         * string/_strerror.c (__strerror_r): Print negative errors as signed
16793         numbers.
16794
16795         [BZ #12777]
16796         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
16797         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
16798         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
16799
16800         * configure.in: Fix typo in redirection and correct removal of test
16801         files in two cases.
16802
16803         [BZ #12788]
16804         * locale/setlocale.c (new_composite_name): Fix test to check for
16805         identical name of all categories.
16806
16807         [BZ #12792]
16808         * libio/filedoalloc.c (local_isatty): New function.
16809         (_IO_file_doallocate): Use local_isatty.
16810         * stdio-common/perror.c (perror): In case a new stream is used
16811         forward the stream error.
16812         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
16813         error flag.
16814
16815 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
16816
16817         [BZ #11869]
16818         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
16819         alloca.
16820         * include/alloca.h (extend_alloca_account): Define.
16821
16822         [BZ #11857]
16823         * posix/regex.h: Fix comments with documentation of user-accessible
16824         fields after compilation and describe correct free'ing of pattern
16825         after re_compile_pattern.
16826         Patch by Reuben Thomas <rrt@sc3d.org>.
16827
16828 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
16829
16830         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
16831         and -mno-altivec to prevent the compiler from using Altivec and/or
16832         VSX instructions when the corresponding registers are not available.
16833
16834 2011-05-19  Andreas Schwab  <schwab@redhat.com>
16835
16836         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
16837
16838 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
16839
16840         * libio/freopen.c (freopen): Use __dup2, not dup2.
16841         * libio/freopen64.c (freopen64): Likewise.
16842
16843 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
16844
16845         [BZ #12775]
16846         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
16847         * math/Makefile (tests): Add test-powl.
16848         (CFLAGS-test-powl.c): Define.
16849         * math/test-powl.c: New file.
16850
16851 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16852
16853         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
16854
16855 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
16856
16857         [BZ #11837]
16858         * iconvdata/gb18030.c: Update to GB18020-2005.
16859
16860 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
16861
16862         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
16863         RE_SYNTAX_POSIX_AWK): Update to match recent development.
16864         Patch by Aharon Robbins <arnold@skeeve.com>.
16865
16866         [BZ #11892]
16867         * stdlib/putenv.c (putenv): Don't always create copy of the variable
16868         on the stack.
16869
16870         [BZ #11895]
16871         * misc/pselect.c (__pselect): Handle timeout value errors hidden
16872         through underflows.
16873
16874         [BZ #12766]
16875         * misc/error.c (error_at_line): Ensure file_name and old_file_name
16876         point to strings before performing equality test for error_one_per_line
16877         mode.
16878
16879         [BZ #11697]
16880         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
16881
16882         [BZ #11820]
16883         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16884         (struct user_fpregs_struct): Avoid __uint*_t types.
16885
16886         [BZ #6420]
16887         * malloc/mtrace.c (tr_where): Add additional parameter to point to
16888         symbol info.  Use it instead of calling _dl_addr locally.
16889         (lock_and_info): New function.
16890         (tr_freehook): Call lock_and_info and pass symbol info as additional
16891         parameter to tr_where.
16892         (tr_mallochook): Likewise.
16893         (tr_reallochook): Likewise.
16894         (tr_memalignhook): Likewise.
16895
16896         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
16897         used and couldn't be at all thread-safe.
16898
16899 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
16900
16901         * libio/freopen.c (freopen): Don't close old file descriptor
16902         before the new one is opened.  Instead dup the new file descriptor
16903         to the old one after the new stream is created.
16904         * libio/freopen64.c (freopen64): Likewise.
16905         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
16906         * libio/fileops.c (_IO_new_file_close_it): Handle new
16907         _IO_FLAGS2_NOCLOSE flag.
16908         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
16909         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
16910         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
16911         _IO_FLAGS2_NOCLOSE flag.
16912         * include/unistd.h: Add hidden_proto for dup3.
16913         Define __have_dup3.
16914         * io/dup3.c: Define hidden symbol.
16915         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
16916
16917         [BZ #7101]
16918         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
16919         when an incomplete long option is used.
16920         * posix/tst-getopt_long1.c: New file.
16921         * posix/Makefile (tests): Add tst-getopt_long1.
16922
16923         [BZ #10138]
16924         * scripts/config.guess: Update from autoconf-2.68.
16925         * scripts/config.sub: Likewise.
16926
16927         [BZ #10157]
16928         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
16929         tests into ...
16930         (has_cpuclock): ...this.  New function.
16931         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
16932         macro here based on has_cpuclock code.
16933
16934         [BZ #10149]
16935         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16936         First byte (not low byte) is now always NUL.
16937         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
16938
16939         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16940         Use non-cancelable interfaces.
16941
16942         [BZ #9809]
16943         * locale/iso-639.def: Add entry for Sorani.
16944
16945         [BZ #11901]
16946         * include/stdlib.h: Move include protection to the right place.
16947         Define abort_msg_s.  Declare __abort_msg with it.
16948         * stdlib/abort.c (__abort_msg): Adjust type.
16949         * assert/assert.c (__assert_fail_base): New function.  Majority
16950         of code from __assert_fail.  Allocate memory for __abort_msg with
16951         mmap.
16952         (__assert_fail): Now call __assert_fail_base.
16953         * assert/assert-perr.c: Remove bulk of implementation.  Use
16954         __assert_fail_base.
16955         * include/assert.hL Declare __assert_fail_base.
16956         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
16957         mmap.
16958         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
16959
16960 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
16961
16962         [BZ #11952]
16963         [BZ #12453]
16964         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
16965         until all modules are registered in the DTV.
16966         * elf/Makefile: Add rules to build and run tst-tls19.
16967         * elf/tst-tls19.c: New file.
16968         * elf/tst-tls19mod1.c: New file.
16969         * elf/tst-tls19mod2.c: New file.
16970         * elf/tst-tls19mod3.c: New file.
16971         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
16972
16973         [BZ #12083]
16974         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
16975         correctly.
16976
16977         [BZ #12601]
16978         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
16979         two-byte sequence errors.
16980         * iconvdata/Makefile (tests): Add bug-iconv8.
16981         * iconvdata/bug-iconv8.c: New file.
16982
16983         [BZ #12626]
16984         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
16985         buf2 definition.
16986
16987         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
16988
16989         [BZ #12432]
16990         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
16991         (dummy_getcfa): New function.
16992         (init): Get _Unwind_GetCFA address, use dummy if not found.
16993         (backtrace_helper): In recursion check, also check whether CFA changes.
16994         (__backtrace): Completely initialize arg.
16995
16996         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
16997         storing incomplete byte sequence in state object.  Avoid testing for
16998         guaranteed too small input if we know there is enough data available.
16999
17000 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17001
17002         * Makeconfig (+link-pie): Indent.
17003         * Rules (binaries-pie): Define if $(have-fpie) and
17004         $(build-shared).
17005         (binaries-shared): Also filter out $(binaries-pie).
17006         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17007         * nscd/Makefile (others-pie): Add nscd.
17008         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17009         ($(objpfx)nscd): Remove command override.
17010         * login/Makefile (others-pie): Add pt_chown.
17011         ($(objpfx)pt_chown): Remove command override.
17012         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17013         remove command overrides.
17014
17015 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17016
17017         * libio/tst_putwc.c: Fix error messages.
17018
17019         [BZ #12724]
17020         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17021         currently writing and seek to current position when not.
17022         * libio/Makefile (tests): Add bug-fclose1.
17023         * libio/bug-fclose1.c: New file.
17024
17025 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17026
17027         [BZ #12511]
17028         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17029         don't set DF_1_NODELETE here.
17030         (do_lookup_x): When entering new entry test for copy relocation
17031         and if necessary set DF_1_NODELETE flag.
17032         * elf/tst-unique4.cc: New file.
17033         * elf/tst-unique4.h: New file.
17034         * elf/tst-unique4lib.cc: New file.
17035         * elf/Makefile: Add rules to build and run tst-unique4.
17036         Patch by Piotr Bury <pbury@goahead.com>.
17037
17038 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17039
17040         [BZ #12052]
17041         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17042
17043         [BZ #12625]
17044         * misc/mntent_r.c (addmntent): Flush the stream after the output
17045
17046         [BZ #12393]
17047         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17048         (is_trusted_path_normalize): Skip initial colon.  Append slash
17049         to empty buffer.  Duplicate is_trusted_path code but allow
17050         constructed patch to be prefix.
17051         (is_dst): Allow $ORIGIN followed by /.
17052         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17053         Correct testing of result of is_trusted_path_normalize
17054         (decompose_rpath): Fix warning.
17055
17056 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17057
17058         [BZ #11257]
17059         * grp/initgroups.c (internal_getgrouplist): When we found the service
17060         list through the initgroups entry in nsswitch.conf do not always
17061         continue on a successful lookup.  Don't always use the
17062         __nss_group_database value if it is set.
17063         * nss/nsswitch.conf (initgroups): Change action for successful db
17064         lookup to continue for compatibility.
17065
17066 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17067
17068         [BZ #11532]
17069         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17070         and CP774 modules.
17071         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17072         and CP774 modules.
17073         * iconvdata/tst-tables.sh: Likewise.
17074         * iconvdata/cp770.c: New file.
17075         * iconvdata/cp771.c: New file.
17076         * iconvdata/cp772.c: New file.
17077         * iconvdata/cp773.c: New file.
17078         * iconvdata/cp774.c: New file.
17079         * iconvdata/testdata/CP770: New file.
17080         * iconvdata/testdata/CP770..UTF8: New file.
17081         * iconvdata/testdata/CP771: New file.
17082         * iconvdata/testdata/CP771..UTF8: New file.
17083         * iconvdata/testdata/CP772: New file.
17084         * iconvdata/testdata/CP772..UTF8: New file.
17085         * iconvdata/testdata/CP773: New file.
17086         * iconvdata/testdata/CP773..UTF8: New file.
17087         * iconvdata/testdata/CP774: New file.
17088         * iconvdata/testdata/CP774..UTF8: New file.
17089
17090         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17091         END CHARMAP line.
17092         * iconvdata/gen-8bit-gap.sh: Likewise.
17093         * iconvdata/gen-8bit.sh: Likewise.
17094
17095         * locale/iso-639.def: Add ary entry.
17096
17097         [BZ #11258]
17098         * locale/C-translit.h.in: Add U20A1 transliteration.
17099
17100         [BZ #12178]
17101         * locale/iso-639.def: Add wae entry.
17102         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17103
17104         [BZ #12545]
17105         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17106         for n.
17107
17108         [BZ #12711]
17109         * locale/C-translit.h.in: Add entry for U20B9.
17110         Patch by pravin.d.s@gmail.com.
17111
17112 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17113
17114         [BZ #12713]
17115         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17116         ENAMETOOLONG use generic getcwd.
17117         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17118         in rtld.  Use *stat64.
17119         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17120         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17121         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17122         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17123         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17124         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17125         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17126         __fstatat64 macros.
17127         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17128         * dirent/rewinddir.c: Add libc_hidden_def.
17129         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17130         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17131
17132         * include/dirent.h (__alloc_dir): Add flags parameter.
17133         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17134         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17135         __alloc_dir.
17136         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17137         from fdopendir if O_CLOEXEC is already set.
17138
17139 2011-03-15  Alan Modra  <amodra@gmail.com>
17140
17141         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17142         l_tls_firstbyte_offset non-zero.  Save padding offset in
17143         l_tls_firstbyte_offset for later use.
17144         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17145         freeing static tls block.
17146
17147 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17148
17149         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17150         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17151         being defined by the kernel headers.
17152
17153 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17154
17155         [BZ #12734]
17156         * resolv/resolv.h: Define RES_NOTLDQUERY.
17157         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17158         no-tld-query and set RES_NOTLDQUERY.
17159         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17160         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17161         modern BIND to search name as TLD unless forbidden.
17162
17163 2011-05-07  Petr Baudis  <pasky@suse.cz>
17164             Ulrich Drepper  <drepper@gmail.com>
17165
17166         [BZ #12393]
17167         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17168         (is_trusted_path): ...to here.
17169         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17170         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17171         using is_trusted_path_normalize() in setuid scripts.
17172
17173 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17174
17175         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17176         __BEGIN/__END_DECLS.
17177
17178 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17179
17180         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17181         NSS_STATUS_NOTFOUND if no record was found.
17182
17183 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17184
17185         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17186         (headers-not-in-tirpc): Remove rpc/netdb.h
17187         * resolv/netdb.h: Revert last change.
17188
17189 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17190
17191         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17192         circular dependency between libgcc.a and libc.a.
17193
17194 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17195
17196         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17197         * nis/Makefile: Don't install rpcsvc/*.
17198         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17199         instead of <rpc/types.h>.
17200         (MAXHOSTNAMELEN): Define.
17201
17202 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17203
17204         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17205
17206 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17207
17208         [BZ #12714]
17209         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17210         gethostbyname4_r when IPv6 results are possible.
17211
17212 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17213
17214         [BZ #12723]
17215         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17216         _PC_PIPE_BUF handling.
17217
17218 2011-04-30  Bruno Haible  <bruno@clisp.org>
17219
17220         [BZ #12717]
17221         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17222         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17223         to 'int'.
17224         * inet/getnameinfo.c (getnameinfo): Likewise.
17225
17226 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17227
17228         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17229         to groups setting in database lookup.
17230         * nss/nsswitch.conf: Add initgroups entry.
17231
17232 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17233
17234         [BZ #12685]
17235         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17236         mode string.
17237         Patch by Eric Blake <eblake@redhat.com>.
17238
17239 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17240
17241         * sunrpc/Makefile (need-export-routines): Add svc_run.
17242         (routines): Remove svc_run.
17243         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17244         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17245         * sunrpc/svc_run.c (svc_run): Likewise.
17246         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17247
17248 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17249
17250         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17251         problem in reallocation in last patch.
17252
17253 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17254
17255         * sunrpc/Makefile: Move inclusion of Rules.
17256
17257 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17258
17259         * nss/nss_files/files-initgroups.c: New file.
17260         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17261         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17262         _nss_files_initgroups_dyn.
17263
17264 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17265
17266         * elf/elf.h (R_ARM_IRELATIVE): Define.
17267
17268 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17269
17270         * po/ru.po: Update from translation team.
17271
17272 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17273
17274         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17275         dependencies.
17276
17277 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17278
17279         [BZ #12653]
17280         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17281         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17282         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17283         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17284         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17285
17286 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17287
17288         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17289         differing bytes.
17290         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17291         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17292         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17293
17294 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17295
17296         [BZ #12420]
17297         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17298         storing it.
17299         * stdlib/bug-getcontext.c: New file.
17300         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17301
17302 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17303
17304         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17305         instructions into .machine "z9-109".
17306         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17307         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17308
17309 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17310
17311         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17312         between environment variables and auxiliary vector.
17313
17314 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17315
17316         * Makefile: Add rules to build linkobj/libc.so.
17317         * include/libc-symbols.h: Define libc_hidden_nolink.
17318         * include/rpc/auth.h: Mark functions which are to be hidden.
17319         * include/rpc/auth_des.h: Likewise.
17320         * include/rpc/auth_unix.h: Likewise.
17321         * include/rpc/clnt.h: Likewise.
17322         * include/rpc/des_crypt.h: Likewise.
17323         * include/rpc/key_prot.h: Likewise.
17324         * include/rpc/pmap_clnt.h: Likewise.
17325         * include/rpc/pmap_prot.h: Likewise.
17326         * include/rpc/pmap_rmt.h: Likewise.
17327         * include/rpc/rpc_msg.h: Likewise.
17328         * include/rpc/svc.h: Likewise.
17329         * include/rpc/svc_auth.h: Likewise.
17330         * include/rpc/xdr.h: Likewise.
17331         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17332         * nss/Makefile: Likewise.
17333         * sunrpc/Makefile: Don't install headers.  Build library with normal
17334         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17335         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17336         for the compat linking library.  Remove use of INTDEF/INTUSE.
17337         * sunrpc/auth_none.c: Likewise.
17338         * sunrpc/auth_unix.c: Likewise.
17339         * sunrpc/authdes_prot.c: Likewise.
17340         * sunrpc/authuxprot.c: Likewise.
17341         * sunrpc/clnt_gen.c: Likewise.
17342         * sunrpc/clnt_perr.c: Likewise.
17343         * sunrpc/clnt_raw.c: Likewise.
17344         * sunrpc/clnt_simp.c: Likewise.
17345         * sunrpc/clnt_tcp.c: Likewise.
17346         * sunrpc/clnt_udp.c: Likewise.
17347         * sunrpc/clnt_unix.c: Likewise.
17348         * sunrpc/des_crypt.c: Likewise.
17349         * sunrpc/des_soft.c: Likewise.
17350         * sunrpc/get_myaddr.c: Likewise.
17351         * sunrpc/key_call.c: Likewise.
17352         * sunrpc/key_prot.c: Likewise.
17353         * sunrpc/netname.c: Likewise.
17354         * sunrpc/pm_getmaps.c: Likewise.
17355         * sunrpc/pm_getport.c: Likewise.
17356         * sunrpc/pmap_clnt.c: Likewise.
17357         * sunrpc/pmap_prot.c: Likewise.
17358         * sunrpc/pmap_prot2.c: Likewise.
17359         * sunrpc/pmap_rmt.c: Likewise.
17360         * sunrpc/publickey.c: Likewise.
17361         * sunrpc/rpc_cmsg.c: Likewise.
17362         * sunrpc/rpc_common.c: Likewise.
17363         * sunrpc/rpc_dtable.c: Likewise.
17364         * sunrpc/rpc_prot.c: Likewise.
17365         * sunrpc/rpc_thread.c: Likewise.
17366         * sunrpc/rtime.c: Likewise.
17367         * sunrpc/svc.c: Likewise.
17368         * sunrpc/svc_auth.c: Likewise.
17369         * sunrpc/svc_authux.c: Likewise.
17370         * sunrpc/svc_raw.c: Likewise.
17371         * sunrpc/svc_run.c: Likewise.
17372         * sunrpc/svc_simple.c: Likewise.
17373         * sunrpc/svc_tcp.c: Likewise.
17374         * sunrpc/svc_udp.c: Likewise.
17375         * sunrpc/svc_unix.c: Likewise.
17376         * sunrpc/svcauth_des.c: Likewise.
17377         * sunrpc/xcrypt.c: Likewise.
17378         * sunrpc/xdr.c: Likewise.
17379         * sunrpc/xdr_array.c: Likewise.
17380         * sunrpc/xdr_float.c: Likewise.
17381         * sunrpc/xdr_intXX_t.c: Likewise.
17382         * sunrpc/xdr_mem.c: Likewise.
17383         * sunrpc/xdr_rec.c: Likewise.
17384         * sunrpc/xdr_ref.c: Likewise.
17385         * sunrpc/xdr_sizeof.c: Likewise.
17386         * sunrpc/xdr_stdio.c: Likewise.
17387
17388 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17389
17390         [BZ #12650]
17391         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17392         * sysdeps/ia64/dl-tls.h: Likewise.
17393         * sysdeps/powerpc/dl-tls.h: Likewise.
17394         * sysdeps/s390/dl-tls.h: Likewise.
17395         * sysdeps/sh/dl-tls.h: Likewise.
17396         * sysdeps/sparc/dl-tls.h: Likewise.
17397         * sysdeps/x86_64/dl-tls.h: Likewise.
17398         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17399
17400 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17401
17402         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17403         rpath element also skip the following colon.
17404         (expand_dynamic_string_token): Add is_path parameter and pass
17405         down to DL_DST_REQUIRED and _dl_dst_substitute.
17406         (decompose_rpath): Call expand_dynamic_string_token with
17407         non-zero is_path.  Ignore empty rpaths.
17408         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17409         with zero is_path.
17410
17411 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17412
17413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17414         Make cancelable.
17415
17416 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17417
17418         [BZ #12655]
17419         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17420         Patch by Filipe David Manana <fdmanana@apache.org>.
17421
17422 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17423
17424         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17425         Maintain aligned stack.
17426         (CHECK_RSP): Remove unused macro.
17427
17428 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17429
17430         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17431         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17432
17433 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17434
17435         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17436
17437         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17438
17439 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17440
17441         [BZ #12518]
17442         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17443         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17444         * sysdeps/x86_64/memmove.c: New file.
17445         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17446         (memcpy): Renamed to ...
17447         (__new_memcpy): This.
17448         (memcpy): Provide GLIBC_2_14 memcpy.
17449         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17450         (memcpy): Provide GLIBC_2_2_5 memcpy.
17451
17452 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17453
17454         [BZ #12631]
17455         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17456
17457 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17458
17459         * misc/syncfs.c: New file.
17460         * misc/Makefile (routines): Add syncfs.
17461         * posix/unistd.h: Declare syncfs.
17462         * sysdeps/unix/syscalls.list: Add syncfs.
17463
17464 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17465
17466         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17467         open_by_handle_at.
17468         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17469         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17470         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17471         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17472         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17473         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17474         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17475
17476 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17477
17478         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17479         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17480         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17481         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17482         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17483         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17484         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17485
17486         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17487         sync_file_range.c with -fexceptions.
17488         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17489         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17490         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17491         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17492         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17493         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17494         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17495         sync_file_range as cancellation point
17496         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17497         now a wrapper around __call_sync_file_range with cancellation handling.
17498         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17499         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17500         function name to __call_sync_file_range.
17501         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17502         Add call_sync_file_range.
17503
17504 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17505
17506         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17507         bits/timex.h.
17508
17509 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17510
17511         * iconv/iconv.h: Fix typo in comment.
17512         * io/fcntl.h: Likewise.
17513         * libio/stdio.h: Likewise.
17514         * posix/spawn.h: Likewise.
17515         * posix/unistd.h: Likewise.
17516         * stdlib/stdlib.h: Likewise.
17517         * time/time.h: Likewise.
17518         * wcsmbs/wchar.h: Likewise.
17519
17520         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17521         open_by_handle): Add.
17522         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17523         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17524         Augment a few comments.
17525         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17526         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17527         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17528         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17529         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17530         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17531         open_by_handle.
17532
17533         * io/fcntl.h (AT_EMPTY_PATH): Define.
17534
17535 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17536
17537         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17538         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17539         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17540         to...
17541         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17542         * Versions.def: Add GLIBC_2.14.
17543         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17544         Export.
17545
17546 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17547
17548         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17549         round counter.
17550         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17551
17552 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17553
17554         [BZ #12597]
17555         * string/test-strncmp.c (do_page_test): New function.
17556         (check2): Likewise.
17557         (test_main): Call check2.
17558         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17559
17560 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17561
17562         [BZ #12587]
17563         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17564         Handle cache information in CPU leaf 4.
17565         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17566
17567 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17568
17569         [BZ #12583]
17570         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17571         character representation.
17572         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17573
17574 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17575
17576         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17577         END(__isnan) to END(__isnanf) to match function entry point/label
17578         EALIGN(__isnanf,...).
17579
17580 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17581
17582         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17583
17584 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17585
17586         [BZ #12510]
17587         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17588         copy from the symbol referenced in the relocation to initialize the
17589         used variable.
17590         Patch by Piotr Bury <pbury@goahead.com>.
17591         * elf/Makefile: Add rules to build and tst-unique3.
17592         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17593         * elf/tst-unique3.cc: New file.
17594         * elf/tst-unique3.h: New file.
17595         * elf/tst-unique3lib.cc: New file.
17596         * elf/tst-unique3lib2.cc: New file.
17597
17598         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17599
17600 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17601
17602         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17603         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17604         to _start.
17605
17606 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17607
17608         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17609         to-be-loaded object along a path to loader is ld.so.
17610
17611 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17612             Ulrich Drepper  <drepper@gmail.com>
17613
17614         * sysdeps/x86_64/memset.S: After aligning destination, code
17615         branches to different locations depending on the value of
17616         misalignment, when multiarch is enabled. Fix this.
17617
17618 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17619
17620         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17621         Set _x86_64_preferred_memory_instruction for AMD processsors.
17622         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17623         Set bit_Prefer_SSE_for_memop for AMD processors.
17624
17625 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17626
17627         * libio/fmemopen.c (fmemopen): Optimize a bit.
17628
17629 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17630
17631         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17632
17633 2011-03-03  Roland McGrath  <roland@redhat.com>
17634
17635         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17636
17637 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17638
17639         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17640         __bzero_ultra1 instead of __memset_ultra1.
17641
17642 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17643             Ulrich Drepper  <drepper@gmail.com>
17644
17645         [BZ #12509]
17646         * include/link.h (struct link_map): Add l_orig_initfini.
17647         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17648         returning unsuccessfully.
17649         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17650         close of a file loaded at startup, restore the original l_initfini
17651         list.
17652         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17653         list, store the pointer.
17654         * elf/Makefile ($(objpfx)noload-mem): New rule.
17655         (noload-ENV): Define.
17656         (tests): Add $(objpfx)noload-mem.
17657         * elf/noload.c: Include <memcheck.h>.
17658         (main): Call mtrace.  Close all opened handles.
17659
17660 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17661
17662         [BZ #12454]
17663         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17664         dependencies are missing.
17665
17666 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17667
17668         Fix __if_freereq crash: Unlike the generic version which uses free,
17669         Hurd needs munmap.
17670         * sysdeps/mach/hurd/ifreq.h: New file.
17671
17672 2011-01-27  Petr Baudis  <pasky@suse.cz>
17673             Ulrich Drepper  <drepper@gmail.com>
17674
17675         [BZ 12445]#
17676         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17677         to extend_alloca().
17678         * stdio-common/bug23.c: New file.
17679         * stdio-common/Makefile (tests): Add bug23.
17680
17681 2010-09-28  Andreas Schwab  <schwab@redhat.com>
17682             Ulrich Drepper  <drepper@gmail.com>
17683
17684         [BZ #12489]
17685         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
17686         before performing relro protection.  At old place add assertion
17687         to make sure nothing changed.
17688
17689 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
17690             Glauber de Oliveira Costa  <glommer@gmail.com>
17691
17692         * elf/elf.h: Add new ARM TLS relocs.
17693
17694 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
17695
17696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17697         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
17698         cast from r3.
17699         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
17700         'tests' variable.
17701         * sysdeps/wordsize-64/tst-writev.c: New file.
17702
17703 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
17704
17705         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
17706         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
17707         insns in _dl_start to prevent a TOC reference before relocs are
17708         resolved.
17709
17710 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
17711
17712         [BZ #12469]
17713         * Makeconfig: Remove RANLIB definition.
17714         * Makerules: Don't use RANLIB.
17715         * aclocal.m4: Remove ranlib test.
17716         * configure.in: No need to check for ranlib.
17717         * elf/rtld-Rules: Don't use RANLIB.
17718
17719 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17720
17721         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
17722         protection macro.
17723         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
17724         inclusion protection macro.
17725
17726         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
17727         SIGRTMIN and SIGRTMAX and print information in that case only when
17728         SIGRTMIN is defined.
17729
17730 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
17731
17732         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
17733         arginfo fn returning -1.
17734
17735         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
17736         and thousands string is zero terminated.
17737
17738 2011-02-03  Andreas Schwab  <schwab@redhat.com>
17739
17740         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
17741         sysdeps/unix/sysv/linux/bits/socket.h.
17742
17743 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17744
17745         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
17746         (__CPU_COUNT): Remove old macros.
17747         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
17748         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
17749         (__CPU_ALLOC, __CPU_FREE): Add macros.
17750         (__sched_cpualloc, __sched_cpufree): Add declarations.
17751
17752 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
17753
17754         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
17755         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
17756         * nscd/aicache.c (addhstaiX): Return timeout of added value.
17757         (readdhstai): Return value of addhstaiX call.
17758         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
17759         (addgrbyX): Return value returned by cache_addgr.
17760         (readdgrbyname): Return value returned by addgrbyX.
17761         (readdgrbygid): Likewise.
17762         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
17763         (addpwbyX): Return value returned by cache_addpw.
17764         (readdpwbyname): Return value returned by addhstbyX.
17765         (readdpwbyuid): Likewise.
17766         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
17767         (addservbyX): Return value returned by cache_addserv.
17768         (readdservbyname): Return value returned by addservbyX:
17769         (readdservbyport): Likewise.
17770         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
17771         (addhstbyX): Return value returned by cache_addhst.
17772         (readdhstbyname): Return value returned by addhstbyX.
17773         (readdhstbyaddr): Likewise.
17774         (readdhstbynamev6): Likewise.
17775         (readdhstbyaddrv6): Likewise.
17776         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
17777         (readdinitgroups): Return value returned by addinitgroupsX.
17778         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
17779         (prune_cache): Keep track of timeout value of re-added entries.
17780         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
17781         * nscd/nscd.h: Adjust prototypes of readd* functions.
17782
17783 2011-02-04  Roland McGrath  <roland@redhat.com>
17784
17785         * nis/nis_server.c (nis_servstate): Use the right name for 0.
17786         (nis_stats): Likewise.
17787         * nis/nis_modify.c (nis_modify): Likewise.
17788         * nis/nis_remove.c (nis_remove): Likewise.
17789         * nis/nis_add.c (nis_add): Likewise.
17790
17791         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
17792
17793         * posix/fnmatch_loop.c: Add some consts.
17794
17795         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
17796
17797 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
17798
17799         [BZ #12460]
17800         * config.make.in (config-cflags-novzeroupper): Define.
17801         * configure.in: Substitute libc_cv_cc_novzeroupper.
17802         * elf/Makefile (AVX-CFLAGS): Define.
17803         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
17804         (CFLAGS-tst-auditmod4a.c): Likewise.
17805         (CFLAGS-tst-auditmod4b.c): Likewise.
17806         (CFLAGS-tst-auditmod6b.c): Likewise.
17807         (CFLAGS-tst-auditmod6c.c): Likewise.
17808         (CFLAGS-tst-auditmod7b.c): Likewise.
17809         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
17810
17811 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
17812
17813         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
17814         function to the callback.
17815         Patch partly by Jiri Olsa <jolsa@redhat.com>.
17816
17817 2011-02-02  Andreas Schwab  <schwab@redhat.com>
17818
17819         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
17820         of errno.
17821
17822 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
17823
17824         [BZ #11724]
17825         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
17826         of constructors.
17827         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
17828         of destructors.
17829         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
17830
17831         [BZ #11724]
17832         * elf/Makefile: Add rules to build and run new test.
17833         * elf/tst-initorder.c: New file.
17834         * elf/tst-initorder.exp: New file.
17835         * elf/tst-initordera1.c: New file.
17836         * elf/tst-initordera2.c: New file.
17837         * elf/tst-initordera3.c: New file.
17838         * elf/tst-initordera4.c: New file.
17839         * elf/tst-initorderb1.c: New file.
17840         * elf/tst-initorderb2.c: New file.
17841         * elf/tst-order-a1.c: New file.
17842         * elf/tst-order-a2.c: New file.
17843         * elf/tst-order-a3.c: New file.
17844         * elf/tst-order-a4.c: New file.
17845         * elf/tst-order-b1.c: New file.
17846         * elf/tst-order-b2.c: New file.
17847         * elf/tst-order-main.c: New file.
17848         New test case by George Gensure <werkt0@gmail.com>.
17849
17850 2010-10-01  Andreas Schwab  <schwab@redhat.com>
17851
17852         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17853         decoding ACE if AI_CANONIDN.
17854
17855 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
17856
17857         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
17858
17859 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
17860
17861         * version.h (RELEASE): Bump for 2.13 release.
17862         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
17863
17864         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
17865
17866         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
17867         MADV_NOHUGEPAGE.
17868         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
17869         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
17870         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17871         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17872         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17873         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17874
17875         * posix/getconf.c: Update copyright year.
17876         * catgets/gencat.c: Likewise.
17877         * csu/version.c: Likewise.
17878         * debug/catchsegv.sh: Likewise.
17879         * debug/xtrace.sh: Likewise.
17880         * elf/ldconfig.c: Likewise.
17881         * elf/ldd.bash.in: Likewise.
17882         * elf/sprof.c (print_version): Likewise.
17883         * iconv/iconv_prog.c: Likewise.
17884         * iconv/iconvconfig.c: Likewise.
17885         * locale/programs/locale.c: Likewise.
17886         * locale/programs/localedef.c: Likewise.
17887         * malloc/memusage.sh: Likewise.
17888         * malloc/mtrace.pl: Likewise.
17889         * nscd/nscd.c (print_version): Likewise.
17890         * nss/getent.c: Likewise.
17891
17892         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
17893         PF_CAIF, and PF_ALG.
17894         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17895
17896 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
17897
17898         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
17899         (modules-names): Use them.
17900         (ifunc-test-modules, ifunc-pie-tests): Define.
17901         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
17902         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
17903         (test-extras): Likewise.
17904         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
17905         $(compile-command.c).
17906         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
17907         (all-built-dso): Define.
17908         (check-textrel.out, check-execstack.out): Depend on it.
17909
17910         * configure.in: Don't override --enable-multi-arch.
17911
17912 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
17913
17914         [BZ #6812]
17915         * nscd/hstcache.c (tryagain): Define.
17916         (cache_addhst): Return tryagain not notfound for temporary errors.
17917         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
17918         failed.
17919
17920 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
17921
17922         [BZ #10563]
17923         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
17924         to make the syscall.
17925         * sysdeps/unix/sysv/linux/setgroups.c: New file.
17926
17927         [BZ #12378]
17928         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
17929         and fall back to matching as normal character if the string ends before
17930         the matching ']' is found.  This is what POSIX requires.
17931         * posix/testfnm.c: Adjust test result.
17932         * posix/globtest.sh: Adjust test result.  Add new test.
17933         * posix/tst-fnmatch.input: Likewise.
17934         * posix/tst-fnmatch2.c: Add new test.
17935
17936 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
17937
17938         * elf/Makefile (check-execstack): Revert last change.  Depend on
17939         check-execstack.h.
17940         (check-execstack.h): New target.
17941         (generated): Add check-execstack.h.
17942         * elf/check-execstack.c: Include "check-execstack.h".
17943         (main): Revert last change.
17944         (handle_file): Return zero if GNU_STACK is absent and
17945         DEFAULT_STACK_PERMS doesn't include PF_X.
17946
17947 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
17948
17949         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
17950         in child fails because the descriptor is already closed.
17951         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
17952         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
17953         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
17954
17955         [BZ #12397]
17956         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
17957         syscall.
17958
17959         [BZ #10484]
17960         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
17961         temporary buffer used to handle multi lookups locally.
17962         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
17963
17964 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17965
17966         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
17967         loader is ld.so.
17968
17969 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
17970
17971         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
17972         alignment for SSE2.
17973
17974 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17975
17976         [BZ #12394]
17977         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
17978         characters.  When rounding increased number of integer digits recompute
17979         number of groups.
17980         * stdio-common/tst-grouping.c: New file.
17981         * stdio-common/Makefile: Add rules to build and run tst-grouping.
17982
17983 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
17984
17985         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
17986         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
17987
17988         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
17989         void.
17990         * bits/select.h: Likewise.
17991
17992 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
17993
17994         * po/ja.po: Update from translation team.
17995
17996 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
17997
17998         [BZ #11155]
17999         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18000         implementation just like for lxstat, fxstatat, et al.
18001
18002 2010-12-27  Jim Meyering  <meyering@redhat.com>
18003
18004         [BZ #12348]
18005         * posix/regexec.c (build_trtable): Return failure indication upon
18006         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18007
18008 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18009
18010         [BZ #12201]
18011         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18012         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18013         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18014         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18015
18016         [BZ #12207]
18017         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18018
18019         [BZ #12204]
18020         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18021         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18022
18023 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18024
18025         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18026         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18027         script has SORT_BY_INIT_PRIORITY.
18028         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18029         NO_CTORS_DTORS_SECTIONS is defined.
18030         * elf/soinit.c: Likewise.
18031         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18032         NO_CTORS_DTORS_SECTIONS is defined.
18033         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18034         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18035         * sysdeps/sh/init-first.c: Likewise.
18036         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18037
18038 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18039
18040         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18041         always use the slow path.
18042
18043 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18044
18045         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18046         similar rule which adds the sysdep directories to the header search in
18047         order to pick up the correct platform stackinfo.h.
18048         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18049         perform test if it is, otherwise return successfully without testing.
18050         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18051         DEFAULT_STACK_PERMS define in stackinfo.h.
18052         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18053         defined in stackinfo.h.
18054         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18055         DEFAULT_STACK_PERMS defined in stackinfo.h.
18056         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18057         * sysdeps/ia64/stackinfo.h: Likewise.
18058         * sysdeps/s390/stackinfo.h: Likewise.
18059         * sysdeps/sh/stackinfo.h: Likewise.
18060         * sysdeps/sparc/stackinfo.h: Likewise.
18061         * sysdeps/x86_64/stackinfo.h: Likewise.
18062         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18063         PF_X for powerpc64.  Retain PF_X for powerpc32.
18064
18065 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18066
18067         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18068         accurately.
18069         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18070         GETDENTS_64BIT_ALIGNED.
18071
18072 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18073
18074         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18075
18076 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18077
18078         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18079         _GNU_SOURCE.
18080
18081         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18082         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18083         Remove __restrict.
18084         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18085         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18086
18087 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18088
18089         [BZ #11655]
18090         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18091         are initialized.
18092
18093 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18094
18095         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18096
18097 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18098
18099         * po/it.po: Update from translation team.
18100
18101 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18102
18103         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18104         unused codes.
18105
18106 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18107
18108         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18109
18110 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18111
18112         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18113         specially.
18114         (gaih_getanswer_slice): Likewise.
18115
18116 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18117
18118         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18119
18120 2010-05-31  Petr Baudis  <pasky@suse.cz>
18121
18122         [BZ #11149]
18123         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18124         silently even in the chroot mode.
18125
18126 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18127
18128         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18129         last patch a bit.  Pretty printing
18130
18131 2010-05-31  Petr Baudis <pasky@suse.cz>
18132
18133         [BZ #10085]
18134         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18135         initialization of skip_initgroups_dyn.
18136
18137 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18138
18139         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18140         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18141
18142 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18143
18144         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18145
18146 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18147
18148         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18149         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18150         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18151         ($(objpfx)tst-fnmatch-mem): New rule.
18152         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18153         * posix/tst-fnmatch.c (main): Call mtrace.
18154
18155 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18156
18157         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18158         Support Intel processor model 6 and model 0x2c.
18159
18160 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18161
18162         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18163           signed comparison.
18164
18165 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18166
18167         [BZ #12205]
18168         * string/test-strncasecmp.c (check_result): New function.
18169         (do_one_test): Use it.
18170         (check1): New function.
18171         (test_main): Use it.
18172         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18173         Support strcasecmp and strncasecmp.
18174
18175 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18176
18177         [BZ #12194]
18178         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18179         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18180
18181 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18182
18183         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18184         IFUNC support.
18185         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18186         memset-x86-64.
18187         * sysdeps/x86_64/multiarch/bzero.S: New file.
18188         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18189         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18190         * sysdeps/x86_64/multiarch/memset.S: New file.
18191         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18192         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18193         Set bit_Prefer_SSE_for_memop for Intel processors.
18194         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18195         Define.
18196         (index_Prefer_SSE_for_memop): Define.
18197         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18198
18199 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18200
18201         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18202         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18203
18204 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18205
18206         [BZ #12191]
18207         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18208         (__x86_64_raw_data_cache_size_half): Likewise.
18209         (__x86_64_raw_shared_cache_size): Likewise.
18210         (__x86_64_raw_shared_cache_size_half): Likewise.
18211
18212         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18213         (__x86_64_raw_data_cache_size_half): Likewise.
18214         (__x86_64_raw_shared_cache_size): Likewise.
18215         (__x86_64_raw_shared_cache_size_half): Likewise.
18216         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18217         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18218         and __x86_64_raw_shared_cache_size_half.  Round
18219         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18220         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18221         to multiple of 256 bytes.
18222
18223 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18224
18225         [BZ #12167]
18226         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18227         of inacessible symlinks.  Verify result of symlink before returning it.
18228         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18229         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18230
18231 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18232
18233         * math/math.h (isinf): Fix typo in comment.
18234
18235 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18236
18237         * po/da.po: Update from translation team.
18238
18239 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18240
18241         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18242         is added to the list.
18243
18244 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18245             Ulrich Drepper  <drepper@gmail.com>
18246
18247         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18248         the global list here.  Move code to...
18249         (_dl_add_to_namespace_list): ...here.  New function.
18250         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18251         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18252         * elf/dl-load.c (lose): Don't remove the element from the list.
18253         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18254         (_dl_map_object): Likewise.
18255
18256 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18257
18258         [BZ #12159]
18259         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18260         into all bytes of SSE register.
18261         Patch by Richard Li <richardpku@gmail.com>.
18262
18263 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18264
18265         [BZ #12140]
18266         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18267         perturbing.
18268
18269 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18270
18271         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18272         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18273         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18274         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18276         submachine.
18277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18278
18279 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18280
18281         * include/dlfcn.h (__RTLD_SECURE): Define.
18282         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18283         mode & __RTLD_SECURE instead.
18284         (open_path): Rename preloaded parameter to secure.
18285         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18286         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18287         * elf/dl-deps.c (openaux): Likewise.
18288         * elf/rtld.c (struct map_args): Remove is_preloaded.
18289         (map_doit): Don't use it.
18290         (dl_main): Likewise.
18291         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18292         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18293
18294 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18295
18296         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18297         (sysd-rules-targets): Remove duplicates.
18298         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18299         rtld-%.$o dependency.
18300
18301 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18302
18303         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18304         _dl_map_object do it.
18305
18306 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18307
18308         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18309         fast fma builtins, define the macros in the C99 standard.
18310         (FP_FAST_FMAF): Likewise.
18311         (FP_FAST_FMAL): Likewise.
18312         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18313
18314         * bits/mathdef.h: Update copyright year.
18315         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18316
18317 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18318
18319         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18320         builtins, define the macros in the C99 standard.
18321         (FP_FAST_FMAF): Likewise.
18322         (FP_FAST_FMAL): Likewise.
18323         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18324         multiply/add.
18325         (FP_FAST_FMAF): Likewise.
18326
18327 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18328
18329         [BZ #3268]
18330         * math/libm-test.inc (fma_test): Some new testcases.
18331         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18332         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18333         y and infinite z.  Do multiplication by C already in long double.
18334         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18335         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18336         y and infinite z.  Do bitwise or of inexact bit into u.d.
18337         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18338         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18339         * sysdeps/i386/fpu/s_fma.S: Removed.
18340         * sysdeps/i386/fpu/s_fmal.S: Removed.
18341
18342 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18343
18344         [BZ #3268]
18345         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18346         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18347         computation is not scheduled after fetestexcept.  Fix value
18348         of minimum denormal long double.
18349
18350 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18351
18352         [BZ #3268]
18353         * math/libm-test.inc (fma_test): Add some more tests.
18354         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18355         correctly.
18356
18357 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18358
18359         * scripts/data/localplt-s390-linux-gnu.data: New file.
18360         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18361
18362 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18363
18364         [BZ #3268]
18365         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18366         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18367         instead of dbl-64.
18368         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18369         inlines.
18370         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18371         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18372         if one of x and y is very large and the other is subnormal.
18373         * sysdeps/s390/fpu/s_fmaf.c: New file.
18374         * sysdeps/s390/fpu/s_fma.c: New file.
18375         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18376         * sysdeps/powerpc/fpu/s_fma.S: New file.
18377         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18378         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18379         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18380
18381 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18382
18383         [BZ #3268]
18384         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18385         fma tests.
18386         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18387         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18388         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18389         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18390         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18391         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18392         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18393
18394 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18395
18396         [BZ #12078]
18397         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18398         * posix/bug-regex31.input: Add test case.
18399
18400 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18401
18402         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18403         * posix/bug-regex31.input: New file.
18404
18405         [BZ #12078]
18406         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18407         (parse_sub_exp): Fix last change, use postorder.
18408
18409         * posix/bug-regex31.c: New file.
18410         * posix/Makefile: Add rules to build and run bug-regex31.
18411
18412         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18413
18414         [BZ #12078]
18415         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18416
18417         [BZ #12108]
18418         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18419         to have entries in sys_siglist.
18420
18421         [BZ #12093]
18422         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18423         be NULL.
18424
18425 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18426
18427         [BZ #3268]
18428         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18429         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18430         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18431         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18432         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18433         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18434         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18435         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18436         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18437         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18438         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18439         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18440         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18441         * math/ftestexcept.c (fetestexcept): Likewise.
18442         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18443         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18444         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18445         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18446         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18447         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18448         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18449
18450 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18451
18452         [BZ #12107]
18453         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18454         newline.
18455
18456 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18457
18458         * string/bug-strstr1.c: New file.
18459         * string/Makefile: Add rules to build and run bug-strstr1.
18460
18461 2010-10-05  Eric Blake  <eblake@redhat.com>
18462
18463         [BZ #12092]
18464         * string/str-two-way.h (two_way_long_needle): Always clear memory
18465         when skipping input due to the shift table.
18466
18467 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18468
18469         [BZ #12005]
18470         * malloc/mcheck.c: Handle large requests.
18471
18472         [BZ #12077]
18473         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18474         for strncmp and strncasecmp.
18475         * string/stratcliff.c: Add tests for strcmp and strncmp.
18476         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18477
18478 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18479
18480         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18481         __set_fpscr.
18482
18483 2010-09-30  Andreas Jaeger  <aj@suse.de>
18484
18485         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18486         (CGROUP_SUPER_MAGIC): Define.
18487         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18488         Handle btrfs and cgroup file systems.
18489         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18490         Likewise.
18491
18492 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18493
18494         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18495         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18496
18497 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18498
18499         [BZ #12067]
18500         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18501         trying to locate the ELF header.
18502
18503 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18504
18505         [BZ #11611]
18506         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18507         Mask out sign-bit copies when constructing f_fsid.
18508
18509 2010-09-24  Petr Baudis <pasky@suse.cz>
18510
18511         * debug/stack_chk_fail_local.c: Add missing licence exception.
18512         * debug/warning-nop.c: Likewise.
18513
18514 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18515
18516         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18517         implementing getdents64 using getdents syscall, set d_type if
18518         __ASSUME_GETDENTS32_D_TYPE.
18519
18520 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18521
18522         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18523         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18524
18525 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18526
18527         [BZ #12037]
18528         * posix/unistd.h: Undo change of feature selection for ftruncate from
18529         2010-01-11.
18530
18531 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18532
18533         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18534         detection.
18535
18536 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18537
18538         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18539         fanotify_mark.
18540         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18541
18542 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18543
18544         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18545         variables after CHECK_SP call.
18546         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18547
18548 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18549             Ulrich Drepper  <drepper@redhat.com>
18550
18551         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18552         re-relocationg ld.so.
18553         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18554         _dl_init_paths call.
18555         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18556         here anymore.
18557
18558 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18559
18560         * resolv/res_init.c (__res_vinit): Count the default server we added.
18561
18562 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18563             Ulrich Drepper  <drepper@redhat.com>
18564
18565         [BZ #11968]
18566         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18567         (____longjmp_chk): Use %ebx for saving value across system call.
18568         Add unwind info.
18569
18570 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18571
18572         * manual/Makefile: Don't mix pattern rules with normal rules.
18573
18574 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18575
18576         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18577         operation.
18578         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18579         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18580         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18581         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18582         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18583         Likewise.
18584
18585 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18586
18587         [BZ #11979]
18588         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18589         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18590
18591 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18592
18593         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18594         * sysdeps/x86_64/addmul_1.S: Likewise.
18595         * sysdeps/x86_64/lshift.S: Likewise.
18596         * sysdeps/x86_64/mul_1.S: Likewise.
18597         * sysdeps/x86_64/rshift.S: Likewise.
18598         * sysdeps/x86_64/sub_n.S: Likewise.
18599         * sysdeps/x86_64/submul_1.S: Likewise.
18600
18601 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18602
18603         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18604         Define __sched_param instead of SCHED_* and sched_param when
18605         <bits/sched.h> is included with __need_schedparam defined.
18606         * bits/sched.h [__need_schedparam]
18607         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18608         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18609         (__defined_schedparam): Define to 1.
18610         (__sched_param): New structure, identical to sched_param.
18611         (__need_schedparam): Undefine.
18612
18613 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18614
18615         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18616         (epoll_create1): Declare.
18617
18618         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18619
18620 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18621
18622         [BZ #7066]
18623         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18624         shifting retval into place.
18625
18626 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18627
18628         * nis/rpcsvc/nis.h: Update copyright notice.
18629         * nis/rpcsvc/nis.x: Likewise.
18630         * nis/rpcsvc/nis_callback.h: Likewise.
18631         * nis/rpcsvc/nis_callback.x: Likewise.
18632         * nis/rpcsvc/nis_object.x: Likewise.
18633         * nis/rpcsvc/nis_tags.h: Likewise.
18634         * nis/rpcsvc/yp.h: Likewise.
18635         * nis/rpcsvc/yp.x: Likewise.
18636         * nis/rpcsvc/ypupd.h: Likewise.
18637         * nis/yp_xdr.c: Likewise.
18638         * nis/ypupdate_xdr.c: Likewise.
18639
18640         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18641         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18642         (pmap_getport): Use __libc_rpc_getport.
18643         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18644         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18645         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18646
18647 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18648
18649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18650         fanotify_mark.
18651
18652 2010-08-27  Roland McGrath  <roland@redhat.com>
18653
18654         * sysdeps/i386/i686/multiarch/Makefile
18655         (CFLAGS-varshift.c): New variable.
18656
18657 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18658
18659         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18660         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18661
18662         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18663
18664         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18665
18666 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18667
18668         * sysdeps/x86_64/strlen.S: Unroll the loop.
18669         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18670         strlen-sse2 strlen-sse2-bsf.
18671         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18672         __strlen_no_bsf if bit_Slow_BSF is set.
18673         (__strlen_sse42): Removed.
18674         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18675         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18676
18677 2010-08-25  Roland McGrath  <roland@redhat.com>
18678
18679         * sysdeps/x86_64/multiarch/varshift.S: File removed.
18680         * sysdeps/x86_64/multiarch/varshift.c: New file.
18681         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18682         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
18683         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
18684         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18685
18686 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
18687
18688         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18689         strlen-sse2 strlen-sse2-bsf.
18690         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
18691         __strlen_sse2_bsf if bit_Slow_BSF is unset.
18692         (__strlen_sse2): Removed.
18693         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
18694         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
18695         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
18696         bit_Slow_BSF for Atom.
18697         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
18698         (index_Slow_BSF): Define.
18699         (HAS_SLOW_BSF): Define.
18700
18701 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
18702
18703         [BZ #10851]
18704         * resolv/res_init.c (__res_vinit): When no server address at all
18705         is given default to loopback.
18706
18707 2010-08-24  Roland McGrath  <roland@redhat.com>
18708
18709         * configure.in: Remove config-name.h generation.
18710         * configure: Regenerated.
18711         * config-name.in: File removed.
18712         * scripts/config-uname.sh: New file.
18713         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
18714         ($(objdir)config-name.h): New target.
18715
18716         * sunrpc/rpc_parse.h: Avoid nested comment.
18717
18718 2010-08-24  Richard Henderson  <rth@redhat.com>
18719             Ulrich Drepper  <drepper@redhat.com>
18720             H.J. Lu  <hongjiu.lu@intel.com>
18721
18722         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
18723         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
18724         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
18725         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
18726         _mm_alignr_epi8 with _mm_loadu_si128.
18727         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
18728         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
18729         (__m128i_shift_right): Removed.
18730         * sysdeps/i386/i686/multiarch/varshift.h: New file.
18731         * sysdeps/i386/i686/multiarch/varshift.S: New file.
18732         * sysdeps/x86_64/multiarch/varshift.h: New file.
18733         * sysdeps/x86_64/multiarch/varshift.S: New file.
18734
18735 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
18736
18737         * configure.in: Move assembler checks to before sysdep dir checking.
18738
18739 2010-08-20  Petr Baudis  <pasky@suse.cz>
18740
18741         * LICENSES: Sync the sunrpc license.
18742
18743 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
18744
18745         * sunrpc/auth_des.c: Update copyright notice once again.
18746         * sunrpc/auth_none.c: Likewise.
18747         * sunrpc/auth_unix.c: Likewise.
18748         * sunrpc/authdes_prot.c: Likewise.
18749         * sunrpc/authuxprot.c: Likewise.
18750         * sunrpc/bindrsvprt.c: Likewise.
18751         * sunrpc/clnt_gen.c: Likewise.
18752         * sunrpc/clnt_perr.c: Likewise.
18753         * sunrpc/clnt_raw.c: Likewise.
18754         * sunrpc/clnt_simp.c: Likewise.
18755         * sunrpc/clnt_tcp.c: Likewise.
18756         * sunrpc/clnt_udp.c: Likewise.
18757         * sunrpc/clnt_unix.c: Likewise.
18758         * sunrpc/des_crypt.c: Likewise.
18759         * sunrpc/des_soft.c: Likewise.
18760         * sunrpc/get_myaddr.c: Likewise.
18761         * sunrpc/getrpcport.c: Likewise.
18762         * sunrpc/key_call.c: Likewise.
18763         * sunrpc/key_prot.c: Likewise.
18764         * sunrpc/openchild.c: Likewise.
18765         * sunrpc/pm_getmaps.c: Likewise.
18766         * sunrpc/pm_getport.c: Likewise.
18767         * sunrpc/pmap_clnt.c: Likewise.
18768         * sunrpc/pmap_prot.c: Likewise.
18769         * sunrpc/pmap_prot2.c: Likewise.
18770         * sunrpc/pmap_rmt.c: Likewise.
18771         * sunrpc/rpc/auth.h: Likewise.
18772         * sunrpc/rpc/auth_unix.h: Likewise.
18773         * sunrpc/rpc/clnt.h: Likewise.
18774         * sunrpc/rpc/des_crypt.h: Likewise.
18775         * sunrpc/rpc/key_prot.h: Likewise.
18776         * sunrpc/rpc/netdb.h: Likewise.
18777         * sunrpc/rpc/pmap_clnt.h: Likewise.
18778         * sunrpc/rpc/pmap_prot.h: Likewise.
18779         * sunrpc/rpc/pmap_rmt.h: Likewise.
18780         * sunrpc/rpc/rpc.h: Likewise.
18781         * sunrpc/rpc/rpc_des.h: Likewise.
18782         * sunrpc/rpc/rpc_msg.h: Likewise.
18783         * sunrpc/rpc/svc.h: Likewise.
18784         * sunrpc/rpc/svc_auth.h: Likewise.
18785         * sunrpc/rpc/types.h: Likewise.
18786         * sunrpc/rpc/xdr.h: Likewise.
18787         * sunrpc/rpc_clntout.c: Likewise.
18788         * sunrpc/rpc_cmsg.c: Likewise.
18789         * sunrpc/rpc_common.c: Likewise.
18790         * sunrpc/rpc_cout.c: Likewise.
18791         * sunrpc/rpc_dtable.c: Likewise.
18792         * sunrpc/rpc_hout.c: Likewise.
18793         * sunrpc/rpc_main.c: Likewise.
18794         * sunrpc/rpc_parse.c: Likewise.
18795         * sunrpc/rpc_parse.h: Likewise.
18796         * sunrpc/rpc_prot.c: Likewise.
18797         * sunrpc/rpc_sample.c: Likewise.
18798         * sunrpc/rpc_scan.c: Likewise.
18799         * sunrpc/rpc_scan.h: Likewise.
18800         * sunrpc/rpc_svcout.c: Likewise.
18801         * sunrpc/rpc_tblout.c: Likewise.
18802         * sunrpc/rpc_util.c: Likewise.
18803         * sunrpc/rpc_util.h: Likewise.
18804         * sunrpc/rpcinfo.c: Likewise.
18805         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
18806         * sunrpc/rpcsvc/key_prot.x: Likewise.
18807         * sunrpc/rpcsvc/klm_prot.x: Likewise.
18808         * sunrpc/rpcsvc/mount.x: Likewise.
18809         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
18810         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
18811         * sunrpc/rpcsvc/rex.x: Likewise.
18812         * sunrpc/rpcsvc/rstat.x: Likewise.
18813         * sunrpc/rpcsvc/rusers.x: Likewise.
18814         * sunrpc/rpcsvc/sm_inter.x: Likewise.
18815         * sunrpc/rpcsvc/spray.x: Likewise.
18816         * sunrpc/rpcsvc/yppasswd.x: Likewise.
18817         * sunrpc/rtime.c: Likewise.
18818         * sunrpc/svc.c: Likewise.
18819         * sunrpc/svc_auth.c: Likewise.
18820         * sunrpc/svc_authux.c: Likewise.
18821         * sunrpc/svc_raw.c: Likewise.
18822         * sunrpc/svc_run.c: Likewise.
18823         * sunrpc/svc_simple.c: Likewise.
18824         * sunrpc/svc_tcp.c: Likewise.
18825         * sunrpc/svc_udp.c: Likewise.
18826         * sunrpc/svc_unix.c: Likewise.
18827         * sunrpc/svcauth_des.c: Likewise.
18828         * sunrpc/xcrypt.c: Likewise.
18829         * sunrpc/xdr.c: Likewise.
18830         * sunrpc/xdr_array.c: Likewise.
18831         * sunrpc/xdr_float.c: Likewise.
18832         * sunrpc/xdr_mem.c: Likewise.
18833         * sunrpc/xdr_rec.c: Likewise.
18834         * sunrpc/xdr_ref.c: Likewise.
18835         * sunrpc/xdr_sizeof.c: Likewise.
18836         * sunrpc/xdr_stdio.c: Likewise.
18837
18838         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
18839         handling.
18840
18841 2010-08-19  Andreas Schwab  <schwab@redhat.com>
18842
18843         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
18844
18845 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
18846
18847         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
18848         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
18849         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
18850         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
18851         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
18852         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
18853         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
18854         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
18855         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
18856         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
18857         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
18858         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
18859         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
18860         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
18861
18862 2010-07-26  Anton Blanchard  <anton@samba.org>
18863
18864         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
18865         * malloc/arena.c (heap_trim): Likewise.
18866
18867 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
18868
18869         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
18870         here.  Not...
18871         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
18872         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
18873
18874 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
18875
18876         * sysdeps/i386/elf/Makefile: New file.
18877
18878 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18879
18880         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
18881         from fanotify_init.
18882         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
18883         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18884
18885 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
18886
18887         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
18888         of strncasecmp_l.
18889         * sysdeps/multiarch/strcmp.S: Likewise.
18890
18891 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
18892
18893         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18894         strncase_l-nonascii.
18895         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18896         Add strncase_l-ssse3.
18897         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
18898         * sysdeps/x86_64/strcmp.S: Likewise.
18899         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
18900         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
18901         * sysdeps/x86_64/strncase.S: New file.
18902         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
18903         * sysdeps/x86_64/strncase_l.S: New file.
18904         * string/Makefile (strop-tests): Add strncasecmp.
18905         * string/test-strncasecmp.c: New file.
18906
18907         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
18908         warning.
18909
18910         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
18911         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
18912
18913 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18914
18915         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
18916
18917 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
18918
18919         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
18920         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
18921         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
18922
18923 2010-05-01  Alan Modra  <amodra@gmail.com>
18924
18925         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
18926         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
18927         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
18928         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
18929         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
18930         tidying.  Don't tail-call __sigjmp_save for static lib.
18931         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
18932         save location.
18933         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
18934         (CALL_MCOUNT): Add eh info, and nop after bl.
18935         (TAIL_CALL_SYSCALL_ERROR): New macro.
18936         (PSEUDO_RET): Use it.
18937         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
18938         Correct save location of integer regs and cr.
18939         (_dl_profile_resolve): Correct cr save location.  Delete nops
18940         after bl when SHARED.  Reduce cfi size a little by better
18941         placement of cfi directives.
18942         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
18943         make a stack frame.  Instead use parm save area as a temp.
18944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
18945         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
18946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18947         Don't make a stack frame for parent, use parm save area.
18948         Increase child stack frame to 112 bytes.  Don't save unused reg,
18949         and adjust reg usage.  Set up cfi on error recovery and
18950         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
18951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
18952         (__makecontext): Add dummy nop after jump to exit.
18953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
18954         Use correct parm save area and cr save, reduce stack frame.
18955         Correct cfi for possible PSEUDO_RET frame setup.
18956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
18957         Branch to local label emitted by PSEUDO_RET rather than
18958         __syscall_error.
18959
18960 2010-08-12  Andreas Schwab  <schwab@redhat.com>
18961
18962         [BZ #11904]
18963         * locale/programs/locale.c (print_assignment): New function.
18964         (show_locale_vars): Use it.
18965
18966 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
18967
18968         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
18969         field.
18970         (struct statfs64): Likewise.
18971         (_STATFS_F_FLAGS): Define.
18972         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
18973         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18974         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
18975         (ST_VALID): Define locally.
18976         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
18977         __statvfs_getflags, use the provided value.
18978         * sysdeps/unix/sysv/linux/kernel-features.h: Define
18979         __ASSUME_STATFS_F_FLAGS.
18980
18981         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
18982
18983         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
18984         Add sys/fanotify.h.
18985         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
18986         fanotify_mask for GLIBC_2.13.
18987         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
18988         fanotify_init and fanotify_mark.
18989         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18990         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
18991
18992         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
18993         Add prlimit.
18994         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
18995         prlimit64 for GLIBC_2.13.
18996         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
18997         prlimit64.
18998         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
18999         syscall.
19000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19001         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19002         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19003         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19004         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19005         add prlimit alias.
19006         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19007
19008         [BZ #11903]
19009         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19010         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19011
19012         * nss/Makefile: Add rules to build and run tst-nss-test1.
19013         * shlib-versions: Add entry for libnss_test1.
19014         * nss/nss_test1.c: New file.
19015         * nss/tst-nss-test1.c: New file.
19016
19017         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19018         (__nss_configure_lookup): Set appropriate entry in
19019         __nss_configure_lookup to true.
19020         * nss/nsswitch.h: Define enum with indeces of databases in
19021         databases and __nss_database_custom arrays.  Declare
19022         __nss_database_custom.
19023         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19024         to avoid using nscd when custom rules are installed.
19025         * nss/getXXbyYY_r.c: Likewise.
19026         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19027
19028         * nss/nss_files/files-parse.c: Whitespace fixes.
19029
19030 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19031
19032         [BZ #11883]
19033         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19034         * posix/fnmatch_loop.c: Likewise.
19035
19036 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19037
19038         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19039         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19040         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19041         * Versions.def [GLIBC_2.13]: Add.
19042
19043 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19044
19045         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19046         Also fail if tpwd after pwuid call is NULL.
19047
19048 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19049
19050         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19051         when converting to ms.
19052
19053 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19054
19055         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19056         EOPNOTSUPP errors with ENOTTY.
19057         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19058         EOPNOTSUPP errors with ENOTTY.
19059
19060 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19061
19062         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19063         Add strcasecmp_l-ssse3.
19064         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19065         strcasecmp.
19066         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19067         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19068         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19069
19070 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19071
19072         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19073
19074         * string/Makefile (strop-tests): Add strcasecmp.
19075         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19076         strcasecmp_l-nonascii.
19077         (gen-as-const-headers): Add locale-defines.sym.
19078         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19079         * sysdeps/x86_64/strcasecmp.S: New file.
19080         * sysdeps/x86_64/strcasecmp_l.S: New file.
19081         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19082         * sysdeps/x86_64/locale-defines.sym: New file.
19083         * string/test-strcasecmp.c: New file.
19084
19085         * string/test-strcasestr.c: Test both ends of the range of characters.
19086         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19087
19088 2010-07-29  Roland McGrath  <roland@redhat.com>
19089
19090         [BZ #11856]
19091         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19092
19093 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19094
19095         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19096         for ld.so.
19097
19098 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19099
19100         * manual/memory.texi (Malloc Tunable Parameters): Document
19101         M_PERTURB.
19102
19103 2010-07-26  Roland McGrath  <roland@redhat.com>
19104
19105         [BZ #11840]
19106         * configure.in (-fgnu89-inline check): Set and substitute
19107         gnu89_inline, not libc_cv_gnu89_inline.
19108         * configure: Regenerated.
19109         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19110
19111 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19112
19113         * string/test-strnlen.c: New file.
19114         * string/Makefile (strop-tests): Add strnlen.
19115         * string/tester.c (test_strnlen): Add a few more test cases.
19116         * string/tst-strlen.c: Better error reporting.
19117
19118         * sysdeps/x86_64/strnlen.S: New file.
19119
19120 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19121
19122         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19123         lower-latency instructions.
19124
19125 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19126
19127         * string/test-strcasestr.c: New file.
19128         * string/test-strstr.c: New file.
19129         * string/Makefile (strop-tests): Add strstr and strcasestr.
19130         * string/str-two-way.h: Don't undefine MAX.
19131         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19132
19133 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19134
19135         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19136         strcasestr-nonascii.
19137         (CFLAGS-strcasestr-nonascii.c): Define.
19138         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19139         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19140         Remove unused attribute.
19141
19142 2010-07-20  Roland McGrath  <roland@redhat.com>
19143
19144         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19145         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19146         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19147         like LD_HWCAP_MASK can disable hwcaps.
19148
19149 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19150
19151         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19152
19153 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19154
19155         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19156         call in strcasestr.
19157         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19158         __strcasestr_sse42_nonascii.
19159         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19160         strcasestr-nonascii.c.
19161         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19162
19163 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19164
19165         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19166         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19167         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19168         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19169
19170 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19171
19172         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19173         fcntl.
19174
19175 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19176
19177         [BZ #11577]
19178         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19179         dl_signal_cerror.
19180
19181 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19182
19183         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19184         _PC_PIPE_BUF using F_GETPIPE_SZ.
19185
19186 2010-07-05  Roland McGrath  <roland@redhat.com>
19187
19188         * manual/arith.texi (Rounding Functions): Fix rint description
19189         implicit in round description.
19190
19191 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19192
19193         * elf/Makefile: Fix linking for a few tests to make recent linker
19194         happy.
19195
19196 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19197
19198         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19199         $(common-objpfx)libc_nonshared.a.
19200
19201 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19202
19203         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19204         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19205         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19206         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19207         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19208         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19209         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19210         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19225         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19226         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19227         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19228         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19229         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19230         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19231         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19232         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19233         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19234         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19235         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19236         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19251
19252 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19253
19254         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19255         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19256         * string/memmove.c (memmove): Renamed to ...
19257         (MEMMOVE): ...this.  Default to memmove.
19258         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19259         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19260         (END_CHK): Define.
19261         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19262         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19263         mempcpy-ssse3-back memmove-ssse3-back.
19264         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19265         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19266         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19267         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19268         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19269         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19270         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19271         * sysdeps/x86_64/multiarch/memmove.c: New file.
19272         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19273         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19274         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19275         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19276         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19277         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19278         Define.
19279         (index_Fast_Copy_Backward): Define.
19280         (HAS_ARCH_FEATURE): Define.
19281         (HAS_FAST_REP_STRING): Define.
19282         (HAS_FAST_COPY_BACKWARD): Define.
19283
19284 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19285
19286         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19287         Restore proper fallback handling.
19288
19289 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19290
19291         [BZ #11701]
19292         * posix/group_member.c (__group_member): Correct checking loop.
19293
19294         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19295         OOM in getpwuid_r correctly.  Return error number when the caller
19296         should return, otherwise -1.
19297         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19298         call returning > 0 value.
19299         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19300
19301 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19302
19303         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19304         libc_nonshared.a from targets in modules-names.
19305
19306 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19307
19308         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19309         requires it.
19310
19311 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19312
19313         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19314         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19315         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19316         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19317
19318 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19319
19320         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19321
19322 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19323
19324         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19325         and F_GETPIPE_SZ.
19326         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19327         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19328         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19329         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19330         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19331         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19332
19333 2010-06-14  Roland McGrath  <roland@redhat.com>
19334
19335         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19336
19337 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19338
19339         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19340         __REDIRECT followed by __THROW.
19341         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19342         * posix/getopt.h (getopt): Likewise.
19343
19344 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19345
19346         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19347         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19348         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19349         in AT_FLAGS.
19350         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19351         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19352
19353 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19354
19355         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19356
19357 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19358
19359         [BZ #11640]
19360         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19361         Properly check family and model.
19362
19363 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19364
19365         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19366
19367 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19368
19369         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19370
19371 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19372
19373         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19374         symbol reference.
19375
19376 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19377
19378         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19379         symbol reference.
19380
19381 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19382
19383         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19384         and internal_recvmmsg.
19385         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19386         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19387         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19388         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19389
19390         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19391         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19392         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19393
19394 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19395
19396         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19397
19398 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19399
19400         POWER7 optimizations.
19401         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19402         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19403
19404 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19405
19406         * version.h: Update for 2.13 development version.
19407
19408 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19409
19410         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19411         exceptions.  Return 0.
19412
19413 2010-05-07  Roland McGrath  <roland@redhat.com>
19414
19415         * elf/ldconfig.c (main): Add a const.
19416
19417 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19418
19419         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19420         (args_options): Add no-idn option.
19421         (ahosts_keys_int): Add idn_flags to ai_flags.
19422         (parse_option): Handle 'i' option to clear idn_flags.
19423
19424         * malloc/malloc.c (_int_free): Possible race in the most recently
19425         added check.  Only act on the data if no current modification
19426         happened.
19427
19428 See ChangeLog.17 for earlier changes.