Split sys/param.h out into common file and sysdeps bits/param.h file.
[glibc.git] / ChangeLog
blobf050559d83d9be6edffa8069ad1d0ead49ec7635
1 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3         * bits/param.h: New file.
4         * misc/sys/param.h: New file.
5         * include/sys/param.h: New file.
6         * misc/Makefile (headers): Add bits/param.h.
7         * sysdeps/generic/sys/param.h: File removed.
8         * sysdeps/unix/sysv/linux/bits/param.h: New file.
9         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
10         * sysdeps/mach/hurd/bits/param.h: New file.
11         * sysdeps/mach/hurd/sys/param.h: New file.
13         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
14         last change.
16         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
17         [_IO_MTSAFE_IO].
18         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
19         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
20         New macros.
22         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
23         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
24         rather than -D_IO_MTSAFE_IO conditionally.
25         * stdio-common/Makefile (CPPFLAGS): Likewise.
26         * wcsmbs/Makefile (CPPFLAGS): Likewise.
27         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
28         Use $(libio-mtsafe).
29         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
30         of -D_IO_MTSAFE_IO.
31         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
32         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
33         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
34         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
35         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
36         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
37         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
38         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
39         (CFLAGS-fread_u_chk.c): Likewise.
40         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
41         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
42         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
43         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
44         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
45         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
46         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
47         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
48         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
50         * libio/Makefile: Test [$(libc-reentrant) = yes]
51         instead of [$(filter %REENTRANT, $(defines)) nonempty].
53         * Makeconfig
54         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
55         * sysdeps/pthread/configure: File removed.
56         * sysdeps/pthread/Makeconfig: New file.
57         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
58         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
60 2012-08-16  Gary Benson  <gbenson@redhat.com>
62         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
63         unmapping the first object in a namespace.
65 2012-08-16  Roland McGrath  <roland@hack.frob.com>
67         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
68         (__internal_setnetgrent): ... this.  Add internal_function to
69         definition.  Add libc_hidden_def.
70         (setnetgrent): Update caller.
71         (internal_endnetgrent): Renamed to ...
72         (__internal_endnetgrent): ... this.  Add internal_function to
73         definition.  Add libc_hidden_def.
74         (endnetgrent): Update caller.
75         (internal_getnetgrent_r): Renamed to ...
76         (__internal_getnetgrent_r): ... this.  Add internal_function to
77         definition.  Add libc_hidden_def.
78         (__getnetgrent_r): Update caller.
79         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
81 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
83         * stdlib/longlong.h: Update from GCC.
85 2012-08-16  Roland McGrath  <roland@hack.frob.com>
87         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
88         on _QL, which is set by umul_ppmm but never used.
89         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
90         variables, which are set by GMP macros but never used.
91         * stdio-common/_itowa.c (_itowa): Likewise.
92         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
93         * stdlib/mod_1.c (mpn_mod_1): Likewise.
95 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
97         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
98         struct La_sh_regs is not constant.
99         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
100         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
101         and struct La_sparc64_regs are not constant.
103 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
105         * sysdeps/unix/sysv/linux/kernel-features.h
106         (__ASSUME_POSIX_TIMERS): Remove.
107         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
108         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
109         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
110         Make code unconditional.
111         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
112         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
113         Make code unconditional.
114         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
115         * sysdeps/unix/sysv/linux/clock_nanosleep.c
116         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
117         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
118         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
119         Make code unconditional.
120         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
121         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
122         (__libc_missing_posix_timers): Remove.
124 2012-08-15  Roland McGrath  <roland@hack.frob.com>
126         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
127         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
129         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
131         * elf/dl-sym.c: Include <stdlib.h>.
133         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
134         constants, which avoids warnings in 32-bit builds.
136         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
137         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
139         * misc/lseek.c: File moved to ...
140         * io/lseek.c: ... here.
142         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
144         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
145         shifting LEN more than 31 bits at once.
147 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
149         [BZ #14195]
150         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
151         segmentation fault for a case of two empty input strings.
152         * string/test-strncasecmp.c (check1): Renamed to...
153         (bz12205): ...this.
154         (bz14195): Add new testcase for two empty input strings and N > 0.
155         (test_main): Call new testcase, adapt for renamed function.
157 2012-08-15  Andreas Jaeger  <aj@suse.de>
159         [BZ #14090]
160         * crypt/md5test2.c: New test, based on test supplied by Serge
161         Belyshev <belyshev@depni.sinp.msu.ru>.
162         * crypt/Makefile (xtests): Add md5test-giant..
163         * crypt/Makefile ($(objpfx)md5test-giant): Add.
165 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
167         [BZ #14090]
168         * crypt/md5.c (md5_process_block): Don't assume the buffer
169         length is less than 2**32.
170         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
171         length is less than 2**64.
173 2012-08-15  Roland McGrath  <roland@hack.frob.com>
175         * string/str-two-way.h: Include <sys/param.h>.
176         (MAX): Macro removed.
178         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
179         Move #define and #undef of memmove to just before and after
180         including <string.h>.
182         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
183         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
184         and after including <string.h>.  Move declarations of
185         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
186         to before #include "string/memmove.c".
188         * include/dirent.h: Declare __getdirentries.
190         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
191         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
193 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
195         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
196         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
197         * sysdeps/i386/configure: Regenerated.
198         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
199         STABS_CURRENT_FILE, and STABS_FUN.
200         (END): Remove call to STABS_FUN_END.
201         (STABS_CURRENT_FILE1): Delete.
202         (STABS_CURRENT_FILE): Likewise.
203         (STABS_FUN): Likewise.
204         (STABS_FUN_END): Likewise.
205         (STABS_FUN2): Likewise.
206         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
207         * sysdeps/x86_64/configure: Regenerated.
209 2012-08-14  Roland McGrath  <roland@hack.frob.com>
211         * elf/dl-open.c: Include <atomic.h>.
212         * elf/dl-lookup.c: Likewise.
214 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
216         * sysdeps/unix/sysv/linux/kernel-features.h
217         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
218         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
219         unconditionally.
220         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
221         unconditionally.
222         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
223         condition on __ASSUME_CLONE_THREAD_FLAGS.
225 2012-08-14  Andreas Jaeger  <aj@suse.de>
227         * sysdeps/i386/fpu/libm-test-ulps: Update.
229 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
231         * include/atomic.h (atomic_exchange_and_add): Split into ...
232         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
233         New atomic macros.
235 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
237         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
239 2012-08-13  Jeff Law <law@redhat.com>
241         * manual/stdio.texi (snprintf): Clarify handling of the trailing
242         null byte in the output string.
244 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
246         * sysdeps/unix/sysv/linux/kernel-features.h
247         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
248         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
249         (__ASSUME_ARG_MAX_STACK_BASED): Define.
250         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
251         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
252         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
253         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
255 2012-08-09  Jeff Law <law@redhat.com>
257         [BZ #13939]
258         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
259         When avoid_arena is set, don't retry in the that arena.  Pick the
260         next one, whatever it might be.
261         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
262         (arena_lock): Pass in new parameter to arena_get2.
263         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
264         arena_get2.
265         (__libc_malloc): Unify retrying after main arena failure with
266         __libc_memalign version.
267         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
269 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
271         [BZ #14166]
272         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
273         to __redirect_strstr.
274         (__strstr_sse42): Use typeof __redirect_strstr.
275         (__strstr_ia32): Likewise.
276         (__libc_strstr): New prototype.
277         (strstr): Renamed to ...
278         (__libc_strstr): This.
279         (strstr): New strong alias of __libc_strstr.
280         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
281         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
282         __redirect_time.
283         Include <time.h>.
284         (__libc_time): New prototype.
285         (time_ifunc): Replace time with __libc_time.
286         (time): New strong alias and hidden definition of __libc_time.
287         (__GI_time): Remove strong alias.
288         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
289         Include <stddef.h>.
290         (memmove): Redefined to __redirect_memmove.
291         (__memmove_sse2): Use typeof __redirect_memmove.
292         (__memmove_ssse3): Likewise.
293         (__memmove_ssse3_back): Likewise.
294         (__libc_memmove): New prototype.
295         (memmove): Renamed to ...
296         (__libc_memmove): This.
297         (memmove): New strong alias of __libc_memmove.
299 2012-08-08  Mark Salter  <msalter@redhat.com>
301         * elf/elf.h
302         (R_MN10300_TLS_GD): Define.
303         (R_MN10300_TLS_LD): Likewise.
304         (R_MN10300_TLS_LDO): Likewise.
305         (R_MN10300_TLS_GOTIE): Likewise.
306         (R_MN10300_TLS_IE): Likewise.
307         (R_MN10300_TLS_LE): Likewise.
308         (R_MN10300_TLS_DTPMOD): Likewise.
309         (R_MN10300_TLS_DTPOFF): Likewise.
310         (R_MN10300_TLS_TPOFF): Likewise.
311         (R_MN10300_SYM_DIFF): Likewise.
312         (R_MN10300_ALIGN): Likewise.
313         (R_MN10300_NUM): Update.
315 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
317         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
318         Remove.
320 2012-08-08  Roland McGrath  <roland@hack.frob.com>
322         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
324         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
325         sysdeps/unix -> sysdeps/posix move.
326         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
328 2012-08-07      Allan McRae     <allan@archlinux.org>
330         [BZ #14303]
331         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
332         (SUNOS_CPP): Likewise.
333         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
334         not found.
335         (open_input): Call CPP using execvp.
337 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
339         * sysdeps/unix/sysv/linux/kernel-features.h
340         (__ASSUME_PROT_GROWSUPDOWN): Remove.
341         (__ASSUME_NO_CLONE_DETACHED): Likewise.
342         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
343         (__ASSUME_WAITID_SYSCALL): Likewise.
344         * sysdeps/unix/sysv/linux/dl-execstack.c
345         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
346         code unconditional.
347         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
348         conditional code.
349         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
350         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
351         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
352         code.
353         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
354         unconditional.
355         [__ASSUME_WAITID_SYSCALL]: Likewise.
356         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
358 2012-08-07  Roland McGrath  <roland@hack.frob.com>
360         * sysdeps/unix/closedir.c: Renamed to ...
361         * sysdeps/posix/closedir.c: ... here.
362         * sysdeps/unix/dirfd.c: Renamed to ...
363         * sysdeps/posix/dirfd.c: ... here.
364         * sysdeps/unix/dirstream.h: Renamed to ...
365         * sysdeps/posix/dirstream.h: ... here.
366         * sysdeps/unix/fdopendir.c: Renamed to ...
367         * sysdeps/posix/fdopendir.c: ... here.
368         * sysdeps/unix/opendir.c: Renamed to ...
369         * sysdeps/posix/opendir.c: ... here.
370         * sysdeps/unix/readdir.c: Renamed to ...
371         * sysdeps/posix/readdir.c: ... here.
372         * sysdeps/unix/readdir_r.c: Renamed to ...
373         * sysdeps/posix/readdir_r.c: ... here.
374         * sysdeps/unix/rewinddir.c: Renamed to ...
375         * sysdeps/posix/rewinddir.c: ... here.
376         * sysdeps/unix/seekdir.c: Renamed to ...
377         * sysdeps/posix/seekdir.c: ... here.
378         * sysdeps/unix/telldir.c: Renamed to ...
379         * sysdeps/posix/telldir.c: ... here.
380         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
381         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
382         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
383         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
385         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
386         * bits/fcntl.h: ... here.
388         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
389         not 0.
390         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
391         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
392         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
393         (struct flock): Move l_start, l_len to the beginning.
394         Use __pid_t for l_pid.
395         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
396         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
397         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
398         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
399         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
400         [__USE_LARGEFILE64] (struct flock64): New type.
401         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
403         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
404         * bits/dirent.h: ... here.
406         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
407         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
409 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
411         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
412         Change from 2.6.0 to 2.6.16.
413         * sysdeps/unix/sysv/linux/configure: Regenerated.
414         * sysdeps/unix/sysv/linux/kernel-features.h
415         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
416         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
417         version.
418         (__ASSUME_UTIMES): Likewise.
419         (__ASSUME_CLONE_STOPPED): Remove.
420         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
421         architectures, not kernel version.
422         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
423         (__ASSUME_NO_CLONE_DETACHED): Likewise.
424         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
425         (__ASSUME_WAITID_SYSCALL): Likewise.
426         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
427         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
428         * README: State 2.6.16 as minimum Linux kernel version.  Do not
429         refer to older versions.
431 2012-08-06  Roland McGrath  <roland@hack.frob.com>
433         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
434         Define alphasort64 as an alias.
435         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
436         Define versionsort64 as an alias.
437         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
438         Define scandir64 as an alias.
439         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
440         Define scandirat64 as an alias.
441         * dirent/alphasort64.c (alphasort64):
442         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
443         * dirent/versionsort64.c: Likewise.
444         * dirent/scandir64.c: Likewise.
445         * dirent/scandirat64.c: Likewise.
446         * sysdeps/wordsize-64/alphasort.c: File removed.
447         * sysdeps/wordsize-64/alphasort64.c: File removed.
448         * sysdeps/wordsize-64/scandir.c: File removed.
449         * sysdeps/wordsize-64/scandir64.c: File removed.
450         * sysdeps/wordsize-64/scandirat.c: File removed.
451         * sysdeps/wordsize-64/scandirat64.c: File removed.
452         * sysdeps/wordsize-64/versionsort.c: File removed.
453         * sysdeps/wordsize-64/versionsort64.c: File removed.
454         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
455         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
456         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
457         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
458         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
459         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
460         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
461         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
463         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
464         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
465         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
466         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
467         [defined __arch64__ || defined __sparcv9]
468         (__INO_T_MATCHES_INO64_T): New macro.
469         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
470         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
471         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
472         * sysdeps/unix/sysv/linux/bits/dirent.h
473         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
474         (_DIRENT_MATCHES_DIRENT64): New macro.
476         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
477         Define lockf64 as an alias.
478         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
479         Define fseeko64 as an alias.
480         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
481         Define ftello64 as an alias.
482         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
483         Define _IO_fgetpos64 and fgetpos64 as aliases.
484         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
485         Define _IO_fsetpos64 and fsetpos64 as aliases.
486         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
487         Conditionalize body on this.
488         * libio/fseeko64.c: Likewise.
489         * libio/ftello64.c: Likewise.
490         * libio/iofgetpos64.c: Likewise.
491         * libio/iofsetpos64.c: Likewise.
492         * sysdeps/wordsize-64/lockf.c: File removed.
493         * sysdeps/wordsize-64/lockf64.c: File removed.
494         * sysdeps/wordsize-64/fseeko.c: File removed.
495         * sysdeps/wordsize-64/fseeko64.c: File removed.
496         * sysdeps/wordsize-64/ftello.c: File removed.
497         * sysdeps/wordsize-64/ftello64.c: File removed.
498         * sysdeps/wordsize-64/iofgetpos.c: File removed.
499         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
500         * sysdeps/wordsize-64/iofsetpos.c: File removed.
501         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
502         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
503         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
504         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
505         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
506         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
507         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
508         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
509         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
510         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
511         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
513         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
514         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
515         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
516         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
517         [defined __arch64__ || defined __sparcv9]
518         (__OFF_T_MATCHES_OFF64_T): New macro.
519         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
520         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
521         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
522         (__OFF_T_MATCHES_OFF64_T): New macro.
524 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
526         * stdlib/secure-getenv.c (__secure_getenv): Replace
527         GLIBC_2_16 with GLIBC_2_17.
529 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
531         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
532         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
534 2012-08-03  David S. Miller  <davem@davemloft.net>
536         * sysdeps/sparc/fpu/libm-test-ulps: Update.
538 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
540         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
541         Remove.
542         (__ASSUME_CORRECT_SI_PID): Likewise.
543         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
544         (__ASSUME_TMPFS_NAME): Likewise.
545         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
546         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
547         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
548         (HAVE_AUX_SECURE): Make definition unconditional.
549         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
550         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
552 2012-08-03  Roland McGrath  <roland@hack.frob.com>
554         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
555         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
556         * sysdeps/mach/hurd/eloop-threshold.h: New file.
557         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
558         __eloop_threshold instead of SYMLOOP_MAX.
560         * sysdeps/generic/eloop-threshold.h: New file.
561         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
562         of MAXSYMLINKS.
563         * elf/chroot_canon.c (chroot_canon): Likewise.
565 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
567         [BZ #13717]
568         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
569         Change to 2.6.0 everywhere.
570         * sysdeps/unix/sysv/linux/configure: Regenerated.
571         * sysdeps/unix/sysv/linux/kernel-features.h
572         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
573         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
574         kernel versions.
575         (__ASSUME_POSIX_TIMERS): Define unconditionally.
576         (__ASSUME_FUTEX_REQUEUE): Remove.
577         (__ASSUME_STATFS64): Define unconditionally.
578         (__ASSUME_AT_SECURE): Likewise.
579         (__ASSUME_CORRECT_SI_PID): Likewise.
580         (__ASSUME_TGKILL): Define without depending on kernel version for
581         i386.
582         (__ASSUME_UTIMES): Likewise.
583         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
584         kernel version.
585         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
586         (__ASSUME_TMPFS_NAME): Likewise.
587         * README: Update reference to Linux kernel versions.
589 2012-08-02  Marek Polacek  <polacek@redhat.com>
591         [BZ#14150]
592         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
593         libc_cv_asm_type_prefix with %.
594         * configure: Regenerated.
595         * include/libc-symbols.h: Remove comment about
596         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
597         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
598         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
599         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
600         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
601         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
602         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
603         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
604         * elf/tst-unique2mod1.c: Likewise.
605         * elf/tst-unique1mod2.c: Likewise.
606         * elf/tst-unique1mod1.c: Likewise.
607         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
608         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
609         Replace ASM_TYPE_DIRECTIVE with .type.
610         * sysdeps/s390/s390-64/sysdep.h: Likewise.
611         * sysdeps/i386/sysdep.h: Likewise.
612         * sysdeps/x86_64/sysdep.h: Likewise.
613         * sysdeps/sh/sysdep.h: Likewise.
614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
615         Do not define ASM_TYPE_DIRECTIVE.
616         * sysdeps/powerpc/sysdep.h: Likewise.
617         * sysdeps/powerpc/powerpc32/sysdep.h:
618         Replace ASM_TYPE_DIRECTIVE with .type.
619         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
620         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
621         * sysdeps/i386/fpu/e_powf.S: Likewise.
622         * sysdeps/i386/fpu/e_expl.S: Likewise.
623         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
624         * sysdeps/i386/fpu/e_acosh.S: Likewise.
625         * sysdeps/i386/fpu/e_pow.S: Likewise.
626         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
627         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
628         * sysdeps/i386/fpu/s_expm1.S: Likewise.
629         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
630         * sysdeps/i386/fpu/e_log2.S: Likewise.
631         * sysdeps/i386/fpu/e_log2l.S: Likewise.
632         * sysdeps/i386/fpu/e_scalb.S: Likewise.
633         * sysdeps/i386/fpu/e_powl.S: Likewise.
634         * sysdeps/i386/fpu/e_log10f.S: Likewise.
635         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
636         * sysdeps/i386/fpu/e_logl.S: Likewise.
637         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
638         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
639         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
640         * sysdeps/i386/fpu/e_log2f.S: Likewise.
641         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
642         * sysdeps/i386/fpu/e_log.S: Likewise.
643         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
644         * sysdeps/i386/fpu/e_logf.S: Likewise.
645         * sysdeps/i386/fpu/e_log10l.S: Likewise.
646         * sysdeps/i386/fpu/e_atanh.S: Likewise.
647         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
648         * sysdeps/i386/fpu/e_log10.S: Likewise.
649         * sysdeps/i386/fpu/s_frexp.S: Likewise.
650         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
651         * sysdeps/i386/fpu/s_asinh.S: Likewise.
652         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
653         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
654         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
655         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
656         * sysdeps/i386/i686/strtok.S: Likewise.
657         * sysdeps/i386/i386-mcount.S: Likewise.
658         * sysdeps/i386/strtok.S: Likewise.
659         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
660         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
661         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
662         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
663         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
664         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
665         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
666         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
667         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
668         * sysdeps/x86_64/_mcount.S: Likewise.
669         * sysdeps/x86_64/strtok.S: Likewise.
670         * sysdeps/sh/_mcount.S: Likewise.
672 2012-08-01  Roland McGrath  <roland@hack.frob.com>
674         * libio/iofopen.c: Include <fcntl.h>.
675         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
676         (_IO_fopen64, fopen64): Define as aliases.
677         * libio/iofopen64.c: Include <fcntl.h>.
678         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
679         Conditionalize body on this.
680         * sysdeps/wordsize-64/iofopen.c: File removed.
681         * sysdeps/wordsize-64/iofopen64.c: File removed.
683 2012-08-01  Marek Polacek  <polacek@redhat.com>
685         * libc/Makeconfig: Use elf in place of binfmt-subdir.
686         Use dlfcn directly instead of a variable.
687         (binfmt-subdir): Do not define.
688         (dlfcn): Likewise.
690 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
692         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
693         Remove all definitions.
694         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
695         <kernel-features.h>.
696         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
697         (miss_F_GETOWN_EX): Remove all definitions.
698         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
699         macro definition.
700         [!__ASSUME_FCNTL64]: Remove conditional code.
701         [__ASSUME_FCNTL64]: Make code unconditional.
702         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
703         <kernel-features.h>.
704         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
705         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
706         (lockf64) [__NR_fcntl64]: Make code unconditional.
707         (lockf64) [__ASSUME_FCNTL64]: Likewise.
709         * sysdeps/unix/sysv/linux/kernel-features.h
710         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
711         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
712         Make code unconditional.
713         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
714         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
716         [__NR_vfork]: Make code unconditional.
717         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
718         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
720         [__NR_vfork]: Make code unconditional.
721         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
722         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
724 2012-08-01  Roland McGrath  <roland@hack.frob.com>
726         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
727         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
729         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
730         Define mkstemp64 as an alias.
731         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
732         Define mkstemps64 as an alias.
733         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
734         Define mkostemp64 as an alias.
735         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
736         Define mkostemps64 as an alias.
737         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
738         Conditionalize body on this.
739         * misc/mkostemp64.c: Likewise.
740         * misc/mkostemps64.c: Likewise.
741         * misc/mkstemps64.c: Likewise.
742         * sysdeps/wordsize-64/mkstemp64.c: File removed.
743         * sysdeps/wordsize-64/mkostemp64.c: File removed.
744         * sysdeps/wordsize-64/mkostemp.c: File removed.
745         * sysdeps/wordsize-64/mkstemp.c: File removed.
746         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
747         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
748         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
749         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
751         [BZ #14138]
752         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
753         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
754         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
755         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
757         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
758         compat_symbol macros from <shlib-compat.h> rather than the underlying
759         default_symbol_version and symbol_version macros, so that DEFAULT
760         lines in shlib-versions are respected.
761         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
763 2012-08-01  Florian Weimer  <fweimer@redhat.com>
765         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
766         Declare with warn_unused_result.
767         (setgid, setregid, setegid, setresgid): Likewise.
768         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
769         Likewise.
770         * WUR-REPORT: Remove set*id functions.
772 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
774         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
776 2012-07-31  Roland McGrath  <roland@hack.frob.com>
778         * include/sys/socket.h (__libc_accept, __libc_accept4):
779         Add attribute_hidden.
780         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
782         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
783         use of PTR_MANGLE.
784         * inet/getnetgrent_r.c (setup): Likewise.
786         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
788 2012-07-31  David S. Miller  <davem@davemloft.net>
790         * sysdeps/sparc/fpu/libm-test-ulps: Update.
792 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
794         [BZ #13629]
795         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
796         value between 1.0 and 2.0 and smaller part has absolute value less
797         than 1.0.
798         * math/s_clog10.c (__clog10): Likewise.
799         * math/s_clog10f.c (__clog10f): Likewise.
800         * math/s_clog10l.c (__clog10l): Likewise.
801         * math/s_clogf.c (__clogf): Likewise.
802         * math/s_clogl.c (__clogl): Likewise.
803         * math/libm-test.inc (clog_test): Add more tests.
804         (clog10_test): Likewise.
805         * sysdeps/i386/fpu/libm-test-ulps: Update.
806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
808 2012-07-31  Florian Weimer  <fweimer@redhat.com>
810         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
811         Exit with zero in case no suitable GID is found, and write a
812         message to standard error.
814 2012-07-30  Roland McGrath  <roland@hack.frob.com>
816         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
817         rather than to 1.
818         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
819         (MAXPATHLEN): Removed.
820         (NOGROUP, NODEV): New macros.
821         (setbit, clrbit, isset, isclr): New macros.
822         (howmany, roundup, powerof2): New macros.
823         (DEV_BSIZE): New macro.
825         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
826         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
828         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
829         definition on [!__NO_LONG_DOUBLE_MATH].
831         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
832         PTR_MANGLE and PTR_DEMANGLE.
834         * socket/accept4.c (accept4): Rename to __libc_accept4.
835         Define accept4 as a weak alias.
837         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
838         on [_DIRENT_HAVE_D_TYPE].
839         * io/ftw.c (ftw_dir): Likewise.
841         * io/xmknod.c (__xmknod): Don't check PATH for being null.
843         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
845         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
846         Use the BSD numbers rather than the arbitrary ones we had.
847         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
848         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
849         (SIGXCPU, SIGXFSZ): New macros.
850         (_NSIG): Now 32.
852         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
853         initializer on [_LIBC_REENTRANT].
855         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
856         definitions inside [_POSIX_MAPPED_FILES].
858         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
860         * dirent/opendir.c: Include <fcntl.h>.
862         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
863         (__libc_getspecific): Likewise.
864         (__libc_key_create): Likewise.
866         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
867         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
868         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
869         (tmpfile64): Define as alias.
870         * sysdeps/wordsize-64/tmpfile.c: File removed.
871         * sysdeps/wordsize-64/tmpfile64.c: File removed.
872         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
873         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
875         * stdio-common/vfscanf.c: Include <stdbool.h>.
876         * nss/makedb.c: Likewise.
877         * stdio-common/_i18n_number.h: Likewise.
878         * argp/argp-help.c: Likewise.
879         * posix/wordexp.c: Likewise.
880         * sysdeps/posix/spawni.c: Likewise.
881         * nss/nss_files/files-initgroups.c: Likewise.
882         * stdio-common/reg-modifier.c: Include <stdlib.h>.
883         * nss/nss_files/files-initgroups.c: Likewise.
884         * nss/nss_db/db-netgrp.c: Likewise.
885         * nss/nss_db/db-initgroups.c: Likewise.
886         * io/fchmodat.c: Include <sys/stat.h>.
888         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
889         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
891         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
892         [HAVE_MMAP].
894         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
895         Add multiple inclusion protection.
897 2012-07-27  David S. Miller  <davem@davemloft.net>
899         * sysdeps/sparc/fpu/libm-test-ulps: Update.
901 2012-07-27  Gary Benson  <gbenson@redhat.com>
903         [BZ #14298]
904         * elf/rtld.c: Include <stap-probe.h>.
905         (dl_main): Added static probes "init_start" and "init_complete".
906         * elf/dl-load.c: Include <stap-probe.h>.
907         (lose): Take new parameter "nsid".
908         Added static probe "map_failed".
909         (_dl_map_object_from_fd): Pass namespace id to lose.
910         Added static probe "map_start".
911         (open_verify): Pass namespace id to lose.
912         * elf/dl-open.c: Include <stap-probe.h>.
913         (dl_open_worker) Added static probes "map_complete", "reloc_start"
914         and "reloc_complete".
915         * elf/dl-close.c: Include <stap-probe.h>.
916         (_dl_close_worker): Added static probes "unmap_start" and
917         "unmap_complete".
918         * elf/rtld-debugger-interface.txt: New file documenting the above.
920 2012-07-26  Roland McGrath  <roland@hack.frob.com>
922         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
923         rather than a string variable.
924         * sunrpc/rpc_main.c (h_output): Likewise.
925         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
927 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
929         * inet/check_native.c: New file.
931 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
933         [BZ #13629]
934         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
935         if larger part has absolute value 1.0.
936         * math/s_clog10.c (__clog10): Likewise.
937         * math/s_clog10f.c (__clog10f): Likewise.
938         * math/s_clog10l.c (__clog10l): Likewise.
939         * math/s_clogf.c (__clogf): Likewise.
940         * math/s_clogl.c (__clogl): Likewise.
941         * math/libm-test.inc (clog_test): Add more tests.
942         (clog10_test): Likewise.
943         * sysdeps/i386/fpu/libm-test-ulps: Update.
944         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
946         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
947         (pltexit): Likewise.
948         (La_regs): Likewise.
949         (La_retval): Likewise.
950         (int_retval): Likewise.
951         Update #error for removed macros to refer only to definitions in
952         tst-audit.h.
953         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
954         macro.
955         (pltexit): Likewise.
956         (La_regs): Likewise.
957         (La_retval): Likewise.
958         (int_retval): Likewise.
959         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
960         macro.
961         (pltexit): Likewise.
962         (La_regs): Likewise.
963         (La_retval): Likewise.
964         (int_retval): Likewise.
965         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
966         macro.
967         (pltexit): Likewise.
968         (La_regs): Likewise.
969         (La_retval): Likewise.
970         (int_retval): Likewise.
971         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
972         macro.
973         (pltexit): Likewise.
974         (La_regs): Likewise.
975         (La_retval): Likewise.
976         (int_retval): Likewise.
977         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
978         macro.
979         (pltexit): Likewise.
980         (La_regs): Likewise.
981         (La_retval): Likewise.
982         (int_retval): Likewise.
983         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
984         macro.
985         (pltexit): Likewise.
986         (La_regs): Likewise.
987         (La_retval): Likewise.
988         (int_retval): Likewise.
989         * sysdeps/generic/tst-audit.h: Update comment to refer only to
990         macro definitions in tst-audit.h.
991         * sysdeps/i386/tst-audit.h: New file.
992         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
993         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
994         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
995         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
996         * sysdeps/sh/tst-audit.h: Likewise.
997         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
998         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
999         * sysdeps/x86_64/tst-audit.h: Likewise.
1001 2012-07-26  Andreas Jaeger  <aj@suse.de>
1003         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
1004         ptrace.
1006         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
1007         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
1008         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
1009         PTRACE_O_MASK.
1010         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
1011         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
1012         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
1014         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
1015         value.
1017         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
1018         _sigsys.
1019         (si_call_addr, si_syscall, si_arch): Define new macro.
1020         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
1021         _sigsys.
1022         (si_call_addr, si_syscall, si_arch): Define new marcro.
1023         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
1024         _sigsys.
1025         (si_call_addr, si_syscall, si_arch): Define new macro.
1026         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
1027         _sigsys.
1028         (si_call_addr, si_syscall, si_arch): Define new macro.
1030 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1032         [BZ #13717]
1033         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1034         Change to 2.4.21 where previously 2.4.1.
1035         * sysdeps/unix/sysv/linux/configure: Regenerated.
1036         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
1037         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
1038         Linux kernel version.
1039         (__ASSUME_STD_AUXV): Remove.
1040         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
1041         kernel version.
1042         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
1043         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
1044         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
1045         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
1046         (__ASSUME_NETLINK_SUPPORT): Likewise.
1047         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
1048         (__no_netlink_support): Remove conditional definition.
1049         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
1050         Remove.
1051         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1052         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
1053         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
1054         (if_nameindex_ioctl): Remove.
1055         (if_nameindex_netlink): Do not handle __no_netlink_support.
1056         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1057         code.
1058         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
1059         Remove conditional code.
1060         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1061         code.
1062         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
1063         unconditional.
1064         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1065         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
1066         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
1067         Remove.
1068         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1069         [!__ASSUME_STD_AUXV]: Remove conditional code.
1070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
1071         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
1072         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
1073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
1074         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
1075         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1076         code.
1077         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
1079         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
1080         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1081         conditional code.
1082         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
1084         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1085         code.
1086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
1087         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1088         conditional code.
1089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1090         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1091         code unconditional.
1092         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1093         conditional code.
1094         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1095         unconditional.
1096         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1097         conditional code.
1098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1099         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1100         unconditional.
1101         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1102         conditional code.
1103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1104         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1105         code unconditional.
1106         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1107         conditional code.
1108         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1109         unconditional.
1110         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1111         conditional code.
1112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1113         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1114         code unconditional.
1115         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1116         conditional code.
1117         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1118         unconditional.
1119         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1120         conditional code.
1122 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
1124         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
1125         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
1126         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1127         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
1128         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1129         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1130         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1131         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
1132         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1133         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1134         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
1135         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
1136         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
1137         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1138         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1139         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
1140         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
1141         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
1142         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
1143         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
1144         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
1145         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1146         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
1148 2012-07-25  Florian Weimer  <fweimer@redhat.com>
1150         * Versions.def: Add GLIBC_2.17.
1151         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
1152         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
1153         Introduce __libc_secure_getenv.
1154         * stdlib/Versions (2.17): Add secure_getenv
1155         (GLIBC_PRIVATE): Add __libc_secure_getenv.
1156         * stdlib/secure-getenv.c: Rename __secure_getenv to
1157         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
1158         symbol __secure_getenv for GLIBC_2.0.
1159         * stdlib/tst-secure-getenv.c: New.
1160         * stdlib/Makefile (tests): Add testcase.
1161         * manual/startup.texi (Environment Access): Document
1162         secure_getenv.
1163         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
1164         __libc_secure_getenv.
1165         * inet/ruserpass.c (ruserpass): Likewise.
1166         * malloc/mtrace.c (mtrace): Likewise.
1167         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
1168         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1169         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
1170         * sysdeps/posix/tempname.c: Likewise.  Evaluate
1171         HAVE_SECURE_GETENV.
1172         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
1173         __secure_getenv to __libc_secure_getenv.
1174         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
1175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1176         Likewise.
1177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1178         Likewise.
1179         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1180         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1181         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1182         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1183         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1184         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1185         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1187 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1189         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
1190         (struct La_i86_retval): Likewise.
1191         (struct La_x86_64_regs): Likewise.
1192         (struct La_x86_64_retval): Likewise.
1193         (struct La_x32_regs): Likewise.
1194         (struct La_x32_retval): Likewise.
1195         (struct La_ppc32_regs): Likewise.
1196         (struct La_ppc32_retval): Likewise.
1197         (struct La_ppc64_regs): Likewise.
1198         (struct La_ppc64_retval): Likewise.
1199         (struct La_sh_regs): Likewise.
1200         (struct La_sh_retval): Likewise.
1201         (struct La_s390_32_regs): Likewise.
1202         (struct La_s390_32_retval): Likewise.
1203         (struct La_s390_64_regs): Likewise.
1204         (struct La_s390_64_retval): Likewise.
1205         (struct La_sparc32_regs): Likewise.
1206         (struct La_sparc32_retval): Likewise.
1207         (struct La_sparc64_regs): Likewise.
1208         (struct La_sparc64_retval): Likewise.
1209         (struct audit_ifaces): Remove architecture-specific pltenter and
1210         pltexit members.
1211         * sysdeps/i386/ldsodefs.h: New file.
1212         * sysdeps/powerpc/ldsodefs.h: Likewise.
1213         * sysdeps/s390/ldsodefs.h: Likewise.
1214         * sysdeps/sh/ldsodefs.h: Likewise.
1215         * sysdeps/sparc/ldsodefs.h: Likewise.
1216         * sysdeps/x86_64/ldsodefs.h: Likewise.
1218 2012-07-25  Marek Polacek  <polacek@redhat.com>
1220         [BZ #6808]
1221         * math/libm-test.inc (yn_test): Add another test.
1222         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
1223         to ERANGE when the result is +-Inf.
1224         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
1225         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
1226         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
1227         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
1229 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
1231         * conform/data/time.h-data (NULL): Use macro-constant.  Require
1232         equal to 0.
1233         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
1234         clock_t.
1235         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
1237 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
1239         * configure.in <sysdeps resolving>: Correct printing
1240         Implies_before.
1241         * configure: Regenerate.
1243 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
1245         * math/w_ilogb.c: Include <limits.h>.
1246         * math/w_ilogbl.c: Likewise.
1248 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
1250         * manual/lang.texi (__va_copy): Document primarily as ISO C99
1251         va_copy.  Document allowing for unavailable va_copy only as
1252         pre-C99 compatibility.
1253         * manual/string.texi (Copying and Concatenation): Use va_copy
1254         instead of __va_copy in concat example.
1256 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
1258         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
1259         (__sendto): Use create_address_port.  Initialize APORT and deallocate
1260         it if not null.
1262         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
1263         with O_NOLINK passed to __file_name_lookup.
1265         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
1266         with O_NOLINK passed to __file_name_lookup.
1268         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
1269         negative N or less than NGIDS.
1271         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
1272         type to string_t.  Set ERANGE as errno and return it if NAME is not big
1273         enough.  Use memcpy instead of strncpy.
1275 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
1277         * elf/Makefile (check-data): Remove.
1278         (localplt.data): New vpath directive.
1279         ($(objpfx)check-localplt.out): Use localplt.data from vpath
1280         instead of $(check-data).
1281         * scripts/data/localplt-generic.data: Move to ...
1282         * sysdeps/generic/localplt.data: ... here.
1283         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
1284         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
1285         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
1286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
1287         ... here.
1288         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
1289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
1290         ... here.
1291         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
1292         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
1293         ... here.
1294         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
1295         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
1296         ... here.
1297         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
1298         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
1299         ... here.
1300         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
1301         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
1302         ... here.
1304 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1306         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
1307         PPC32 and PPC64 files.
1308         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
1309         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
1311 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1313         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
1314         __makecontext_ret to ...
1315         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
1316         ... here and call exit if uc_link is NULL.  New file.
1317         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
1318         __makecontext_ret.S.
1319         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
1320         __makecontext_ret to ...
1321         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
1322         ... here and call exit if uc_link is NULL.  New file.
1323         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
1324         __makecontext_ret.S.
1326 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1328         * elf/elf.h (R_390_IRELATIVE): New definition.
1329         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
1330         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
1331         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
1332         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
1333         (elf_machine_lazy_rel): Likewise.
1334         * sysdeps/s390/dl-irel.h: New file.
1335         * sysdeps/s390/s390-64/memcpy.S: New asm code.
1336         * sysdeps/s390/s390-64/memset.S: New asm code.
1337         * sysdeps/s390/s390-64/memcmp.S: New asm code.
1338         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
1339         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
1340         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
1341         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
1342         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
1343         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
1344         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
1345         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
1346         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
1347         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
1348         * sysdeps/s390/s390-32/memcpy.S: New asm code.
1349         * sysdeps/s390/s390-32/memset.S: New asm code.
1350         * sysdeps/s390/s390-32/memcmp.S: New asm code.
1352 2012-07-17  Marek Polacek  <polacek@redhat.com>
1354         [BZ #14349]
1355         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
1356         * sysdeps/s390/s390-64/configure.in: Likewise.
1357         * sysdeps/sparc/configure.in: Likewise.
1358         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
1359         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
1360         * sysdeps/i386/configure.in: Likewise.
1361         * sysdeps/x86_64/configure.in: Likewise.
1362         * sysdeps/sh/configure.in: Likewise.
1363         * sysdeps/s390/s390-32/configure: Regenerated.
1364         * sysdeps/s390/s390-64/configure: Likewise.
1365         * sysdeps/x86_64/configure: Likewise.
1366         * sysdeps/sh/configure: Likewise.
1367         * sysdeps/powerpc/powerpc64/configure: Likewise.
1368         * sysdeps/powerpc/powerpc32/configure: Likewise.
1369         * sysdeps/sparc/configure: Likwise.
1370         * sysdeps/i386/configure: Likewise.
1372         * elf/dl-open.c: Comment fixes.
1374 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
1376         * Makefile [CXX] (check-data): Remove.
1377         [CXX] (c++-types.data): New vpath directive.
1378         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
1379         vpath.  Do not allow for C++ type data being missing.
1380         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
1381         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
1382         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
1383         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
1384         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
1385         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
1386         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
1387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
1388         ... here.
1389         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
1390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
1391         ... here.
1392         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
1393         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
1394         ... here.
1395         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
1396         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
1397         ... here.
1398         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
1399         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
1400         ... here.
1401         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
1402         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
1403         ... here.
1404         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
1405         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
1406         ... here.
1407         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
1408         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
1410         * elf/tls-macros.h (TLS_LE): Move architecture-specific
1411         definitions to architecture-specific files.
1412         (TLS_IE): Likewise.
1413         (TLS_LD): Likewise.
1414         (TLS_GD): Likewise.
1415         * sysdeps/i386/tls-macros.h: New file.
1416         * sysdeps/powerpc/tls-macros.h: Likewise.
1417         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
1418         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
1419         * sysdeps/sh/tls-macros.h: Likewise.
1420         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
1421         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
1422         * sysdeps/x86_64/tls-macros.h: Likewise.
1424 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
1426         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
1427         zero value for regular exit case.
1429         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
1430         (__start_context): Preserve zero value for regular exit case.
1432 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
1433             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1435         * manual/setjmp.texi (setcontext): Clarify normal process
1436         termination when uc_link is the null pointer.
1437         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
1438         exit call.
1440 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
1442         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
1443         preprocessor.  Test for each exception mask separately.
1445 2012-07-16  Andreas Jaeger  <aj@suse.de>
1447         * po/ru.po: Update from translation team.
1449 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
1451         * conform/data/string.h-data (NULL): Use macro-constant.  Require
1452         equal to 0.
1453         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
1454         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
1455         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
1456         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
1457         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1459 2012-07-13  Andreas Jaeger  <aj@suse.de>
1461         * po/fr.po: Update from translation team.
1463 2012-07-12  Marek Polacek  <polacek@redhat.com>
1465         [BZ #14173]
1466         * math/libm-test.inc (yn_test): Add test for BZ #14173.
1467         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
1468         loop condition.
1470 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
1472         [BZ #13717]
1473         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1474         Change to 2.4.1 where previously 2.4.0.
1475         * sysdeps/unix/sysv/linux/configure: Regenerated.
1476         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
1477         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
1478         version.
1479         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
1480         (__ASSUME_AT_CLKTCK): Remove.
1481         (__ASSUME_AT_PAGESIZE): Likewise.
1482         (__ASSUME_AT_XID): Likewise.
1483         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
1484         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
1485         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
1486         unconditionally.
1487         (HAVE_AUX_PAGESIZE): Likewise.
1488         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
1489         [__ASSUME_AT_CLKTCK]: Make code unconditional.
1490         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
1492 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
1494         [BZ #14307]
1495         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
1496         the temporary buffer used to invoke __gethostbyname2_r,
1497         __gethostbyaddr_r and gethostbyname4_r to make room for struct
1498         host_data / struct gaih_addrtuple.
1499         * resolv/nss_dns/dns-host.c (global scope): Move definition of
1500         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
1501         header file nss/nsswitch.h.
1502         * nss/nsswitch.h (global scope): Add definition of implementation
1503         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
1504         resolv/nss_dns/dns-host.c).
1506 2012-07-11  Andreas Jaeger  <aj@suse.de>
1508         * po/fr.po: Update from translation team.
1510         * po/sv.po: Update from translation team
1511         * po/fr.po: Another update from translation team.
1513 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1515         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
1516         for subnormals or multiply small sinh result by itself.
1517         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
1518         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1520 2012-07-11  David S. Miller  <davem@davemloft.net>
1522         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1524 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
1526         [BZ #14347]
1527         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
1528         (INTERNAL_MARK): Shift it here.
1530 2012-07-10  Marek Polacek  <polacek@redhat.com>
1532         [BZ #14151]
1533         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
1534         libc_cv_asm_global_directive with .globl.
1535         * configure: Regenerated.
1536         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
1537         with .globl.
1538         * sysdeps/i386/configure: Regenerated.
1539         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
1540         with .globl.
1541         * sysdeps/x86_64/configure: Regenerated.
1542         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
1543         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
1544         * elf/tst-unique2mod2.c: Likewise.
1545         * elf/tst-unique2mod1.c: Likewise.
1546         * elf/tst-unique1mod2.c: Likewise.
1547         * elf/tst-unique1mod1.c: Likewise.
1548         * sysdeps/s390/s390-32/sysdep.h: Likewise.
1549         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1550         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1551         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1552         * sysdeps/mach/sysdep.h: Likewise.
1553         * sysdeps/i386/sysdep.h: Likewise.
1554         * sysdeps/i386/i386-mcount.S: Likewise.
1555         * sysdeps/x86_64/_mcount.S: Likewise.
1556         * sysdeps/x86_64/sysdep.h: Likewise.
1557         * sysdeps/sh/_mcount.S: Likewise.
1558         * sysdeps/sh/sysdep.h: Likewise.
1559         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
1560         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
1561         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
1562         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
1563         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
1564         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
1565         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
1566         * locale/localeinfo.h: Likewise.
1567         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
1568         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
1570 2012-07-09  Roland McGrath  <roland@hack.frob.com>
1572         [BZ #14336]
1573         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
1574         system".
1575         * manual/message.texi (The Uniforum approach): Likewise.
1576         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
1577         (glibc iconv Implementation): Likewise.
1579 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
1581         [BZ #14337]
1582         * math/s_clog.c (__clog): Avoid scaling a value down where that
1583         could result in underflow.
1584         * math/s_clog10.c (__clog10): Likewise.
1585         * math/s_clog10f.c (__clog10f): Likewise.
1586         * math/s_clog10l.c (__clog10l): Likewise.
1587         * math/s_clogf.c (__clogf): Likewise.
1588         * math/s_clogl.c (__clogl): Likewise.
1589         * math/libm-test.inc (clog_test): Add more tests.
1590         (clog10_test): Likewise.
1591         * sysdeps/i386/fpu/libm-test-ulps: Update.
1592         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1594 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
1596         [BZ #14283]
1597         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
1598         by 7 not 8 to examine high bit of fractional part.
1600         [BZ #14042]
1601         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
1602         for call to __mcount_internal.
1603         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
1604         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
1605         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
1607 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
1609         [BZ #14154]
1610         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
1611         approximation for values within 0x1p-13f of an odd multiple of
1612         pi/4.
1613         * math/libm-test.inc (tan_test): Do not allow spurious underflow
1614         exception.  Add more tests.
1615         * sysdeps/i386/fpu/libm-test-ulps: Update.
1617         [BZ #6778]
1618         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
1619         inputs and return -1 for them.  Do not check for +Inf in case not
1620         reachable for +Inf.
1621         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
1622         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
1623         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
1624         and return -1 for them.  Do not check for +Inf in case not
1625         reachable for +Inf.
1626         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
1627         define.
1628         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
1629         and return -1 for them.  Do not check for +Inf in case not
1630         reachable for +Inf.
1631         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
1632         spurious underflow.
1633         * sysdeps/i386/fpu/libm-test-ulps: Update.
1634         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1636 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
1638         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
1640 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
1642         [BZ #14157]
1643         [BZ #14331]
1644         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
1645         could result in spurious underflow.  Scale down values above
1646         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
1647         * math/s_csqrtf.c (__csqrtf): Likewise.
1648         * math/s_csqrtl.c (__csqrtl): Likewise.
1649         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
1650         spurious underflow.
1651         * sysdeps/i386/fpu/libm-test-ulps: Update.
1652         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1654 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
1656         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
1657         xopen-msg.sed.
1658         * catgets/xopen-msg.awk: New file.
1659         * catgets/xopen-msg.sed: Removed.
1661         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
1662         po2text.sed.
1663         * intl/po2test.awk: New file.
1664         * intl/po2test.sed: Removed.
1666 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
1668         [BZ #14328]
1669         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
1670         or multiply small sinh result by itself.
1671         * math/s_ctanf.c (__ctanf): Likewise.
1672         * math/s_ctanh.c (__ctanh): Likewise.
1673         * math/s_ctanhf.c (__ctanhf): Likewise.
1674         * math/s_ctanhl.c (__ctanhl): Likewise.
1675         * math/s_ctanl.c (__ctanl): Likewise.
1676         * math/libm-test.inc (ctan_test_tonearest): New function.
1677         (ctan_test_towardzero): Likewise.
1678         (ctan_test_downward): Likewise.
1679         (ctan_test_upward): Likewise.
1680         (ctanh_test_tonearest): Likewise.
1681         (ctanh_test_towardzero): Likewise.
1682         (ctanh_test_downward): Likewise.
1683         (ctanh_test_upward): Likewise.
1684         (main): Call these new functions.
1685         * sysdeps/i386/fpu/libm-test-ulps: Update.
1686         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1688 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
1690         * .gitignore: Delete /ports entry.
1692 2012-07-03  Andreas Jaeger  <aj@suse.de>
1694         * po/bg.po: Update from translation team.
1695         * po/cs.po: Likewise.
1696         * po/de.po: Likewise.
1697         * po/hr.po: Likewise.
1698         * po/nl.pl: Likewise.
1699         * po/pl.po: Likewise.
1700         * po/vi.po: Likewise.
1702 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
1704         * Makeconfig [!+link] (+link-before-libc): New variable.
1705         [!+link] (+link-after-libc): Likewise.
1706         [!+link] (+link-tests): Likewise.
1707         [!+link] (+link): Define in terms of $(+link-before-libc) and
1708         $(+link-after-libc).
1709         [!+link-static] (+link-static-before-libc): New variable.
1710         [!+link-static] (+link-static-after-libc): Likewise.
1711         [!+link-static] (+link-static-tests): Likewise.
1712         [!+link-static] (+link-static): Define in terms of
1713         $(+link-static-before-libc) and $(+link-static-after-libc).
1714         [build-shared] (link-libc-before-gnulib): New variable.
1715         [build-shared] (link-libc-tests): Likewise.
1716         [build-shared] (link-libc): Define in terms of
1717         $(link-libc-before-gnulib).
1718         [!build-shared] (link-libc-tests): New variable.
1719         (link-libc-static-tests): New variable.
1720         [!gnulib] (gnulib-arch): New variable.
1721         [!gnulib] (gnulib-tests): Likewise.
1722         [!gnulib] (static-gnulib-arch): Likewise.
1723         [!gnulib] (static-gnulib-tests): Likewise.
1724         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
1725         Define with "=" instead of ":=".
1726         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
1727         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
1728         * Rules (binaries-all-notests): New variable.
1729         (binaries-all-tests): Likewise.
1730         (binaries-static-notests): Likewise.
1731         (binaries-static-tests): Likewise.
1732         (binaries-all): Define using $(binaries-all-notests) and
1733         $(binaries-all-tests).
1734         (binaries-static): Define using $(binaries-static-notests) and
1735         $(binaries-static-tests).
1736         (binaries-shared-tests): New variable.
1737         (binaries-shared-notests): Likewise.
1738         (binaries-shared): Remove variable.
1739         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
1740         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
1741         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
1742         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
1743         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
1744         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
1745         * elf/Makefile (sln-modules): New variable.
1746         (extra-objs): Add $(sln-modules:=.o).
1747         (ldconfig-modules): Add static-stubs.
1748         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
1749         * elf/static-stubs.c: New file.
1751         [BZ #14283]
1752         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
1753         by 7 not 8 to examine high bit of fractional part.  Use volatile
1754         variables when splitting into final array of floats if
1755         __FLT_EVAL_METHOD__ != 0.
1756         * math/libm-test.inc (cos_test): Add another test.
1757         (sin_test): Likewise.
1758         * sysdeps/i386/fpu/libm-test-ulps: Update.
1760         [BZ #14273]
1761         * math/libm-test.inc (cosh_test): Add more tests.
1763         * version.h (RELEASE): Set to "development".
1764         (VERSION): Set to "2.16.90".
1766 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
1768         * NEWS: Update copyright. Remove last-updated date.
1769         Mention math library bug fixes and timezone data changes.
1770         * README: Mention GNU/Hurd, x32, and HPPA support status.
1772 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
1774         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
1776 2012-06-27  Andreas Jaeger  <aj@suse.de>
1778         * manual/contrib.texi (Contributors): Add Samuel Thibault.
1780 2012-06-25  Andreas Jaeger  <aj@suse.de>
1782         * sysdeps/s390/fpu/libm-test-ulps: Update.
1784 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
1785             Thomas Schwinge  <thomas@codesourcery.com>
1787         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
1788         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
1789         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
1790         fanotify_mark.
1792 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
1794         * sysdeps/mach/start.c: Remove file.
1795         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
1796         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
1797         * sysdeps/sh/init-first.c: Likewise.
1799         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
1800         registers for frame unwinding purposes, add CFI directives.
1801         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
1802         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
1803         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1804         Likewise.
1806         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
1807         __fortify_fail returning.
1808         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
1810         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
1811         sysdeps/sh/____longjmp_chk.S.
1812         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
1813         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
1814         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
1815         (gen-as-const-headers): Append sigaltstack-offsets.sym.
1817         * sysdeps/sh/abort-instr.h: New file.
1818         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
1819         process in case exit returns.
1821         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
1822         initialize the GOT register before use.
1824         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
1825         calculation of ARGC > 4.
1827         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
1828         meaningful names to some local labels.
1830 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1831             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1833         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
1834         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
1835         (__arch_compare_and_exchange_val_16_acq): Likewise.
1836         (__arch_compare_and_exchange_val_32_acq): Likewise.
1837         (atomic_exchange_and_add): Fix gUSA sequence.
1838         (atomic_add): Likewise.
1839         (atomic_add_negative): Likewise.
1840         (atomic_add_zero): Likewise.
1841         (atomic_bit_test_set): Likewise.
1843 2012-06-22  Andreas Schwab  <schwab@redhat.com>
1845         [BZ #13579]
1846         * include/link.h (struct link_map): Add l_free_initfini.
1847         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
1848         l_initfini.
1849         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
1850         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
1851         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
1852         set.
1854 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
1856         * configure.in: Use AC_LANG_SOURCE.
1857         * configure: Regenerate.
1859 2012-06-22  Roland McGrath  <roland@hack.frob.com>
1861         * configure.in (libc_cv_localstatedir): New substituted variable.
1862         * configure: Regenerated.
1863         * config.make.in (localstatedir): New variable, substituted from
1864         libc_cv_localstatedir.
1865         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
1866         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
1867         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
1868         * sysdeps/gnu/configure: Regenerated.
1870 2012-06-21  Jeff Law  <law@redhat.com>
1872         [BZ #14277]
1873         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
1874         free.  Simplify list management for _LIBC case.
1876 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
1878         [BZ #14273]
1879         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
1880         Clear sign bit of 64-bit integer value before comparing against
1881         overflow value.
1883         * sysdeps/mach/configure: Regenerated.
1885 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
1887         [BZ #14278]
1888         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
1890 2012-06-21  Jeff Law  <law@redhat.com>
1892         [BZ #13882]
1893         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
1894         uint16_t for elements in the "seen" array to avoid char overflows.
1895         * elf/dl-fini.c (_dl_sort_fini): Likewise.
1896         * elf/dl-open.c (dl_open_worker): Likewise.
1898 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
1900         * scripts/list-sources.sh: Scan PORTS for translations.
1901         * po/libc.pot: Regenerated.
1903 2012-06-21  Andreas Jaeger  <aj@suse.de>
1905         [BZ #12194]
1906         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
1907         warning.
1908         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
1909         * bits/byteswap-16.h (__bswap_16): Likewise.
1910         * bits/byteswap.h (__bswap_constant_16): Likewise.
1912 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1914         [BZ #14117]
1915         * sysdeps/i386/fpu_control.h: Removed.
1916         * sysdeps/x86_64/fpu_control.h: Moved to ...
1917         * sysdeps/x86/fpu_control.h: Here.
1919         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
1920         (_FPU_SETCW): Likewise.
1922 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
1924         [BZ #14117]
1925         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
1926         * sysdeps/x86/fpu/bits/mathinline.h: This.
1927         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
1929         [BZ #14050]
1930         [BZ #14117]
1931         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
1932         functions if __x86_64__ is defined.
1934 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
1936         * string/endian.h: Add !__ASSEMBLER__ condition for including
1937         conversion interfaces.
1939 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
1941         [BZ #14241]
1942         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
1943         of ABS(x) in calculating zero to negative powers other than odd
1944         integers.
1945         * math/libm-test.inc (pow_test): Add more tests.
1947 2012-06-15  Andreas Jaeger  <aj@suse.de>
1949         * manual/contrib.texi (Contributors): Update entry of Liubov
1950         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
1951         Machado Filho.
1953 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
1955         * string/string.h: Add __wur to GNU version of strerror_r.
1957 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
1959         [BZ #14229]
1960         * string/Makefile (tests): Add tst-strtok_r.
1961         * string/tst-strtok_r.c: New file.
1962         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
1963         RAX_LP/RDX_LP on SAVE_PTR.
1965 2012-06-14  Roland McGrath  <roland@hack.frob.com>
1967         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
1969 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
1971         * libm_test.inc (csqrt_test): Allow more spurious underflow
1972         exceptions.
1973         (j0_test): Likewise.
1974         (j1_test): Likewise.
1975         (y0_test): Likewise.
1976         (y1_test): Likewise.
1978 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
1980         * po/Makefile (libc.pot): Use UTF-8 charset.
1982 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
1984         [BZ #14210]
1985         Suppress sign-conversion warning from FD_SET.
1986         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
1987         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
1988         not unsigned long int.
1989         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
1991 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
1993         [BZ #14050]
1994         [BZ #14117]
1995         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
1996         __extern_always_inline instead of __extern_inline.
1997         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
1998         (__signbit): Likewise.
1999         (__signbitl): Support C++ namespace.
2000         (lrintf): New inline function.
2001         (lrint): Likewise.
2002         (llrintf): Likewise.
2003         (llrint): Likewise.
2004         (fmaxf): Likewise.
2005         (fmax): Likewise.
2006         (fminf): Likewise.
2007         (fmin): Likewise.
2008         (rint): Likewise.
2009         (rintf): Likewise.
2010         (ceil): Likewise.
2011         (ceilf): Likewise.
2012         (floor): Likewise.
2013         (floorf): Likewise.
2014         (nearbyint): Likewise.
2015         (nearbyintf): Likewise.
2017 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
2019         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
2020         non-default versions.
2022 2012-06-11  Roland McGrath  <roland@hack.frob.com>
2024         [BZ #14218]
2025         * manual/argp.texi (Argp): Reword argp_parse description slightly.
2027 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
2029         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
2030         (FE_UPWARD, FE_DOWNWARD): Don't define.
2031         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
2032         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2034         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
2035         reading it.
2036         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2037         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2039 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2041         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2042         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
2043         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
2044         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
2046 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
2048         [BZ #14117]
2049         * sysdeps/i386/fpu/bits/fenv.h: Removed.
2050         * sysdeps/i386/fpu/Implies: New file.
2051         * sysdeps/x86_64/fpu/Implies: Likewise.
2052         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
2053         * sysdeps/x86/fpu/bits/fenv.h: This.
2055         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
2056         __SSE_MATH__.
2058 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2060         [BZ #14134]
2061         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
2062         character 0xffff that matches the last element of the
2063         conversion table.
2065 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2067         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
2068         fmodl commit.
2070 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2072         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
2073         values higher than 25.6283.
2075 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2077         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
2078         subnormal exponent extraction and add some __builtin_expect.
2079         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
2080         Fix for subnormal mantissa calculation.
2082 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
2084         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
2085         cpu2 is -1 and errno is not ENOSYS.
2087 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
2089         [BZ #14117]
2090         * sysdeps/i386/i486/bits/string.h: Renamed to ...
2091         * sysdeps/x86/bits/string.h: This.
2092         * sysdeps/x86_64/bits/string.h: Removed.
2094         * sysdeps/i386/i486/bits/string.h: Define inline functions only
2095         if not compiling for x86-64, but compiling for >= i486.
2097         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
2098         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
2100         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
2101         New macro from Linux kernel 3.4.0.
2102         (FP_XSTATE_MAGIC2): Likewise.
2103         (FP_XSTATE_MAGIC2_SIZE): Likewise.
2104         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
2105         (struct _fpx_sw_bytes): New struct.
2106         (struct _xsave_hdr): Likewise.
2107         (struct _ymmh_state): Likewise.
2108         (struct _xstate): Likewise.
2110         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
2111         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
2112         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
2113         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
2114         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
2115         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
2117         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
2118         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
2119         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
2120         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
2121         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
2122         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
2124 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2126         [BZ #13743]
2127         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
2128         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
2129         (sysdep_headers): Include sys/platform/ppc.h.
2130         * sysdeps/powerpc/test-gettimebase.c: Test for
2131         __ppc_get_timebase() to catch future ISA opcode/insn changes.
2132         * manual/Makefile (appendices): Include platform.texi.
2133         * manual/contrib.texi (Contributors): Update @node pointers.
2134         * manual/maint.texi (Maintenance): Likewise.
2135         (Platform): New node.
2136         * manual/platform.texi: New file.  Document the new features.
2138 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2139             Jakub Jelinek  <jakub@redhat.com>
2141         [BZ #14188]
2142         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
2143         where __builtin_expect is unavailable.
2145 2012-06-03  David S. Miller  <davem@davemloft.net>
2147         * stdlib/longlong.h: Updated from GCC.
2149 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
2151         [BZ #14042]
2152         * sysdeps/powerpc/powerpc32/mcount.c: New file.
2153         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
2154         __mcount_internal.
2155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2156         (GLIBC_2.16): Likewise.
2158 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2160         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
2162 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
2165         (default-abi): New variable.
2166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
2167         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
2168         variable.
2169         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
2170         Likewise.
2171         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
2172         Likewise.
2173         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
2174         Likewise.
2176         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
2177         definition.  Document in comment.
2179 2012-06-01  David S. Miller  <davem@davemloft.net>
2181         * stdlib/longlong.h: Updated from GCC.
2183 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2185         [BZ #14117]
2186         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
2187         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
2188         sys/debugreg.h sys/io.h here.
2189         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
2190         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
2191         sys/io.h.
2192         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
2193         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
2194         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
2195         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
2196         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
2197         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
2199         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
2200         Define only if __x86_64__ is defined.
2202 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2204         [BZ #14048]
2205         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
2206         Use int64_t for variable i.
2207         * math/libm-test.inc (fmod_test): Add more tests.
2209         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
2210         z computation is not scheduled after fetestexcept.
2211         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
2212         Use math_force_eval instead of asm to ensure calculation scheduled
2213         before exception test.
2214         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
2215         Ensure a1 + u.d computation is not scheduled after fetestexcept.
2217 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
2219         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
2220         computation is not scheduled after fetestexcept.
2222 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2224         [BZ #14117]
2225         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
2226         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
2228 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2230         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
2231         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2233 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2235         [BZ #14117]
2236         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
2237         <bits/wordsize.h>.
2238         (__WCHAR_MIN): Support __WORDSIZE == 64.
2239         (__WCHAR_MAX): Likewise.
2241         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
2242         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
2244         [BZ #14183]
2245         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
2246         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
2248         [BZ #14117]
2249         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
2250         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
2252         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
2253         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
2255         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
2256         Defined to 1 if __x86_64__ isn't defined.
2257         (_STAT_VER_LINUX_OLD): New.
2258         (st_atime): Remove duplicate.
2259         (st_mtime): Likewise.
2260         (st_ctime): Likewise.
2262 2012-05-31  David S. Miller  <davem@davemloft.net>
2264         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
2265         entries.
2267 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
2269         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
2270         gen-libm-test.pl.
2272         [BZ #14132]
2273         * elf/dl-reloc.c: Include <_itoa.h>.
2274         (_dl_reloc_bad_type): Remove use of INTUSE.
2275         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
2276         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
2277         * stdio-common/psiginfo.c (psiginfo): Likewise.
2278         * stdio-common/psignal.c (psignal): Likewise.
2279         * string/strsignal.c (strsignal): Likewise.
2280         * include/signal.h (_sys_siglist): Declare hidden proto.
2281         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
2282         INTVARDEF with libc_hidden_data_def.
2283         * stdio-common/itoa-udigits.c: Likewise.
2284         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
2285         (_itoa_lower_digits_internal): Remove declaration.
2286         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
2287         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
2288         (_sys_sigabbrev_internal): Remove aliases.
2289         (_sys_siglist): Define hidden alias.
2291 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
2293         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2294         bits/sysctl.h.
2296 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2298         [BZ #14117]
2299         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
2300         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
2302         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
2303         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
2304         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
2305         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
2306         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
2307         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
2309         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
2310         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
2311         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
2313         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
2314         with __addr.
2315         (insw): Likewise.
2316         (insl): Likewise.
2317         (outsb): Likewise.
2318         (outsw): Likewise.
2319         (outsl): Likewise.
2321         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
2322         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
2323         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
2325         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
2326         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
2327         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
2328         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
2329         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
2330         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
2332         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
2333         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
2335         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
2336         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
2338         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
2339         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
2340         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
2342         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
2343         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
2344         to ...
2345         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
2347         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
2348         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
2349         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
2351         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
2352         for x86-64.
2353         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
2355 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
2357         * math/math.h (M_El): Use two more decimal places.
2358         (M_LOG2El): Likewise.
2359         (M_LOG10El): Likewise.
2360         (M_LN2l): Likewise.
2361         (M_LN10l): Likewise.
2362         (M_PIl): Likewise.
2363         (M_PI_2l): Likewise.
2364         (M_PI_4l): Likewise.
2365         (M_1_PIl): Likewise.
2366         (M_2_PIl): Likewise.
2367         (M_2_SQRTPIl): Likewise.
2368         (M_SQRT2l): Likewise.
2369         (M_SQRT1_2l): Likewise.
2371 2012-05-31  David S. Miller  <davem@davemloft.net>
2373         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
2374         values between float registers.
2375         * sysdeps/sparc/sparc64/memset.S: Likewise.
2376         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
2378 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
2380         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
2381         -D_FORTIFY_SOURCE=1.
2382         (CPPFLAGS-tst-longjmp_chk.c): Define.
2383         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
2384         (CPPFLAGS-tst-longjmp_chk2.c): Define.
2385         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
2386         CFLAGS-tst-wchar-h.c.
2388 2012-05-31  Marek Polacek  <polacek@redhat.com>
2390         [BZ #14132]
2391         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
2392         __endmntent_internal): Remove declaration.
2393         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
2394         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
2395         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
2397 2012-05-30  David S. Miller  <davem@davemloft.net>
2399         * sysdeps/sparc/sparc32/soft-fp/q_util.c
2400         (___Q_simulate_exceptions): Use real FP ops rather than writing
2401         into the %fsr.
2402         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
2403         Likewise.
2405 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2407         [BZ #14117]
2408         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
2409         * sysdeps/x86/bits/xtitypes.h: This.
2411         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
2412         * sysdeps/x86/bits/wordsize.h: This.
2414         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
2415         * sysdeps/x86/bits/huge_vall.h: This.
2417         * sysdeps/i386/bits/select.h: Removed.
2418         * sysdeps/x86_64/bits/select.h: Renamed to ...
2419         * sysdeps/x86/bits/select.h: This.
2421         * sysdeps/i386/bits/setjmp.h: Removed.
2422         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
2423         * sysdeps/x86/bits/setjmp.h: This.
2425         * sysdeps/i386/bits/mathdef.h: Removed.
2426         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
2427         * sysdeps/x86/bits/mathdef.h: This.
2429 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2431         [BZ #14132]
2432         * include/sys/socket.h (__connect_internal)
2433         (__libc_sa_len_internal): Remove declaration.
2434         (__connect, __libc_sa_len): Declare hidden_proto.
2435         (SA_LEN): Remove use of INTUSE.
2436         * socket/connect.c: Add libc_hidden_def.
2437         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
2438         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
2439         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
2440         alias.
2441         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2442         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2443         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
2444         of adding _internal alias.
2446 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2448         [BZ #14117]
2449         * sysdeps/i386/bits/link.h: Removed.
2450         * sysdeps/i386/bits/linkmap.h: Likewise.
2451         * sysdeps/x86_64/bits/link.h: Renamed to ...
2452         * sysdeps/x86/bits/link.h: This.
2453         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
2454         * sysdeps/x86/bits/linkmap.h: This.
2456         * sysdeps/i386/bits/endian.h: Removed.
2457         * sysdeps/x86_64/bits/endian.h: Renamed to ...
2458         * sysdeps/x86/bits/endian.h: This.
2460         * sysdeps/i386/bits/byteswap.h: Removed.
2461         * sysdeps/i386/bits/byteswap-16.h: Likewise.
2462         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
2463         * sysdeps/x86/bits/byteswap.h: This.
2464         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
2465         * sysdeps/x86/bits/byteswap-16.h: This.
2466         * sysdeps/i386/Implies: Add x86.
2467         * sysdeps/x86_64/Implies: Likewise.
2469 2012-05-30  David S. Miller  <davem@davemloft.net>
2471         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
2472         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
2473         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
2474         (FP_TRAPPING_EXCEPTIONS): Define.
2475         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
2476         (FP_TRAPPING_EXCEPTIONS): Define.
2477         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
2478         subnormals only when inexact has been signalled or underflow
2479         exceptions are enabled.
2480         (_FP_PACK_CANONICAL): Likewise.
2482 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2484         [BZ #14183]
2485         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
2486         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
2488 2012-05-30  Richard Henderson  <rth@twiddle.net>
2490         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
2491         with #ifndef NOT_IN_libc.
2493         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
2494         marked to avoid plt entry.
2496 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2498         [BZ #14112]
2499         * Makeconfig (default-abi): New macro.
2500         (abi-includes): Likewise.
2501         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
2502         $(abi-$(default-abi)-lib-soname) for soname if defined.
2503         ($(common-objpfx)gnu/lib-names.stmp): Generate from
2504         abi-variants.
2505         * Makefile (installed-stubs): Likewise.
2506         * include/stubs-biarch.h: Removed.
2507         * scripts/lib-names.awk: Only handle one library at a time.
2508         * scripts/soversions.awk: Remove WORDSIZE support.
2509         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
2510         entries.
2511         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
2512         Removed.
2513         (syscall-list-default-condition): Likewise.
2514         (syscall-list-default-condition): Likewise.
2515         (syscall-list-includes): Likewise.
2516         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
2517         syscall-list-* with abi-*.  Handle undefined abi-variants.
2518         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
2519         * sysdeps/unix/sysv/linux/i386/Implies: New file.
2520         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
2521         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
2522         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
2523         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
2524         Removed.
2525         (syscall-list-32-options): Likewise.
2526         (syscall-list-32-condition): Likewise.
2527         (syscall-list-64-options): Likewise.
2528         (syscall-list-64-condition): Likewise.
2529         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
2530         macro.
2531         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
2532         Renamed to ...
2533         (abi-*): This.
2534         (abi-64-ld-soname): New macro.
2535         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
2536         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
2537         Renamed to ...
2538         (abi-*): This.
2539         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
2540         * sysdeps/x86_64/x32/shlib-versions: Likewise.
2542 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
2544         * sysdeps/unix/sysv/linux/kernel-features.h
2545         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
2546         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
2547         include <kernel-features.h>.
2548         [!__NR_ftruncate64]: Remove conditional code.
2549         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2550         [__NR_ftruncate64]: Make code unconditional.
2551         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2552         * sysdeps/unix/sysv/linux/truncate64.c: Do not
2553         include <kernel-features.h>.
2554         [!__NR_ftruncate64]: Remove conditional code.
2555         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2556         [__NR_ftruncate64]: Make code unconditional.
2557         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
2559         include <kernel-features.h>.
2560         [!__NR_ftruncate64]: Remove conditional code.
2561         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2562         [__NR_ftruncate64]: Make code unconditional.
2563         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
2565         include <kernel-features.h>.
2566         [!__NR_ftruncate64]: Remove conditional code.
2567         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2568         [__NR_ftruncate64]: Make code unconditional.
2569         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2571         * configure.in (libc_cv_fpie): Weaken to a compile test using
2572         LIBC_TRY_CC_OPTION.
2573         * configure: Regenerated.
2575 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2577         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
2578         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
2579         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
2580         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2581         Refreshed.
2582         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
2583         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
2584         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
2585         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
2586         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
2587         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2588         Refreshed.
2590 2012-05-27  David S. Miller  <davem@davemloft.net>
2592         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
2593         (___Q_zero): New.
2594         (__Q_simulate_exceptions): Return void.  Change to simulate
2595         exceptions by writing into the %fsr.
2596         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
2597         (__Qp_handle_exceptions): Likewise.
2598         (numbers): Delete.
2599         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
2600         __Qp_handle_exceptions.
2601         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
2602         __Qp_handle_exceptions.
2603         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
2604         as unused and give dummy FP_RND_NEAREST initializer.
2605         (FP_INHIBIT_RESULTS): Define.
2606         (___Q_simulate_exceptions): Update declaration.
2607         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
2608         formatting.
2609         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
2610         as unused and give dummy FP_RND_NEAREST initializer.
2611         (__Qp_handle_exceptions): Update declaration.
2612         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
2613         formatting.
2615 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
2617         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
2618         the temporary FPU control word.
2619         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2620         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
2621         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
2622         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2623         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
2624         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
2625         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
2626         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2627         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
2628         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
2629         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2631 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2633         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
2634         fields.
2636 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
2638         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
2639         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
2640         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
2641         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
2642         Likewise.
2643         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
2644         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
2645         Likewise.
2647 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
2649         * po/h.po: Update from translation team.
2651 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
2653         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
2655         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
2656         handling of denormals.
2657         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
2658         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
2659         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
2660         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
2661         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
2662         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
2663         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
2664         Likewise.
2666 2012-05-26  Marek Polacek  <polacek@redhat.com>
2668         [BZ #14152]
2669         * math/libm-test.inc (fma_test): Don't always expect underflow
2670         exception.
2672 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2674         [BZ #12416]
2675         * elf/tst-execstack.c: Include stackinfo.h.
2676         (do_test): Adjust test case to ensure that pthread_getattr_np
2677         behaviour remains the same after marking stack executable.
2679 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
2681         * sysdeps/unix/sysv/linux/kernel-features.h
2682         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
2683         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
2684         kernel-features.h.
2685         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
2686         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
2687         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
2688         kernel-features.h.
2689         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
2690         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
2692 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2694         * configure.in: Define the default includes to being none.
2695         * configure: Regenerated.
2697 2012-05-25  Roland McGrath  <roland@hack.frob.com>
2699         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
2700         * sysdeps/x86_64/setjmp.S: Likewise.
2701         * sysdeps/i386/bsd-setjmp.S: Likewise.
2702         * sysdeps/i386/bsd-_setjmp.S: Likewise.
2703         * sysdeps/i386/setjmp.S: Likewise.
2704         * sysdeps/i386/__longjmp.S: Likewise.
2705         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
2706         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2708         * include/stap-probe.h: New file.
2709         * configure.in: Handle --enable-systemtap.
2710         * configure: Regenerated.
2711         * config.h.in (USE_STAP_PROBE): New #undef.
2712         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
2713         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
2714         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
2716 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
2718         [BZ #13717]
2719         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
2720         to 2.4.0 where earlier.
2721         * sysdeps/unix/sysv/linux/configure: Regenerated.
2722         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
2723         <kernel-features.h>.
2724         [__ASSUME_32BITUIDS]: Make code unconditional.
2725         [!__ASSUME_32BITUIDS]: Remove conditional code.
2726         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
2727         <kernel-features.h>.
2728         [__ASSUME_32BITUIDS]: Make code unconditional.
2729         [!__ASSUME_32BITUIDS]: Remove conditional code.
2730         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
2731         [__ASSUME_32BITUIDS]: Make code unconditional.
2732         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
2733         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
2734         <kernel-features.h>.
2735         [__ASSUME_32BITUIDS]: Make code unconditional.
2736         [!__ASSUME_32BITUIDS]: Remove conditional code.
2737         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
2738         <kernel-features.h>.
2739         [__ASSUME_32BITUIDS]: Make code unconditional.
2740         [!__ASSUME_32BITUIDS]: Remove conditional code.
2741         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
2742         <kernel-features.h>.
2743         [__ASSUME_32BITUIDS]: Make code unconditional.
2744         [!__ASSUME_32BITUIDS]: Remove conditional code.
2745         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
2746         <kernel-features.h>.
2747         [__ASSUME_32BITUIDS]: Make code unconditional.
2748         [!__ASSUME_32BITUIDS]: Remove conditional code.
2749         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
2750         <kernel-features.h>.
2751         [__ASSUME_32BITUIDS]: Make code unconditional.
2752         [!__ASSUME_32BITUIDS]: Remove conditional code.
2753         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
2754         <kernel-features.h>.
2755         [__ASSUME_32BITUIDS]: Make code unconditional.
2756         [!__ASSUME_32BITUIDS]: Remove conditional code.
2757         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
2758         <kernel-features.h>.
2759         [__ASSUME_32BITUIDS]: Make code unconditional.
2760         [!__ASSUME_32BITUIDS]: Remove conditional code.
2761         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
2762         <kernel-features.h>.
2763         [__ASSUME_32BITUIDS]: Make code unconditional.
2764         [!__ASSUME_32BITUIDS]: Remove conditional code.
2765         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
2766         <kernel-features.h>.
2767         [__ASSUME_32BITUIDS]: Make code unconditional.
2768         [!__ASSUME_32BITUIDS]: Remove conditional code.
2769         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
2770         <kernel-features.h>.
2771         [__ASSUME_32BITUIDS]: Make code unconditional.
2772         [!__ASSUME_32BITUIDS]: Remove conditional code.
2773         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
2774         <kernel-features.h>.
2775         [__NR_setresgid] (__setresgid): Do not declare.
2776         [__ASSUME_32BITUIDS]: Make code unconditional.
2777         [!__ASSUME_32BITUIDS]: Remove conditional code.
2778         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
2779         <kernel-features.h>.
2780         [__NR_setresuid] (__setresuid): Do not declare.
2781         [__ASSUME_32BITUIDS]: Make code unconditional.
2782         [!__ASSUME_32BITUIDS]: Remove conditional code.
2783         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
2784         <kernel-features.h>.
2785         [__ASSUME_32BITUIDS]: Make code unconditional.
2786         [!__ASSUME_32BITUIDS]: Remove conditional code.
2787         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
2788         <kernel-features.h>.
2789         [__ASSUME_32BITUIDS]: Make code unconditional.
2790         [!__ASSUME_32BITUIDS]: Remove conditional code.
2791         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
2792         <kernel-features.h>.
2793         [__ASSUME_32BITUIDS]: Make code unconditional.
2794         [!__ASSUME_32BITUIDS]: Remove conditional code.
2795         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
2796         <kernel-features.h>.
2797         [__ASSUME_32BITUIDS]: Make code unconditional.
2798         [!__ASSUME_32BITUIDS]: Remove conditional code.
2799         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
2800         <kernel-features.h>.
2801         [__ASSUME_32BITUIDS]: Make code unconditional.
2802         [!__ASSUME_32BITUIDS]: Remove conditional code.
2803         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
2804         <kernel-features.h>.
2805         [__ASSUME_32BITUIDS]: Make code unconditional.
2806         [!__ASSUME_32BITUIDS]: Remove conditional code.
2807         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
2808         <kernel-features.h>.
2809         [__ASSUME_32BITUIDS]: Make code unconditional.
2810         [!__ASSUME_32BITUIDS]: Remove conditional code.
2811         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
2812         <kernel-features.h>.
2813         [__ASSUME_32BITUIDS]: Make code unconditional.
2814         [!__ASSUME_32BITUIDS]: Remove conditional code.
2815         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
2816         <kernel-features.h>.
2817         [__ASSUME_32BITUIDS]: Make code unconditional.
2818         [!__ASSUME_32BITUIDS]: Remove conditional code.
2819         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
2820         <kernel-features.h>.
2821         [__ASSUME_32BITUIDS]: Make code unconditional.
2822         [!__ASSUME_32BITUIDS]: Remove conditional code.
2823         * sysdeps/unix/sysv/linux/kernel-features.h
2824         (__ASSUME_SETRESUID_SYSCALL): Remove.
2825         (__ASSUME_SETRESGID_SYSCALL): Likewise.
2826         (__ASSUME_32BITUIDS): Likewise.
2827         (__ASSUME_LDT_WORKS): Likewise.
2828         (__ASSUME_O_DIRECTORY): Likewise.
2829         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
2830         architecture but not kernel version.
2831         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
2832         (__ASSUME_MMAP2_SYSCALL): Likewise.
2833         (__ASSUME_STAT64_SYSCALL): Likewise.
2834         (__ASSUME_IPC64): Likewise.
2835         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
2836         <kernel-features.h>.
2837         [__ASSUME_32BITUIDS]: Make code unconditional.
2838         [!__ASSUME_32BITUIDS]: Remove conditional code.
2839         * sysdeps/unix/sysv/linux/opendir.c: Do not include
2840         <kernel-features.h>.
2841         [__ASSUME_O_DIRECTORY]: Make code unconditional.
2842         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
2843         132096]: Remove conditional code.
2844         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
2845         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
2846         <kernel-features.h>.
2847         [__ASSUME_32BITUIDS]: Make code unconditional.
2848         [!__ASSUME_32BITUIDS]: Remove conditional code.
2849         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
2850         <kernel-features.h>.
2851         [__ASSUME_32BITUIDS]: Make code unconditional.
2852         [!__ASSUME_32BITUIDS]: Remove conditional code.
2853         * sysdeps/unix/sysv/linux/setegid.c: Do not include
2854         <kernel-features.h>.
2855         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
2856         unconditional.
2857         (__setresgid): Do not declare.
2858         [__ASSUME_32BITUIDS]: Make code unconditional.
2859         [!__ASSUME_32BITUIDS]: Remove conditional code.
2860         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
2861         <kernel-features.h>.
2862         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
2863         unconditional.
2864         (__setresuid): Do not declare.
2865         [__ASSUME_32BITUIDS]: Make code unconditional.
2866         [!__ASSUME_32BITUIDS]: Remove conditional code.
2867         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
2868         <kernel-features.h>.
2869         [__ASSUME_32BITUIDS]: Make code unconditional.
2870         [!__ASSUME_32BITUIDS]: Remove conditional code.
2871         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
2872         <kernel-features.h>.
2873         [__ASSUME_32BITUIDS]: Make code unconditional.
2874         [!__ASSUME_32BITUIDS]: Remove conditional code.
2876 2012-05-25  Richard Henderson  <rth@twiddle.net>
2878         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
2879         dl_hwcap to ifunc resolver.
2880         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
2881         elf_ifunc_invoke.
2882         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
2883         dl_hwcap to ifunc resolver.
2884         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
2886 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
2888         [BZ #14153]
2889         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
2890         for |x| <= 2**-26, not 2**-57.
2891         * math/libm-test.inc (acos_test): Do not allow spurious underflow
2892         exception.
2894 2012-05-24  Jeff Law  <law@redhat.com>
2896         * stdio-common/Makefile (tests): Add bug25.
2897         * stdio-common/bug25.c: New test.
2899 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2901         [BZ #13576]
2902         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
2903         multiple of MALLOC_ALIGNMENT in size.
2904         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
2906 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
2908         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
2909         Require >= 256.
2910         (FILENAME_MAX): Use macro-int-constant.
2911         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
2912         (_IOFBF): Use macro-int-constant.
2913         (_IOLBF): Likewise.
2914         (_IONBF): Likewise.
2915         (SEEK_CUR): Likewise.
2916         (SEEK_END): Likewise.
2917         (SEEK_SET): Likewise.
2918         (TMP_MAX): Likewise.
2919         (EOF): Use macro-int-constant.  Require < 0.
2920         (NULL): Use macro-constant.  Require == 0.
2921         (stdin): Require type to be FILE *.
2922         (stdout): Likewise.
2923         (stderr): Likewise.
2924         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
2925         macro-int-constant.
2926         (EXIT_SUCCESS): Likewise.
2927         (NULL): Use macro-constant.  Require == 0.
2928         (RAND_MAX): Use macro-int-constant.
2929         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
2930         [C99-based standards] (strtof): Require function.
2931         [C99-based standards] (strtold): Likewise.
2932         [C99-based standards] (strtoll): Likewise.
2933         [C99-based standards] (strtoull): Likewise.
2934         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2935         [ISO || ISO99 || ISO11] (limits.h): Likewise.
2936         [ISO || ISO99 || ISO11] (math.h): Likewise.
2937         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
2938         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2939         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2941 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
2943         [BZ #14132]
2944         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
2945         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
2946         * intl/dgettext.c (DCGETTEXT): Likewise.
2947         * intl/gettext.c (DCGETTEXT): Likewise.
2948         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
2949         * posix/regex_internal.h (gettext): Likewise.
2950         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
2951         Remove declaration.
2952         * include/argz.h (__argz_count_internal)
2953         (__argz_stringify_internal): Remove declaration.
2954         (__argz_count, __argz_stringify): Declare hidden proto.
2955         * intl/dcgettext.c: Remove use of INTDEF.
2956         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
2957         * string/argz-stringify.c: Likewise.
2958         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
2959         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
2960         Declare hidden proto.
2961         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
2962         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
2963         Declare hidden proto.
2964         * include/stdio.h (__asprintf_internal): Don't declare.
2965         (__asprintf): Don't define as macro.  Declare hidden proto.
2966         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
2967         (__fsetlocking): Declare hidden proto.
2968         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
2969         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
2970         hidden proto.
2971         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
2972         (_IO_setlinebuf): Remove use of INTUSE.
2973         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
2974         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
2975         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
2976         Remove declaration.
2977         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
2978         (_IO_do_flush): Remove use of INTUSE.
2979         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
2980         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
2981         (_IO_adjust_column, _IO_least_wmarker)
2982         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
2983         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
2984         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
2985         (_IO_default_doallocate, _IO_wdefault_doallocate)
2986         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
2987         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
2988         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
2989         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
2990         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
2991         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
2992         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
2993         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
2994         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
2995         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
2996         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
2997         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
2998         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
2999         proto.
3000         (_IO_flush_all_internal, _IO_adjust_column_internal)
3001         (_IO_default_uflow_internal, _IO_default_finish_internal)
3002         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
3003         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
3004         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
3005         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
3006         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
3007         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
3008         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
3009         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
3010         (_IO_file_close_internal, _IO_file_close_it_internal)
3011         (_IO_file_underflow_internal, _IO_file_overflow_internal)
3012         (_IO_file_init_internal, _IO_file_attach_internal)
3013         (_IO_file_fopen_internal, _IO_file_read_internal)
3014         (_IO_file_sync_internal, _IO_file_seek_internal)
3015         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
3016         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
3017         (_IO_str_underflow_internal, _IO_str_overflow_internal)
3018         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
3019         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
3020         (_IO_list_all_internal, _IO_link_in_internal)
3021         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
3022         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
3023         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
3024         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
3025         (_IO_do_write_internal, _IO_padn_internal)
3026         (_IO_getline_info_internal, _IO_getline_internal)
3027         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
3028         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
3029         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
3030         (_IO_vfscanf_internal, _IO_vfprintf_internal)
3031         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
3032         (_IO_init_internal, _IO_un_link_internal): Don't declare.
3033         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
3034         with libc_hidden_ver, remove use of INTUSE.
3035         * libio/genops.c: Likewise.
3036         * libio/freopen.c: Likewise.
3037         * libio/freopen64.c: Likewise.
3038         * libio/iofclose.c: Likewise.
3039         * libio/iofdopen.c: Likewise.
3040         * libio/iofflush.c: Likewise.
3041         * libio/iofflush_u.c: Likewise.
3042         * libio/iofgets.c: Likewise.
3043         * libio/iofgets_u.c: Likewise.
3044         * libio/iofopen.c: Likewise.
3045         * libio/iofopncook.c: Likewise.
3046         * libio/iofread.c: Likewise.
3047         * libio/iofread_u.c: Likewise.
3048         * libio/ioftell.c: Likewise.
3049         * libio/iofwrite.c: Likewise.
3050         * libio/iogetline.c: Likewise.
3051         * libio/iogets.c: Likewise.
3052         * libio/iogetwline.c: Likewise.
3053         * libio/iopadn.c: Likewise.
3054         * libio/iopopen.c: Likewise.
3055         * libio/ioseekoff.c: Likewise.
3056         * libio/ioseekpos.c: Likewise.
3057         * libio/iosetbuffer.c: Likewise.
3058         * libio/iosetvbuf.c: Likewise.
3059         * libio/ioungetc.c: Likewise.
3060         * libio/ioungetwc.c: Likewise.
3061         * libio/iovdprintf.c: Likewise.
3062         * libio/iovsprintf.c: Likewise.
3063         * libio/iovsscanf.c: Likewise.
3064         * libio/memstream.c: Likewise.
3065         * libio/obprintf.c: Likewise.
3066         * libio/oldfileops.c: Likewise.
3067         * libio/oldiofclose.c: Likewise.
3068         * libio/oldiofdopen.c: Likewise.
3069         * libio/oldiofopen.c: Likewise.
3070         * libio/oldiopopen.c: Likewise.
3071         * libio/oldstdfiles.c: Likewise.
3072         * libio/putc.c: Likewise.
3073         * libio/setbuf.c: Likewise.
3074         * libio/setlinebuf.c: Likewise.
3075         * libio/stdfiles.c: Likewise.
3076         * libio/strops.c: Likewise.
3077         * libio/vasprintf.c: Likewise.
3078         * libio/vscanf.c: Likewise.
3079         * libio/vsnprintf.c: Likewise.
3080         * libio/vswprintf.c: Likewise.
3081         * libio/wfiledoalloc.c: Likewise.
3082         * libio/wfileops.c: Likewise.
3083         * libio/wgenops.c: Likewise.
3084         * libio/wmemstream.c: Likewise.
3085         * libio/wstrops.c: Likewise.
3086         * libio/__fpurge.c: Likewise.
3087         * libio/__fsetlocking.c: Likewise.
3088         * assert/assert.c: Likewise.
3089         * debug/fgets_chk.c: Likewise.
3090         * debug/fgets_u_chk.c: Likewise.
3091         * debug/fread_chk.c: Likewise.
3092         * debug/fread_u_chk.c: Likewise.
3093         * debug/gets_chk.c: Likewise.
3094         * debug/obprintf_chk.c: Likewise.
3095         * debug/vasprintf_chk.c: Likewise.
3096         * debug/vdprintf_chk.c: Likewise.
3097         * debug/vsnprintf_chk.c: Likewise.
3098         * debug/vsprintf_chk.c: Likewise.
3099         * malloc/mtrace.c: Likewise.
3100         * misc/error.c: Likewise.
3101         * misc/syslog.c: Likewise.
3102         * stdio-common/asprintf.c: Likewise.
3103         * stdio-common/fxprintf.c: Likewise.
3104         * stdio-common/getw.c: Likewise.
3105         * stdio-common/isoc99_fscanf.c: Likewise.
3106         * stdio-common/isoc99_scanf.c: Likewise.
3107         * stdio-common/isoc99_vfscanf.c: Likewise.
3108         * stdio-common/isoc99_vscanf.c: Likewise.
3109         * stdio-common/isoc99_vsscanf.c: Likewise.
3110         * stdio-common/printf-prs.c: Likewise.
3111         * stdio-common/printf_fp.c: Likewise.
3112         * stdio-common/printf_fphex.c: Likewise.
3113         * stdio-common/printf_size.c: Likewise.
3114         * stdio-common/putw.c: Likewise.
3115         * stdio-common/scanf.c: Likewise.
3116         * stdio-common/sprintf.c: Likewise.
3117         * stdio-common/tmpfile.c: Likewise.
3118         * stdio-common/vfprintf.c: Likewise.
3119         * stdio-common/vfscanf.c: Likewise.
3120         * stdlib/strfmon_l.c: Likewise.
3121         * sunrpc/openchild.c: Likewise.
3122         * sunrpc/xdr_stdio.c: Likewise.
3123         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
3124         * sysdeps/mach/hurd/tmpfile.c: Likewise.
3126 2012-05-24  Roland McGrath  <roland@hack.frob.com>
3128         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3130         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
3131         in the third column, to generate for the shared library an IFUNC
3132         that uses _dl_vdso_vsym.
3133         * Makerules (COMPILE.c, compile-stdin.c): New variables.
3134         * Makeconfig (object-suffixes-noshared): New variable.
3136         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
3137         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
3138         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
3139         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
3141         [BZ #14132]
3142         * include/sys/time.h (__gettimeofday): Remove macro.
3143         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
3144         * time/gettimeofday.c (__gettimeofday): Remove #undef.
3145         Remove INTDEF.
3146         (__gettimeofday): Add libc_hidden_def.
3147         (gettimeofday): Add libc_hidden_weak.
3148         * sysdeps/mach/gettimeofday.c: Likewise.
3149         * sysdeps/posix/gettimeofday.c: Likewise.
3150         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
3151         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
3152         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
3153         (__gettimeofday_internal): Remove strong_alias.
3154         (__gettimeofday): Add libc_hidden_def.
3155         (gettimeofday): Add libc_hidden_weak.
3156         * sysdeps/unix/syscalls.list (gettimeofday):
3157         Remove __gettimeofday_internal alias.
3159 2012-05-24  Daniel Jacobowitz  <drow@false.org>
3160             H.J. Lu  <hongjiu.lu@intel.com>
3162         [BZ #12495]
3163         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
3164         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
3165         (largebin_index_32_big): New.
3166         (largebin_index): Use it for 16-byte alignment.
3167         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
3168         correction with front_misalign.
3170 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3172         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
3173         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
3174         Likewise.
3175         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
3176         Likewise.
3177         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
3178         Likewise.
3179         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
3180         Likewise.
3181         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
3182         Likewise.
3183         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
3184         Likewise.
3185         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
3186         Likewise.
3187         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
3188         Likewise.
3189         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
3190         Likewise.
3191         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
3192         Likewise.
3193         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
3194         Likewise.
3195         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
3196         Likewise.
3198         * scripts/data/c++-types-x32-linux-gnu.data: New file.
3199         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
3201 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3203         [BZ #10846]
3204         [BZ #14036]
3205         * math/libm-test.inc (exp_test): Add test from bug 14036.
3206         (pow_test): Add test from bug 10846.
3208         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
3209         and other flags.
3210         (special_function): Do not include flags in test name.
3211         (parse_args): Likewise.
3212         * sysdeps/i386/fpu/libm-test-ulps: Update.
3213         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3214         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
3215         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
3216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3218         * math/gen-libm-test.pl (%beautify): Add entries for underflow
3219         exceptions.
3220         * math/libm-test.inc ("Philosophy"): Update comment about
3221         exception testing.
3222         (UNDERFLOW_EXCEPTION): New macro.
3223         (UNDERFLOW_EXCEPTION_OK): Likewise.
3224         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3225         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3226         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3227         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3228         (INVALID_EXCEPTION_OK): Update value.
3229         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3230         (OVERFLOW_EXCEPTION_OK): Likewise.
3231         (IGNORE_ZERO_INF_SIGN): Likewise.
3232         (test_exceptions): Handle underflow exceptions.
3233         (acos_test): Update for underflow exception expectations.
3234         (cexp_test): Likewise.
3235         (clog_test): Likewise.
3236         (clog10_test): Likewise.
3237         (csqrt_test): Likewise.
3238         (ctan_test): Likewise.
3239         (ctanh_test): Likewise.
3240         (exp_test): Likewise.
3241         (exp10_test): Likewise.
3242         (exp2_test): Likewise.
3243         (expm1_test): Likewise.
3244         (fma_test): Likewise.
3245         (j0_test): Likewise.
3246         (jn_test): Likewise.
3247         (nexttoward_test): Likewise.
3248         (pow_test): Likewise.
3249         (scalbn_test): Likewise.
3250         (scalbln_test): Likewise.
3251         (tan_test): Likewise.
3252         (y1_test): Likewise.
3253         * sysdeps/i386/fpu/libm-test-ulps: Update.
3254         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3256 2012-05-23  David S. Miller  <davem@davemloft.net>
3258         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3259         (__libc_sigaction): Remove unused local variables.
3261 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3263         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
3265 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3267         mktime: avoid signed integer overflow
3268         * time/mktime.c (__mktime_internal): Do not mishandle the case
3269         where diff == INT_MIN.
3271         mktime: simplify computation of average
3272         * time/mktime.c (ranged_convert): Use new time_t_avg function
3273         instead of rolling our own (probably-slower) code.
3275         mktime: do not assume signed right shift propagates sign bit
3276         * time/mktime.c (isdst_differ): New static function.
3277         (__mktime_internal): No need to normalize tm_isdst now.
3278         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
3279         tm_isdst values.
3281         mktime: merge another wrapv change from gnulib
3282         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
3283         from some compilers.
3285         mktime: remove incorrect attempt at unusual arithmetics
3286         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
3287         The code didn't really work on such machines anyway.
3288         (TYPE_MINIMUM): Assume two's complement.
3289         (twos_complement_arithmetic): Verify that long_int and time_t
3290         are two's complement (or unsigned, in the latter case).
3292         mktime: check signed shifts on long_int and time_t, too
3293         * time/mktime.c (SHR): Check that shifts work as desired
3294         on the types long_int and time_t too, as SHR is used on
3295         such types.
3297         mktime: do not assume 'long' is wide enough
3298         * time/mktime.c (verify): Move decl up.
3299         (long_int): New type.
3300         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
3301         to remove assumption in the code that 'long' is wide enough to
3302         store year values.  This assumption is not true on x32 and on
3303         some non-glibc platforms.
3305         mktime: merge wrapv change from gnulib
3306         * time/mktime.c (WRAPV): New macro.
3307         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
3308         (guess_time_tm, __mktime_internal): Do not assume that signed
3309         integer overflow wraps around; modern compilers generate code
3310         where this assumption is no longer valid.
3312 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3314         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3315         Replace "jmp L(pseudo_end)" with "ret".
3316         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3317         Likewise.
3319 2012-05-23  Andreas Jaeger  <aj@suse.de>
3321         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
3322         * sysdeps/unix/sysv/linux/poll.c: Remove file.
3324 2012-05-23  Andreas Jaeger  <aj@suse.de>
3325             Maximilian Attems  <max@stro.at>
3327         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
3328         New macros.
3330 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3332         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
3333         code so that pseudo_end is just ret and the stack pointer is
3334         correct also for static library in error case.
3336 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
3338         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
3339         move to syscalls.list.
3340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
3341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
3342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
3343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
3345         * manual/install.texi (Running make install): Do not mention Linux
3346         kernel version for which pt_chown is not needed.
3347         (Linux): Do not mention problems with nscd with 2.0 kernels.
3348         * INSTALL: Regenerated.
3350 2012-05-23  Andreas Jaeger  <aj@suse.de>
3352         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
3353         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
3354         macro.
3355         * sysdeps/unix/sysv/linux/s390/bits/mman.h
3356         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3357         * sysdeps/unix/sysv/linux/sh/bits/mman.h
3358         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3359         * sysdeps/unix/sysv/linux/i386/bits/mman.h
3360         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3361         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
3362         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3363         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
3364         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3365         * sysdeps/unix/sysv/linux/bits/in.h
3366         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
3368 2012-05-22  Roland McGrath  <roland@hack.frob.com>
3370         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
3371         (PREPARE_VERSION): Just use assert instead, it will be elided
3372         under [NDEBUG] anyway.
3374 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3376         * sysdeps/unix/sysv/linux/Makefile: Include
3377         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
3378         (sysdep_routines): Remove sysctl.
3379         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
3380         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
3381         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
3382         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
3383         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
3385 2012-05-22  Andreas Jaeger  <aj@suse.de>
3387         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
3388         that pseudo_end is just ret and the stack pointer is correct also
3389         for static library in error case.
3391 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
3393         [BZ #14122]
3394         * nss/nsswitch.c (defconfig_entries): New variable.
3395         (__nss_database_lookup): Don't leak defconfig entries.
3396         (nss_parse_service_list): Don't leak on error paths.
3397         (free_database_entries): New function.
3398         (free_defconfig): New function.
3399         (free_mem): Move common code to free_database_entries.
3401 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3403         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
3404         Add arch_prctl.
3405         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
3407         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
3408         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
3409         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
3410         New macro.
3411         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
3412         (INTERNAL_SYSCALL_TYPES): Likewise.
3413         (LOAD_ARGS_TYPES_[1-6]): Likewise.
3414         (LOAD_REGS_TYPES_[1-6]): Likewise.
3415         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
3416         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
3418 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3420         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
3421         copysignl for GLIBC_2_0.
3422         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
3423         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
3424         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
3425         logbl for GLIBC_2_0.
3426         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3427         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3429 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3431         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
3432         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
3434         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3435         Use "neg %eax".
3437         * time/mktime.c: Update copyright years.
3439 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
3441         mktime: merge comment-quoting-style change from gnulib
3442         * time/mktime.c: Quote 'like this' in comments.
3443         The GNU coding standards suggest that we no longer quote `like this',
3444         as "`" and "'" are typically rendered asymmetrically nowadays.
3445         The typical gnulib style is to quote 'like this' when quoting
3446         code, and "like this" when quoting English.
3448         * time/mktime.c (compile-command): Add "-I.".
3450         mktime: merge mktime-internal.h change from gnulib
3451         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
3453         mktime: merge time_r change from gnulib
3454         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
3456         mktime: merge DEBUG change from gnulib
3457         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
3458         case system <time.h> has a #define.
3460         mktime: merge <sys/types.h> change from gnulib
3461         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
3462         since <time.t> is now guaranteed to define time_t.
3464         mktime: merge HAVE_CONFIG_H change from gnulib
3465         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
3467 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3469         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
3470         Use "neg %eax".
3472         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
3473         __rlim_t cast.
3474         (struct rusage): Use anonymous union to pad each field to
3475         __syscall_slong_t.
3477 2012-05-21  David S. Miller  <davem@davemloft.net>
3479         * Makefules (o-iterator): Remove .s cases.
3480         (compile-command.s): Delete.
3481         (COMPILE.s): Delete.
3482         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
3484 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
3486         * configure.in (libc_cv_predef_stack_protector): Only consider
3487         "foobar" and "__stack_chk_fail" lines in libc_undefs.
3488         * configure: Regenerated.
3490 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3492         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
3493         New macro.  Use R*LP on int and pointer.
3494         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
3495         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
3496         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
3497         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
3499         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
3500         [__WORDSIZE_TIME64_COMPAT32] instead of
3501         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
3502         (struct utmp): Likewise.
3503         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
3504         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
3505         Renamed to ...
3506         (__WORDSIZE_TIME64_COMPAT32): This.
3507         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
3508         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
3509         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
3510         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
3511         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
3512         (__WORDSIZE_TIME64_COMPAT32): New macro.
3514 2012-05-21  Andreas Jaeger  <aj@suse.de>
3516         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
3517         only if [SHARED]. Add prototype for __wcschr_ia32.
3519 2012-05-21  Roland McGrath  <roland@hack.frob.com>
3521         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
3522         of %rbp unmolested in the jmp_buf while mangling the low bits.
3523         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
3524         unmolested high bits of %rbp while demangling the low bits.
3525         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3527 2012-05-21  Andreas Jaeger  <aj@suse.de>
3529         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
3530         * sunrpc/svc_simple.c: Use it for registerrpc.
3531         * sunrpc/xcrypt.c: Use it for passwd2des.
3533         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
3535 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3537         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
3538         Don't define if [__SYSCALL_WORDSIZE != 32].
3539         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
3540         New macro.
3542 2012-05-21  Bruno Haible  <bruno@clisp.org>
3543             Andreas Jaeger  <aj@suse.de>
3545         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
3546         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
3547         inptr and inend for must_buffer_ch.
3548         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
3549         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
3550         * stdio-common/Makefile (tests): Remove bug15.
3551         (bug15-ENV): Remove macro.
3552         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
3553         anymore.
3555 2012-05-19  Andreas Jaeger  <aj@suse.de>
3556             Roland McGrath  <roland@hack.frob.com>
3558         * manual/contrib.texi: Completely rewritten. It contains now an
3559         alphabetical list of contributors and their contributions.
3561 2012-05-21  Richard Henderson  <rth@twiddle.net>
3563         * misc/getauxval.c (__getauxval): Use unsigned long int.
3564         * misc/sys/auxv.h: Include <sys/cdefs.h>.
3565         (getauxval): Use unsigned long int.
3567 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3569         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3571 2012-05-21  Roland McGrath  <roland@hack.frob.com>
3573         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
3574         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
3575         __alignof__ (long double).
3577 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3579         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3581 2012-05-20  Richard Henderson  <rth@twiddle.net>
3583         * misc/getauxval.c: New file.
3584         * misc/sys/auxv.h: New file.
3585         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
3586         (routines): Add getauxval.
3587         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
3588         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
3589         * elf/dl-sysdep.c (_dl_auxv): Remove.
3590         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
3591         * elf/dl-support.c (_dl_auxv): New variable.
3592         (_dl_aux_init): Initialize it.
3593         * manual/startup.texi (Auxiliary Vector): New node.
3594         * sysdeps/generic/bits/hwcap.h: New file.
3595         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
3596         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
3597         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
3598         * sysdeps/sparc/sysdep.h: ... here.  Include it.
3599         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
3600         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
3601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3602         Update.
3603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
3604         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
3605         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
3606         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
3607         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
3608         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
3609         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
3610         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
3612 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3614         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3616 2012-05-19  David S. Miller  <davem@davemloft.net>
3618         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3620 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
3622         [BZ #14123]
3623         * math/s_ccosh.c: Include <float.h>
3624         (__ccosh): Avoid internal overflow calculating sinh and cosh
3625         values before multiplying by sin and cos values.
3626         * math/s_ccoshf.c: Likewise.
3627         * math/s_ccoshl.c: Likewise.
3628         * math/s_csin.c: Likewise.
3629         * math/s_csinf.c: Likewise.
3630         * math/s_csinl.c: Likewise.
3631         * math/s_csinh.c: Likewise.
3632         * math/s_csinhf.c: Likewise.
3633         * math/s_csinhl.c: Likewise.
3634         * math/libm-test.inc (ccos_test): Add more tests.
3635         (ccosh_test): Likewise.
3636         (csin_test): Likewise.
3637         (csinh_test): Likewise.
3638         * sysdeps/i386/fpu/libm-test-ulps: Update.
3639         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3641 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
3643         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
3644         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
3646         * sysdeps/x86_64/x32/_itoa.h: Add comment.
3648 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
3650         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
3651         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
3652         * sysdeps/powerpc/soft-fp/Versions: Likewise.
3653         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
3654         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
3655         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
3656         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
3657         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
3658         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
3659         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
3660         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
3661         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
3662         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
3663         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
3664         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
3665         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
3666         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
3667         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
3668         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
3669         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
3670         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
3671         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
3672         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
3673         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
3674         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
3675         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
3676         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
3677         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
3678         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
3679         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
3680         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
3682 2012-05-18  Andreas Jaeger  <aj@suse.de>
3684         * csu/.gitignore: Delete.
3686 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3688         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
3689         (timex): Use __syscall_slong_t.
3691 2012-05-18  Andreas Jaeger  <aj@suse.de>
3692             Carlos O'Donell  <carlos_odonell@mentor.com>
3694         * manual/install.texi (Configuring and compiling): Update
3695         description about files modified in the source directory.
3696         * INSTALL: Regenerated.
3698 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3700         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
3701         value.  Use "or" to set return value to -1.
3702         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
3703         negate return value.
3705 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3707         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
3708         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
3709         failure if the compiler has Graphite support disabled.
3710         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
3711         Likewise.
3712         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
3713         CFLAGS-memmove.c): Likewise.
3714         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
3715         Likewise.
3717 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3719         * sysdeps/x86_64/x32/_itoa.h: New file.
3721         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
3722         getdents system call only if kernel and user dirents have the
3723         same d_ino and d_off.
3725         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
3726         LLONG_MAX != LONG_MAX.
3727         (_itoa_word): Use _ITOA_WORD_TYPE on value.
3728         (_fitoa_word): Likewise.
3730         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
3731         years.
3732         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
3733         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
3734         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
3736         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
3737         include <bits/wordsize.h>.  Check __x86_64__ instead of
3738         __WORDSIZE.
3739         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
3740         if __x86_64__ is defined.  Use anonymous union on fpstate.
3742         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
3743         anonymous union.
3745 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
3747         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
3748         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
3749         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
3750         Refer to _rtld_local_ro instead of _rtld_global_ro.
3751         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
3752         Likewise.
3753         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
3754         Likewise.
3755         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
3756         Likewise.
3757         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
3758         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
3759         of _rtld_global, and rtld_progname instead of _dl_argv[0].
3761         * sysdeps/powerpc/powerpc32/dl-machine.c
3762         (__elf_machine_runtime_setup) [PROF]: Don't reference
3763         _dl_prof_resolve.
3765 2012-05-18  Andreas Jaeger  <aj@suse.de>
3767         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
3768         function only available for GCCs before 3.4 since GCC 3.4
3769         introduced a builtin.
3770         (lrint): Likewise.
3771         (llrintf): Likewise.
3772         (llrint): Likewise.
3773         (fmaxf): Likewise.
3774         (fmax): Likewise.
3775         (fminf): Likewise.
3776         (fmin): Likewise.
3777         (rint): Likewise.
3778         (rintf): Likewise.
3779         (nearbyint): Likewise.
3780         (nearbyintf): Likewise.
3781         (ceil): Likewise.
3782         (ceilf): Likewise.
3783         (floor): Likewise.
3784         (floorf): Likewise.
3786 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3788         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
3789         on both fields and cast pointer to __syscall_ulong_t.
3791         * bits/types.h (__fsword_t): New type.
3792         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
3793         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
3794         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3795         (__FSWORD_T_TYPE): Likewise.
3796         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3797         (__FSWORD_T_TYPE): Likewise.
3798         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3799         (__FSWORD_T_TYPE): Likewise.
3800         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
3801         (__FSWORD_T_TYPE): Likewise.
3802         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
3803         __SWORD_TYPE with __fsword_t.
3804         (statfs64): Likewise.
3806 2012-05-17  David S. Miller  <davem@davemloft.net>
3808         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
3810 2012-05-17  Andreas Jaeger  <aj@suse.de>
3812         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
3813         warning.
3815 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3817         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
3819 2012-05-17  Andreas Jaeger  <aj@suse.de>
3821         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
3822         when it is used.
3824 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
3826         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
3828 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3830         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
3831         * sysdeps/x86_64/tst-mallocalign1.c: New file.
3833 2012-05-17  Andreas Jaeger  <aj@suse.de>
3834             Carlos O'Donell  <carlos_odonell@mentor.com>
3836         [BZ #14059]
3837         * sysdeps/x86_64/multiarch/init-arch.h
3838         (bit_YMM_Usable): Rename to...
3839         (bit_AVX_Usable): ... this.
3840         (bit_FMA4_Usable): New macro.
3841         (bit_XMM_state): New macro.
3842         (bit_YMM_state): New macro.
3843         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
3844         [__ASSEMBLER__] (index_AVX_Usable): ... this.
3845         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
3846         (CPUID_OSXSAVE): New macro.
3847         (CPUID_AVX): New macro.
3848         (CPUID_FMA4): New macro.
3849         (index_YMM_Usable): Rename to...
3850         (index_AVX_Usable): ... this.
3851         (HAS_AVX): Use HAS_ARCH_FEATURE.
3852         (HAS_FMA4): Likewise.
3853         (HAS_YMM_USABLE): Remove.
3854         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3855         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
3856         are present.
3857         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
3858         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
3859         * sysdeps/x86_64/multiarch/Makefile: Likewise.
3860         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
3861         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
3863 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
3865         * math/libm-test.c: Support platforms without multiple rounding modes.
3866         * math/bug-nextafter.c: Support platforms without FP exceptions.
3867         * math/bug-nexttoward.c: Likewise.
3868         * math/test-fenv.c: Likewise.
3869         * math/test-misc.c: Likewise.
3870         * stdlib/bug-getcontext.c: Likewise.
3872 2012-05-17  Andreas Jaeger  <aj@suse.de>
3874         * manual/examples/search.c (critter_cmp): Change signature to
3875         avoid warnings.
3876         * manual/string.texi (Collation Functions): Likewise.
3878 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3880         * bits/types.h: Fold copyright years.
3881         * bits/typesizes.h: Likewise.
3882         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
3883         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
3884         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
3885         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
3886         * time/time.h: Likewise.
3888 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
3890         [BZ #208]
3891         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
3892         in instead of returning them.  Return void.
3893         (__libc_mallinfo): Accumulate over all arenas.
3894         (__malloc_stats): Adjust for change in int_mallinfo interface.
3896 2012-05-16  Roland McGrath  <roland@hack.frob.com>
3898         [BZ #10375]
3899         * configure.in (NM): Add AC_CHECK_TOOL for it.
3900         (libc_extra_cflags): New substituted variable.
3901         Check for -fstack-protector being used implicitly.
3902         * configure: Regenerated.
3903         * config.make.in (config-extra-cflags): New variable,
3904         gets @libc_extra_cflags@.
3905         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
3907         [BZ #10375]
3908         * configure.in: Check for _FORTIFY_SOURCE being predefined.
3909         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
3910         * configure: Regenerated.
3911         * config.make.in (CPPUNDEFS): New substituted variable.
3912         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
3913         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
3914         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
3916 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3918         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
3919         (mq_attr): Use __syscall_slong_t.
3921 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3923         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
3924         Check __x86_64__ instead of __WORDSIZE.
3925         (_STAT_VER_LINUX): Likewise.
3926         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
3927         __syscall_ulong_t and __syscall_slong_t.
3928         (stat64): Likewise.
3930 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3932         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
3934 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3936         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
3938 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3940         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
3941         __syscall_ulong_t.
3943         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
3944         include <bits/wordsize.h>.  Check __x86_64__ instead of
3945         __WORDSIZE.
3946         (greg_t): Use "__extension__ long long int" if __x86_64__ is
3947         defined.
3948         (mcontext_t): Replace "unsigned long" with "unsigned long long".
3950         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
3951         include <bits/wordsize.h>.  Check __x86_64__ instead of
3952         __WORDSIZE.
3953         (user_regs_struct): Use "__extension__ unsigned long long"
3954         instead of "unsigned long" if __x86_64__ is defined.
3955         (user): Likewise.  Pad after pointer field if __ILP32__ is
3956         defined.
3958 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
3960         * configure.in (makeinfo): Require version 4.5 or later.  Allow
3961         versions 5 to 9.
3962         * configure: Regenerated.
3963         * manual/install.texi (texinfo): Increase version requirement to
3964         4.5 or later.
3965         * INSTALL: Regenerated.
3967         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
3969 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3971         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
3973         * sysdeps/x86_64/x32/ffs.c: New file.
3975         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
3976         __syscall_ulong_t.
3977         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
3978         defined.  Use __syscall_ulong_t.
3979         (shminfo): Use __syscall_ulong_t.
3980         (shm_info): Likewise.
3982         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
3983         __syscall_ulong_t.
3985         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
3986         <bits/wordsize.h>.
3987         (msgqnum_t): Use __syscall_ulong_t.
3988         (msglen_t): Likewise.
3989         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
3990         __syscall_ulong_t.
3992         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
3993         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
3995         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
3997         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
3998         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
4000         * sysvipc/sys/msg.h (msgbuf): Replace long int with
4001         __syscall_slong_t.
4003         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
4004         include <bits/wordsize.h>.  Check __x86_64__ instead of
4005         __WORDSIZE.
4007         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
4008         "unsigned long long int" if __x86_64__ is defined.
4009         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
4011         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
4012         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4013         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
4015         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
4016         <stdint.h>.
4017         (GET_PC): Cast to uintptr_t first.
4018         (GET_FRAME): Likewise.
4019         (GET_STACK): Likewise.
4021         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
4022         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
4023         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
4024         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
4025         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
4026         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
4027         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
4028         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
4029         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
4030         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
4031         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
4032         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
4033         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4034         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
4035         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
4036         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
4037         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
4038         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
4039         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
4040         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
4041         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
4042         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
4043         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
4044         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
4045         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
4046         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
4047         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
4048         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
4049         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
4051 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
4053         * Makerules (+depfiles): Also collect depfiles from .oS in
4054         $(extra-objs).
4055         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
4056         .oS, $(libnldbl-routines)).
4058         * Makerules (native-compile-mkdep-flags): Define.
4059         * sunrpc/Makefile (extra-objs): Add $(addprefix
4060         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
4061         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
4062         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
4063         calling $(make-target-directory).
4065 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4067         * bits/types.h (__snseconds_t): Removed.
4068         * time/time.h (struct timespec): Replace __snseconds_t with
4069         __syscall_slong_t.
4070         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
4071         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
4072         Likewise.
4073         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4074         (__SNSECONDS_T_TYPE): Likewise.
4075         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4076         (__SNSECONDS_T_TYPE): Likewise.
4077         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4078         (__SNSECONDS_T_TYPE): Likewise.
4080 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4082         * sysdeps/mach/hurd/bits/typesizes.h
4083         (__SYSCALL_SLONG_TYPE): New macro.
4084         (__SYSCALL_ULONG_TYPE): Likewise.
4086 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4088         * bits/types.h (__syscall_slong_t): New type.
4089         (__syscall_ulong_t): Likewise.
4091         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
4092         (__SYSCALL_ULONG_TYPE): Likewise.
4093         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4094         (__SYSCALL_SLONG_TYPE): Likewise.
4095         (__SYSCALL_ULONG_TYPE): Likewise.
4096         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4097         (__SYSCALL_SLONG_TYPE): Likewise.
4098         (__SYSCALL_ULONG_TYPE): Likewise.
4099         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4100         (__SYSCALL_SLONG_TYPE): Likewise.
4101         (__SYSCALL_ULONG_TYPE): Likewise.
4103 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4105         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
4106         Add sigaltstack-offsets.sym.
4107         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
4108         <sigaltstack-offsets.h>.
4109         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
4110         longjmp_msg pointer.
4111         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
4112         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
4113         signal stack.
4114         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
4116 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
4118         * elf/stackguard-macros.h: Remove file.
4119         * sysdeps/generic/stackguard-macros.h: New file.
4120         * sysdeps/i386/stackguard-macros.h: Likewise.
4121         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
4122         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
4123         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
4124         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
4125         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
4126         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
4127         * sysdeps/x86_64/stackguard-macros.h: Likewise.
4128         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
4129         <elf/stackguard-macros.h>.
4131         [BZ #14109]
4132         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
4133         __aligned__ in attribute.
4134         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
4135         (gregset_t): Likewise.
4137 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4139         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
4140         * sysdeps/x86_64/64/Implies-after: Here.  New file.
4141         * sysdeps/x86_64/x32/Implies-after: New file.
4143 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4145         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
4146         and access return value for _dl_profile_fixup.  Use R10_LP to
4147         load frame size.
4149 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4151         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
4153 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4155         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
4156         * sysdeps/x86_64/x32/sysdep.h: New file.
4158 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4160         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
4161         * sysdeps/x86_64/setjmp.S: Likewise.
4163 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4165         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
4166         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
4167         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
4168         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
4169         remove unused global constant.
4171 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
4173         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
4174         include of <not-cancel.h>.
4176 2012-05-15  Roland McGrath  <roland@hack.frob.com>
4178         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
4180 2012-05-15  Jeff Law  <law@redhat.com>
4181             Andreas Jaeger  <aj@suse.de>
4183         [BZ #13594]
4184         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
4185         out from...
4186         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
4187         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
4188         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
4189         code changing __hst_map_handle.map.
4191 2012-05-15  Roland McGrath  <roland@hack.frob.com>
4193         * configure.in (sysnames): Look for Implies-before and Implies-after
4194         files.
4195         * configure: Regenerated.
4197 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4199         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
4200         8-byte data alignment with LP_SIZE alignment.
4202 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4204         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
4205         into R10_LP.
4207 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4209         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
4211 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4213         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
4214         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
4215         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
4216         Likewise.
4217         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4219 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4221         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
4222         (stackinfo_sub_sp): Likewise.
4224 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4226         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
4227         RAX_LP.
4229 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4231         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
4232         into R*_LP.
4234 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4236         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
4237         sizes into R*_LP.
4239 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4241         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
4243 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4245         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
4246         into R11_LP and load __x86_64_shared_cache_size_half into
4247         R8_LP.
4249 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4251         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
4252         R8_LP.
4254 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4256         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
4257         logb for POWER7.
4258         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
4259         logbf for POWER7.
4260         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
4261         logbl for POWER7.
4262         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
4263         powerpc32/power7/fpu/s_logb.c via #include.
4264         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
4265         powerpc32/power7/fpu/s_logbf.c via #include.
4266         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
4267         powerpc32/power7/fpu/s_logbl.c via #include.
4269 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
4271         * README.libm: Remove file.
4273 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4275         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
4276         count for x32.  Use R*_LP and omit operand-size suffix.
4278 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4280         * shlib-versions: Move x86_64-.*-linux.* entries to ...
4281         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
4282         * sysdeps/x86_64/x32/shlib-versions: New file.
4284 2012-05-14  Roland McGrath  <roland@hack.frob.com>
4286         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
4287         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
4288         Use _dl_fatal_printf instead.
4290 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
4292         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
4293         set if not set by the user.  Do not allow for being unset.
4294         * sysdeps/unix/sysv/linux/configure: Regenerated.
4296 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4298         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
4299         the `q' suffix from lea and replace .quad with ASM_ADDR.
4301 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4303         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
4304         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
4305         instead of $17.
4306         (PTR_DEMANGLE): Likewise.
4308 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4310         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
4311         (LP_OP): Likewise.
4312         (ASM_ADDR): Likewise.
4313         (RAX_LP): Likewise.
4314         (RBP_LP): Likewise.
4315         (RBX_LP): Likewise.
4316         (RCX_LP): Likewise.
4317         (RDI_LP): Likewise.
4318         (RSI_LP): Likewise.
4319         (RSP_LP): Likewise.
4320         (R8_LP): Likewise.
4321         (R9_LP): Likewise.
4322         (R10_LP): Likewise.
4323         (R10_LP): Likewise.
4324         (R11_LP): Likewise.
4325         (R12_LP): Likewise.
4326         (R13_LP): Likewise.
4327         (R14_LP): Likewise.
4328         (R15_LP): Likewise.
4330 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4332         * sysdeps/x86_64/x32/dl-machine.h: New file.
4334 2012-05-14  Andreas Jaeger  <aj@suse.de>
4336         * manual/Makefile (subdir): Remove export of subdir.
4337         (all): Remove target.
4338         (.PHONY): Remove all from list.
4339         (mkinstalldirs): Remove.
4340         (.PHONY): Remove installdirs from list.
4341         ($(inst_infodir)/libc.info): Use make-target-directory.
4342         (installdirs): Remove.
4343         (subdir_%): Remove.
4344         (glibc-targets): Remove.
4345         (lib): Remove.
4346         (stubs): Remove.
4347         ($(objpfx)stubs ../po/manual.pot): Remove.
4348         ($(objpfx)stamp%): Remove.
4349         (make-target-directory): Remove.
4350         (subdir_install): Remove.
4351         (routines): Remove.
4352         (aux): Remove.
4353         (sources): Remove.
4354         (objects): Remove.
4355         (headers): Remove.
4357         [BZ #13750]
4358         * manual/.gitignore: Remove, it's not needed anymore.
4359         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
4360         all files in it.
4361         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
4362         directory.
4363         (texis): Renamed to $(objpfx)texis.
4364         (texis-path): New, contains path to generated files.
4365         (chapters.%): Use texis-path for complete path, add extra argument
4366         libc-texinfo.sh.
4367         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
4368         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
4369         (summary,texi, stamp-summary): Use complete path of
4370         files. Generate files in build dir.
4371         (dir-add.texi): Build in build dir.
4372         (libm-err.texi,stamp-libm-err): Likewise.
4373         (version.texi, stamp-version): Likewise.
4374         (.%c.texi): Likewise.
4375         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
4376         (mostlyclean): Remove target.
4377         (realclean): Remove target.
4378         (generated): Add new variable with contents from mostlyclean and
4379         realclean, remove entries duplicated in common-mostlyclean, add
4380         stamp-libm-err and stamp-version.
4381         (generated-dirs): Add libc directory.
4382         ($(inst_infodir)/libc.info): Install files from build dir.
4384         * manual/install.texi (Configuring and compiling): Adjust since
4385         the info files are not part of the tar ball anymore.
4387 2012-05-14  Andreas Jaeger  <aj@suse.de>
4389         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
4390         variable.
4392 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
4394         [BZ #13717]
4395         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4396         to 2.2.0 where earlier.
4397         * sysdeps/unix/sysv/linux/configure: Regenerated.
4398         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
4399         Remove conditional code.
4400         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
4401         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
4402         Remove conditional code.
4403         [!__NR_lchown]: Likewise.
4404         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
4405         [__NR_lchown]: Likewise.
4406         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
4407         comment referencing __ASSUME_LCHOWN_SYSCALL.
4408         * sysdeps/unix/sysv/linux/i386/sigaction.c
4409         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4410         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4411         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
4412         Remove conditional code.
4413         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
4414         (__protocol_available): Remove #if 0 code.
4415         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
4416         conditional code.
4417         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
4418         * sysdeps/unix/sysv/linux/kernel-features.h
4419         (__ASSUME_GETCWD_SYSCALL): Don't define.
4420         (__ASSUME_REALTIME_SIGNALS): Likewise.
4421         (__ASSUME_PREAD_SYSCALL): Likewise.
4422         (__ASSUME_PWRITE_SYSCALL): Likewise.
4423         (__ASSUME_POLL_SYSCALL): Likewise.
4424         (__ASSUME_LCHOWN_SYSCALL): Likewise.
4425         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
4426         non-SPARC.
4427         (__ASSUME_SIOCGIFNAME): Don't define.
4428         (__ASSUME_MSG_NOSIGNAL): Likewise.
4429         (__ASSUME_SENDFILE): Define unconditionally.
4430         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
4431         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
4432         conditional code.
4433         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
4434         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
4435         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
4436         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
4437         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
4438         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
4439         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
4440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
4441         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4442         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
4444         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4445         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
4447         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4448         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
4450         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4451         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
4453         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4454         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
4456         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4457         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
4459         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4460         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
4462         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4463         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4464         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
4465         Remove conditional code.
4466         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4467         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
4468         Remove conditional code.
4469         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4470         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
4471         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
4472         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
4473         Remove conditional code.
4474         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4475         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
4476         Remove conditional code.
4477         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4478         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
4479         Remove conditional code.
4480         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4481         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
4482         Remove conditional code.
4483         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4484         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
4485         Remove conditional code.
4486         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4487         * sysdeps/unix/sysv/linux/sh/pwrite64.c
4488         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4489         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4490         * sysdeps/unix/sysv/linux/sigaction.c
4491         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4492         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4493         * sysdeps/unix/sysv/linux/sigpending.c
4494         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4495         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4496         * sysdeps/unix/sysv/linux/sigprocmask.c
4497         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4498         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4499         * sysdeps/unix/sysv/linux/sigsuspend.c
4500         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4501         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4502         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4503         (__libc_missing_rt_sigs): Remove.
4504         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
4505         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
4506         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
4507         Remove conditional code.
4508         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
4509         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
4510         return 1.
4511         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
4512         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
4513         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
4514         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
4516 2012-05-14  Andreas Jaeger  <aj@suse.de>
4518         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
4519         it's not used in glibc.
4520         (__coshm1): Likewise.
4521         (__acosh1p): Likewise.
4522         (__sgn): Likewise.
4524         * manual/string.texi (Copying and Concatenation): Add missing
4525         variable in concat example.
4526         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
4528 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4530         [BZ #14103]
4531         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
4532         __builtin_clzl with __builtin_clzll.
4534 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4536         [BZ #14104]
4537         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
4538         libc_freeres_ptr.
4540 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4542         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
4543         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
4544         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
4545         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
4547 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
4549         * NEWS: Update ia64 info.
4551 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
4553         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
4554         used as bcopy.
4556 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
4558         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
4559         * sysdeps/unix/syscalls.list (dup3): Likewise.
4560         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
4561         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
4563 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
4565         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
4566         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
4568 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
4570         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
4571         thread pointer.
4572         (TLS_IE): Use mov/add instead of movq/addq to load thread
4573         pointer.
4574         (TLS_GD_PREFIX): New.
4575         (TLS_GD): Use it.
4577 2012-05-11  David S. Miller  <davem@davemloft.net>
4579         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
4580         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
4581         (_FPU_SETCW): Likewise.
4583 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4585         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
4586         is 32-byte aligned.
4588 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
4590         [BZ #11837]
4591         * iconvdata/gb18030.c: Update tables.
4592         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
4593         characters specially.
4594         (BODY for TO_LOOP): Add encoding of missing ranges.
4596 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
4598         [BZ #13673]
4599         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
4600         * sysdeps/mach/hurd/dup3.c: Likewise.
4601         * sysdeps/mach/hurd/readlinkat.c: Likewise.
4602         * sysdeps/powerpc/memmove.c:: Likewise.
4604 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4606         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
4607         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
4609 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4611         * elf/elf.h (R_X86_64_RELATIVE64): New.
4612         (R_X86_64_NUM): Updated.
4613         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
4614         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
4615         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
4616         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
4617         tst-quad1pie tst-quad2pie
4618         (modules-names): Add tst-quadmod1 tst-quadmod2.
4619         ($(objpfx)tst-quad1): New dependency.
4620         ($(objpfx)tst-quad2): Likewise.
4621         ($(objpfx)tst-quad1pie): Likewise.
4622         ($(objpfx)tst-quad2pie): Likewise.
4623         * sysdeps/x86_64/tst-quad1.c: New file.
4624         * sysdeps/x86_64/tst-quad1pie.c: New file.
4625         * sysdeps/x86_64/tst-quad2.c: Likewise.
4626         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
4627         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
4628         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
4629         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
4630         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
4632 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4634         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
4635         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
4636         * streams/stropts.h (t_scalar_t): Define type.
4638         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
4639         (_PATH_PRESERVE): Set to "/var/lib".
4640         (_PATH_RWHODIR): Set to "/var/spool/rwho".
4642         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
4643         instead of int.
4645         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
4646         if __dir_mkfile succeeded.
4648         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
4649         checking for _hurd_dtablesize.  Unlock it right after having
4650         finished _hurd_dtable allocation.
4652 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4654         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
4655         * sysdeps/mach/hurd/configure: Regenerated.
4656         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
4657         special-casing to...
4658         * sysdeps/gnu/configure.in: ... this new file.
4659         * sysdeps/unix/sysv/linux/configure: Regenerated.
4660         * sysdeps/gnu/configure: New generated file.
4662         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
4663         for Linux: use nsec instead of usec, as well as:
4664         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
4665         members of type struct timespec.
4666         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
4667         New macros.
4668         (struct stat64): Likewise.
4669         (_STATBUF_ST_NSEC): New macro.
4670         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
4672         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4673         __strtoul_internal rather than strtoul.
4675 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4677         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
4678         and reject them.
4680 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4682         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
4683         which preserves existing values.
4684         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
4686 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4688         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
4689         TIMEOUT values.  Return EINVAL for NFDS values either negative or
4690         greater than FD_SETSIZE.
4692 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4694         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
4695         allocated, call __vm_protect to finish enabling the existing space, and
4696         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
4697         allocate the remainder.
4699 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4701         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
4702         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
4704 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4706         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
4707         sysdeps/mach/hurd/readlink.c.
4709         * posix/tst-sysconf.c (posix_options): Only use
4710         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
4711         _POSIX_SYNCHRONIZED_IO when they are defined
4712         * sysdeps/mach/hurd/bits/posix_opt.h:
4713         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
4714         (_XOPEN_REALTIME): Undefine macro.
4715         (_XOPEN_REALTIME_THREADS): Undefine macro.
4716         (_XOPEN_SHM): Undefine macro.
4717         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
4718         macro to -1.
4719         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
4720         macro to -1.
4721         (_POSIX_ASYNC_IO): Undefine macro.
4722         (_POSIX_PRIORITIZED_IO): Undefine macro.
4723         (_POSIX_SPIN_LOCKS): Define macro to -1.
4725         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
4726         SA_NODEFER, SA_RESETHAND.
4727         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
4728         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
4729         F_DUPFD_CLOEXEC.
4731 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4733         * elf/Makefile (pldd-modules): Define unconditionally.
4735 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4737         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
4739 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4741         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
4742         Return ENOENT when name is empty.
4743         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
4745 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4747         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
4749         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
4751 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4753         Fix mlock in all cases except non-readable pages.
4754         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
4755         instead of VM_PROT_ALL as parameter to __vm_wire function.
4757         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
4758         (__mkdir): When path is `/', just fail with EEXIST.
4759         * sysdeps/mach/hurd/mkdirat.c: Likewise.
4761 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4763         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
4764         <sys/uio.h> (for writev).
4765         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
4766         and <sys/param.h> (for MIN).
4768 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4770         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
4771         REQUESTED_TIME.  Properly set the remaining time and return EINTR
4772         if interrupted.
4774 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4776         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
4777         Depend on against $(link-rpcuserlibs).
4779 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4781         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
4782         (__libc_stack_end): Do not use attribute_relro.
4783         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
4784         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
4785         to libthread-provided value.
4786         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
4787         attribute_relro.
4789 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4791         [BZ #3748]
4792         * bits/libc-lock.h (__libc_once_get): New macro.
4793         * sysdeps/mach/bits/libc-lock.h: Likewise.
4794         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
4795         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
4796         instead of using implementation details.
4798         * libio/fileops.c: Unconditionally include <kernel-features.h>.
4799         * libio/freopen.c: Likewise.
4800         * libio/freopen64.c: Likewise.
4801         * misc/syslog.c: Likewise.
4802         * nscd/connections.c: Likewise.
4803         * nscd/netgroupcache.c: Likewise.
4804         * sysdeps/posix/getcwd.c: Likewise.
4806 2012-05-10  Roland McGrath  <roland@hack.frob.com>
4808         * math/w_ilogbf.c: Add #include <limits.h>.
4810 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4812         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
4813         path instead of returning without unlocking.
4815         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
4816         immediate-write ioctls.
4817         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
4819 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4821         * sysdeps/mach/hurd/i386/init-first.c (init): Use
4822         __builtin_frame_address instead of making assumptions about the
4823         location of the return address relative to DATA.  Force early load of
4824         the return address.
4825         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
4826         __builtin_frame_address.
4828         dup3 for GNU Hurd.
4829         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
4830         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
4831         implement dup3 and do some further code clean-ups.
4832         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
4833         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
4835 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4837         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
4839         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
4840         HURD_CRITICAL_END around holding _hurd_dtable_lock.
4841         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
4842         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
4843         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
4844         d->port.lock.
4846         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
4847         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
4848         when handler == SIG_ERR, not when handler != SIG_ERR.
4850 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4852         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
4853         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
4854         definitions.
4856         accept4 for GNU Hurd.
4857         * include/sys/socket.h (__libc_accept4): New prototype.
4858         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
4859         to implement __libc_accept4.
4860         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
4861         __libc_accept4.
4862         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
4864         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
4865         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
4866         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
4867         signal-defines.sym.
4869 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4871         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
4873 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4875         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
4876         assertion on O_CLOEXEC flag.
4877         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
4878         * hurd/intern-fd.c: Likewise.
4879         * hurd/port2fd.c: Likewise.
4881 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4883         [BZ #3906]
4884         * bits/in.h (IPV6_PKTINFO): Define new macro.
4885         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
4887 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4889         [BZ #13954]
4890         [BZ #13955]
4891         [BZ #13956]
4892         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
4893         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4894         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
4895         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4896         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4897         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4898         * math/libm-test.inc (logb_test) : Additional logb tests.
4900 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
4901             Andreas Jaeger  <aj@suse.de>
4903         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
4904         * configure: Regenerated.
4905         * config.h.in (LINK_OBSOLETE_RPC): New macro.
4906         * config.make.in (link-obsolete-rpc): New substituted variable.
4907         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
4908         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
4909         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
4910         (shared-only-routines): Don't set it under [link-obsolete-rpc],
4911         so that libc.a contains the symbols.
4912         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
4913         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
4914         * sunrpc/auth_none.c: Likewise.
4915         * sunrpc/auth_unix.c: Likewise.
4916         * sunrpc/authdes_prot.c: Likewise.
4917         * sunrpc/authuxprot.c: Likewise.
4918         * sunrpc/clnt_gen.c: Likewise.
4919         * sunrpc/clnt_perr.c: Likewise.
4920         * sunrpc/clnt_raw.c: Likewise.
4921         * sunrpc/clnt_simp.c: Likewise.
4922         * sunrpc/clnt_tcp.c: Likewise.
4923         * sunrpc/clnt_udp.c: Likewise.
4924         * sunrpc/clnt_unix.c: Likewise.
4925         * sunrpc/des_crypt.c: Likewise.
4926         * sunrpc/des_soft.c: Likewise.
4927         * sunrpc/get_myaddr.c: Likewise.
4928         * sunrpc/key_call.c: Likewise.
4929         * sunrpc/key_prot.c: Likewise.
4930         * sunrpc/netname.c: Likewise.
4931         * sunrpc/pm_getmaps.c: Likewise.
4932         * sunrpc/pm_getport.c: Likewise.
4933         * sunrpc/pmap_clnt.c: Likewise.
4934         * sunrpc/pmap_prot.c: Likewise.
4935         * sunrpc/pmap_prot2.c: Likewise.
4936         * sunrpc/pmap_rmt.c: Likewise.
4937         * sunrpc/publickey.c: Likewise.
4938         * sunrpc/rpc_cmsg.c: Likewise.
4939         * sunrpc/rpc_common.c: Likewise.
4940         * sunrpc/rpc_dtable.c: Likewise.
4941         * sunrpc/rpc_prot.c: Likewise.
4942         * sunrpc/rpc_thread.c: Likewise.
4943         * sunrpc/rtime.c: Likewise.
4944         * sunrpc/svc.c: Likewise.
4945         * sunrpc/svc_auth.c: Likewise.
4946         * sunrpc/svc_raw.c: Likewise.
4947         * sunrpc/svc_run.c: Likewise.
4948         * sunrpc/svc_tcp.c: Likewise.
4949         * sunrpc/svc_udp.c: Likewise.
4950         * sunrpc/svc_unix.c: Likewise.
4951         * sunrpc/svcauth_des.c: Likewise.
4952         * sunrpc/xcrypt.c: Likewise.
4953         * sunrpc/xdr.c: Likewise.
4954         * sunrpc/xdr_array.c: Likewise.
4955         * sunrpc/xdr_float.c: Likewise.
4956         * sunrpc/xdr_intXX_t.c: Likewise.
4957         * sunrpc/xdr_mem.c: Likewise.
4958         * sunrpc/xdr_rec.c: Likewise.
4959         * sunrpc/xdr_ref.c: Likewise.
4960         * sunrpc/xdr_sizeof.c: Likewise.
4961         * sunrpc/xdr_stdio.c: Likewise.
4963 2012-05-10  Roland McGrath  <roland@hack.frob.com>
4965         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
4966         change.  Update copyright years.
4968 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
4970         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
4972 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
4973             Joseph Myers  <joseph@codesourcery.com>
4974             Paul Pluzhnikov  <ppluzhnikov@google.com>
4976         [BZ #14012]
4977         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
4978         requiring rpcgen.
4979         [cross-compiling] (extra-libs): Likewise.
4980         [cross-compiling] (extra-libs-others): Likewise.
4981         [cross-compiling] (librpcsvc-routines): Likewise.
4982         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
4983         [cross-compiling] (omit-deps): Likewise.
4984         (sunrpc-CPPFLAGS): New variable.
4985         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
4986         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
4987         (cross-rpcgen-objs): New variable.
4988         (extra-objs): Append $(cross-rpcgen-objs).
4989         ($(cross-rpcgen-objs)): New rule.
4990         ($(objpfx)cross-rpcgen): Likewise.
4991         (rpcgen-cmd): Define to use $(built-program-file).  Expand
4992         comment.
4993         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
4994         ($(objpfx)x%.stmp): Likewise.
4995         * sunrpc/proto.h [IS_IN_build] (_): Define.
4996         [IS_IN_build] (_libc_intl_domainname): Likewise.
4998 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5000         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
5001         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
5002         and R_X86_64_TPOFF64.
5004 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5006         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
5007         sysdeps/unix/sysv/syscalls.list.
5008         (stime): Likewise.
5009         (utime): Likewise.
5010         * sysdeps/unix/sysv/syscalls.list: Remove file.
5012 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5014         [BZ #3440]
5015         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
5016         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
5017         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
5018         (__LC_IDENTIFICATION): Make these macros useful in #if
5019         expressions, as required by C99.
5021 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
5023         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
5024         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
5025         after this.
5027 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5029         * stdlib/longlong.h: Updated from GCC.
5031 2012-05-09  Andreas Jaeger  <aj@suse.de>
5033         * nscd/nscd.c (run_modes): Make named enum, reorder so that
5034         default is first entry.
5035         (run_mode): Set type.
5036         (main): Remove informal message about syslog.
5037         (options): Fix typo.
5039         [BZ #14053]
5040         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
5041         to asm.
5042         (lrint): Likewise.
5043         (llrintf): Likewise.
5044         (llrint): Likewise.
5045         (rint): Likewise.
5046         (rintf): Likewise.
5047         (nearbyint): Likewise.
5048         (nearbyintf): Likewise.
5050 2012-05-09  Andreas Jaeger  <aj@suse.de>
5051             Pedro Alves  <palves@redhat.com>
5053         * nscd/nscd.c (run_mode): Use enum.
5054         (main): Cleanup coding style issue.
5056 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
5057             Andreas Jaeger  <aj@suse.de>
5059         * nscd/nscd.c (go_background): Replaced with...
5060         (run_mode): ... this.
5061         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
5062         (options): Add -F --foreground.
5063         (main): Implement it.
5064         (parse_opt): Parse it.
5066 2012-05-09  Andreas Jaeger  <aj@suse.de>
5068         [BZ #14083]
5069         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
5070         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
5071         -Wconversion warning.
5072         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
5073         Likewise.
5075 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
5077         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
5078         == 0.
5079         (LC_ALL): Use macro-int-constant.
5080         (LC_COLLATE): Likewise.
5081         (LC_CTYPE): Likewise.
5082         (LC_MESSAGES): Likewise.
5083         (LC_MONETARY): Likewise.
5084         (LC_NUMERIC): Likewise.
5085         (LC_TIME): Likewise.
5086         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
5087         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5088         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5089         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
5090         Specify type.
5091         [C99-based standards] (float_t): Expect type.
5092         [C99-based standards] (double_t): Expect type.
5093         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
5094         type.
5095         [C99-based standards] (HUGE_VALL): Likewise.
5096         [C99-based standards] (INFINITY): Likewise.
5097         [C99-based standards] (NAN): Likewise.
5098         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
5099         [C99-based standards] (FP_NAN): Likewise.
5100         [C99-based standards] (FP_NORMAL): Likewise.
5101         [C99-based standards] (FP_SUBNORMAL): Likewise.
5102         [C99-based standards] (FP_ZERO): Likewise.
5103         [C99-based standards] (FP_FAST_FMA): Use
5104         optional-macro-int-constant.  Specify type.  Require == 1.
5105         [C99-based standards] (FP_FAST_FMAF): Likewise.
5106         [C99-based standards] (FP_FAST_FMAL): Likewise.
5107         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
5108         [C99-based standards] (FP_ILOGBNAN): Likewise.
5109         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
5110         Specify type.
5111         [C99-based standards] (MATH_ERREXCEPT): Likewise.
5112         [C99-based standards] (math_errhandling): Specify type.
5113         [ISO99 || ISO11] (signgam): Do not allow.
5114         [non-C99-based standards] (copysignf): Do not allow.
5115         [non-C99-based standards] (exp2f): Likewise.
5116         [non-C99-based standards] (log2f): Likewise.
5117         [non-C99-based standards] (modff): Allow.
5118         [non-C99-based standards] (erff): Do not allow.
5119         [non-C99-based standards] (erfcf): Likewise.
5120         [non-C99-based standards] (gammaf): Likewise.
5121         [non-C99-based standards] (hypotf): Likewise.
5122         [non-C99-based standards] (j0f): Likewise.
5123         [non-C99-based standards] (j1f): Likewise.
5124         [non-C99-based standards] (jnf): Likewise.
5125         [non-C99-based standards] (lgammaf): Likewise.
5126         [non-C99-based standards] (tgammaf): Likewise.
5127         [non-C99-based standards] (y0f): Likewise.
5128         [non-C99-based standards] (y1f): Likewise.
5129         [non-C99-based standards] (ynf): Likewise.
5130         [non-C99-based standards] (isnanf): Likewise.
5131         [non-C99-based standards] (acoshf): Likewise.
5132         [non-C99-based standards] (asinhf): Likewise.
5133         [non-C99-based standards] (atanhf): Likewise.
5134         [non-C99-based standards] (cbrtf): Likewise.
5135         [non-C99-based standards] (expm1f): Likewise.
5136         [non-C99-based standards] (ilogbf): Likewise.
5137         [non-C99-based standards] (log1pf): Likewise.
5138         [non-C99-based standards] (logbf): Likewise.
5139         [non-C99-based standards] (nextafterf): Likewise.
5140         [non-C99-based standards] (remainderf): Likewise.
5141         [non-C99-based standards] (rintf): Likewise.
5142         [non-C99-based standards] (scalbf): Likewise.
5143         [non-C99-based standards] (copysignl): Likewise.
5144         [non-C99-based standards] (exp2l): Likewise.
5145         [non-C99-based standards] (log2l): Likewise.
5146         [non-C99-based standards] (modfl): Allow.
5147         [non-C99-based standards] (erfl): Do not allow.
5148         [non-C99-based standards] (erfcl): Likewise.
5149         [non-C99-based standards] (gammal): Likewise.
5150         [non-C99-based standards] (hypotl): Likewise.
5151         [non-C99-based standards] (j0l): Likewise.
5152         [non-C99-based standards] (j1l): Likewise.
5153         [non-C99-based standards] (jnl): Likewise.
5154         [non-C99-based standards] (lgammal): Likewise.
5155         [non-C99-based standards] (tgammal): Likewise.
5156         [non-C99-based standards] (y0l): Likewise.
5157         [non-C99-based standards] (y1l): Likewise.
5158         [non-C99-based standards] (ynl): Likewise.
5159         [non-C99-based standards] (isnanl): Likewise.
5160         [non-C99-based standards] (acoshl): Likewise.
5161         [non-C99-based standards] (asinhl): Likewise.
5162         [non-C99-based standards] (atanhl): Likewise.
5163         [non-C99-based standards] (cbrtl): Likewise.
5164         [non-C99-based standards] (expm1l): Likewise.
5165         [non-C99-based standards] (ilogbl): Likewise.
5166         [non-C99-based standards] (log1pl): Likewise.
5167         [non-C99-based standards] (logbl): Likewise.
5168         [non-C99-based standards] (nextafterl): Likewise.
5169         [non-C99-based standards] (remainderl): Likewise.
5170         [non-C99-based standards] (rintl): Likewise.
5171         [non-C99-based standards] (scalbl): Likewise.
5172         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5173         [non-C99-based standards] (FP_*): Do not allow.
5174         [C99-based standards] (FP_*): Change to
5175         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5176         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5177         allow.
5178         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
5179         (SIG_ERR): Likewise.
5180         [X/Open-based standards] (SIG_HOLD): Likewise.
5181         (SIG_IGN): Likewise.
5182         (SIGABRT): Use macro-int-constant.  Specify type.  Require
5183         positive value.
5184         (SIGFPE): Likewise.
5185         (SIGILL): Likewise.
5186         (SIGINT): Likewise.
5187         (SIGSEGV): Likewise.
5188         (SIGTER): Likewise.
5189         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
5190         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
5191         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
5192         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
5193         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
5194         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
5195         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
5196         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
5197         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
5198         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
5199         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
5200         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
5201         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
5202         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
5203         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
5204         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
5205         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
5206         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
5207         [X/Open-based standards] (SIGTRAP): Likewise.
5208         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
5209         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
5210         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
5211         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
5212         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5213         allow.
5215 2012-05-08  Ian Wienand  <ianw@vmware.com>
5217         [BZ #14080]
5218         * time/tzset.c (__tzset_parse_tz): Update default rules for
5219         daylight time changes in the Energy Policy Act of 2005.
5221 2012-05-09  Andreas Jaeger  <aj@suse.de>
5223         [BZ #13983]
5224         * elf/ldconfig.c (parse_conf): Change string to make clear that
5225         ldconfig only issued a warning if ld.so.conf does not exist.
5227 2012-05-08  David S. Miller  <davem@davemloft.net>
5229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
5230         movxtod instead of popping the value on the stack.
5232         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5234 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
5236         * config.h.in: Add HAVE_ARM_PCS_VFP.
5238 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
5240         [BZ #13979]
5241         * include/features.h: Warn if user requests __FORTIFY_SOURCE
5242         checking but the checks are disabled for any reason.
5244 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
5246         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
5247         and ELF64_R_TYPE with ELFW(R_TYPE).
5249 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
5251         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
5252         (ulimit): Likewise.
5254         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
5255         (settimeofday): Likewise.
5257 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
5259         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
5260         a struct th_u2 inside the union, and move tu_block/tu_code into
5261         a new th_u3 union of tu_block/tu_code inside of that.  Move
5262         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
5263         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
5264         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
5265         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
5266         (th_stuff): Change to th_u1.tu_stuff.
5267         (th_data): Define.
5268         (th_msg): Change to th_u1.th_u2.tu_data.
5270 2012-05-07  David S. Miller  <davem@davemloft.net>
5272         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5274         [BZ #14074]
5275         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
5276         (SETUP_PIC_REG): Use it.
5277         (SETUP_PIC_REG_LEAF): Use it.
5279 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
5281         [BZ #13885]
5282         [BZ #13923]
5283         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5284         USE_AS_EXPM1L.
5285         (EXPL_FINITE): Likewise.
5286         (FLDLOG): Likewise.
5287         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
5288         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
5289         e_expl.S.
5290         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5291         USE_AS_EXPM1L.
5292         (EXPL_FINITE): Likewise.
5293         (FLDLOG): Likewise.
5294         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
5295         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
5296         e_expl.S.
5297         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
5298         test of -max_value argument for long double.
5299         * sysdeps/i386/fpu/libm-test-ulps: Update.
5300         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5302 2012-05-06  David S. Miller  <davem@davemloft.net>
5304         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
5305         quad soft-float symbols whose references which are compiler
5306         generated.
5307         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
5309 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
5311         [BZ #13884]
5312         [BZ #13914]
5313         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5314         USE_AS_EXP10L.
5315         (EXPL_FINITE): Likewise.
5316         (FLDLOG): Likewise.
5317         (c0): Likewise.
5318         (c1): Likewise.
5319         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
5320         Adjust comments for base varying.
5321         (__expl_finite): Change alias to EXPL_FINITE.
5322         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
5323         e_expl.S.
5324         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
5325         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
5326         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
5327         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
5328         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5329         USE_AS_EXP10L.
5330         (EXPL_FINITE): Likewise.
5331         (FLDLOG): Likewise.
5332         (c0): Likewise.
5333         (c1): Likewise.
5334         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
5335         Adjust comments for base varying.
5336         (__expl_finite): Change alias to EXPL_FINITE.
5337         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
5338         tests for bugs.
5339         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5341         [BZ #14064]
5342         * math/libm-test.inc (check_float_internal): Correct ulp
5343         calculation for subnormal expected results.
5345 2012-05-06  Andreas Jaeger  <aj@suse.de>
5347         * Makeconfig (+math-flags): New, set to -frounding-math.
5348         (+cflags): Add +math-flags so that all of glibc gets compiled with
5349         it.
5351         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
5353 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
5355         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
5356         Disable one test.
5358         [BZ #13787]
5359         [BZ #13922]
5360         [BZ #14036]
5361         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
5362         (__ieee754_expl): Allow for and saturate large arguments.
5363         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
5364         (u_threshold): Likewise.
5365         (__exp): Call __ieee754_exp before checking for overflow and
5366         underflow.
5367         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
5368         (u_threshold): Likewise.
5369         (__expf): Call __ieee754_expf before checking for overflow and
5370         underflow.
5371         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
5372         (u_threshold): Likewise.
5373         (__expl): Call __ieee754_expl before checking for overflow and
5374         underflow.
5375         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
5376         (__ieee754_expl): Allow for and saturate large arguments.
5377         * math/libm-test.inc (exp_test): Add another test.  Do not allow
5378         missing overflow exception on overflow.
5379         (expm1_test): Do not allow missing overflow exception on overflow.
5381         * sysdeps/i386/fpu/e_expl.c: Move to ...
5382         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
5383         rather than using inline asm.
5384         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
5385         * sysdeps/x86_64/fpu/e_expl.S: Copy from
5386         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
5388         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
5389         (nice): Likewise.
5390         (poll): Likewise.
5391         (signal): Likewise.
5392         (time): Likewise.
5393         (times): Likewise.
5395 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
5397         * sysdeps/unix/syscalls.list (adjtime): Add entry from
5398         sysdeps/unix/common/syscalls.list.
5399         (fchmod): Likewise.
5400         (fchown): Likewise.
5401         (ftruncate): Likewise.
5402         (getrusage): Likewise.
5403         (gettimeofday): Likewise.
5404         (setpgid): Likewise.
5405         (setregid): Likewise.
5406         (setreuid): Likewise.
5407         (sigaction): Likewise.
5408         (truncate): Likewise.
5409         (vhangup): Likewise.
5410         * sysdeps/unix/common/syscalls.list: Remove file.
5411         * sysdeps/unix/bsd/Implies: Don't include unix/common.
5412         * sysdeps/unix/sysv/linux/Implies: Likewise.
5414 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
5416         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
5417         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
5418         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
5419         Moved to ...
5420         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
5421         Here.
5422         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
5423         to ...
5424         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
5425         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
5426         to ...
5427         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
5428         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
5429         to ...
5430         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
5431         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
5432         to ...
5433         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
5434         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
5435         to ...
5436         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
5437         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
5438         to ...
5439         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
5440         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
5441         to ...
5442         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
5443         Here.
5444         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
5445         to ...
5446         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
5447         Here.
5448         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
5449         to ...
5450         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
5451         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
5452         Moved to ...
5453         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
5454         Here.
5455         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
5456         to ...
5457         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
5459 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
5461         * sysdeps/unix/common/bits/dirent.h: Remove file.
5462         * sysdeps/unix/common/bits/fcntl.h: Likewise.
5464         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
5465         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
5466         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
5467         * sysdeps/unix/bsd/isatty.c: Likewise.
5468         * sysdeps/unix/bsd/tcdrain.c: Likewise.
5469         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
5470         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
5472 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5474         [BZ #13563]
5475         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
5476         long double comparison inaccuracies.
5477         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
5478         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5480 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
5482         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
5483         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
5485 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
5487         [BZ #14049]
5488         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
5489         nonzero digits before rounding a hex value.
5490         * stdlib/tst-strtod.c (tests): Add another test.
5492 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5494         * sysdeps/s390/fpu/libm-test-ulps: Update.
5496 2012-05-03  Andreas Jaeger  <aj@suse.de>
5498         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
5499         does not get optimized out.
5500         (malloc_opt_barrier): New.
5502 2012-05-03  Andreas Jaeger  <aj@suse.de>
5503             Roland McGrath  <roland@hack.frob.com>
5505         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
5506         intermediate file deletion.
5507         (generated): Add .symlist files.
5509 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
5511         [BZ #13775]
5512         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
5513         Redirect under this condition.
5514         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
5515         [__USE_GNU] (__dprintf_chk): Not under this condition.
5516         [__USE_GNU] (__vdprintf_chk): Likewise.
5517         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
5518         under this condition.
5519         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
5520         [__USE_XOPEN2K8] (dprintf): Define under this condition.
5521         [__USE_XOPEN2K8] (vdprintf): Likewise.
5522         [__USE_GNU] (__dprintf_chk): Not under this condition.
5523         [__USE_GNU] (__vdprintf_chk): Likewise.
5524         [__USE_GNU] (dprintf): Likewise.
5525         [__USE_GNU] (vdprintf): Likewise.
5527 2012-05-03  Roland McGrath  <roland@hack.frob.com>
5529         * elf/Makefile (common-generated): Set this instead of generated for
5530         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
5531         $(all-built-dso)-derived lists.
5533 2012-05-03  Andreas Jaeger  <aj@suse.de>
5535         * sysdeps/i386/fpu/libm-test-ulps: Update.
5537         * FAQ: Removed.
5538         * FAQ.in: Likewise.
5539         * scripts/gen-FAQ.pl: Likewise.
5540         * manual/install.texi (Installation): Point to online location of
5541         FAQ.
5542         * Makefile (files-for-dist): Remove FAQ.
5543         (FAQ): Remove.
5545 2012-05-02  Allan McRae  <allan@archlinux.org>
5547         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
5548         (LDFLAGS-reldepmod5.so): Likewise.
5549         (LDFLAGS-reldep6mod1.so): Likewise.
5550         (LDFLAGS-reldep6mod4.so): Likewise.
5551         (LDFLAGS-reldep8mod3.so): Likewise.
5552         (LDFLAGS-unload4mod1.so): Likewise.
5553         (LDFLAGS-unload4mod2.so): Likewise.
5554         (LDFLAGS-tst-initorder): Likewise.
5555         (LDFLAGS-tst-initordera2.so): Likewise.
5556         (LDFLAGS-tst-initordera3.so): Likewise.
5557         (LDFLAGS-tst-initordera4.so): Likewise.
5558         (LDFLAGS-tst-initorderb2.so): Likewise.
5559         (LDFLAGS-noload): Likewise.
5560         (LDFLAGS-next): Likewise.
5561         (LDFLAGS-order2mod1.so): Likewise.
5562         (LDFLAGS-order2mod2.so): Likewise.
5563         (LDFLAGS-tst-initorder2): Likewise.
5564         (LDFLAGS-tst-initorder2a.so): Likewise.
5565         (LDFLAGS-tst-initorder2b.so): Likewise.
5566         (LDFLAGS-tst-initorder2c.so): Likewise.
5567         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
5569 2012-05-02  David S. Miller  <davem@davemloft.net>
5571         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5573 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
5575         [BZ #14055]
5576         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
5578 2012-05-02  Andreas Jaeger  <aj@suse.de>
5580         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
5581         since we manipulate rounding mode.
5582         (CPPFLAGS-test-idouble.c): Likewise.
5583         (CPPFLAGS-test-ifloat.c): Likewise.
5584         (CFLAGS-test-ldouble.c): Likewise.
5585         (CFLAGS-test-double.c): Likewise.
5586         (CFLAGS-test-float.c): Likewise.
5587         (CFLAGS-test-misc.c): Likewise.
5588         (CFLAGS-test-test-fenv.c): Likewise.
5590 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5592         [BZ #2550]
5593         [BZ #2570]
5594         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
5595         comparisons to determine direction to adjust input.
5597 2012-05-01  Roland McGrath  <roland@hack.frob.com>
5599         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
5600         output to the target.
5602         * scripts/localplt.awk: New file.
5603         * elf/Makefile ($(objpfx)check-localplt): Target removed.
5604         (check-localplt-CFLAGS): Variable removed.
5605         ($(all-built-dso:=.jmprel)): New static pattern rule.
5606         (generated): Add those targets.
5607         (localplt-built-dso): New variable.
5608         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
5610         * elf/check-localplt.c: File removed.
5612         * scripts/check-execstack.awk: New file.
5613         * elf/Makefile ($(objpfx)check-execstack): Target removed.
5614         (check-execstack-CFLAGS): Variable removed.
5615         ($(objpfx)check-execstack.h): Target removed.
5616         ($(objpfx)execstack-default): New target.
5617         (generated): Add that instead of check-execstack.h.
5618         ($(all-built-dso:=.phdr)): New static pattern rule.
5619         (generated): Add those targets.
5620         * elf/check-execstack.c: File removed.
5622         * scripts/check-textrel.awk: New file.
5623         * elf/Makefile ($(objpfx)check-textrel): Target removed.
5624         (check-textrel-CFLAGS): Variable removed.
5625         (all-built-dso): Use := to define.o
5626         ($(all-built-dso:=.dyn)): New static pattern rule.
5627         (generated): Add those targets.
5628         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
5629         * config.make.in (READELF): New substituted variable.
5630         * elf/check-textrel.c: File removed.
5632 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
5634         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5635         allow.
5636         * conform/data/ctype.h-data [C99-based standards] (isblank):
5637         Expect function.
5638         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
5639         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
5640         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5641         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
5642         Specify type.  Require positive value.
5643         (EILSEQ): Likewise.
5644         (ERANGE): Likewise.
5645         [ISO || POSIX] (EILSEQ): Do not expect.
5646         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
5647         Specify type.  Require positive value.
5648         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
5649         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
5650         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
5651         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
5652         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
5653         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
5654         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
5655         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
5656         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
5657         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
5658         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
5659         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
5660         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
5661         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
5662         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
5663         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
5664         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
5665         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
5666         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
5667         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
5668         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
5669         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
5670         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
5671         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
5672         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
5673         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
5674         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
5675         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
5676         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
5677         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
5678         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
5679         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
5680         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
5681         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
5682         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
5683         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
5684         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
5685         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
5686         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
5687         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
5688         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
5689         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
5690         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
5691         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
5692         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
5693         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
5694         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
5695         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
5696         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
5697         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
5698         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
5699         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
5700         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
5701         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
5702         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
5703         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
5704         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
5705         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
5706         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
5707         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
5708         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
5709         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
5710         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
5711         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
5712         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
5713         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
5714         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
5715         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
5716         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
5717         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
5718         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
5719         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
5720         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
5721         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
5722         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
5723         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
5724         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
5725         Require >= 2.
5726         (FLT_ROUNDS): Expect as macro, not constant.
5727         (FLT_MANT_DIG): Use macro-int-constant.
5728         (DBL_MANT_DIG): Likewise.
5729         (LDBL_MANT_DIG): Likewise.
5730         (FLT_DIG): Likewise.
5731         (DBL_DIG): Likewise.
5732         (LDBL_DIG): Likewise.
5733         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
5734         (DBL_MIN_EXP): Likewise.
5735         (LDBL_MIN_EXP): Likewise.
5736         (FLT_MAX_EXP): Use macro-int-constant.
5737         (DBL_MAX_EXP): Likewise.
5738         (LDBL_MAX_EXP): Likewise.
5739         (FLT_MAX_10_EXP): Likewise.
5740         (DBL_MAX_10_EXP): Likewise.
5741         (LDBL_MAX_10_EXP): Likewise.
5742         (FLT_MAX): Use macro-constant.
5743         (DBL_MAX): Likewise.
5744         (LDBL_MAX): Likewise.
5745         (FLT_EPSILON): Use macro-constant.  Give upper bound.
5746         (DBL_EPSILON): Likewise.
5747         (LDBL_EPSILON): Likewise.
5748         (FLT_MIN): Likewise.
5749         (DBL_MIN): Likewise.
5750         (LDBL_MIN): Likewise.
5751         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
5752         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
5753         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
5754         [ISO11] (FLT_HAS_SUBNORM): Likewise.
5755         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
5756         [ISO11] (DBL_DECIMAL_DIG): Likewise.
5757         [ISO11] (FLT_DECIMAL_DIG): Likewise.
5758         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
5759         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
5760         [ISO11] (FLT_TRUE_MIN): Likewise.
5761         [ISO11] (LDBL_TRUE_MIN): Likewise.
5762         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5763         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
5764         (SCHAR_MIN): Use macro-int-constant.  Specify type.
5765         (SCHAR_MAX): Likewise.
5766         (UCHAR_MAX): Likewise.
5767         (CHAR_MIN): Likewise.
5768         (CHAR_MAX): Likewise.
5769         (MB_LEN_MAX): Use macro-int-constant.
5770         (SHRT_MIN): Use macro-int-constant.  Specify type.
5771         (SHRT_MAX): Likewise.
5772         (USHRT_MAX): Likewise.
5773         (INT_MAX): Likewise.
5774         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
5775         bound negative.
5776         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
5777         bound with "U".
5778         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
5779         bound with "L".
5780         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
5781         bound negative.  Suffix upper bound with "L".
5782         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
5783         bound with "UL".
5784         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
5785         Specify type.
5786         [C99-based standards] (LLONG_MAX): Likewise.
5787         [C99-based standards] (ULLONG_MAX): Likewise.
5788         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
5789         == 0.
5790         [ISO11] (max_align_t): Require type.
5791         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5793         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
5794         from $CFLAGS, without defining away __attribute__ calls.
5795         (checknamespace): Use $CFLAGS_namespace.
5797         * conform/conformtest.pl (@keywords): Only include C99 keywords
5798         for standards based on C99 or C11.
5800         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
5801         Disable tests.
5802         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
5803         UNIX98]: Likewise.
5805         * conform/conformtest.pl: Handle "macro-int-constant" and test for
5806         usability of symbols in #if.
5808         * conform/conformtest.pl: If macro or constant types start
5809         "promoted:", expect the symbol to be of the following type
5810         promoted by the integer promotions.
5812         * conform/conformtest.pl: Parse all "constant" and "macro" lines
5813         in one place.  Also handle "macro-constant".
5815         * conform/conformtest.pl: Only accept expected macro values with
5816         "==".  Parse all "macro" lines in one place.
5817         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
5819         * conform/conformtest.pl: Handle braced types on "constant" lines
5820         instead of handling "typed-constant".
5821         * conform/data/signal.h-data: Use "constant" instead of
5822         "typed-constant".
5824         * conform/conformtest.pl: Handle "optional-" at start of lines in
5825         one place rather than duplicating several cases.  Handle each
5826         format of "macro" line with initial "optional-".
5828         * conform/conformtest.pl: Only accept expected constant or
5829         optional-constant values with "==".  Parse all "constant" lines in
5830         one place.  Parse all "optional-constant" lines in one place.
5831         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
5832         * conform/data/fmtmsg.h-data: Likewise.
5833         * conform/data/netinet/in.h-data: Likewise.
5834         * conform/data/tar.h-data: Likewise.
5835         * conform/data/limits.h-data: Use "==" form on "constant" and
5836         "optional-constant" lines.
5838         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
5839         Use -std=c99 for XOPEN2K.
5840         (@knownproblems): Remove.
5841         (newtoken): Don't check %isknown.
5843         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
5844         Do not expect macro.
5845         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
5846         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
5847         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
5848         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
5849         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
5850         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
5851         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
5852         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
5853         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
5854         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
5855         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
5856         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
5857         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
5858         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
5859         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
5860         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
5861         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
5862         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
5863         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
5864         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
5865         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
5866         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
5867         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
5868         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
5869         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
5870         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
5871         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
5872         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
5873         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
5874         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
5875         [XPG3] (acosh): Likewise.
5876         [XPG3] (asinh): Likewise.
5877         [XPG3] (atanh): Likewise.
5878         [XPG3] (cbrt): Likewise.
5879         [XPG3] (expm1): Likewise.
5880         [XPG3] (ilogb): Likewise.
5881         [XPG3] (log1p): Likewise.
5882         [XPG3] (logb): Likewise.
5883         [XPG3] (nextafter): Likewise.
5884         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
5885         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
5886         [XPG3] (remainder): Likewise.
5887         [XPG3] (rint): Likewise.
5888         [XPG3 || XPG4 || UNIX98] (round): Likewise.
5889         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
5890         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
5891         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
5892         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
5893         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
5894         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
5895         [UNIX98 || XOPEN2K] (scalb): Expect.
5896         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
5897         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
5898         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
5899         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
5900         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
5901         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
5902         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
5903         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
5904         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
5905         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
5906         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
5907         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
5908         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
5909         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
5910         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
5911         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
5912         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
5913         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
5914         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
5915         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
5916         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
5917         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
5918         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
5919         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
5920         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
5921         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
5922         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
5923         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
5924         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
5925         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
5926         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
5927         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
5928         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
5929         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
5930         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
5931         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
5932         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
5933         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
5934         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
5935         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
5936         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
5937         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
5938         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
5939         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
5940         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
5941         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
5942         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
5943         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
5944         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
5945         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
5946         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
5947         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
5948         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
5949         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
5950         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
5951         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
5952         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
5953         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
5954         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
5955         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
5956         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
5957         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
5958         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
5959         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
5960         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
5961         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
5962         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
5963         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
5964         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
5965         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
5966         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
5967         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
5968         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
5969         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
5970         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
5971         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
5972         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
5973         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
5974         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
5975         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
5976         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
5977         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
5978         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
5979         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
5980         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
5981         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
5982         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
5983         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
5984         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
5985         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
5986         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
5987         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
5988         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
5989         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
5990         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
5991         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
5992         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
5993         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
5994         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
5995         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
5996         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
5997         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
5998         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
5999         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
6000         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
6001         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
6002         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
6003         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
6004         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
6005         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
6006         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
6007         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
6008         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
6009         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
6010         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
6011         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
6012         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
6013         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
6014         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
6015         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
6016         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
6017         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
6018         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
6019         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
6020         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
6021         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
6022         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
6023         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
6024         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
6025         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
6026         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
6027         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
6028         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
6029         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
6030         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
6031         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
6032         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
6034         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
6035         _XOPEN_SOURCE_EXTENDED for XPG4.
6037         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
6039         * Makeconfig (localtime): Remove variable.
6040         (inst_localtime-file): Likewise.
6042 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
6045         Update.
6046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6047         Update.
6048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
6049         Update.
6050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6051         Update.
6052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
6053         Update.
6054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
6055         Update.
6056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6057         Update.
6058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
6059         Update.
6060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6061         Update.
6063 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6065         [BZ #2550]
6066         [BZ #2570]
6067         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
6068         comparisons to determine direction to adjust input.
6069         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
6070         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
6071         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
6072         Likewise.
6073         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
6074         Likewise.
6075         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
6076         Likewise.
6077         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6078         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
6079         Likewise.
6080         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
6081         Likewise.
6082         * math/libm-test.inc (nexttoward_test): Add more tests.
6084 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6086         [BZ #14040]
6087         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
6088         in version GLIBC_2.1, not GLIBC_2.0.
6089         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
6090         Likewise.
6092 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
6094         [BZ #13942]
6095         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
6096         (1 - x) * (1 + x).
6097         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6098         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
6099         * math/libm-test.inc (acos_test): Add more tests.
6100         (asin_test): Likewise.
6101         * sysdeps/i386/fpu/libm-test-ulps: Update.
6102         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6104         [BZ #14034]
6105         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
6106         of square root.
6107         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
6108         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6109         * math/libm-test.inc (acos_test_tonearest): New function.
6110         (acos_test_towardzero): Likewise.
6111         (acos_test_downward): Likewise.
6112         (acos_test_upward): Likewise.
6113         (asin_test_tonearest): Likewise.
6114         (asin_test_towardzero): Likewise.
6115         (asin_test_downward): Likewise.
6116         (asin_test_upward): Likewise.
6117         (main): Call the new functions.
6118         * sysdeps/i386/fpu/libm-test-ulps: Update.
6119         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6121         [BZ #13884]
6122         [BZ #13924]
6123         * math/e_exp10.c: Include <float.h>.
6124         (__ieee754_exp10): Handle underflow here rather than multiplying
6125         large negative argument by M_LN10.
6126         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
6127         of __ieee754_expf.
6128         * math/e_exp10l.c: Include <float.h>.
6129         (__ieee754_exp10l): Handle underflow here rather than multiplying
6130         large negative argument by M_LN10l.
6131         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
6132         spurious overflow exception on underflow.
6134 2012-04-29  Marek Polacek  <polacek@redhat.com>
6136         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
6137         (__fortify_function): New macro.
6138         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
6139         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
6140         __extern_always_inline.
6141         * libio/bits/stdio2.h: Likewise.
6142         * libio/bits/stdio.h: Likewise.
6143         * string/string.h: Likewise.
6144         * string/bits/string3.h: Likewise.
6145         * include/stdio.h: Likewise.
6146         * stdlib/bits/stdlib.h: Likewise.
6147         * stdlib/stdlib.h: Likewise.
6148         * rt/bits/mqueue2.h: Likewise.
6149         * rt/mqueue.h: Likewise.
6150         * posix/bits/unistd.h: Likewise.
6151         * posix/unistd.h: Likewise.
6152         * io/bits/poll2.h: Likewise.
6153         * io/bits/fcntl2.h: Likewise.
6154         * io/fcntl.h: Likewise.
6155         * io/sys/poll.h: Likewise.
6156         * misc/bits/syslog.h: Likewise.
6157         * misc/bits/syslog-ldbl.h: Likewise.
6158         * misc/sys/syslog.h: Likewise.
6159         * socket/bits/socket2.h: Likewise.
6160         * socket/sys/socket.h: Likewise.
6161         * debug/tst-chk1.c: Likewise.
6162         * wcsmbs/bits/wchar2.h: Likewise.
6163         * wcsmbs/bits/wchar-ldbl.h: Likewise.
6164         * wcsmbs/wchar.h: Likewise.
6166 2012-04-29  Andreas Jaeger  <aj@suse.de>
6168         * Makerules (tests): Remove enable-check-abi protection.
6169         (check-abi-warn): Remove.
6170         (check-abi-%): Remove check-abi-warn usage.
6172         * configure.in: Remove check-abi configure option.
6173         * configure: Regenerated.
6174         * config.make.in (enable-check-abi): Remove.
6176 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
6178         [BZ #14033]
6179         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
6180         double functions to double *_finite functions.
6182         [BZ #13941]
6183         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
6184         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
6185         LDBL_MIN_EXP.
6186         * stdio-common/Makefile (tests): Add tst-sprintf3.
6187         * stdio-common/tst-sprintf3.c: New file.
6189         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
6190         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
6192 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
6194         * conform/conformtest.pl: Remove duplicate typed-constant
6195         handling.
6197 2012-04-28  David S. Miller  <davem@davemloft.net>
6199         * Makerules (%.abilist): Add vpath on sysdep_dirs.
6200         (check-abi-%): Remove AWK script prerequisite and explicit
6201         abilist directory.
6202         (check-abi): Rewrite to just diff the symlist with the abilist.
6203         (config-tls, config-abi-config): Delete, no longer used.
6204         (update-abi-%): Remove AWK script and explicit abilist directory.
6205         (update-abi): Rewrite to simply compare and conditionally copy the
6206         symlist and the sysdep abilist file.  Remove update-abi-config
6207         checks.
6208         * abilist/ld.abilist: Remove.
6209         * abilist/libBrokenLocale.abilist: Remove.
6210         * abilist/libanl.abilist: Remove.
6211         * abilist/libcrypt.abilist: Remove.
6212         * abilist/libdl.abilist: Remove.
6213         * abilist/librt.abilist: Remove.
6214         * abilist/libthread_db.abilist: Remove.
6215         * abilist/libutil.abilist: Remove.
6216         * scripts/extract-abilist.awk: Remove.
6217         * scripts/merge-abilist.awk: Remove.
6218         * sysdeps/generic/libcidn.abilist: New file.
6219         * sysdeps/generic/libnss_compat.abilist: New file.
6220         * sysdeps/generic/libnss_db.abilist: New file.
6221         * sysdeps/generic/libnss_dns.abilist: New file.
6222         * sysdeps/generic/libnss_files.abilist: New file.
6223         * sysdeps/generic/libnss_hesiod.abilist: New file.
6224         * sysdeps/generic/libnss_nis.abilist: New file.
6225         * sysdeps/generic/libnss_nisplus.abilist: New file.
6226         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
6227         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
6228         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
6229         file.
6230         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
6231         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
6232         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
6233         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
6234         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
6235         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
6236         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
6237         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
6238         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
6239         file.
6240         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
6241         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
6242         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
6243         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
6244         file.
6245         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
6246         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
6247         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
6248         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
6249         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
6250         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
6251         file.
6252         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
6253         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
6254         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
6255         file.
6256         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
6257         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
6258         New file.
6259         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
6260         New file.
6261         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
6262         New file.
6263         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
6264         New file.
6265         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
6266         New file.
6267         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
6268         New file.
6269         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
6270         New file.
6271         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
6272         New file.
6273         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
6274         New file.
6275         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
6276         New file.
6277         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
6278         New file.
6279         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
6280         New file.
6281         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
6282         New file.
6283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
6284         file.
6285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
6286         New file.
6287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
6288         New file.
6289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
6290         file.
6291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
6292         New file.
6293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
6294         New file.
6295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
6296         file.
6297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
6298         New file.
6299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6300         New file.
6301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
6302         New file.
6303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
6304         New file.
6305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
6306         New file.
6307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
6308         New file.
6309         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
6310         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
6311         file.
6312         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
6313         New file.
6314         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
6315         file.
6316         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
6317         file.
6318         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
6319         file.
6320         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
6321         file.
6322         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
6323         file.
6324         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6325         New file.
6326         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
6327         file.
6328         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
6329         file.
6330         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
6331         New file.
6332         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
6333         file.
6334         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
6335         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
6336         file.
6337         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
6338         New file.
6339         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
6340         file.
6341         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
6342         file.
6343         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
6344         file.
6345         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
6346         file.
6347         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
6348         file.
6349         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6350         New file.
6351         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
6352         file.
6353         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
6354         file.
6355         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
6356         New file.
6357         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
6358         file.
6359         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
6360         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
6361         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
6362         file.
6363         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
6364         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
6365         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
6366         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
6367         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
6368         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
6369         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
6370         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
6371         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
6372         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
6373         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
6374         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
6375         file.
6376         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
6377         New file.
6378         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
6379         file.
6380         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
6381         file.
6382         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
6383         file.
6384         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
6385         file.
6386         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
6387         file.
6388         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
6389         New file.
6390         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
6391         New file.
6392         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
6393         file.
6394         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
6395         New file.
6396         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
6397         file.
6398         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
6399         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
6400         file.
6401         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
6402         New file.
6403         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
6404         file.
6405         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
6406         file.
6407         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
6408         file.
6409         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
6410         file.
6411         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
6412         file.
6413         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
6414         New file.
6415         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
6416         New file.
6417         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
6418         file.
6419         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
6420         New file.
6421         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
6422         file.
6424 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
6426         * conform/conformtest.pl: Fix typo in handling typed-constant from
6427         allow-header.
6429 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
6431         * README: Cut down references to pre-2.6 Linux kernels and
6432         Linuxthreads.  Update lists of configurations in libc and ports
6433         and sort alphabetically.  Say "or newer" with Linux kernel version
6434         requirements.
6436         * config.h.in [IS_IN_build]: Allow compiling without optimization.
6438 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6440         [BZ #887]
6441         * math/libm-test.inc (logb_test_downward): New test to expose
6442         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
6443         rounding mode.
6445 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
6447         [BZ #14027]
6448         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
6449         to be done.
6450         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
6451         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
6453 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
6455         * sysdeps/unix/i386/brk.S: Remove file.
6456         * sysdeps/unix/i386/dl-brk.S: Likewise.
6457         * sysdeps/unix/i386/pipe.S: Likewise.
6458         * sysdeps/unix/i386/sigreturn.S: Likewise.
6459         * sysdeps/unix/i386/syscall.S: Likewise.
6460         * sysdeps/unix/i386/vfork.S: Likewise.
6461         * sysdeps/unix/i386/wait.S: Likewise.
6463         * sysdeps/unix/common/tcsendbrk.c: Move to ...
6464         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
6466         * configure.in (arm*-none*): Do not allow without
6467         --enable-hacker-mode.
6468         (netbsd*): Remove case setting base_os.
6469         (386bsd*): Likewise.
6470         (freebsd*): Likewise.
6471         (bsdi*): Likewise.
6472         (osf*): Likewise.
6473         (sunos*): Likewise.
6474         (ultrix*): Likewise.
6475         (newsos*): Likewise.
6476         (dynix*): Likewise.
6477         (*bsd*): Likewise.
6478         (sysv*): Likewise.
6479         (isc*): Likewise.
6480         (esix*): Likewise.
6481         (sco*): Likewise.
6482         (minix*): Likewise.
6483         (irix4*): Likewise.
6484         (irix6*): Likewise.
6485         (solaris[2-9]*): Likewise.
6486         (none): Likewise.
6487         * configure: Regenerated.
6489 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6491         [BZ #11521]
6492         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
6493         overflow or cancellation in calculating denominator.
6494         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
6495         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
6496         down expression to avoid unexpected rounding in newer GCCs.
6497         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
6499 2012-04-26  David S. Miller  <davem@davemloft.net>
6501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
6502         long-double compat symbols.
6503         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
6504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
6505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
6506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
6507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
6508         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
6509         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
6510         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
6511         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
6512         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
6513         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
6514         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
6515         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
6517 2012-04-25  David S. Miller  <davem@davemloft.net>
6519         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
6520         HWCAP_* values only after the memory barriers have been defined.
6521         (atomic_full_barrier): Define.
6522         (atomic_read_barrier): Define.
6523         (atomic_write_barrier): Define.
6525 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6527         * shlib-versions: Add libgcc_s version information.
6528         * sysdeps/generic/libgcc_s.h: Remove.
6529         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
6530         libgcc_s.h.
6531         * sysdeps/gnu/unwind-resume.c: Likewise.
6532         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
6534 2012-04-25  David S. Miller  <davem@davemloft.net>
6536         * sysdeps/unix/sparc/brk.S: Delete.
6537         * sysdeps/unix/sparc/dl-brk.S: Delete.
6538         * sysdeps/unix/sparc/pipe.S: Delete.
6539         * sysdeps/unix/sparc/sysdep.S: Delete.
6540         * sysdeps/unix/sparc/sysdep.h: Delete.
6541         * sysdeps/unix/sparc/vfork.S: Delete.
6542         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
6543         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
6544         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
6545         ret_ERRVAL, r0, r1, MOVE): Define.
6546         (JUMPTARGET): Remove.
6547         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
6548         sysdeps/unix/sparc/sysdep.h
6549         (ENTRY, END): Remove.
6550         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6552 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
6554         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
6555         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
6556         -DIS_IN_build.
6558         * timezone/README: Update upstream location and email address for
6559         tzcode and tzdata.
6560         * timezone/zdump.c: Update from tzcode 2012b.
6561         * timezone/zic.c: Likewise.
6563         * configure.in (libc_cv_as_needed): Remove test.
6564         * configure: Regenerated.
6565         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
6566         conditional definition.
6567         [$(have-as-needed) != yes] (no-as-needed): Likewise.
6568         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
6569         * config.make.in (have-as-needed): Remove variable.
6571 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
6572             Paul Pluzhnikov  <ppluzhnikov@google.com>
6574         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
6575         strings correctly.
6577 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
6579         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
6580         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
6581         * sysdeps/sh/strlen.S: Likewise.
6583 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
6585         * sysdeps/unix/fork.S: Remove file.
6586         * sysdeps/unix/i386/fork.S: Likewise.
6587         * sysdeps/unix/sparc/fork.S: Likewise.
6589         * sysdeps/unix/system.c: Remove file.
6590         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
6592         * sysdeps/unix/getegid.S: Remove file.
6593         * sysdeps/unix/geteuid.S: Likewise.
6595 2012-04-24  Roland McGrath  <roland@hack.frob.com>
6597         * scripts/check-localplt.awk: New file.
6598         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
6599         of diff.
6600         * scripts/data/localplt-generic.data: Add a comment.
6602         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
6603         NODE when __dir_mkfile failed.
6604         * sysdeps/mach/hurd/symlinkat.c: Likewise.
6605         Reported by Ludovic Courtès <ludo@gnu.org>.
6607 2012-04-24  Andreas Jaeger  <aj@suse.de>
6609         * Makerules (common-clean): Also remove gen-as-const-headers
6610         files.
6612 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
6614         * Makerules (native-compile): Do not change working directory for
6615         build.  Use $(OUTPUT_OPTION) in command.
6616         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
6618 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6620         [BZ #13886]
6621         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
6622         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
6623         * math/libm-test.inc (floor_test): Add more tests.
6624         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
6626 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
6628         * sysdeps/unix/getdents.c: Remove file.
6629         * sysdeps/unix/sysv/getdents.c: Likewise.
6630         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
6632         * sysdeps/unix/syscalls.list (madvise): Add syscall from
6633         sysdeps/unix/mman/syscalls.list.
6634         (mmap): Likewise.
6635         (mprotect): Likewise.
6636         (msync): Likewise.
6637         (munmap): Likewise.
6638         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
6639         * sysdeps/unix/mman/syscalls.list: Remove.
6640         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
6642         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
6643         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
6644         * configure: Regenerated.
6645         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
6646         $(libgcc_s_suffix).
6647         * config.make.in (libgcc_s_suffix): Remove variable.
6649 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
6651         * sysdeps/unix/sysv/gethostname.c: Move to ...
6652         * sysdeps/posix/gethostname.c: ... here.
6654         * sysdeps/unix/execve.S: Remove file.
6656         * sysdeps/unix/_exit.S: Remove file.
6658 2012-04-23  Andreas Jaeger  <aj@suse.de>
6660         [BZ #13739]
6661         * manual/Makefile: Remove make dist support, there's no
6662         need for a stand-alone documentation tar ball.
6663         (TEXI2DVI): Define always, it's not in Makeconfig.
6664         (dist): Removed.
6665         (tar-it): Removed.
6666         (edition): Removed.
6667         (glibc-doc-$(edition).tar): Removed
6668         (%.Z): Removed.
6669         (%.gz): Removed.
6670         (%.uu): Removed.
6671         (ETAGS): Remove, it's in Makeconfig.
6672         (move-if-change): Remove, it's in Makeconfig.
6674 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
6676         [BZ #13970]
6677         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
6678         (strtod, strtof, strtold, strtol, strtoul, strtoq)
6679         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
6680         (strtod_l, strtof_l, strtold_l): Remove __wur.
6681         It is not necessarily an error to ignore strtol's return value.
6682         One can reliably look at the stored endptr to decide whether
6683         the number had valid syntax.
6685 2012-04-21  Andreas Jaeger  <aj@suse.de>
6687         [BZ #13739]
6688         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
6690 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
6692         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
6693         * sysdeps/unix/sysv/Versions: Remove file.
6695 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
6697         [BZ #13927]
6698         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6700 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
6702         [BZ #7064]
6703         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
6704         version from __vm86.
6706 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
6708         * sysdeps/unix/common/lxstat.c: Remove file.
6709         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
6711         * sysdeps/unix/sysv/Makefile: Remove file.
6713         * sysdeps/unix/sysv/direct.h: Remove file.
6715         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
6716         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
6717         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
6718         * sysdeps/unix/sysv/bits/signum.h: Likewise.
6719         * sysdeps/unix/sysv/bits/stat.h: Likewise.
6720         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
6721         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
6723         * sysdeps/unix/sysv/setrlimit.c: Remove file.
6725         * sysdeps/unix/xmknod.c: Remove file.
6726         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
6728         * sysdeps/unix/sysv/settimeofday.c: Remove file.
6730         * sysdeps/unix/sysv/i386/time.S: Remove file.
6732         * sysdeps/unix/fxstat.c: Remove file.
6733         * sysdeps/unix/xstat.c: Likewise.
6734         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
6736         * sysdeps/unix/sysv/sigaction.c: Remove file.
6738         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
6739         (sysdep_headers): Remove variable.
6740         [termio.h not in sysdep_headers] (generated): Likewise.
6741         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
6742         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
6743         * sysdeps/unix/sysv/tcdrain.c: Likewise.
6744         * sysdeps/unix/sysv/tcflow.c: Likewise.
6745         * sysdeps/unix/sysv/tcflush.c: Likewise.
6746         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
6747         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
6748         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
6749         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
6750         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
6752         * sysdeps/unix/siglist.c: Remove file.
6754         * sysdeps/unix/getppid.S: Remove file.
6756         * sysdeps/unix/mkdir.c: Remove file.
6757         * sysdeps/unix/rmdir.c: Likewise.
6759 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
6761         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
6762         ERR_MAX value.
6763         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
6764         errlist-compat value.
6766 2012-04-18  David S. Miller  <davem@davemloft.net>
6768         * sysdeps/generic/memcopy.h (reg_char): Delete.
6769         * debug/strcat_chk.c: Use char, not reg_char.
6770         * debug/strcpy_chk.c: Likewise.
6771         * debug/strncat_chk.c: Likewise.
6772         * debug/strncpy_chk.c: Likewise.
6773         * string/memchr.c: Likewise.
6774         * string/memrchr.c: Likewise.
6775         * string/rawmemchr.c: Likewise.
6776         * string/strcat.c: Likewise.
6777         * string/strchr.c: Likewise.
6778         * string/strchrnul.c: Likewise.
6779         * string/strcmp.c: Likewise.
6780         * string/strcpy.c: Likewise.
6781         * string/strncat.c: Likewise.
6782         * string/strncmp.c: Likewise.
6783         * string/strncpy.c: Likewise.
6785 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
6787         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
6788         __builtin_memcopy is called when src and dest ranges are known to not
6789         overlap.
6791 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
6793         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
6794         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
6795         fwd_align_merge macro call.
6796         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
6797         bwd_align_merge macro call.
6798         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
6800 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
6802         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
6803         bwd_align_merge macros.
6804         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
6805         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
6806         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
6808 2012-04-18  David S. Miller  <davem@davemloft.net>
6810         * sysdeps/sparc/sparc64/memcopy.h: Delete.
6812 2012-04-18  Andreas Jaeger  <aj@suse.de>
6814         [BZ# 6794]
6815         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
6816         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
6817         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6819         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
6820         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
6821         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6823         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
6824         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
6825         Adjust for changed ldbl-128 files.
6827         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
6828         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
6829         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6831 2012-04-17  David S. Miller  <davem@davemloft.net>
6833         * sysdeps/sparc/sparc32/memcopy.h: Delete.
6835 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
6837         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
6838         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
6839         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
6840         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
6841         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
6842         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
6844 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6846         [BZ #6794]
6847         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
6848         * math/libm-test.inc: Add ilogb errno and exception tests.
6849         * math/w_ilogb.c: New file: ilogb wrapper.
6850         * math/w_ilogbf.c: New file: ilogbf wrapper.
6851         * math/w_ilogbl.c: New file: ilogbl wrapper.
6852         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
6853         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
6854         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
6855         exception being thrown with 0.0 as argument.
6856         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
6857         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
6858         exception being thrown with 0.0 as argument.
6859         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
6860         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
6861         exception being thrown with 0.0 as argument.
6862         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
6863         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
6864         exception being thrown with 0.0 as argument.
6865         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
6866         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
6867         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
6868         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
6869         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
6870         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
6871         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
6872         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
6873         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
6875 2012-04-17  Petr Baudis  <pasky@ucw.cz>
6877         * include/sys/uio.h: Change __vector to __iovec to avoid clash
6878         with altivec.
6880 2012-04-16  Marek Polacek  <polacek@redhat.com>
6882         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
6884 2012-04-16  Marek Polacek  <polacek@redhat.com>
6886         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
6887         operands of fdivp instruction.
6889 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
6891         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
6892         * elf/tst-auditmod3b.c: Likewise.
6893         * elf/tst-auditmod4b.c: Likewise.
6894         * elf/tst-auditmod5b.c: Likewise.
6895         * elf/tst-auditmod6b.c: Likewise.
6896         * elf/tst-auditmod6c.c: Likewise.
6897         * elf/tst-auditmod7b.c: Likewise.
6898         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
6899         * sysdeps/x86_64/preconfigure.in: Likewise.
6900         * sysdeps/x86_64/preconfigure: Regenerated.
6902 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
6904         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
6905         __ILP32__.
6907 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
6909         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6910         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
6912 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
6914         [BZ #13973]
6915         * locale/iso-639.def: Fix gl language name. Spotted by
6916         Yaron Shahrabani.
6918 2012-04-12  Roland McGrath  <roland@hack.frob.com>
6920         [BZ #2074]
6921         * libio/libio.h (__io_write_fn): Update comment.
6923 2012-04-12  Petr Baudis  <pasky@ucw.cz>
6925         [BZ #2074]
6926         * stdio.texi (Hook Functions): The user provided writer function
6927         is not allowed to return -1.
6929 2012-04-11  David S. Miller  <davem@davemloft.net>
6931         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6933 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
6935         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
6936         Add a leading slash to rtkaio.
6938 2012-04-11  Jim Meyering  <meyering@redhat.com>
6940         [BZ #11959]
6941         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
6942         It is not necessarily an error to ignore fwrite's return
6943         value.  One can reliably use ferror to test for errors after
6944         the fact.
6946 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
6948         * bits/types.h (__snseconds_t): New type.
6949         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
6951         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
6952         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6953         (__SNSECONDS_T_TYPE): Likewise.
6954         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6955         (__SNSECONDS_T_TYPE): Likewise.
6956         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6957         (__SNSECONDS_T_TYPE): Likewise.
6959 2012-04-10  Andreas Jaeger  <aj@suse.de>
6961         [BZ #2636]
6962         * manual/time.texi (Processor Time): Return type of times is
6963         elapsed real time since an arbitrary point in the past.
6964         (CPU Time): Move CLK_TCK from here...
6965         (Processor Time): ...to here.  Correct description.
6966         * manual/conf.texi (Constants for Sysconf): Correct description of
6967         _SC_CLK_TCK.
6969 2012-04-10  David S. Miller  <davem@davemloft.net>
6971         [BZ #13967]
6972         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
6973         where the is a gap between DT_REL(A) and DT_JMPREL.
6975 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
6977         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
6978         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
6979         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
6981 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6983         * elf/dl-support.c (_dl_inhibit_cache): New variable.
6984         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
6985         (dl_main): Handle --inhibit-cache.
6986         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
6987         _dl_inhibit_cache.
6988         * elf/dl-load.c (_dl_map_object): Use it.
6989         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
6991 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
6993         [BZ #13872]
6994         * sysdeps/i386/fpu/e_powl.S (p78): New object.
6995         (__ieee754_powl): Saturate large exponents rather than testing for
6996         overflow of y*log2(x).
6997         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6998         * math/libm-test.inc (pow_test): Do not permit spurious overflow
6999         exceptions.
7001         [BZ #11521]
7002         * math/s_ctan.c: Include <float.h>.
7003         (__ctan): Avoid internal overflow or cancellation in calculating
7004         denominator.
7005         * math/s_ctanf.c: Likewise.
7006         * math/s_ctanl.c: Likewise.
7007         * math/s_ctanh.c: Likewise.
7008         * math/s_ctanhf.c: Likewise.
7009         * math/s_ctanhl.c: Likewise.
7010         * math/libm-test.inc (ctan_test): Add more tests.
7011         (ctanh_test): Likewise.
7012         * sysdeps/i386/fpu/libm-test-ulps: Update.
7013         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7015 2012-04-09  Andreas Jaeger  <aj@suse.de>
7017         [BZ #6894]
7018         * manual/filesys.texi (Directory Entries): Mention that d_namlen
7019         is an optional BSD extension.
7021         [BZ #10254]
7022         * manual/stdio.texi (Opening Streams): Document additional fopen
7023         parameters.
7025 2012-04-09  Roland McGrath  <roland@hack.frob.com>
7027         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
7028         %eax without telling the compiler.
7030 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
7032         [BZ # 13963]
7033         * manual/install.texi: Use sourceware.org.
7035 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7037         [BZ #13873]
7038         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
7039         (__ieee754_pow): Generate overflow and underflow using huge*huge
7040         and tiny*tiny rather than just returning constant infinity or zero
7041         for large exponents.
7042         * math/libm-test.inc (pow_test): Require overflow exceptions for
7043         applicable cases of large exponents.
7045         [BZ #706]
7046         * sysdeps/i386/fpu/e_pow.S (p10): New object.
7047         (__ieee754_pow): Use iterative multiplication algorithm only for
7048         integer exponents with absolute value below 1024.  Check for odd
7049         integer exponents when using algorithm for real exponents.
7050         * math/libm-test.inc (pow_test): Add more tests.
7051         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7053 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
7055         [BZ #13705]
7056         * math/libm-test.inc (exp_test): Do not allow overflow exception
7057         on underflow test.
7059 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
7061         [BZ #13705]
7062         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
7063         instead of __kernel_standard_f.
7065 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
7067         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
7068         * sysdeps/x86_64/memset_chk.S: Likewise.
7070 2012-04-08  Andreas Jaeger  <aj@suse.de>
7072         [BZ #10153]
7073         * manual/startup.texi (Environment Access): Describe return value
7074         for putenv and setenv.
7076         [BZ #6895]
7077         * manual/filesys.texi (Directory Entries): Add description for
7078         DT_LNK.
7080         [BZ #6890]
7081         * manual/filesys.texi (Directory Entries): Clarify that it's file
7082         system not operating system in the description of DT_UNKNOWN.
7084         [BZ #6578]
7085         * manual/syslog.texi (closelog): Fix reference, it's openlog.
7087 2012-04-08  Stephen Compall  <s11@member.fsf.org>
7089         [BZ #6649]
7090         * manual/llio.texi (Opening and Closing Files): Add cross
7091         reference to explain mode argument.
7093 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
7095         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
7096         * sysdeps/x86_64/memset_chk.S: Likewise.
7098 2012-04-07  David S. Miller  <davem@davemloft.net>
7100         * elf/elf.h (R_SPARC_WDISP10): Define.
7101         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
7102         R_SPARC_SIZE32.
7103         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7104         R_SPARC_SIZE64 and R_SPARC_H34.
7106 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
7108         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
7109         conditions and remove no longer applicable assertion.
7111 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7113         * bits/byteswap.h: Include <features.h>.
7114         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7115         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7117 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7119         * bits/byteswap.h (__bswap_16): Removed.
7120         Include <bits/byteswap-16.h> to get __bswap_16.
7121         * sysdeps/i386/bits/byteswap.h: Likewise.
7122         * sysdeps/s390/bits/byteswap.h: Likewise.
7123         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7124         * bits/byteswap-16.h: New file.
7125         * sysdeps/i386/bits/byteswap-16.h: Likewise.
7126         * sysdeps/s390/bits/byteswap-16.h: Likewise.
7127         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
7128         * string/Makefile (headers): Add bits/byteswap-16.h.
7130 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
7132         [BZ #13895]
7133         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
7134         extra indirection.
7135         * nss/Makefile (tests-static, tests): Add tst-nss-static.
7136         * nss/tst-nss-static.c: New.
7138 2012-04-06  Robert Millan  <rmh@gnu.org>
7140         [BZ #6486]
7141         * manual/llio.texi (File Position Primitive): lseek
7142         refers to WHENCE when it really means OFFSET.
7144 2012-04-06  Andreas Jaeger  <aj@suse.de>
7146         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
7147         strncmp declarations.
7149         * abilist/libc.abilist: Add __poll and __ppoll.
7151 2012-04-05  David S. Miller  <davem@davemloft.net>
7153         * scripts/check-local-headers.sh: Accept a host triplet in the
7154         path matched by the exclude regexp.
7156         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
7157         definition.
7158         * sysdeps/powerpc/powerpc32/dl-machine.h
7159         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
7160         * sysdeps/s390/s390-32/dl-machine.h
7161         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7162         * sysdeps/sparc/sparc32/dl-machine.h
7163         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7164         * sysdeps/sparc/sparc64/dl-machine.h
7165         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7167         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
7168         lazy binding.
7169         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
7170         undefined symbol errors.
7172         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
7173         DT_NEEDED entries.
7175 2012-04-05  Michael Matz  <matz@suse.de>
7177         [BZ #13592]
7178         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
7180 2012-04-05  Andreas Jaeger  <aj@suse.de>
7182         [BZ #13908]
7183         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
7184         comment.
7186 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7188         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
7189         which ROUND is no valid rounding mode.
7191 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7193         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
7194         read again.
7195         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
7197 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7199         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
7200         an exception using FPU order intentionally.
7202 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7204         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
7205         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
7206         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
7207         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
7209 2012-04-05  Simon Josefsson  <simon@josefsson.org>
7211         [BZ #12340]
7212         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
7213         EINVAL when BUFLEN is too smal.
7215 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
7217         [BZ #13553]
7218         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
7219         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7221 2012-04-03  Andreas Jaeger  <aj@suse.de>
7223         [BZ #13938]
7224         * manual/setjmp.texi (System V contexts): Fix sentence.
7226         [BZ #13926]
7227         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
7228         New macro for this case.
7229         [!__GNUC__] (__bswap_64): New inline function for this case.
7230         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7231         * bits/byteswap.h: Likewise.
7232         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
7233         ull, guard with __GLIBC_HAVE_LONG_LONG.
7235         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
7236         __GLIBC_HAVE_LONG_LONG.
7238         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
7239         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
7241 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
7243         [BZ #13691]
7244         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
7245         inptr and inend, rather than using last_ch.
7247 2012-04-02  David S. Miller  <davem@davemloft.net>
7249         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
7250         * stdio-common/printf-parse.h (read_int): Change return type to
7251         'int', return -1 on INT_MAX overflow.
7252         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
7253         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
7254         overflows INT_MAX.  Check for overflow of in-format-string precision
7255         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
7256         SIZE_MAX not INT_MAX for integer overflow test.
7257         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
7258         skip the construct in the format string but do not record anything.
7259         * stdio-common/bug22.c: Adjust to test both width/prevision
7260         INT_MAX overflow as well as total length INT_MAX overflow.  Check
7261         explicitly for proper errno values.
7263 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
7265         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
7266         CHAR_MAX.
7267         * string/test-strcmp.c [! WIDE]: Likewise.
7268         * time/tst-mktime2.c: Likewise for INT_MAX.
7269         * string/test-string.h: #include <sys/param.h> for MIN.
7271         * csu/init-first.c (__libc_init_first): Call __ctype_init.
7272         * sysdeps/i386/init-first.c (init): Likewise.
7273         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
7274         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
7275         * sysdeps/sh/init-first.c (init): Likewise.
7277 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
7279         * po/ru.po: Update from translation team.
7280         * po/vi.po: Likewise.
7282 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
7284         * resolv/nss_dns/dns-host.c: Merge copyright years.
7286 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7288         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
7289         Optimize memcpy with prefetch if
7290         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
7291         src, dst pointers have unequal 16 byte alignments.
7293 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
7295         [BZ #13928]
7296         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
7297         from a CNAME entry and return the minimum ttl for the query.
7298         (gaih_getanswer_slice): Likewise.
7300 2012-03-30  Jeff Law  <law@redhat.com>
7302         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
7303         due to long keys.
7304         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7305         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7307         * resolv/nss_dns/dns-host.c: Update copyright year.
7309 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
7311         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
7312         requests to save a system call.  Fix check that all bytes are sent.
7314         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
7315         comments for sendmmsg.
7317 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7319         [BZ #13691]
7320         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
7321         with only 1 character between 0x0041 and 0x01b0.
7322         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
7323         * wcsmbs/tst-mbsnrtowcs.c: New file.
7325 2012-03-29  David S. Miller  <davem@davemloft.net>
7327         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
7328         small copies by hand.
7330 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7332         [BZ #13761]
7333         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
7334         _nss_compat_initgroups_dyn): Fall back to malloc/free
7335         for large group memberships.
7337 2012-03-28  David S. Miller  <davem@davemloft.net>
7339         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
7340         that branches into memcpy.
7341         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
7342         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
7343         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
7344         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
7345         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
7346         bits.
7347         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
7348         implementation too.
7349         * sysdeps/sparc/mempcpy.S: New file.
7351         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
7352         the IFUNC routine in the libc case.
7353         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
7355         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
7356         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
7357         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
7358         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
7359         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
7360         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
7361         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
7362         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
7364         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
7365         loop to 256 bytes instead of 64 bytes and fix test signedness.
7367         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
7368         * sysdeps/sparc/sparc32/Makefile: rather than here...
7369         * sysdeps/sparc/sparc64/Makefile: and here.
7371 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
7373         * malloc/mallocbug.c: Avoid warnings about unused variables.
7375 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
7377         [BZ #13760]
7378         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
7379         in the right place. Discard and retry query if response is
7380         larger than input buffer size.
7382 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
7384         [BZ #369]
7385         [BZ #2678]
7386         [BZ #3866]
7387         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
7388         x for large integer exponent.
7389         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
7390         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
7391         sign of result as needed afterwards.
7392         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7393         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
7394         result for underflowing pow the same as for overflow.
7395         (__kernel_standard_l): Handle powl overflow and underflow here
7396         rather than calling __kernel_standard.
7397         * math/libm-test.inc (pow_test): Add more tests.
7399         [BZ #3868]
7400         [BZ #13879]
7401         [BZ #13910]
7402         [BZ #13911]
7403         [BZ #13912]
7404         [BZ #13913]
7405         [BZ #13915]
7406         [BZ #13916]
7407         [BZ #13917]
7408         [BZ #13918]
7409         [BZ #13919]
7410         [BZ #13920]
7411         [BZ #13921]
7412         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
7413         * sysdeps/ieee754/k_standard.c: Include <float.h>.
7414         (__kernel_standard_l): New function.
7415         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
7416         __kernel_standard.
7417         * math/w_acosl.c (__acosl): Likewise.
7418         * math/w_asinl.c (__asinl): Likewise.
7419         * math/w_atan2l.c (__atan2l): Likewise.
7420         * math/w_atanhl.c (__atanhl): Likewise.
7421         * math/w_coshl.c (__coshl): Likewise.
7422         * math/w_exp10l.c (__exp10l): Likewise.
7423         * math/w_exp2l.c (__exp2l): Likewise.
7424         * math/w_fmodl.c (__fmodl): Likewise.
7425         * math/w_hypotl.c (__hypotl): Likewise.
7426         * math/w_j0l.c (__j0l, __y0l): Likewise.
7427         * math/w_j1l.c (__j1l, __y1l): Likewise.
7428         * math/w_jnl.c (__jnl, __ynl): Likewise.
7429         * math/w_lgammal.c (__lgammal): Likewise.
7430         * math/w_log10l.c (__log10l): Likewise.
7431         * math/w_log2l.c (__log2l): Likewise.
7432         * math/w_logl.c (__logl): Likewise.
7433         * math/w_powl.c (__powl): Likewise.
7434         * math/w_remainderl.c (__remainderl): Likewise.
7435         * math/w_scalbl.c (sysv_scalbl): Likewise.
7436         * math/w_sinhl.c (__sinhl): Likewise.
7437         * math/w_sqrtl.c (__sqrtl): Likewise.
7438         * math/w_tgammal.c (__tgammal): Likewise.
7439         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
7440         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
7441         * math/libm-test.inc (acos_test): Add more tests.
7442         (acosh_test): Likewise.
7443         (asin_test): Likewise.
7444         (atanh_test): Likewise.
7445         (exp_test): Likewise.
7446         (exp10_test): Likewise.
7447         (exp2_test): Likewise.
7448         (expm1_test): Likewise.
7449         (lgamma_test): Likewise.
7450         (log_test): Likewise.
7451         (log10_test): Likewise.
7452         (log1p_test): Likewise.
7453         (log2_test): Likewise.
7454         (pow_test): Do not allow some spurious overflow exceptions.
7455         (sqrt_test): Add more tests.
7456         (tgamma_test): Likewise.
7457         (y0_test): Likewise.
7458         (y1_test): Likewise.
7459         (yn_test): Likewise.
7461 2012-03-27  Anton Blanchard  <anton@samba.org>
7463         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
7464         MAP_HUGETLB.
7465         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7466         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7467         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
7469 2012-03-27  David S. Miller  <davem@davemloft.net>
7471         * conform/Makefile: Run run-conformtest.sh using $(BASH).
7473         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
7474         have-as-vis3 check.
7476 2012-03-27  Andreas Jaeger  <aj@suse.de>
7478         * sysdeps/x86_64/elf/configure.in: Moved to ...
7479         * sysdeps/x86_64/configure.in: ... here.
7480         * sysdeps/x86_64/elf/start.S: Moved to ...
7481         * sysdeps/x86_64/start.S: ... here.
7482         * sysdeps/x86_64/elf/configure: Delete.
7484         * sysdeps/x86_64/configure.in: Merge contents from
7485         sysdeps/i386/configure.in (without i686 check).
7487         * sysdeps/i386/elf/Versions: Merge into ...
7488         * sysdeps/i386/Versions: ... this.
7489         * sysdeps/i386/elf/Versions: Delete file.
7490         * sysdeps/i386/elf/start.S: Moved to ...
7491         * sysdeps/i386/start.S: ...here.
7492         * sysdeps/i386/elf/configure.in: Merge into...
7493         * sysdeps/i386/configure.in: ...here.
7494         * sysdeps/i386/elf/configure.in: Delete file.
7495         * sysdeps/i386/elf/configure: Delete file.
7497         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
7498         * debug/backtracesyms.c: ... here.
7499         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
7500         * debug/backtracesymsfd.c: ... here.
7501         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
7502         * sysdeps/generic/ifunc-sel.h: ... here.
7504         * sysdeps/unix/i386/start.c: Delete file.
7505         * sysdeps/unix/sparc/start.c: Delete file.
7506         * sysdeps/unix/start.c: Delete file.
7508         * sysdeps/sh/elf/configure.in: Moved to ...
7509         * sysdeps/sh/configure.in: ... here.
7510         * sysdeps/sh/elf/start.S: Moved to ...
7511         * sysdeps/sh/start.S: ... here.
7512         * sysdeps/sh/elf/configure: Delete file.
7514         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
7515         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
7516         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
7517         * sysdeps/powerpc/powerpc64/entry.h: ... here.
7518         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
7519         * sysdeps/powerpc/powerpc64/start.S: here.
7520         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
7521         * sysdeps/powerpc/powerpc64/Makefile: ... this.
7522         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
7523         * sysdeps/powerpc/powerpc64/configure.in: ... this.
7524         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
7526         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
7527         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
7528         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
7529         * sysdeps/powerpc/powerpc32/start.S: ... here.
7530         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
7531         * sysdeps/powerpc/powerpc32/configure.in: ... this.
7532         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
7534         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
7535         * sysdeps/powerpc/ifunc-sel.h: ... here.
7536         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
7537         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
7539         * sysdeps/sparc/elf/configure.in: Moved to ...
7540         * sysdeps/sparc/configure.in: ... here.
7541         * sysdeps/sparc/elf/configure: Delete file.
7542         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
7543         * sysdeps/sparc/sparc32/start.S: ... here.
7544         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
7545         * sysdeps/sparc/sparc64/start.S: ... here.
7546         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
7547         * sysdeps/sparc/sparc32/Makefile: ... this.
7548         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
7549         * sysdeps/sparc/sparc64/Makefile: ... this.
7551         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
7552         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
7553         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
7554         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
7555         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
7556         * sysdeps/s390/s390-32/setjmp.S: ... here.
7557         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
7558         * sysdeps/s390/s390-32/configure.in: ... here.
7559         * sysdeps/s390/s390-32/elf/configure: Delete file.
7560         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
7561         * sysdeps/s390/s390-32/start.S: ... here.
7563         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
7564         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
7565         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
7566         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
7567         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
7568         * sysdeps/s390/s390-64/setjmp.S: ... here.
7569         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
7570         * sysdeps/s390/s390-64/configure.in: ... here
7571         * sysdeps/s390/s390-64/elf/configure: Delete file.
7572         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
7573         * sysdeps/s390/s390-64/start.S: ... here.
7574         * sysdeps/s390/s390-64/elf/configure: Delete.
7576         * configure.in: Remove support for elf directories in sysdeps.
7578         * configure: Regenerated.
7579         * sysdeps/i386/configure: Regenerated.
7580         * sysdeps/powerpc/powerpc32/configure: Regenerated.
7581         * sysdeps/powerpc/powerpc64/configure: Regenerated.
7582         * sysdeps/s390/s390-32/configure: Regenerated.
7583         * sysdeps/s390/s390-64/configure: Regenerated.
7584         * sysdeps/sh/configure: Regenerated.
7585         * sysdeps/sparc/configure: Regenerated.
7586         * sysdeps/x86_64/configure: Regenerated.
7588 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
7590         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7592         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
7593         denormal result into account.
7595 2012-03-25  Roland McGrath  <roland@hack.frob.com>
7597         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
7598         Reported by Allan McRae <allan@archlinux.org>.
7600 2012-03-23  Jeff Law  <law@redhat.com>
7602         * nss/getnssent.c (__nss_getent): Fix typo.
7604 2012-03-23  David S. Miller  <davem@davemloft.net>
7606         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7608 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
7610         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
7611         to pad to uint64_t for each field.
7612         (dl_tls_index): Replace unsigned long with uint64_t.
7614 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
7615         Paul Pluzhnikov  <ppluzhnikov@google.com>
7617         [BZ #6528]
7618         * grp/Makefile (otherlibs): Don't set it.
7619         * inet/Makefile (otherlibs): Likewise.
7620         * login/Makefile (otherlibs): Likewise.
7621         * nscd/Makefile (otherlibs): Likewise.
7622         * posix/Makefile (otherlibs): Likewise.
7623         * pwd/Makefile (otherlibs): Likewise.
7624         * rt/Makefile (otherlibs): Likewise.
7625         * sunrpc/Makefile (otherlibs): Likewise.
7626         * nss/Makefile (otherlibs): Likewise.
7627         Add libnss_files to routines and static-only-routines.
7628         ($(objpfx)getent): Remove rule.
7629         * resolv/Makefile: Add libnss_dns and libresolv to routines and
7630         static-only-routines.
7632 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
7634         [BZ #13892]
7635         * math/s_cexp.c: Include <float.h>.
7636         (__cexp): Handle exp result overflowing not necessarily
7637         overflowing both real and imaginary parts of result.
7638         * math/s_cexpf.c: Likewise.
7639         * math/s_cexpl.c: Likewise.
7640         * math/libm-test.inc (cexp_test): Add more tests.
7641         * sysdeps/i386/fpu/libm-test-ulps: Update.
7642         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7644 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7646         * include/link.h (ELFW): New macro.
7647         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
7648         Replace ELF64_R_TYPE with ELFW(R_TYPE).
7650 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7652         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
7653         with uint64_t.
7655 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7657         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
7658         declaration.
7659         (struct La_x32_retval): Likewise.
7661 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7663         * sysdeps/x86_64/preconfigure.in: New file.
7664         * sysdeps/x86_64/preconfigure: New generated file.
7666 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
7668         [BZ #13824]
7669         * math/e_exp2l.c: Include <float.h>.
7670         (__ieee754_exp2l): Handle overflow and underflow cases
7671         separately.  Only pass fractional part of argument to
7672         __ieee754_expl.
7673         * math/libm-test.inc (exp2_test): Add more tests.
7675         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
7676         negating x to take absolute value.
7677         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
7678         Likewise.
7679         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
7680         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
7681         Likewise.
7682         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
7683         computing low part if x was negated.
7684         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
7686 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7688         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
7689         la_x32_gnu_pltexit.
7690         (pltexit): Cast int_retval to ptrdiff_t.
7691         * elf/tst-auditmod3b.c: Likewise.
7692         * elf/tst-auditmod4b.c: Likewise.
7693         * elf/tst-auditmod5b.c: Likewise.
7694         * elf/tst-auditmod6b.c: Likewise.
7695         * elf/tst-auditmod6c.c: Likewise.
7696         * elf/tst-auditmod7b.c: Likewise.
7698         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
7699         and x32_gnu_pltexit.
7701         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
7702         __ELF_NATIVE_CLASS.
7703         (La_x32_regs): New macro.
7704         (La_x32_retval): Likewise.
7705         (la_x32_gnu_pltenter): New function prototype.
7706         (la_x32_gnu_pltexit): Likewise.
7708 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
7710         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
7711         exponent.
7713         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7715         * configure.in (libc_cv_cc_nofma): Check for option to disable
7716         generation of FMA instructions.
7717         * configure: Regenerate.
7718         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
7719         * sysdeps/ieee754/dbl-64/Makefile: New file.
7720         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7721         Remove brandred-fma4.
7722         (CFLAGS-brandred-fma4.c): Remove.
7723         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
7724         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
7725         define.
7726         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
7727         define.
7729 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7731         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7732         LLONG_MAX != LONG_MAX.
7733         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7734         (_fitoa_word): Likewise.
7735         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
7736         LLONG_MAX != LONG_MAX.
7737         * stdio-common/_itowa.h: Include <_itoa.h>.
7738         (_itowa_word): Use _ITOA_WORD_TYPE on value.
7739         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
7740         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
7741         only if not defined.
7742         (_ITOA_WORD_TYPE): Likewise.
7743         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7744         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
7746 2012-03-21  David S. Miller  <davem@davemloft.net>
7748         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7750 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7752         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
7753         of x86_64 when setting libc_cv_slibdir, libdir and
7754         libc_cv_localedir.
7755         * sysdeps/unix/sysv/linux/configure: Regenerated.
7757 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
7759         * manual/lang.texi (Old Varargs): Remove section.
7760         (How Variadic): Update menu.
7761         (va_start): Do not mention varargs.h.
7763 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7764             Joseph Myers  <joseph@codesourcery.com>
7766         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
7767         link test.
7768         * configure: Regenerated.
7770 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7772         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
7773         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
7774         conformtest.pl
7776 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
7778         * NOTES: Remove.
7779         * Makefile (files-for-dist): Remove NOTES.
7780         (NOTES): Remove rule.
7781         * README: Don't refer to NOTES.
7782         * manual/creature.texi: Don't include macros.texi.
7783         * manual/intro.texi (creature.texi): Remove comment referring to
7784         NOTES.
7786         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
7787         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
7788         * configure: Regenerated.
7789         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
7790         LIBC_TRY_CC_OPTION.
7791         (libc_cv_as_i686): Likewise.
7792         (libc_cv_cc_avx): Likewise.
7793         (libc_cv_cc_sse2avx): Likewise.
7794         (libc_cv_cc_fma4): Likewise.
7795         (libc_cv_cc_novzeroupper): Likewise.
7796         * sysdeps/i386/configure: Regenerated.
7798         [BZ #13883]
7799         * sysdeps/i386/fpu/s_cexp.S: Remove.
7800         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
7801         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
7802         * math/libm-test.inc (cexp_test): Add more tests.
7803         * sysdeps/i386/fpu/libm-test-ulps: Update.
7804         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7806 2012-03-21  Allan McRae  <allan@archlinux.org>
7808         * timezone/Makefile: Do not install iso3166.tab and zone.tab
7810 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
7812         [BZ #13871]
7813         * math/w_exp2.c: Do not include <float.h>.
7814         (o_threshold, u_threshold): Remove.
7815         (__exp2): Calculate result before checking finiteness and calling
7816         __kernel_standard.
7817         * math/w_exp2f.c: Likewise.
7818         * math/w_exp2l.c: Likewise.
7819         * math/libm-test.inc (exp2_test): Require overflow exception for
7820         1e6 input.
7822         [BZ #3866]
7823         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
7824         range of signed 64-bit integers before using fistpll.  Remove
7825         checks for whether integers fit in mantissa bits.
7826         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
7827         the range of signed 32-bit integers before using fistpl.  Remove
7828         checks for whether integers fit in mantissa bits.
7829         * sysdeps/i386/fpu/e_powl.S (p64): New object.
7830         (__ieee754_powl): Test for y outside the range of signed 64-bit
7831         integers before using fistpll.  Reduce 64-bit values to 63-bit
7832         ones as needed.
7833         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
7834         divide-by-zero is raised for zero to large negative powers.
7835         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
7836         (__ieee754_powl): Test for y outside the range of signed 64-bit
7837         integers before using fistpll.  Reduce 64-bit values to 63-bit
7838         ones as needed.
7839         * math/libm-test.inc (pow_test): Add more tests.
7841 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
7843         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
7844         <stdio-common/_itoa.h>.
7845         * debug/segfault.c: Likewise.
7846         * elf/dl-cache.c: Likewise.
7847         * elf/dl-minimal.c: Likewise.
7848         * elf/dl-misc.c: Likewise.
7849         * elf/dl-sysdep.c: Likewise.
7850         * elf/dl-version.c: Likewise.
7851         * elf/rtld.c: Likewise.
7852         * hurd/hurdsock.c: Likewise.
7853         * hurd/lookup-retry.c: Likewise.
7854         * malloc/malloc.c: Likewise.
7855         * malloc/mtrace.c: Likewise.
7856         * nscd/nscd_getgr_r.c: Likewise.
7857         * nscd/nscd_getpw_r.c: Likewise.
7858         * nscd/nscd_getserv_r.c: Likewise.
7859         * posix/getopt_init.c: Likewise.
7860         * posix/wordexp.c: Likewise.
7861         * stdio-common/_itoa.c: Likewise.
7862         * stdio-common/printf_fphex.c: Likewise.
7863         * stdio-common/vfprintf.c: Likewise.
7864         * string/_strerror.c: Likewise.
7865         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
7866         * sysdeps/i386/i686/hp-timing.h: Likewise.
7867         * sysdeps/mach/_strerror.c: Likewise.
7868         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
7869         * sysdeps/mach/hurd/sethostid.c: Likewise.
7870         * sysdeps/mach/hurd/xmknodat.c: Likewise.
7871         * sysdeps/mach/xpg-strerror.c: Likewise.
7872         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
7873         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
7874         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
7875         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
7876         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
7877         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
7878         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
7879         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
7880         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
7881         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
7882         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
7883         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
7884         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
7885         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
7886         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
7887         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
7888         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
7889         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
7890         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7891         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7892         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
7894         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
7896         * stdio-common/_itoa.h: Moved to ...
7897         * sysdeps/generic/_itoa.h: Here.
7899         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
7901         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
7902         instead of "_itoa.h" and "_itowa.h".
7903         * stdio-common/vfprintf.: Likewise.
7905 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
7907         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
7908         <bits/wordsize.h>.
7909         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
7910         (__signbit): Likwise.
7911         (llrintf): Likwise.
7912         (llrint): Likwise.
7914 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
7916         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
7917         __WORDSIZE != 64.
7919 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
7921         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
7922         OVERFLOW_EXCEPTION_OK.
7923         * math/libm-test.inc ("Philosophy"): Update comment about
7924         exception testing.
7925         (OVERFLOW_EXCEPTION): Define.
7926         (OVERFLOW_EXCEPTION_OK): Likewise.
7927         (INVALID_EXCEPTION_OK): Renumber.
7928         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7929         (IGNORE_ZERO_INF_SIGN): Likewise.
7930         (test_exceptions): Handle FE_OVERFLOW.
7931         (exp10_test): Expect overflow exceptions.
7932         (exp2_test): Likewise.
7933         (expm1_test): Likewise.
7934         (nextafter_test): Likewise.
7935         (pow_test): Likewise.
7936         (scalbn_test): Likewise.
7937         (scalbln_test): Likewise.
7939 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7941         * sysdeps/x86_64/bits/atomic.h
7942         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
7943         64bit integer.
7944         (atomic_exchange_acq): Likewise.
7945         (__arch_exchange_and_add_body): Likewise.
7946         (__arch_add_body): Likewise.
7947         (atomic_add_negative): Likewise.
7948         (atomic_add_zero): Likewise.
7950 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7952         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
7953         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
7955 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7957         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
7958         Check __x86_64__ instead of __WORDSIZE.
7960 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7962         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
7964 2012-03-19  David S. Miller  <davem@davemloft.net>
7966         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7968         * sysdeps/sparc/fpu/fenv_private.h: New file.
7969         * sysdeps/sparc/fpu/math_private.h: Use it.
7970         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
7971         Remove.
7972         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
7973         (libc_feholdexcept_setroundl): Remove.
7974         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
7975         Remove.
7976         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
7977         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
7979 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7981         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
7982         int64_t instead of long int.
7983         (INSERT_WORDS64): Likwise.
7985 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
7987         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
7988         _Unwind_GetCFA return to _Unwind_Ptr first.
7990 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
7992         [BZ #13629]
7993         * math/s_clog.c: Include <float.h>.
7994         (__clog): Scale large or subnormal inputs.
7995         * math/s_clogf.c: Likewise.
7996         * math/s_clogl.c: Likewise.
7997         * math/s_clog10.c: Include <float.h>.
7998         (M_LOG10_2): Define.
7999         (__clog10): Scale large or subnormal inputs.
8000         * math/s_clog10f.c: Likewise.
8001         * math/s_clog10l.c: Likewise.
8002         * math/libm-test.inc (clog_test): Add more tests.
8003         (clog10_test): Likewise.
8004         * sysdeps/i386/fpu/libm-test-ulps: Update.
8005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8007         [BZ #11451]
8008         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
8009         x and y.
8010         * math/libm-test.inc (atan2_test): Add another test.
8012         * Makerules (common-objdir-compile): Remove.
8013         * sysdeps/unix/Makefile (config-generated): Do not add
8014         $(unix-generated) to variable.
8015         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
8016         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
8017         Remove rule.
8018         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
8019         Likewise.
8020         [generic bits/local_lim.h] (before-compile): Do not append to
8021         variable.
8022         [generic bits/local_lim.h] (common-generated): Likewise.
8023         [generic sys/param.h] (before-compile): Do not append to variable.
8024         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
8025         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
8026         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
8027         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
8028         include.
8029         [generic sys/param.h] (sys/param.h-includes): Remove variable.
8030         [generic sys/param.h] (sys/param.h-includes): Remove rule.
8031         [generic sys/param.h] ($(addprefix
8032         $(common-objpfx),$(sys/param.h-includes))): Likewise.
8033         [generic sys/param.h] (common-generated): Do not append to
8034         variable.
8035         [generic sys/param.h] (sysdep_headers): Likewise.
8036         [generic bits/errno.h] (before-compile): Do not append to
8037         variable.
8038         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
8039         rule.
8040         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
8041         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
8042         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
8043         [generic bits/errno.h] (common-generated): Do not append to
8044         variable.
8045         [generic bits/ioctls.h] (before-compile): Do not append to
8046         variable.
8047         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
8048         rule.
8049         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
8050         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
8051         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
8052         rule.
8053         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
8054         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
8055         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
8056         [generic bits/ioctls.h] (common-generated): Do not append to
8057         variable.
8058         [generic sys/syscall.h] (syscall.h): Remove variable.
8059         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
8060         rule.
8061         [generic sys/syscall.h] (before-compile): Do not append to
8062         variable.
8063         [generic sys/syscall.h] (common-generated): Likewise.
8064         * sysdeps/unix/errnos-tmpl.c: Remove file.
8065         * sysdeps/unix/errnos.awk: Likewise.
8066         * sysdeps/unix/ioctls-tmpl.c: Likewise.
8067         * sysdeps/unix/ioctls.awk: Likewise.
8068         * sysdeps/unix/mk-local_lim.c: Likewise.
8069         * sysdeps/unix/snarf-ioctls: Likewise.
8071 2012-03-19  Richard Henderson  <rth@twiddle.net>
8073         * sysdeps/i386/fpu/fenv_private.h: New file.
8074         * sysdeps/i386/fpu/math_private.h: Use it.
8075         (math_opt_barrier, math_force_eval): Remove.
8076         (libc_feholdexcept_setround_53bit): Remove.
8077         (libc_feupdateenv_53bit): Remove.
8078         * sysdeps/x86_64/fpu/math_private.h: Likewise.
8079         (math_opt_barrier, math_force_eval): Remove.
8080         (libc_feholdexcept): Remove.
8081         (libc_feholdexcept_setround): Remove.
8082         (libc_fetestexcept, libc_fesetenv): Remove.
8083         (libc_feupdateenv_test): Remove.
8084         (libc_feupdateenv, libc_feholdsetround): Remove.
8085         (libc_feresetround): Remove.
8087         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
8088         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
8090         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
8091         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
8092         (libc_feupdateenv_testl): New.
8093         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
8094         (libc_feupdateenv_testf): New.
8095         (libc_feupdateenv): Use libc_feupdateenv_test.
8096         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
8097         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
8099         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
8100         (libc_feholdsetroundf, libc_feholdsetroundl): New.
8101         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
8102         (libc_feresetround_noex): New.
8103         (libc_feresetround_noexf): New.
8104         (libc_feresetround_noexl): New.
8105         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
8106         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
8107         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
8108         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
8109         SET_RESTORE_ROUND.
8110         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
8111         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
8112         (__cos): Likewise.
8113         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
8114         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
8115         SET_RESTORE_ROUND_NOEX.
8116         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
8117         SET_RESTORE_ROUND_NOEXF.
8118         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
8119         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
8120         (libc_feholdsetroundf): New.
8121         (libc_feresetround, libc_feresetroundf): New.
8123         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
8124         (libc_feholdexcept_setround_53bit): Convert from macro to function.
8125         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
8127         * sysdeps/generic/math_private.h: Include <fenv.h>.
8128         (default_libc_feholdexcept): New.
8129         (default_libc_feholdexcept_setround): New.
8130         (default_libc_fesetenv, default_libc_feupdateenv): New.
8131         (libc_feholdexcept): Only define if undefined.
8132         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
8133         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
8134         (libc_feholdexcept_setroundl): Likewise.
8135         (libc_feholdexcept_setround_53bit): Likewise.
8136         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
8137         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
8138         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
8139         (libc_feupdateenv_53bit): Likewise.
8140         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
8141         (libc_feholdexcept): Convert from macro to inline function.
8142         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
8143         (libc_fesetenv, libc_feupdateenv): Likewise.
8145         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
8146         not previously defined.
8147         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
8148         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
8149         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
8150         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
8151         * sysdeps/ieee754/flt-32/math_private.h: New file.
8152         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
8153         math_private.h below SET_FLOAT_WORD.
8154         (__isnan, __isinf_ns, __finite): Remove.
8155         (__isnanf, __isinf_nsf, __finitef): Remove.
8157 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
8159         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8161 2012-03-17  David S. Miller  <davem@davemloft.net>
8163         [BZ #6471]
8164         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
8165         for 2.16.
8167 2012-03-16  David S. Miller  <davem@davemloft.net>
8169         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
8170         warnings.
8172         [BZ #6471]
8173         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
8174         properly.
8175         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
8176         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
8177         sysdep_routines when subdir is sysvipc.
8178         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
8179         __getshmlba helper.
8181         * sysdeps/sparc/fpu/libm-test/ulps: Update.
8183 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8185         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
8186         [__LP64__].
8188 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8190         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
8191         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
8192         (__lround): Renamed to ...
8193         (__llround): This.  Replace long int with long long int.
8194         Define lround functions as aliases of llround functions.
8195         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
8197 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8199         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
8200         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
8201         adresses to uintptr_t.  Replace "long int" and "unsigned long
8202         int" with "greg_t" on va_arg.
8204 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8206         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
8207         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
8209         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
8210         Move e_machine check before EI_CLASS check.  Handle x32
8211         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
8212         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
8213         SKIP_EM_IA_64 and include
8214         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
8216         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
8217         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
8218         (add_system_dir): New macro.
8220         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
8221         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
8223 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
8225         [BZ #2551]
8226         [BZ #2552]
8227         [BZ #2553]
8228         [BZ #2554]
8229         [BZ #2562]
8230         [BZ #2563]
8231         [BZ #2565]
8232         [BZ #2566]
8233         [BZ #2576]
8234         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
8235         (y0): Likewise.
8236         * math/w_j0f.c (j0f): Likewise.
8237         (y0f): Likewise.
8238         * math/w_j0l.c (__j0l): Likewise.
8239         (__y0l): Likewise.
8240         * math/w_j1.c (j1): Likewise.
8241         (y1): Likewise.
8242         * math/w_j1f.c (j1f): Likewise.
8243         (y1f): Likewise.
8244         * math/w_j1l.c (__j1l): Likewise.
8245         (__y1l): Likewise.
8246         * math/w_jn.c (jn): Likewise.
8247         (yn): Likewise.
8248         * math/w_jnf.c (jnf): Likewise.
8249         (ynf): Likewise.
8250         * math/w_jnl.c (__jnl): Likewise.
8251         (__ynl): Likewise.
8252         * math/libm-test.inc (j0_test): Add more tests.
8253         (j1_test): Likewise.
8254         (jn_test): Likewise.  Add trailing semicolon to existing test.
8255         (y0_test): Likewise.
8256         (y1_test): Likewise.
8257         * sysdeps/i386/fpu/libm-test-ulps: Update.
8258         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8260         [BZ #13851]
8261         [BZ #13854]
8262         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
8263         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
8264         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
8265         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
8266         (__tanl): Set errno for infinite argument.
8267         * sysdeps/i386/fpu/mptan.c: Remove.
8268         * sysdeps/i386/fpu/s_tan.S: Likewise.
8269         * sysdeps/i386/fpu/s_tanl.S: Likewise.
8270         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
8271         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
8272         * math/libm-test.inc (tan_test): Add more tests and enable more
8273         tests for double and long double.
8274         * sysdeps/i386/fpu/libm-test-ulps: Update.
8275         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8277 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8279         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
8280         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
8282 2012-03-16  Roland McGrath  <roland@hack.frob.com>
8284         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
8285         * configure.in: Use it for both main tree and add-ons.
8286         * configure: Regenerated.
8288 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8290         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
8292 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
8294         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
8295         in comment.
8297         [BZ #13851]
8298         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
8299         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
8300         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
8301         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
8302         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
8303         infinite argument.
8304         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
8305         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
8306         != 0 for prec == 2.
8307         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
8308         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
8309         * sysdeps/i386/fpu/s_cosl.S: Likewise.
8310         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
8311         * sysdeps/i386/fpu/s_sinl.S: Likewise.
8312         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
8313         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
8314         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
8315         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
8316         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
8317         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
8318         * math/libm-test.inc (cos_test): Add more tests and enable more
8319         tests for long double.
8320         (sin_test): Likewise.
8321         (sincos_test): Likewise.
8322         * sysdeps/i386/fpu/libm-test-ulps: Update.
8323         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8325 2012-03-16  David S. Miller  <davem@davemloft.net>
8327         * sysdeps/sparc/fpu/math_private.h: New file.
8329 2012-03-15  David S. Miller  <davem@davemloft.net>
8331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
8332         file.
8333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
8334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
8335         file.
8336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
8337         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
8338         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
8339         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
8340         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
8341         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
8342         sysdep routines.
8343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
8345         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
8346         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
8348         * sysdeps/sparc/sparc-ifunc.h: New file.
8349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
8350         sparc-ifunc.h
8351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
8352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
8353         Likewise.
8354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
8355         Likewise.
8356         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
8357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
8358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
8360         Likewise.
8361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
8363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
8365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
8366         Likewise.
8367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
8368         Likewise.
8369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
8371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
8372         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
8373         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
8374         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
8375         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
8376         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
8377         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
8378         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
8379         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
8380         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
8381         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
8382         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
8383         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
8384         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
8385         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
8386         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
8387         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
8388         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
8389         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
8390         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
8391         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
8392         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
8394 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
8396         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
8397         scaling.
8398         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8400 2012-03-15  Andreas Jaeger  <aj@suse.de>
8402         [BZ #13852]
8403         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
8404         ieee754/flt-32 implementation for sin, cos and sincos.
8405         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
8406         * sysdeps/i386/fpu/s_cosf.S: Likewise.
8407         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
8408         * sysdeps/i386/fpu/s_sinf.S: Likewise.
8409         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
8410         ieee754/flt-32 implementation for tan.
8412         * math/libm-test.inc (cos_test): Enable some large input tests for
8413         float as well
8414         (sin_test): Likewise.
8415         (sincos_test): Likewise.
8416         (tan_test): Add tests for large input.
8418         * sysdeps/i386/fpu/libm-test-ulps: Update.
8420 2012-03-15  Andreas Jaeger  <aj@suse.de>
8422         [BZ #13658]
8423         * math/libm-test.inc (cos_test): Add more test cases.
8424         (sin_test): Likewise.
8425         (sincos_test): Likewise.
8427 2012-03-15  Andreas Jaeger  <aj@suse.de>
8429         [BZ #13837]
8430         * math/libm-test.inc (cos_test): Add a test case for large input
8431         value.
8432         (sin_test): Likewise.
8433         (sincos_test): Likewise.
8435 2012-03-15  Andreas Jaeger  <aj@suse.de>,
8436         Joseph Myers  <joseph@codesourcery.com>
8438         [BZ #13658]
8439         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
8440         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
8441         * sysdeps/i386/fpu/branred.c: Likewise.
8442         * sysdeps/i386/fpu/dosincos.c: Likewise.
8443         * sysdeps/i386/fpu/mpa.c: Likewise.
8444         * sysdeps/i386/fpu/s_cos.S: Likewise.
8445         * sysdeps/i386/fpu/s_sin.S: Likewise.
8446         * sysdeps/i386/fpu/s_sincos.S: Likewise.
8447         * sysdeps/i386/fpu/sincos32.c: Likewise.
8449         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
8450         Define.
8451         (libc_feupdateenv_53bit): Define.
8452         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
8453         Define.
8454         (libc_feupdateenv_53bit): Define.
8456         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
8457         53 bit (without extend i386 double precision).
8459         * math/libm-test.inc (sincos_test): Add tests for large input.
8460         (sin): Likewise.
8461         (cos): Likewise.
8463         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
8465 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
8467         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8469 2012-03-15  David S. Miller  <davem@davemloft.net>
8471         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
8472         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
8473         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
8474         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
8475         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
8476         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
8477         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
8478         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
8479         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
8480         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
8481         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
8482         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
8483         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
8484         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
8485         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
8486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
8487         file.
8488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
8489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
8490         file.
8491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
8492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
8493         file.
8494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
8495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
8496         file.
8497         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
8498         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
8499         fmin/fmax sysdep routines.
8500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
8502 2012-03-14  David S. Miller  <davem@davemloft.net>
8504         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
8505         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
8506         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
8507         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
8508         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
8509         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
8510         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
8511         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
8512         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
8513         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
8514         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
8515         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
8516         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
8517         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
8518         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
8519         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
8520         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
8521         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
8522         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
8523         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
8524         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
8525         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
8526         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
8527         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
8528         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
8529         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
8530         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
8531         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
8532         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
8533         routines.
8534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
8535         file.
8536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
8537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
8538         file.
8539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
8540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
8541         file.
8542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
8543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
8544         file.
8545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
8546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
8547         file.
8548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
8549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
8550         file.
8551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
8552         file.
8553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
8554         file.
8555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
8556         file.
8557         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
8558         New file.
8559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
8560         file.
8561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
8562         file.
8563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
8564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
8565         file.
8566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
8567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
8568         file.
8569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
8570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
8571         file.
8572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
8573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
8574         VIS3 routines.
8576         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
8577         New file.
8579         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8581         * sysdeps/sparc/configure.in: New file.
8582         * sysdeps/sparc/configure: Generate.
8583         * configure.in (libc_cv_sparc_as_vis3): Substitute.
8584         * configure: Regenerate.
8585         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
8586         * config.make.in (have-as-vis3): New.
8587         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
8588         available use -Av9d instead of -Av9a.
8589         * sysdeps/sparc/sparc64/Makefile: Likewise.
8590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
8591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
8592         New file.
8593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
8594         file.
8595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
8596         New file.
8597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
8598         file.
8599         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
8600         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
8601         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
8602         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
8603         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
8605         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
8606         fzeros/fnegs to load 0x80000000 into a float register instead of
8607         using the stack.
8608         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
8610 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
8612         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8613         bits/syscall.h.
8614         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
8615         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
8616         ($(inst_includedir)/bits/syscall.h): Remove rule.
8617         ($(objpfx)bits/syscall.d): Include instead of
8618         $(objpfx)syscall-list.d.
8619         (generated): Change syscall-list.h and syscall-list.d to
8620         bits/syscall.h and bits/syscall.d.
8622 2012-03-14  Roland McGrath  <roland@hack.frob.com>
8624         [BZ #13846]
8625         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
8627 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
8629         [BZ #13841]
8630         * math/s_csqrt.c: Include <float.h>.
8631         (__csqrt): Scale large or subnormal inputs.
8632         * math/s_csqrtf.c: Likewise.
8633         * math/s_csqrtl.c: Likewise.
8634         * math/libm-test.inc (csqrt_test): Add more tests.
8635         * sysdeps/i386/fpu/libm-test-ulps: Update.
8636         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8638         [BZ #13840]
8639         * math/libm-test.inc (hypot_test): Add more tests.
8641 2012-03-13  David S. Miller  <davem@davemloft.net>
8643         [BZ #13840]
8644         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
8645         double-precision for the calculation instead of scaling.
8647 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
8649         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
8650         manipulate bits before adding and subtracting TWO52[sx].
8651         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
8652         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8653         Likewise.
8654         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
8656 2012-03-13  David S. Miller  <davem@davemloft.net>
8658         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
8659         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
8660         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
8661         rtld-global-offsets.h
8662         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8664         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
8665         large parameters.
8667         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
8669         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
8670         'err' in the ifdef scope in which it is actually used.
8672         * nss/nss_db/db-init.c: Include string.h
8674 2012-03-12  David S. Miller  <davem@davemloft.net>
8676         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
8677         masking out of the most significant byte of random value used.
8678         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8679         Fix coding style in previous change.
8681         * sysdeps/unix/sysv/linux/kernel-features.h
8682         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
8683         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
8684         expression.
8685         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
8686         later.
8688 2012-03-11  David S. Miller  <davem@davemloft.net>
8690         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
8691         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
8692         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
8693         for 'resultvar' otherwise things get truncated on 64-bit.
8695         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8696         Fix masking out of the most significant byte of random value used.
8698         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8700 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
8702         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8704 2012-03-09  David S. Miller  <davem@davemloft.net>
8706         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
8707         variables with appropriate CPP guards.
8708         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
8709         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
8710         on resulting framesize and the management of the outregs buffer for pltexit.
8711         Preserve floating point return values across _dl_call_pltexit call.
8712         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
8713         framesize and the management of the outregs buffer for pltexit.
8714         Preserve floating point return values across _dl_call_pltexit
8715         call.
8716         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
8717         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
8718         (print_exit): Fix format string for return register value.
8720 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
8722         * sunrpc/Makefile (others): Add rpcgen.
8723         ($(objpfx)rpcgen): Remove special build rule and dependency on
8724         libc.
8725         * sunrpc/rpcgen.c: New file.
8727 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
8729         [BZ #13673]
8730         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
8731         * stdio-common/bug-vfprintf-nargs.c: Likewise.
8732         * sysdeps/i386/crti.S: Likewise.
8733         * sysdeps/i386/crtn.S: Likewise.
8734         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
8735         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
8736         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
8737         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
8738         * sysdeps/sh/crti.S: Likewise.
8739         * sysdeps/sh/crtn.S: Likewise.
8740         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
8742         [BZ #13673]
8743         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
8744         with URL.
8745         * locale/programs/locfile-kw.gperf: Likewise.
8746         * locale/programs/charmap-kw.h: Regenerated.
8747         * locale/programs/locfile-kw.h: Likewise.
8749         [BZ #13673]
8750         * intl/plural.y: Replace FSF snail mail address with URL.
8751         * intl/plural.c: Regenerated.
8753 2012-03-09  Richard Henderson  <rth@twiddle.net>
8755         * include/math_private.h: Remove file.
8756         * math/math_private.h: Move file ...
8757         * sysdeps/generic/math_private.h: ... here.
8759         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
8760         * sysdeps/powerpc/fpu/math_private.h: Likewise.
8761         * sysdeps/x86_64/fpu/math_private.h: Likewise.
8763         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
8764         and <math_private.h>.
8765         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
8766         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
8767         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
8768         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
8769         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
8770         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
8771         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
8772         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8773         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
8774         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8775         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8776         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8777         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
8778         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8779         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
8780         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
8781         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8782         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8783         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8784         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
8785         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8786         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
8787         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
8788         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8789         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8790         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
8791         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8792         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8793         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8794         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
8795         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
8796         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8797         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8798         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8799         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8800         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8801         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8802         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
8803         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
8804         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8805         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
8806         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
8807         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
8808         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
8809         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
8810         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
8811         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
8812         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
8813         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8814         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
8815         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
8816         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
8817         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
8818         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8819         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
8820         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8821         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8822         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
8823         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
8824         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
8825         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8826         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
8827         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8828         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
8829         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8830         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
8831         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
8832         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
8833         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
8834         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
8835         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
8836         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8837         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
8838         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8839         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
8840         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
8841         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
8842         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
8843         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
8844         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
8845         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
8846         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
8847         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
8848         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8849         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8850         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
8851         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
8852         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8853         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
8854         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
8855         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8856         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
8857         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8858         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
8859         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
8860         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
8861         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8862         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8863         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8864         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8865         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
8866         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
8867         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
8868         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
8869         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8870         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
8871         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8872         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
8873         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8874         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8875         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8876         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
8877         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
8878         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
8879         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8880         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8881         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8882         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
8883         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8884         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
8885         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
8886         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
8887         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8888         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
8889         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
8890         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
8891         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
8892         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
8893         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
8894         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
8895         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
8896         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
8897         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
8898         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8899         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
8900         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
8901         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8902         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
8903         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
8904         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8905         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8906         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
8907         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
8908         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
8909         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
8910         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
8911         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
8912         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
8913         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8914         * sysdeps/ieee754/k_standard.c: Likewise.
8915         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
8916         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
8917         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8918         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
8919         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
8920         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
8921         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
8922         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
8923         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
8924         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8925         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8926         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
8927         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8928         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
8929         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
8930         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
8931         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
8932         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
8933         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
8934         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
8935         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
8936         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
8937         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
8938         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
8939         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
8940         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
8941         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8942         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8943         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
8944         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
8945         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
8946         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
8947         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
8948         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
8949         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
8950         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
8951         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
8952         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
8953         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
8954         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
8955         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8956         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8957         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
8958         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
8959         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8960         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8961         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
8962         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8963         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
8964         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
8965         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
8966         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
8967         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8968         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8969         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
8970         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
8971         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
8972         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
8973         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
8974         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
8975         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
8976         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8977         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
8978         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
8979         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
8980         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8981         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
8982         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
8983         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
8984         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
8985         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
8986         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8987         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
8988         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
8989         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
8990         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
8991         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
8992         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
8993         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8994         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
8995         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
8996         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
8997         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
8998         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
8999         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
9000         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9001         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9002         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
9003         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9004         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9005         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
9006         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9007         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
9008         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
9009         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9010         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9011         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
9012         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
9013         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
9014         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
9015         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9016         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9017         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9018         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9019         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
9020         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9021         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9022         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
9023         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
9024         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9025         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9026         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9027         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9028         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9029         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9030         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9031         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9032         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9033         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9034         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9035         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9036         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9037         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9038         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9039         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9040         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9041         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9042         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9043         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9044         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9045         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9046         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9047         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9048         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
9049         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9050         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9051         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
9052         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
9053         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9054         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9055         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9056         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9057         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9058         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9059         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9060         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9061         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9062         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9063         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9064         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
9065         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9066         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9067         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9068         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9069         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
9070         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
9071         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9072         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9073         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9074         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
9075         * sysdeps/ieee754/s_lib_version.c: Likewise.
9076         * sysdeps/ieee754/s_matherr.c: Likewise.
9077         * sysdeps/ieee754/s_signgam.c: Likewise.
9078         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9079         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9080         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9081         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9082         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9083         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9084         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
9085         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
9086         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
9087         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9088         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9089         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9090         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
9091         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9092         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
9093         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
9094         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
9095         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
9096         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
9097         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9098         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9100 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9102         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
9103         * sunrpc/rpc_main.c: Likewise.
9104         * sunrpc/rpc_svcout.c: Likewise.
9106 2012-03-09  David S. Miller  <davem@davemloft.net>
9108         * include/math_private.h: New file.
9110 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9112         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
9113         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
9114         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
9115         from <bits/socket_type.h>.
9116         (enum __socket_type): Don't define here.
9117         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
9118         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9119         bits/socket_type.h.
9121         [BZ #13566]
9122         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
9123         checking __USE_GNU.
9125         * Makerules ($(inst_includedir)/%.h): New rule.
9126         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
9127         (install-others): Remove variable setting.
9128         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
9130 2012-03-08  Richard Henderson  <rth@twiddle.net>
9132         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
9133         from macro to inline function; merge with the
9134         !__LIBC_INTERNAL_MATH_INLINES version.
9135         (__ieee754_sqrtf): Likewise.
9137         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
9138         to inline function.
9139         (__rintf, __floor, __floorf): Likewise.
9141         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
9142         macro to inline function.
9143         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
9145         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
9146         not <math/math_private.h>.
9148 2012-03-08  David S. Miller  <davem@davemloft.net>
9150         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
9151         copyright year.
9152         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9154 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
9156         * resolv/gai_misc.c (handle_requests): Fix struct timespec
9157         normalization.
9158         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
9159         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
9161 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
9163         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
9164         be defined individually, they must be defined as a block.  Define
9165         S for printing a string instead of hidint the different by using a
9166         macro for adding the 'l'.
9167         * stdio-common/tst-fphex-wide.c: Adjust.
9169 2012-03-07  Marek Polacek  <polacek@redhat.com>
9171         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
9173 2012-03-08  Marek Polacek  <polacek@redhat.com>
9175         [BZ #13806]
9176         * stdio-common/Makefile (tests): Add tst-fphex-wide.
9177         * stdio-common/tst-fphex.c: Define a few macros to make the
9178         test reusable.  Use them.
9179         * stdio-common/tst-fphex-wide.c: New file.
9181 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
9183         [BZ #6911]
9184         * manual/macros.texi (gnusystems): New macro.
9185         (nongnusystems): Likewise.
9186         (gnulinuxhurdsystems): Likewise.
9187         (gnuhurdsystems): Likewise..
9188         (gnulinuxsystems): Likewise.
9189         * manual/charset.texi: Use new macros or @theglibc{} to refer to
9190         variants of the GNU system, not "GNU system".
9191         * manual/conf.texi: Likewise.
9192         * manual/errno.texi: Likewise.  Update example of errno macro
9193         expansion.
9194         * manual/filesys.texi: Likewise.
9195         (getumask): Document as specific to GNU/Hurd.
9196         * manual/install.texi: Likewise.  Reword some references to
9197         GNU/Linux.
9198         * manual/intro.texi: Likewise.
9199         * manual/io.texi: Likewise.
9200         (File Name Portability): Detail which constraints are inapplicable
9201         to all GNU systems and which are only inapplicable to GNU/Hurd.
9202         * manual/job.texi: Likewise.
9203         * manual/llio.texi: Likewise.
9204         (O_NOCTTY): Document as present on GNU/Linux.
9205         * manual/maint.texi: Likewise.
9206         * manual/memory.texi: Likewise.
9207         * manual/pattern.texi: Likewise.
9208         * manual/pipe.texi: Likewise.
9209         * manual/process.texi: Likewise.
9210         * manual/resource.texi: Likewise.
9211         (RUSAGE_CHILDREN): Remove statement about specifying a particular
9212         child on GNU/Hurd.
9213         * manual/setjmp.texi: Likewise.
9214         * manual/signal.texi: Likewise.
9215         * manual/startup.texi: Likewise.
9216         * manual/stdio.texi: Likewise.
9217         * manual/terminal.texi: Likewise.
9218         (ONLCR): Document as POSIX.
9219         (OXTABS): Document availability on GNU/Linux as XTABS.
9220         (ONOEOT): Document availability separately from other bits.
9221         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
9222         * manual/time.texi: Likewise.
9223         * manual/users.texi: Likewise.
9224         * INSTALL: Regenerated.
9225         * sysdeps/gnu/errlist.c: Regenerated.
9227         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
9228         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
9229         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
9230         puts.
9231         * configure: Regenerated.
9233 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
9235         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
9236         default includes instead of AC_HEADER_CHECK.
9237         * sysdeps/i386/configure: Regenerated.
9239         [BZ #10716]
9240         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
9241         * math/s_cacoshf.c (__cacoshf): Likewise.
9242         * math/s_cacoshl.c (__cacoshl): Likewise.
9243         * math/s_casinh.c (__casinh): Set signs of result from argument.
9244         * math/s_casinhf.c (__casinhf): Likewise.
9245         * math/s_casinhl.c (__casinhl): Likewise.
9246         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
9247         (casinh_test): Add more tests.
9248         * sysdeps/i386/fpu/libm-test-ulps: Update.
9249         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9251 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
9253         * po/zh_TW.po: Update from translation team.
9255         * login/Makefile (distribute): Remove variable.
9256         * catgets/Makefile: Likewise.
9257         * mach/Makefile: Likewise.
9258         * malloc/Makefile: Likewise.
9259         * misc/Makefile: Likewise.
9260         * iconv/Makefile: Likewise.
9261         * nscd/Makefile: Likewise.
9262         * hurd/Makefile: Likewise.
9263         * manual/Makefile: Likewise.
9264         * locale/Makefile: Likewise.
9265         * intl/Makefile: Likewise.
9266         * conform/Makefile: Likewise.
9267         * nss/Makefile: Likewise.
9268         * time/Makefile: Likewise.
9269         * soft-fp/Makefile: Likewise.
9270         * dirent/Makefile: Likewise.
9271         * gmon/Makefile: Likewise.
9272         * po/Makefile: Likewise.
9273         * rt/Makefile: Likewise.
9274         * socket/Makefile: Likewise.
9275         * math/Makefile: Likewise.
9276         * signal/Makefile: Likewise.
9277         * debug/Makefile: Likewise.
9278         * elf/Makefile: Likewise.
9279         * timezone/Makefile: Likewise.
9280         * stdlib/Makefile: Likewise.
9281         * iconvdata/Makefile: Likewise.
9282         * sunrpc/Makefile: Likewise.
9283         * io/Makefile: Likewise.
9284         * argp/Makefile: Likewise.
9285         * inet/Makefile: Likewise.
9286         * hesiod/Makefile: Likewise.
9287         * grp/Makefile: Likewise.
9288         * csu/Makefile: Likewise.
9289         * wctype/Makefile: Likewise.
9290         * crypt/Makefile: Likewise.
9291         * libio/Makefile: Likewise.
9292         * string/Makefile: Likewise.
9293         * nis/Makefile: Likewise.
9294         * resolv/Makefile: Likewise.
9295         * stdio-common/Makefile: Likewise.
9296         * wcsmbs/Makefile: Likewise.
9297         * dlfcn/Makefile: Likewise.
9298         * posix/Makefile: Likewise.
9300         [BZ #6959]
9301         * timezone/Makefile: Don't install timezone files, just the programs
9302         and scripts.
9304 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
9306         * nss/databases.def: Add missing gshadow entry.
9308         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
9310 2012-03-06  Marek Polacek  <polacek@redhat.com>
9312         [BZ #13726]
9313         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
9314         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
9315         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
9316         * stdio-common/tst-long-dbl-fphex.c: New file.
9318 2012-03-06  David S. Miller  <davem@davemloft.net>
9320         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9321         (set_obp_int): New function.
9322         (get_obp_int): New function.
9323         (__get_clockfreq_via_dev_openprom): Likewise.
9324         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
9325         Avoid unused variable warnings on 'val' and use builtin_expect.
9326         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
9327         __builtin_expect.
9328         (INLINE_CLONE_SYSCALL): Likewise.
9330 2012-03-05  David S. Miller  <davem@davemloft.net>
9332         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9334 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
9336         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9338         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
9339         only for |x| >= 40.
9340         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9342 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
9344         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
9345         Replace gettimeofday with __vdso_gettimeofday.
9347         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9348         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
9349         __vdso_clock_gettime and __vdso_getcpu.
9351         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
9352         time with __vdso_time.
9354 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
9356         * manual/lang.texi (size_t): Note types to which size_t may be
9357         equivalent with the GNU C Library, but do not describe when
9358         differences between them are significant.
9360 2012-03-05  Andreas Jaeger  <aj@suse.de>
9362         * sysdeps/i386/fpu/libm-test-ulps: Update.
9364 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
9366         [BZ #3976]
9367         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
9368         (__ieee754_pow): Save and restore rounding mode and use
9369         round-to-nearest for main computations.
9370         * math/libm-test.inc (pow_test_tonearest): New function.
9371         (pow_test_towardzero): Likewise.
9372         (pow_test_downward): Likewise.
9373         (pow_test_upward): Likewise.
9374         (main): Call the new functions.
9375         * sysdeps/i386/fpu/libm-test-ulps: Update.
9376         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9378         [BZ #3976]
9379         * math/libm-test.inc (cosh_test_tonearest): New function.
9380         (cosh_test_towardzero): Likewise.
9381         (cosh_test_downward): Likewise.
9382         (cosh_test_upward): Likewise.
9383         (sinh_test_tonearest): Likewise.
9384         (sinh_test_towardzero): Likewise.
9385         (sinh_test_downward): Likewise.
9386         (sinh_test_upward): Likewise.
9387         (main): Call the new functions.
9388         * sysdeps/i386/fpu/libm-test-ulps: Update.
9389         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9391 2012-03-05  Tom de Vries  <tom@codesourcery.com>
9393         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
9394         default stack guard is set in last bytes.
9395         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
9397 2012-03-05  Kees Cook  <keescook@chromium.org>
9399         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
9401         [BZ #13656]
9402         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
9403         possibly allocate from heap instead of stack.
9404         * stdio-common/bug-vfprintf-nargs.c: New file.
9405         * stdio-common/Makefile (tests): Add nargs overflow test.
9407 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
9409         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9411 2012-03-03  Marek Polacek  <polacek@redhat.com>
9413         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
9414         * math/math_private.h: Likewise.
9415         * stdlib/tst-strtod.c: Likewise.
9416         * sysdeps/i386/i486/bits/atomic.h: Likewise.
9417         * sysdeps/x86_64/bits/atomic.h: Likewise.
9419 2012-03-02  David S. Miller  <davem@davemloft.net>
9421         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
9422         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
9423         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
9424         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
9425         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
9426         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
9427         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
9428         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
9430 2012-03-02  Roland McGrath  <roland@hack.frob.com>
9432         [BZ #13792]
9433         * manual/examples/README: New file, says the example source files
9434         can be used under GPL>=2.
9435         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
9436         line containing just "*/".
9437         * manual/examples/add.c: Add copyright header (GPL>=2).
9438         * manual/examples/argp-ex1.c: Likewise.
9439         * manual/examples/argp-ex2.c: Likewise.
9440         * manual/examples/argp-ex3.c: Likewise.
9441         * manual/examples/argp-ex4.c: Likewise.
9442         * manual/examples/atexit.c: Likewise.
9443         * manual/examples/db.c: Likewise.
9444         * manual/examples/dir.c: Likewise.
9445         * manual/examples/dir2.c: Likewise.
9446         * manual/examples/execinfo.c: Likewise.
9447         * manual/examples/filecli.c: Likewise.
9448         * manual/examples/filesrv.c: Likewise.
9449         * manual/examples/fmtmsgexpl.c: Likewise.
9450         * manual/examples/genpass.c: Likewise.
9451         * manual/examples/inetcli.c: Likewise.
9452         * manual/examples/inetsrv.c: Likewise.
9453         * manual/examples/isockad.c: Likewise.
9454         * manual/examples/longopt.c: Likewise.
9455         * manual/examples/memopen.c: Likewise.
9456         * manual/examples/memstrm.c: Likewise.
9457         * manual/examples/mkfsock.c: Likewise.
9458         * manual/examples/mkisock.c: Likewise.
9459         * manual/examples/mygetpass.c: Likewise.
9460         * manual/examples/pipe.c: Likewise.
9461         * manual/examples/popen.c: Likewise.
9462         * manual/examples/rprintf.c: Likewise.
9463         * manual/examples/search.c: Likewise.
9464         * manual/examples/select.c: Likewise.
9465         * manual/examples/setjmp.c: Likewise.
9466         * manual/examples/sigh1.c: Likewise.
9467         * manual/examples/sigusr.c: Likewise.
9468         * manual/examples/stpcpy.c: Likewise.
9469         * manual/examples/strdupa.c: Likewise.
9470         * manual/examples/strftim.c: Likewise.
9471         * manual/examples/strncat.c: Likewise.
9472         * manual/examples/subopt.c: Likewise.
9473         * manual/examples/swapcontext.c: Likewise.
9474         * manual/examples/termios.c: Likewise.
9475         * manual/examples/testopt.c: Likewise.
9476         * manual/examples/testpass.c: Likewise.
9477         * manual/examples/timeval_subtract.c: Likewise.
9479         [BZ #13792]
9480         * manual/time.texi (Elapsed Time): Move timeval_subtract example
9481         function to ...
9482         * manual/timeval_subtract.c.texi: ... here, new file.
9484 2012-03-02  David S. Miller  <davem@davemloft.net>
9486         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
9488 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
9490         [BZ #3976]
9491         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
9492         (__sin): Save and restore rounding mode and use round-to-nearest
9493         for all computations.
9494         (__cos): Save and restore rounding mode and use round-to-nearest
9495         for all computations.
9496         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
9497         <fenv.h>.
9498         (tan): Save and restore rounding mode and use round-to-nearest for
9499         all computations.
9500         * math/libm-test.inc (cos_test_tonearest): New function.
9501         (cos_test_towardzero): Likewise.
9502         (cos_test_downward): Likewise.
9503         (cos_test_upward): Likewise.
9504         (sin_test_tonearest): Likewise.
9505         (sin_test_towardzero): Likewise.
9506         (sin_test_downward): Likewise.
9507         (sin_test_upward): Likewise.
9508         (tan_test_tonearest): Likewise.
9509         (tan_test_towardzero): Likewise.
9510         (tan_test_downward): Likewise.
9511         (tan_test_upward): Likewise.
9512         (main): Call the new functions.
9513         * sysdeps/i386/fpu/libm-test-ulps: Update.
9514         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9516         [BZ #10135]
9517         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
9518         small n, then large n, before computing and testing k+n.
9519         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
9520         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
9521         Likewise.
9522         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
9523         Likewise.
9524         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
9525         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
9526         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
9527         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
9528         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
9529         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
9530         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
9531         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
9532         * math/libm-test.inc (scalbn_test): Add more tests.
9533         (scalbln_test): Likewise.
9535         * manual/filesys.texi (mode_t): Describe constraints on size and
9536         signedness, not exact equivalence to a particular type.
9537         (ino_t): Likewise.
9538         (ino64_t): Likewise.
9539         (dev_t): Likewise.
9540         (nlink_t): Likewise.
9541         (blkcnt_t): Likewise.
9542         (blkcnt64_t): Likewise.
9543         * manual/llio.texi (off_t): Likewise.
9545         [BZ #3976]
9546         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
9547         (__ieee754_exp): Save and restore rounding mode and use
9548         round-to-nearest for all computations.
9549         * math/libm-test.inc (exp_test_tonearest): New function.
9550         (exp_test_towardzero): Likewise.
9551         (exp_test_downward): Likewise.
9552         (exp_test_upward): Likewise.
9553         (main): Call the new functions.
9554         * sysdeps/i386/fpu/libm-test-ulps: Update.
9555         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9557 2012-03-01  Chris Demetriou  <cgd@google.com>
9559         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
9560         have predictable order.
9562 2012-03-01  David S. Miller  <davem@davemloft.net>
9564         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
9566         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
9567         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
9568         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
9569         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
9571         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
9572         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
9573         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
9574         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
9575         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
9576         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
9577         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
9578         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
9579         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
9581         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9583         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
9584         * sysdeps/sparc/fpu/libm-test-ulps: to here.
9585         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
9587         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
9588         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9589         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
9590         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
9591         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
9592         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
9593         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
9594         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9595         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9596         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
9597         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
9598         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
9599         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9600         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
9601         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
9602         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9603         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
9604         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
9605         * sysdeps/sparc/elf/configure: Regenerated.
9607 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
9609         * configure.in (AS, LD): Require binutils 2.20 or later.
9610         * configure: Regenerated.
9611         * manual/install.texi (Tools for Compilation): Give binutils 2.20
9612         as required minimum version.
9613         * INSTALL: Regenerated.
9615         [BZ #2541]
9616         [BZ #4108]
9617         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
9618         before squaring exponent.
9619         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
9620         bottom long double and 27 bits of top long double before squaring
9621         exponent.
9622         * math/libm-test.inc (erfc_test): Add more tests.
9623         * sysdeps/i386/fpu/libm-test-ulps: Update.
9624         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
9625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9627 2012-03-01  Kai Tietz  <ktietz@redhat.com>
9629         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
9630         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
9631         containing bit-fields.
9632         * soft-fp/extended.h (_FP_UNION_E): Likewise.
9633         * soft-fp/single.h (_FP_UNION_S): Likewise.
9634         * soft-fp/double.h (_FP_UNION_D): Likewise.
9636 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
9638         [BZ #13786]
9639         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
9640         not include ../strcmp.S.
9641         [USE_AS_STRNCASECMP_L]: Likewise.
9642         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
9643         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
9644         * sysdeps/i386/i686/multiarch/strncase_l-c.c
9645         (__strncasecmp_l_ia32): Define as alias to
9646         __strncasecmp_l_nonascii.
9648         [BZ #5794]
9649         * math/libm-test.inc (expm1_test): Add test for bug 5794.
9650         * sysdeps/i386/fpu/libm-test-ulps: Update.
9651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9653         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
9654         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9656 2012-02-29  Jeff Law  <law@redhat.com>
9658         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
9659         out of bounds read.
9661 2012-02-29  Marek Polacek  <polacek@redhat.com>
9663         [BZ #13706]
9664         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
9665         * elf/Makefile: Add rules to run tst-unused-dep.out.
9667 2012-02-28  David S. Miller  <davem@davemloft.net>
9669         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
9670         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
9671         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
9672         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
9673         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
9674         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
9676 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
9678         * math/libm-test.inc (llround_test): Move one test from
9679         lround_test.  Use TEST_f_L in moved test.
9680         (lround_test): Move misplaced test to llround_test.  Add testcase
9681         from bug 2561.
9683 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
9685         * sysdeps/x86_64/fpu/e_expf.S: New file.
9686         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
9688 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
9690         [BZ #13637]
9691         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
9692         of remain_len that may cause incomplete multi-byte character and
9693         false match.
9694         * posix/bug-regex33.c: New file.
9695         * posix/Makefile (tests): Add bug-regex33.
9697 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
9699         * manual/macros.texi: New file.
9700         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
9701         * manual/libc.texinfo: Include macros.texi.
9702         * manual/creatute.texi: Likewise.
9703         * manual/install.texi: Likewise.
9704         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
9705         @glibcadj{} in references to the GNU C Library.
9706         * manual/charset.texi: Likewise.
9707         * manual/conf.texi: Likewise.
9708         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
9709         when not using those macros.
9710         * manual/creature.texi: Likewise.
9711         * manual/crypt.texi: Likewise.
9712         * manual/errno.texi: Likewise.
9713         * manual/filesys.texi: Likewise.
9714         * manual/header.texi: Likewise.
9715         * manual/install.texi: Likewise.
9716         * manual/intro.texi: Likewise.
9717         * manual/io.texi: Likewise.
9718         * manual/job.texi: Likewise.
9719         * manual/lang.texi: Likewise.
9720         * manual/libc.texiinfo: Likewise.
9721         * manual/llio.texi: Likewise.
9722         * manual/locale.texi: Likewise.
9723         * manual/maint.texi: Likewise.
9724         * manual/math.texi: Likewise.
9725         * manual/memory.texi: Likewise.
9726         * manual/message.texi: Likewise.
9727         * manual/nss.texi: Likewise.
9728         * manual/pattern.texi: Likewise.
9729         * manual/process.texi: Likewise.
9730         * manual/resource.texi: Likewise.
9731         * manual/search.texi: Likewise.
9732         * manual/setjmp.texi: Likewise.
9733         * manual/signal.texi: Likewise.
9734         * manual/socket.texi: Likewise.
9735         * manual/startup.texi: Likewise.
9736         * manual/stdio.texi: Likewise.
9737         * manual/string.texi: Likewise.
9738         * manual/sysinfo.texi: Likewise.
9739         * manual/syslog.texi: Likewise.
9740         * manual/terminal.texi: Likewise.
9741         * manual/time.texi: Likewise.
9742         * manual/users.texi: Likewise.
9743         * INSTALL: Regenerated.
9744         * NOTES: Regenerated.
9745         * sysdeps/gnu/errlist.c: Regenerated.
9747 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
9749         * include/dirent.h: Include <dirstream.h> before
9750         <dirent/dirent.h>.
9752 2012-02-28  David S. Miller  <davem@davemloft.net>
9754         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
9755         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
9756         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
9757         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
9759 2012-02-27  David S. Miller  <davem@davemloft.net>
9761         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
9762         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
9763         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
9764         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
9766         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
9767         frame pointer instead of stack pointer relative arg slot.
9768         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
9769         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
9770         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
9772 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
9774         [BZ #3992]
9775         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
9777 2012-02-27  David S. Miller  <davem@davemloft.net>
9779         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
9780         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
9781         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9782         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
9783         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
9784         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
9785         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
9786         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
9788 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
9790         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
9791         later.  Allow versions 5-9.
9792         * configure: Regenerated.
9793         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
9794         required minimum version and 4.6 as recommended version.  Do not
9795         mention bugs in GCC 2.7 and 2.8.
9796         * INSTALL: Regenerated.
9798 2012-02-27  David S. Miller  <davem@davemloft.net>
9800         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
9801         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
9802         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
9803         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
9804         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
9805         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
9806         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
9807         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
9809         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
9810         manipulate bits before adding and subtracting TWO112[sx].
9811         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
9813 2012-02-27  Roland McGrath  <roland@hack.frob.com>
9815         [BZ #13775]
9816         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
9817         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
9818         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
9819         being in POSIX, because they are in 1003.1-2008.
9821         * rt/tst-aio.c: Include <fcntl.h>.
9822         * rt/tst-aio7.c: Likewise.
9823         * rt/tst-aio64.c: Likewise.
9825         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
9827 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
9829         * manual/install.texi (--with-headers): Describe headers as
9830         interface headers, not private headers.
9831         (Specific advice for GNU/Linux systems): Describe use of headers
9832         from "make headers_install", not private headers from older
9833         kernels.
9834         * INSTALL: Regenerated.
9835         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
9836         Change to 2.6.19.
9837         * sysdeps/unix/sysv/linux/configure: Regenerated.
9839         * manual/llio.texi (fclean): Remove documentation.
9841         * manual/Makefile (libc-texi-generated): New variable.  Include
9842         version.texi.
9843         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
9844         $(libc-texi-generated), not duplicated list of files.
9845         (version.texi, stamp-version): New rules.
9846         (realclean): Remove $(libc-texi-generated), not individual files
9847         from that list.  Do not remove dir-add.texinfo.
9848         * manual/libc.texinfo: Comment out uses of edition numbers and
9849         references to printed manual.  Remove last-updated dates.
9850         (EDITION): Comment out.
9851         (ISBN): Likewise.
9852         (VERSION, UPDATED): Remove.
9853         (version.texi): Include.
9855 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
9857         * sysdeps/posix/spawni.c: Include <signal.h>.
9858         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
9859         * sysdeps/pthread/aio_fsync.c: Likewise.
9861 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
9863         * conform/Makefile (tests): Run only when not cross-compiling and
9864         when fast-check is not defined.
9866         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
9867         * conform/data/limits.h-data: Fixes for POSIX2008.
9868         * conform/run-conformtest.sh: Run all tests.
9869         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
9870         headers.
9871         * include/bits/dlfcn.h: Likewise.
9872         * include/langinfo.h: Likewise.
9873         * include/monetary.h: Likewise.
9874         * include/sys/poll.h: Likewise.
9876         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
9877         for __USE_GNU.
9878         * posix/spawn.h: Define __need_sigset_t.
9879         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
9880         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
9881         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
9882         to get sigevent_t only.
9883         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
9884         only for __USE_GNU.
9885         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9886         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
9887         process_vm_writev only for __USE_GNU.
9888         * termios/termios.h: Declare tcgetsid also for POSIX2008.
9890         * conform/Makefile: For now ignore errors from run-conformtest.
9891         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
9892         POSIX to avoid namespace pollution.  Don't prepend headers.
9893         * conform/data/aio.h-data: Fixes for POSIX testing.
9894         * conform/data/fcntl.h-data: Likewise.
9895         * conform/data/glob.h-data: Likewise.
9896         * conform/data/grp.h-data: Likewise.
9897         * conform/data/pthread.h-data: Likewise.
9898         * conform/data/pwd.h-data: Likewise.
9899         * conform/data/signal.h-data: Likewise.
9900         * conform/data/spawn.h-data: Likewise.
9901         * conform/data/stdio.h-data: Likewise.
9902         * conform/data/stdlib.h-data: Likewise.
9903         * conform/data/stropts.h-data: Likewise.
9904         * conform/data/sys/mman.h-data: Likewise.
9905         * conform/data/sys/stat.h-data: Likewise.
9906         * conform/data/sys/types.h-data: Likewise.
9907         * conform/data/sys/wait.h-data: Likewise.
9908         * conform/data/time.h-data: Likewise.
9909         * conform/data/unistd.h-data: Likewise.
9910         * conform/data/utime.h-data: Likewise.
9912         * io/sys/stat.h: fchmod was always in POSIX.
9913         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
9914         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
9915         * rt/aio.h: Define __need_timespec before including <time.h>.
9916         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
9917         struct.  Add forward declaration of pthread_attr_t and use it in
9918         sigevent.
9919         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9920         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9921         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
9922         always remove CLK_TCK definition.
9924 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
9926         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
9928 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
9930         * conform/run-conformtest.sh: New file.
9931         * conform/Makefile: Run run-conformtest for tests.
9932         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
9933         support.
9935         * conform/data/uchar.h-data: New file.
9936         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
9937         * conform/data/arpa/inet.h-data: Likewise.
9938         * conform/data/assert.h-data: Likewise.
9939         * conform/data/complex.h-data: Likewise.
9940         * conform/data/cpio.h-data: Likewise.
9941         * conform/data/ctype.h-data: Likewise.
9942         * conform/data/dirent.h-data: Likewise.
9943         * conform/data/dlfcn.h-data: Likewise.
9944         * conform/data/errno.h-data: Likewise.
9945         * conform/data/fcntl.h-data: Likewise.
9946         * conform/data/float.h-data: Likewise.
9947         * conform/data/fmtmsg.h-data: Likewise.
9948         * conform/data/fnmatch.h-data: Likewise.
9949         * conform/data/ftw.h-data: Likewise.
9950         * conform/data/glob.h-data: Likewise.
9951         * conform/data/grp.h-data: Likewise.
9952         * conform/data/iconv.h-data: Likewise.
9953         * conform/data/inttypes.h-data: Likewise.
9954         * conform/data/langinfo.h-data: Likewise.
9955         * conform/data/libgen.h-data: Likewise.
9956         * conform/data/limits.h-data: Likewise.
9957         * conform/data/locale.h-data: Likewise.
9958         * conform/data/math.h-data: Likewise.
9959         * conform/data/monetary.h-data: Likewise.
9960         * conform/data/mqueue.h-data: Likewise.
9961         * conform/data/ndbm.h-data: Likewise.
9962         * conform/data/net/if.h-data: Likewise.
9963         * conform/data/netdb.h-data: Likewise.
9964         * conform/data/netinet/in.h-data: Likewise.
9965         * conform/data/nl_types.h-data: Likewise.
9966         * conform/data/poll.h-data: Likewise.
9967         * conform/data/pthread.h-data: Likewise.
9968         * conform/data/pwd.h-data: Likewise.
9969         * conform/data/regex.h-data: Likewise.
9970         * conform/data/sched.h-data: Likewise.
9971         * conform/data/search.h-data: Likewise.
9972         * conform/data/semaphore.h-data: Likewise.
9973         * conform/data/setjmp.h-data: Likewise.
9974         * conform/data/signal.h-data: Likewise.
9975         * conform/data/spawn.h-data: Likewise.
9976         * conform/data/stdarg.h-data: Likewise.
9977         * conform/data/stdio.h-data: Likewise.
9978         * conform/data/stdlib.h-data: Likewise.
9979         * conform/data/string.h-data: Likewise.
9980         * conform/data/strings.h-data: Likewise.
9981         * conform/data/stropts.h-data: Likewise.
9982         * conform/data/sys/ipc.h-data: Likewise.
9983         * conform/data/sys/mman.h-data: Likewise.
9984         * conform/data/sys/msg.h-data: Likewise.
9985         * conform/data/sys/resource.h-data: Likewise.
9986         * conform/data/sys/select.h-data: Likewise.
9987         * conform/data/sys/sem.h-data: Likewise.
9988         * conform/data/sys/shm.h-data: Likewise.
9989         * conform/data/sys/socket.h-data: Likewise.
9990         * conform/data/sys/stat.h-data: Likewise.
9991         * conform/data/sys/statvfs.h-data: Likewise.
9992         * conform/data/sys/time.h-data: Likewise.
9993         * conform/data/sys/timeb.h-data: Likewise.
9994         * conform/data/sys/times.h-data: Likewise.
9995         * conform/data/sys/types.h-data: Likewise.
9996         * conform/data/sys/uio.h-data: Likewise.
9997         * conform/data/sys/un.h-data: Likewise.
9998         * conform/data/sys/utsname.h-data: Likewise.
9999         * conform/data/sys/wait.h-data: Likewise.
10000         * conform/data/syslog.h-data: Likewise.
10001         * conform/data/tar.h-data: Likewise.
10002         * conform/data/termios.h-data: Likewise.
10003         * conform/data/utime.h-data: Likewise.
10004         * conform/data/utmpx.h-data: Likewise.
10005         * conform/data/varargs.h-data: Likewise.
10006         * conform/data/wchar.h-data: Likewise.
10007         * conform/data/wctype.h-data: Likewise.
10008         * conform/data/wordexp.h-data: Likewise.
10010         * include/stropts.h: New file.
10011         * include/uchar.h: New file.
10012         * include/aio.h: Changes to allow conformtest.pl to use the headers.
10013         * include/assert.h: Likewise.
10014         * include/ctype.h: Likewise.
10015         * include/dirent.h: Likewise.
10016         * include/dlfcn.h: Likewise.
10017         * include/fcntl.h: Likewise.
10018         * include/fnmatch.h: Likewise.
10019         * include/glob.h: Likewise.
10020         * include/grp.h: Likewise.
10021         * include/libio.h: Likewise.
10022         * include/locale.h: Likewise.
10023         * include/math.h: Likewise.
10024         * include/net/if.h: Likewise.
10025         * include/netdb.h: Likewise.
10026         * include/netinet/in.h: Likewise.
10027         * include/pthread.h: Likewise.
10028         * include/pwd.h: Likewise.
10029         * include/regex.h: Likewise.
10030         * include/sched.h: Likewise.
10031         * include/search.h: Likewise.
10032         * include/setjmp.h: Likewise.
10033         * include/signal.h: Likewise.
10034         * include/stdio.h: Likewise.
10035         * include/stdlib.h: Likewise.
10036         * include/string.h: Likewise.
10037         * include/sys/cdefs.h: Likewise.
10038         * include/sys/mman.h: Likewise.
10039         * include/sys/msg.h: Likewise.
10040         * include/sys/resource.h: Likewise.
10041         * include/sys/select.h: Likewise.
10042         * include/sys/socket.h: Likewise.
10043         * include/sys/stat.h: Likewise.
10044         * include/sys/statvfs.h: Likewise.
10045         * include/sys/time.h: Likewise.
10046         * include/sys/times.h: Likewise.
10047         * include/sys/uio.h: Likewise.
10048         * include/sys/utsname.h: Likewise.
10049         * include/sys/wait.h: Likewise.
10050         * include/termios.h: Likewise.
10051         * include/time.h: Likewise.
10052         * include/ulimit.h: Likewise.
10053         * include/unistd.h: Likewise.
10054         * include/utime.h: Likewise.
10055         * include/wchar.h: Likewise.
10056         * include/wctype.h: Likewise.
10057         * include/wordexp.h: Likewise.
10059         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
10061         * time/time.h: TIME_UTC must be a macro.
10062         Make timespec_get available for ISO C11 only as well.
10064 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
10066         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
10067         Reported by Peng Haitao <penght@cn.fujitsu.com>.
10069 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10071         * configure.in: Use -o not -a in test for unsupported multi-arch.
10073 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10075         * manual/texinfo.tex: Update to version 2012-01-19.16.
10077 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10079         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
10081 2012-02-24  Roland McGrath  <roland@hack.frob.com>
10083         [BZ #13738]
10084         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
10085         * manual/fdl-1.3.texi: New file.
10086         * manual/fdl-1.1.texi: File removed.
10088         [BZ #13738]
10089         * manual/libc.texinfo (FDL_VERSION): New @set.
10090         Use it for mention of FDL in cover text.
10091         (Documentation License): Use it in @include file name.
10093 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10094             Roland McGrath  <roland@hack.frob.com>
10096         [BZ #5461]
10097         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
10098         not LONG_LONG_MAX and LONG_LONG_MIN.
10099         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
10100         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
10101         name.
10102         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
10104 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10106         [BZ #2547]
10107         [BZ #11365]
10108         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
10109         manipulate bits before adding and subtracting TWO23[sx].
10110         * math/libm-test.inc (nearbyint_test): Add more tests.
10112 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10114         [BZ #2548]
10115         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
10116         bits before adding and subtracting TWO23[sx].
10117         * math/libm-test.inc (rint_test): Add more tests.
10118         (rint_test_tonearest): Likewise.
10119         (rint_test_towardzero): Likewise.
10120         (rint_test_downward): Likewise.
10121         (rint_test_upward: Likewise.
10123 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10125         [BZ #10110]
10126         * include/stdc-predef.h: New file.  Extracted from features.h.
10127         * include/features.h: Include stdc-predef.h.
10128         * Makefile (headers): Add stdc-predef.h.
10129         * CONFORMANCE (Compiler limitations): Update.
10131 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10133         * manual/libc.texinfo (VERSION, UPDATED): Revert.
10135 2012-02-21  David S. Miller  <davem@davemloft.net>
10137         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
10138         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10140 2012-02-20  David S. Miller  <davem@davemloft.net>
10142         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
10143         using a normal save/restore sequence, rather than allocating a
10144         dummy stack frame just to store a frame pointer and restore.
10145         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10147 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10149         * manual/install.texi: Fix stray word in line-wrapped comment.
10151 2012-02-20  David S. Miller  <davem@davemloft.net>
10153         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
10154         both binutils and gcc support GOTDATA.
10156         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
10157         "rd %pc" in the PIC register setup sequences.
10159         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
10160         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
10161         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10162         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
10163         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10164         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10165         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10166         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10167         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
10168         (SYSCALL_ERROR_HANDLER): Likewise.
10169         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10170         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10171         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
10172         (SYSCALL_ERROR_HANDLER): Likewise.
10174         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
10175         (HAVE_GCC_GOTDATA): New.
10176         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
10177         relocation support in both binutils and gcc.
10178         * sysdeps/sparc/elf/configure: Regenerate.
10180         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
10181         * sysdeps/sparc/sparc32/elf/configure: Delete.
10182         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
10183         * sysdeps/sparc/sparc64/elf/configure: Delete.
10184         * sysdeps/sparc/elf/configure.in: New file.
10185         * sysdeps/sparc/elf/configure: Generate.
10187         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
10188         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
10189         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10190         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
10191         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
10193 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10195         * manual/install.texi: Do not mention specific glibc version
10196         numbers.
10197         * manual/libc.texinfo (VERSION, UPDATED): Update.
10198         (@copying): Use @copyright{} and range of years.
10200 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10202         [BZ #13695]
10203         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
10204         [crti.S not in sysdirs] (generated): Do not append.
10205         [crti.S not in sysdirs] (omit-deps): Likewise.
10206         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
10207         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
10208         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
10209         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
10210         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
10211         Likewise.
10212         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
10213         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
10214         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
10215         * csu/defs.awk: Remove file.
10216         * sysdeps/generic/initfini.c: Likewise.
10217         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
10218         variable.
10219         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
10220         Likewise.
10222 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10224         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
10225         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
10226         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
10227         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
10228         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10229         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
10230         <bits/epoll.h>.
10231         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
10232         (__EPOLL_PACKED): Define to empty if not defined by
10233         <bits/epoll.h>.
10234         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
10235         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10236         bits/epoll.h.
10238 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10240         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
10241         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
10242         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
10243         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
10244         <bits/timerfd.h>.
10245         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
10246         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10247         bits/timerfd.h.
10249 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10251         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
10252         in C locale.
10253         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10254         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
10255         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
10256         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10258 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
10260         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10261         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10263 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
10265         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
10266         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
10267         defined.
10268         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
10269         Likewise.
10270         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
10271         entry for 2.16.
10273 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
10275         * math/w_acos.c: Use non-signaling floating-point comparisons.
10276         * math/w_acosf.c: Likewise.
10277         * math/w_acosh.c: Likewise.
10278         * math/w_acoshf.c: Likewise.
10279         * math/w_acoshl.c: Likewise.
10280         * math/w_acosl.c: Likewise.
10281         * math/w_asin.c: Likewise.
10282         * math/w_asinf.c: Likewise.
10283         * math/w_asinl.c: Likewise.
10284         * math/w_atanh.c: Likewise.
10285         * math/w_atanhf.c: Likewise.
10286         * math/w_atanhl.c: Likewise.
10287         * math/w_exp2.c: Likewise.
10288         * math/w_exp2f.c: Likewise.
10289         * math/w_exp2l.c: Likewise.
10290         * math/w_j0.c: Likewise.
10291         * math/w_j0f.c: Likewise.
10292         * math/w_j0l.c: Likewise.
10293         * math/w_j1.c: Likewise.
10294         * math/w_j1f.c: Likewise.
10295         * math/w_j1l.c: Likewise.
10296         * math/w_jn.c: Likewise.
10297         * math/w_jnf.c: Likewise.
10298         * math/w_log.c: Likewise.
10299         * math/w_log10.c: Likewise.
10300         * math/w_log10f.c: Likewise.
10301         * math/w_log10l.c: Likewise.
10302         * math/w_log2.c: Likewise.
10303         * math/w_log2f.c: Likewise.
10304         * math/w_log2l.c: Likewise.
10305         * math/w_logf.c: Likewise.
10306         * math/w_logl.c: Likewise.
10307         * math/w_sqrt.c: Likewise.
10308         * math/w_sqrtf.c: Likewise.
10309         * math/w_sqrtl.c: Likewise.
10310         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10311         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
10312         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10313         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
10314         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
10316 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
10318         [BZ #9739]
10319         * manual/string.texi (strnlen): Use correct parameter name in
10320         equivalent expression.
10322 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
10324         [BZ #11174]
10325         * manual/users.texi (seteuid): Consistently use neweuid for
10326         argument name.
10328 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
10330         [BZ #13704]
10331         * manual/nss.texi (Services in the NSS configuration): Correct
10332         list of services in example configuration file.
10334 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
10336         [BZ #11322]
10337         * manual/arith.texi: Remove statements about negative zero
10338         behaving identically to zero.
10340 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
10342         [BZ #5993]
10343         * manual/install.texi: Do not document upgrading from libc5.
10345 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
10347         [BZ #4596]
10348         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
10350 2012-02-18  David S. Miller  <davem@davemloft.net>
10352         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
10353         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
10354         %o7 across the call.
10355         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
10356         instead.
10357         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
10358         SETUP_PIC_REG_LEAF.
10359         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10360         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
10361         * sysdeps/sparc/crtn.S: Likewise.
10363 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
10365         * aout/Makefile: Remove.
10367 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
10369         [BZ #13058]
10370         * manual/examples/argp-ex1.c (main): Format definition in GNU
10371         style.
10372         * manual/examples/argp-ex2.c (main): Likewise.
10373         * manual/examples/argp-ex3.c (main): Likewise.
10374         * manual/examples/argp-ex4.c (main): Likewise.
10375         * manual/examples/longopt.c (main): Use new-style prototype
10376         definition.
10377         * manual/examples/strncat.c (main): Specify return type and use
10378         (void) for arguments.
10379         * manual/examples/subopt.c (main): Use char **argv argument.
10381 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10383         [BZ #5077]
10384         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
10385         rounding modes.
10387 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
10389         [BZ #6907]
10390         * manual/string.texi (strchr): Change when strchrnul is
10391         recommended.
10393 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
10395         [BZ #174]
10396         * manual/locale.texi (setlocale): Document LOCPATH.
10398 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10400         [BZ #10210]
10401         * manual/process.texi (execle): Move @dots{} before last argument.
10403 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
10405         [BZ #12047]
10406         * manual/charset.texi (Generic Charset Conversion): Fix typo
10407         (LC_TYPE -> LC_CTYPE).
10409 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
10411         [BZ #5805]
10412         * manual/arith.texi (scalbn): Use @var{} on parameter names.
10413         (scalbnf): Likewise.
10414         (scalbnl): Likewise.
10415         (scalbln): Likewise.
10416         (scalblnf): Likewise.
10417         (scalblnl): Likewise.
10418         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
10419         (vwarnx): Likewise.
10420         (verr): Likewise.
10421         (verrx): Likewise.
10422         * manual/filesys.texi (telldir): Use braces around return type.
10423         * manual/llio.texi (mmap): Add space after comma.
10424         (mmap64): Likewise.
10425         * manual/math.texi (jn): Use @var{} on parameter names.
10426         (jnf): Likewise.
10427         (jnl): Likewise.
10428         (yn): Likewise.
10429         (ynf): Likewise.
10430         (ynl): Likewise.
10431         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
10432         line.
10433         * manual/resource.texi (ulimit): Use @dots{} instead of literal
10434         "...".
10435         (sched_get_priority_min): Remove semicolon on @deftypefun line.
10436         (sched_get_priority_max): Likewise.
10437         * manual/signal.texi (sigvec): Add space after comma.
10438         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
10439         names.
10440         (if_indextoname): Likewise.
10441         (if_freenameindex): Likewise.
10442         (sendto): Use ',' instead of '.' in prototype.
10443         * manual/startup.texi (syscall): Use @dots{} instead of literal
10444         "...".
10445         * manual/stdio.texi (__fpending): Separate initial words of
10446         paragraph from @deftypefun line.
10447         * manual/syslog.texi (syslog): Use @dots{} instead of literal
10448         "...".
10449         (vsyslog): Use @var{} on parameter names.
10450         * manual/terminal.texi (stty): Use @var{} on parameter names.
10451         * manual/users.texi (getutmp): Use @var{} on parameter names.
10452         (getutmpx): Likewise.
10454 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10456         [BZ #6884]
10457         * manual/stdio.texi (fopen): Fix typos in description of
10458         ",ccs=STRING".
10460 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
10462         [BZ #4026]
10463         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
10464         get clock_id definition.
10466 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
10468         [BZ #4822]
10469         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
10470         (madvise): Cast every argument to void on its own.
10472 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10474         [BZ #9902]
10475         * manual/startup.texi (Exit Status): Fix typo.
10477 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10479         [BZ #10140]
10480         * manual/examples/argp-ex1.c: Include <stdlib.h>.
10481         * manual/examples/argp-ex2.c: Likewise.
10482         * manual/examples/argp-ex3.c: Likewise.
10484 2012-02-16  Richard Henderson  <rth@redhat.com>
10486         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
10487         * sysdeps/s390/s390-32/initfini.c: Remove.
10488         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
10489         * sysdeps/s390/s390-64/initfini.c: Remove.
10491 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10493         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
10494         compiler output for sysdeps/generic/initfini.c.
10495         * sysdeps/sh/elf/initfini.c: Remove file.
10497 2012-02-16  David S. Miller  <davem@davemloft.net>
10499         [BZ #11494]
10500         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
10502         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
10503         * sysdeps/sparc/crti.S: New file.
10504         * sysdeps/sparc/crtn.S: New file.
10505         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
10506         * sysdeps/sparc/sparc64/Makefile: Likewise.
10508 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
10510         [BZ #3335]
10511         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
10513 2012-02-15  Roland McGrath  <roland@hack.frob.com>
10515         [BZ #4822]
10516         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
10518         * mach/devstream.c (cookie_io_functions_t): Macro removed.
10519         (write, read, close): Likewise.
10520         Patch by Aurelien Jarno <aurelien@aurel32.net>.
10522 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
10524         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
10525         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
10526         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
10527         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
10528         <bits/signalfd.h>.
10529         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
10530         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10531         bits/signalfd.h.
10533 2012-02-14  Marek Polacek  <polacek@redhat.com>
10535         * sysdeps/x86_64/crti.S: New file.
10536         * sysdeps/x86_64/crtn.S: New file.
10537         * sysdeps/x86_64/elf/initfini.c: Remove file.
10539 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
10541         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
10542         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
10543         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
10544         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
10545         <bits/inotify.h>.
10546         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
10547         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10548         bits/inotify.h.
10550 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
10552         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
10553         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
10554         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
10555         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
10556         <bits/eventfd.h>.
10557         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
10558         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10559         bits/eventfd.h.
10561 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
10563         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
10564         __feraiseexcept instead of feraiseexcept.
10566         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
10567         nanosleep invocations.
10568         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
10569         strings, and add error checking for a nanosleep invocations.
10571 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10573         Replace FSF snail mail address with URLs, as per GNU coding standards.
10574         Most of the snail mail addresses were wrong anyway, and omitting
10575         them makes the source code easier to maintain.  Almost all of the
10576         changes are to license notices and to locale LC_IDENTIFICATION
10577         addresses, except for this one:
10578         * manual/libc.texinfo: In "Published by", give the FSF's URL,
10579         not its snail mail address.
10581 2012-02-09  Richard Henderson  <rth@twiddle.net>
10583         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
10584         of kernel-features.h.
10586         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
10588 2012-02-08  Marek Polacek  <polacek@redhat.com>
10590         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
10591         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
10592         * sysdeps/gnu/_G_config.h: Likewise.
10593         * sysdeps/generic/_G_config.h: Likewise.
10595 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
10597         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
10598         tests.
10599         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10601         * sysdeps/powerpc/powerpc32/crti.S: New file.
10602         * sysdeps/powerpc/powerpc32/crtn.S: New file.
10603         * sysdeps/powerpc/powerpc64/crti.S: New file.
10604         * sysdeps/powerpc/powerpc64/crtn.S: New file.
10606         * Makeconfig (have-initfini): Don't set.
10607         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
10608         * configure.in (nopic_initfini): Don't substitute.
10609         * config.h.in (HAVE_INITFINI): Don't #undef.
10610         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
10611         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
10613 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
10615         Support crti.S and crtn.S provided directly by architectures.
10616         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
10617         [crti.S in sysdirs] (omit-deps): Likewise.
10618         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
10619         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
10620         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
10621         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
10622         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
10623         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
10624         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
10625         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
10626         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
10627         compiler output for sysdeps/generic/initfini.c.
10628         * sysdeps/i386/elf/Makefile: Remove file.
10629         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
10631 2012-02-07  Marek Polacek  <polacek@redhat.com>
10633         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
10634         * sysdeps/gnu/_G_config.h: Likewise.
10635         * sysdeps/mach/hurd/_G_config.h: Likewise.
10637 2012-02-07  Marek Polacek  <polacek@redhat.com>
10639         * math/Makefile (tests): Add tst-CMPLX2.
10640         * math/tst-CMPLX2.c: New file.
10642 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
10644         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10646         * math/libm-test.inc (jn_test): Add missing L suffix.
10648 2012-02-06  Marek Polacek  <polacek@redhat.com>
10650         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
10651         * sysdeps/i386/fpu/e_powf.S: Likewise.
10652         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
10653         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10654         * sysdeps/i386/fpu/e_acosh.S: Likewise.
10655         * sysdeps/i386/fpu/e_pow.S: Likewise.
10656         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
10657         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
10658         * sysdeps/i386/fpu/s_expm1.S: Likewise.
10659         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
10660         * sysdeps/i386/fpu/e_log2.S: Likewise.
10661         * sysdeps/i386/fpu/e_log2l.S: Likewise.
10662         * sysdeps/i386/fpu/e_scalb.S: Likewise.
10663         * sysdeps/i386/fpu/e_powl.S: Likewise.
10664         * sysdeps/i386/fpu/s_log1p.S: Likewise.
10665         * sysdeps/i386/fpu/e_log10f.S: Likewise.
10666         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
10667         * sysdeps/i386/fpu/e_logl.S: Likewise.
10668         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
10669         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
10670         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
10671         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
10672         * sysdeps/i386/fpu/e_log2f.S: Likewise.
10673         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
10674         * sysdeps/i386/fpu/e_log.S: Likewise.
10675         * sysdeps/i386/fpu/s_cexp.S: Likewise.
10676         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
10677         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
10678         * sysdeps/i386/fpu/e_logf.S: Likewise.
10679         * sysdeps/i386/fpu/e_log10l.S: Likewise.
10680         * sysdeps/i386/fpu/e_atanh.S: Likewise.
10681         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
10682         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
10683         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10684         * sysdeps/i386/fpu/e_log10.S: Likewise.
10685         * sysdeps/i386/fpu/s_frexp.S: Likewise.
10686         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
10687         * sysdeps/i386/fpu/s_asinh.S: Likewise.
10688         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
10689         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
10690         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
10691         * sysdeps/i386/asm-syntax.h: Likewise.
10692         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10693         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10694         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10695         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
10696         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
10697         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10698         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
10699         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
10700         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10701         * sysdeps/powerpc/sysdep.h: Likewise.
10702         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
10703         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10705 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
10707         [BZ #411]
10708         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
10710 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
10712         * sysdeps/i386/sysdep.h: Include <features.h>.
10713         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
10714         version.
10716 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
10718         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
10719         Define.
10720         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
10721         LOAD_PIC_REG_STR.
10723 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
10725         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
10726         (SETUP_PIC_REG): Use GET_PC_THUNK.
10727         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
10728         macro.
10730 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
10732         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
10733         for non-PIC compilation.
10734         (SETUP_PIC_REG): Add .p2align directive.
10735         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
10736         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
10737         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
10738         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
10739         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
10740         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
10741         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
10742         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10743         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
10744         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
10745         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
10746         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
10747         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
10748         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
10749         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
10750         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
10751         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
10752         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
10753         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
10754         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
10755         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
10756         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
10757         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
10758         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
10759         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
10760         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
10761         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10762         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
10763         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
10764         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
10765         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
10766         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10767         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
10768         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
10769         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
10770         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
10771         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
10772         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
10773         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
10774         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10775         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10777 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
10779         * math/tst-CMPLX.c: Include <stdio.h>.
10781 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
10783         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
10784         float.
10785         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
10786         * sysdeps/sparc/bits/mathdef.h: Likewise.
10788 2012-01-31  Marek Polacek  <polacek@redhat.com>
10790         * libio/libio.h: Don't define _PARAMS.
10791         * locale/programs/config.h: Don't define PARAMS.
10792         * stdlib/strtol_l.c: Likewise.
10793         (__strtol_l): Remove PARAMS from the prototype.
10795 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
10797         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
10798         names.  Just use the correct names.  Remove unnecessary wrapper
10799         functions.
10800         * malloc/arena.c: Likewise.
10801         * malloc/hooks.c: Likewise.
10803         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
10804         ARENA_TEST says not to.  Simplify test for creation of a new arena.
10805         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
10807 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
10809         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
10810         into tail calls.
10811         (update_get_addr): New function.
10812         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
10813         GET_ADDR_MODULE parameter.
10815 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
10817         * crypt/cert.c: Remove __STDC__ conditionals.
10818         * crypt/crypt-entry.c: Likewise.
10819         * crypt/crypt_util.c: Likewise.
10820         * libio/filedoalloc.c: Likewise.
10821         * libio/fileops.c: Likewise.
10822         * libio/genops.c: Likewise.
10823         * libio/iofclose.c: Likewise.
10824         * libio/iofdopen.c: Likewise.
10825         * libio/iofopen.c: Likewise.
10826         * libio/iofopen64.c: Likewise.
10827         * libio/iogetdelim.c: Likewise.
10828         * libio/iopopen.c: Likewise.
10829         * libio/obprintf.c: Likewise.
10830         * libio/oldfileops.c: Likewise.
10831         * libio/oldiofclose.c: Likewise.
10832         * libio/oldiofdopen.c: Likewise.
10833         * libio/oldiofopen.c: Likewise.
10834         * libio/oldiopopen.c: Likewise.
10835         * libio/wfiledoalloc.c: Likewise.
10836         * libio/wgenops.c: Likewise.
10837         * locale/programs/xmalloc.c: Likewise.
10838         * misc/syslog.c: Likewise.
10839         * stdio-common/xbug.c: Likewise.
10840         * string/memchr.c: Likewise.
10841         * string/memcmp.c: Likewise.
10842         * string/memrchr.c: Likewise.
10843         * string/rawmemchr.c: Likewise.
10844         * sysdeps/posix/getcwd.c: Likewise.
10845         * time/strftime_l.c: Likewise.
10847 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
10849         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
10850         * config.make.in (config-cflags-sse2avx): Define.
10851         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
10852         Fix typo.
10854 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
10856         * scripts/config.guess: Update from upstream config git repository.
10857         * scripts/config.sub: Likewise.
10859 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
10861         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
10862         (EM_NUM): Update.
10863         (R_TILEPRO_*, R_TILEGX_*): New macros.
10865         * scripts/firstversions.awk: Fix bug in version range handling.
10867         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
10869         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
10871         * include/sys/epoll.h: New file.
10872         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
10873         libc_hidden_def.
10875 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
10877         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
10878         Avoid unnecessary __WORDSIZE == 64 test.
10879         (fmaxf): Use VEX format if possible.
10880         (fmax): Likewise.
10881         (fminf): Likewise.
10882         (fmin): Likewise.
10884         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
10885         * math/math_private.h: Remove libc_fegetround* and
10886         libc_fesetround*.
10887         * sysdeps/i386/configure.in: Check for -msse2avx.
10888         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
10889         also if SSE2AVX is defined.
10890         Remove libc_fegetround* and libc_fesetround*.
10891         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
10892         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
10893         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
10894         of HAS_YMM_USABLE.
10895         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10896         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10897         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10898         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10899         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10901         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
10903 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10905         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
10906         size is not set.
10907         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
10909 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
10911         [BZ #13618]
10912         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
10913         relocation.
10914         * Makeconfig (libm): Define.
10915         * elf/Makefile: Add rules to build and run tst-relsort1.
10916         * elf/tst-relsort1.c: New file.
10917         * elf/tst-relsort1mod1.c: New file.
10918         * elf/tst-relsort1mod2.c: New file.
10920 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
10922         * math/s_ldexp.c: Remove __STDC__ conditionals.
10923         * math/s_ldexpf.c: Likewise.
10924         * math/s_ldexpl.c: Likewise.
10925         * math/s_nextafter.c: Likewise.
10926         * math/s_nexttowardf.c: Likewise.
10927         * math/s_significand.c: Likewise.
10928         * math/s_significandf.c: Likewise.
10929         * math/s_significandl.c: Likewise.
10930         * math/w_jnl.c: Likewise.
10931         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10932         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10933         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10934         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10935         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10936         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10937         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
10938         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10939         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10940         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10941         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10942         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10943         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10944         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10945         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10946         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10947         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10948         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10949         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10950         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10951         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10952         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10953         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10954         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10955         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10956         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10957         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10958         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10959         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10960         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10961         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10962         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10963         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10964         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10965         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10966         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10967         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10968         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10969         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10970         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10971         * sysdeps/ieee754/k_standard.c: Likewise.
10972         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10973         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10974         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10975         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10976         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10977         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10978         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10979         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10980         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10981         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10982         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10983         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10984         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10985         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10986         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10987         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10988         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10989         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10990         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10991         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10992         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10993         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10994         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10995         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10996         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10997         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10998         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10999         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11000         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11001         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11002         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11003         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
11004         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11005         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11006         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11007         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11008         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11009         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11010         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11011         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
11012         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11013         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11014         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
11015         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
11016         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11017         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
11018         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11019         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11020         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11021         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11022         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11023         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11024         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11025         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11026         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11027         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11028         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11029         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11030         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11031         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11032         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11033         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11034         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11035         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11036         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11037         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11038         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11039         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11040         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11041         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11042         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11043         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11044         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11045         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11046         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11047         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11048         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11049         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11050         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11051         * sysdeps/ieee754/s_matherr.c: Likewise.
11052         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11053         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11054         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11055         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11057 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11059         * crypt/md5.h: Remove __STDC__ conditionals.
11060         * libio/libioP.h: Likewise.
11061         * locale/programs/config.h: Likewise.
11062         * sysdeps/generic/sysdep.h: Likewise.
11063         * sysdeps/i386/asm-syntax.h: Likewise.
11064         * sysdeps/s390/asm-syntax.h: Likewise.
11065         * sysdeps/unix/sysdep.h: Likewise.
11066         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
11067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11069 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11071         * libio/libio.h: Remove __STDC__ conditionals.
11072         * malloc/obstack.h: Likewise.
11073         * math/complex.h: Likewise.
11074         * math/math.h: Likewise.
11075         * sysdeps/generic/_G_config.h: Likewise.
11076         * sysdeps/gnu/_G_config.h: Likewise.
11077         * sysdeps/mach/hurd/_G_config.h: Likewise.
11078         * sysdeps/powerpc/bits/mathdef.h: Likewise.
11079         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11080         * sysdeps/sparc/bits/mathdef.h: Likewise.
11082 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
11084         [BZ #13583]
11085         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
11086         Clean up HAS_* macros.
11087         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
11088         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
11089         possible.
11090         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
11091         HAS_AVX.
11092         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11093         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11094         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11095         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11096         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11098 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
11100         * elf/tst-unique3.cc (gets): Remove declaration.
11101         * elf/tst-unique3lib.cc (gets): Likewise.
11102         * elf/tst-unique3lib2.cc (gets): Likewise.
11103         * elf/tst-unique4.cc (gets): Likewise.
11105 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
11107         * include/stdio.h: Add C++ protection.  Add gets declarations and
11108         definitions.
11109         * debug/tst-chk1.c: Don't declare gets here.
11110         * stdio-common/tst-gets.c: Likewise.
11112 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11114         * posix/glob: Remove directory.
11116 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11118         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
11120 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
11122         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
11123         of the non-standard EPFNOSUPPORT.
11125 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11127         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
11128         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
11129         ANYWHERE set to 1 only on KERN_NO_SPACE error.
11131 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
11133         * wcsmbs/uchar.h: Test __STDC_VERSION__.
11135 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
11137         * nscd/aicache.c (addhstaiX): Do not cache negative results of
11138         transient errors.
11139         * nscd/grpcache.c (cache_addgr): Likewise.
11140         * nscd/hstcache.c (cache_addhst): Likewise.
11141         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11142         * nscd/pwdcache.c (cache_addpw): Likewise.
11143         * nscd/servicescache.c (cache_addserv): Likewise.
11145 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
11147         * malloc/malloc.c: Various cleanups.
11148         * malloc/hooks.c: Likewise.
11150         * stdlib/Makefile (tests): Add bug-fmtmsg1.
11151         * stdlib/bug-fmtmsg1.c: New file.
11153         * stdlib/fmtmsg.c (init): Add missing unlock.
11154         Patch by Peng Haitao <penght@cn.fujitsu.com>.
11156 2012-01-12  Marek Polacek  <polacek@redhat.com>
11158         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
11159         and _GNU_SOURCE.
11161 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
11163         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
11164         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
11165         macro to ensure uniqueness of label name.
11166         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
11167         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
11169 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
11171         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
11173         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
11174         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11175         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11176         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
11178 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
11180         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
11182         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
11183         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11184         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11186         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
11188         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
11189         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11190         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11191         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
11193         * math/bits/math-finite.h: Add ldexp support.
11195 2012-01-10  Marek Polacek  <polacek@redhat.com>
11197         * locale/programs/localedef.h (show_archive_content): Add noreturn
11198         attribute.
11200 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
11202         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
11204 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11206         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
11208         * io/Makefile (headers): Add bits/poll2.h.
11210 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
11212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
11213         typo #include statement.
11215 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11217         * include/sys/cdefs.h: Define __attribute_alloc_size.
11218         * catgets/gencat.c: Add alloc_size attribute and apply consistently
11219         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
11220         * elf/pldd.c: Likewise.
11221         * iconv/iconv_charmap.c: Likewise.
11222         * iconv/iconvconfig.c: Likewise.
11223         * iconv/strtab.c: Likewise.
11224         * locale/programs/locale.c: Likewise.
11225         * locale/programs/localedef.h: Likewise.
11226         * locale/programs/simple-hash.c: Likewise.
11227         * nscd/nscd.h: Likewise.
11228         * nss/makedb.c: Likewise.
11229         * sysdeps/generic/ldconfig.h: Likewise.
11230         * locale/programs/localedef.c: Remove xmalloc prototype.
11231         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
11233 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11235         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
11236         appropriate.
11238 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11240         * math/Makefile (tests): Add tst-CMPLX.
11241         * math/tst-CMPLX.c: New file.
11243         * math/complex.h (CMPLXL): Fix typo.
11245         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
11246         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
11247         GLIBC_2.16.
11248         * debug/tst-chk1.c: Add poll and ppoll tests.
11249         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
11250         * include/sys/poll.h: Add hidden proto for ppoll.
11251         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
11252         * sysdeps/mach/hurd/ppoll.c: Likewise.
11253         * io/ppoll.c: Likewise.
11254         * debug/poll_chk.c: New file.
11255         * debug/ppoll_chk.c: New file.
11256         * include/bits/poll2.h: New file.
11257         * io/bits/poll2.h: New file.
11259         [BZ #1350]
11260         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
11262         * configure.in: static is always set to yes.  Remove.
11263         * config.make.in: Don't set build-static.
11264         * Makeconfig: Remove use of build-static.
11265         * dlfcn/Makefile: Likewise.
11266         * elf/Makefile: Likewise.
11267         * math/Makefile: Likewise.
11268         * misc/Makefile: Likewise.
11269         * nptl/Makefile: Likewise.
11270         * sysdeps/mach/hurd/Makefile: Likewise.
11272         * configure.in: PWD_P is not used anymore.
11273         * config.make.in: Remove PWD_P entry.
11275         * configure.in: Remove last remnants of RANLIB.
11276         No need to check for signed size_t anymore.
11277         Don't set libc_commonpagesize and libc_relro_required here for Alpha
11278         and IA-64.
11279         Remove __builtin_expect test because we require at least gcc 3.4.
11280         * aclocal.m4: Likewise.
11282         * wcsmbs/mbrtoc16.c: Implement using towc function.
11283         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
11284         * wcsmbs/wcsmbsload.c: Likewise.
11285         * iconv/gconv_simple.c: Likewise.
11286         * iconv/gconv_int.h: Likewise.
11287         * iconv/gconv_builtin.h: Likewise.
11288         * iconv/iconv_prog.c: Remove CHAR16 handling.
11290         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
11292         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
11294         * configure.in: Remove --with-elf and --enable-bounded options.
11295         Dont set base_machine for ia64.  More non-ELF conditions removed.
11296         Remove testing and setting of leading underscore information.
11297         * config.make.in (build-bounded): Set to no.
11298         * config.h.in: Remove NO_UNDERSCORES entry.
11299         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
11300         them.
11301         * csu/start.c: Remove !NO_UNDERSCORE code.
11302         * locale/localeinfo.h: Likewise.
11303         * sysdeps/generic/machine-gmon.h: Likewise.
11304         * sysdeps/generic/sysdep.h: Likewise.
11305         * sysdeps/i386/sysdep.h: Likewise.
11306         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
11307         * sysdeps/mach/sysdep.h: Likewise.
11308         * sysdeps/s390/s390-32/sysdep.h: Likewise.
11309         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11310         * sysdeps/sh/sysdep.h: Likewise.
11311         * sysdeps/sparc/sparc32/alloca.S: Likewise.
11312         * sysdeps/unix/i386/sysdep.S: Likewise.
11313         * sysdeps/unix/sparc/start.c: Likewise.
11314         * sysdeps/unix/sparc/sysdep.S: Likewise.
11315         * sysdeps/unix/sparc/sysdep.h: Likewise.
11316         * sysdeps/unix/start.c: Likewise.
11317         * sysdeps/unix/x86_64/sysdep.S: Likewise.
11318         * sysdeps/x86_64/sysdep.h: Likewise.
11320 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
11322         [BZ #13553]
11323         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
11324         for non-gcc.
11325         * argp/argp-fmtstream.h: Use const instead __const.
11326         * argp/argp.h: Likewise.
11327         * assert/assert.h: Likewise.
11328         * bits/fenv.h: Likewise.
11329         * bits/sched.h: Likewise.
11330         * bits/sigset.h: Likewise.
11331         * bits/sigthread.h: Likewise.
11332         * catgets/nl_types.h: Likewise.
11333         * conform/data/pthread.h-data: Likewise.
11334         * crypt/crypt-private.h: Likewise.
11335         * crypt/crypt.h: Likewise.
11336         * crypt/crypt_util.c: Likewise.
11337         * ctype/ctype.h: Likewise.
11338         * debug/execinfo.h: Likewise.
11339         * debug/mbsnrtowcs_chk.c: Likewise.
11340         * debug/mbsrtowcs_chk.c: Likewise.
11341         * debug/wcsnrtombs_chk.c: Likewise.
11342         * debug/wcsrtombs_chk.c: Likewise.
11343         * debug/wcstombs_chk.c: Likewise.
11344         * dirent/dirent.h: Likewise.
11345         * dlfcn/dlfcn.h: Likewise.
11346         * elf/neededtest4.c: Likewise.
11347         * grp/grp.h: Likewise.
11348         * gshadow/gshadow.h: Likewise.
11349         * iconv/gconv.h: Likewise.
11350         * iconv/gconv_int.h: Likewise.
11351         * iconv/gconv_simple.c: Likewise.
11352         * iconv/iconv.h: Likewise.
11353         * iconv/loop.c: Likewise.
11354         * iconv/skeleton.c: Likewise.
11355         * include/aio.h: Likewise.
11356         * include/aliases.h: Likewise.
11357         * include/argz.h: Likewise.
11358         * include/arpa/inet.h: Likewise.
11359         * include/assert.h: Likewise.
11360         * include/dirent.h: Likewise.
11361         * include/dlfcn.h: Likewise.
11362         * include/execinfo.h: Likewise.
11363         * include/fcntl.h: Likewise.
11364         * include/fenv.h: Likewise.
11365         * include/glob.h: Likewise.
11366         * include/grp.h: Likewise.
11367         * include/libintl.h: Likewise.
11368         * include/mntent.h: Likewise.
11369         * include/netdb.h: Likewise.
11370         * include/pwd.h: Likewise.
11371         * include/rpc/netdb.h: Likewise.
11372         * include/sched.h: Likewise.
11373         * include/search.h: Likewise.
11374         * include/shadow.h: Likewise.
11375         * include/signal.h: Likewise.
11376         * include/stdio.h: Likewise.
11377         * include/stdlib.h: Likewise.
11378         * include/string.h: Likewise.
11379         * include/sys/socket.h: Likewise.
11380         * include/sys/stat.h: Likewise.
11381         * include/sys/statfs.h: Likewise.
11382         * include/sys/statvfs.h: Likewise.
11383         * include/sys/syslog.h: Likewise.
11384         * include/sys/time.h: Likewise.
11385         * include/sys/uio.h: Likewise.
11386         * include/time.h: Likewise.
11387         * include/unistd.h: Likewise.
11388         * include/utmp.h: Likewise.
11389         * include/wchar.h: Likewise.
11390         * include/wctype.h: Likewise.
11391         * inet/aliases.h: Likewise.
11392         * inet/arpa/inet.h: Likewise.
11393         * inet/netinet/ether.h: Likewise.
11394         * inet/netinet/in.h: Likewise.
11395         * intl/libintl.h: Likewise.
11396         * io/bits/fcntl2.h: Likewise.
11397         * io/fcntl.h: Likewise.
11398         * io/ftw.h: Likewise.
11399         * io/sys/poll.h: Likewise.
11400         * io/sys/stat.h: Likewise.
11401         * io/sys/statfs.h: Likewise.
11402         * io/sys/statvfs.h: Likewise.
11403         * io/utime.h: Likewise.
11404         * libio/bits/stdio.h: Likewise.
11405         * libio/bits/stdio2.h: Likewise.
11406         * libio/libio.h: Likewise.
11407         * libio/libioP.h: Likewise.
11408         * libio/stdio.h: Likewise.
11409         * locale/lc-ctype.c: Likewise.
11410         * locale/locale.h: Likewise.
11411         * login/utmp.h: Likewise.
11412         * malloc/arena.c: Likewise.
11413         * malloc/malloc.c: Likewise.
11414         * malloc/malloc.h: Likewise.
11415         * malloc/mcheck.c: Likewise.
11416         * malloc/mtrace.c: Likewise.
11417         * math/bits/mathcalls.h: Likewise.
11418         * math/fenv.h: Likewise.
11419         * math/math_private.h: Likewise.
11420         * misc/bits/error.h: Likewise.
11421         * misc/bits/syslog.h: Likewise.
11422         * misc/err.h: Likewise.
11423         * misc/error.h: Likewise.
11424         * misc/fstab.h: Likewise.
11425         * misc/mntent.h: Likewise.
11426         * misc/regexp.h: Likewise.
11427         * misc/search.h: Likewise.
11428         * misc/sgtty.h: Likewise.
11429         * misc/sys/mman.h: Likewise.
11430         * misc/sys/syslog.h: Likewise.
11431         * misc/sys/uio.h: Likewise.
11432         * misc/sys/xattr.h: Likewise.
11433         * misc/ttyent.h: Likewise.
11434         * nis/rpcsvc/ypclnt.h: Likewise.
11435         * nss/nss.h: Likewise.
11436         * posix/bits/unistd.h: Likewise.
11437         * posix/fnmatch.h: Likewise.
11438         * posix/glob.h: Likewise.
11439         * posix/sched.h: Likewise.
11440         * posix/spawn.h: Likewise.
11441         * posix/sys/wait.h: Likewise.
11442         * posix/unistd.h: Likewise.
11443         * posix/wordexp.h: Likewise.
11444         * pwd/pwd.h: Likewise.
11445         * resolv/netdb.h: Likewise.
11446         * resource/sys/resource.h: Likewise.
11447         * rt/aio.h: Likewise.
11448         * rt/bits/mqueue2.h: Likewise.
11449         * rt/mqueue.h: Likewise.
11450         * shadow/shadow.h: Likewise.
11451         * signal/signal.h: Likewise.
11452         * socket/send.c: Likewise.
11453         * socket/sendto.c: Likewise.
11454         * socket/sys/socket.h: Likewise.
11455         * stdio-common/printf.h: Likewise.
11456         * stdlib/bits/stdlib.h: Likewise.
11457         * stdlib/fmtmsg.h: Likewise.
11458         * stdlib/monetary.h: Likewise.
11459         * stdlib/stdlib.h: Likewise.
11460         * stdlib/ucontext.h: Likewise.
11461         * streams/stropts.h: Likewise.
11462         * string/argz.h: Likewise.
11463         * string/bits/string2.h: Likewise.
11464         * string/string.h: Likewise.
11465         * string/strings.h: Likewise.
11466         * sunrpc/rpc/auth.h: Likewise.
11467         * sunrpc/rpc/auth_des.h: Likewise.
11468         * sunrpc/rpc/clnt.h: Likewise.
11469         * sunrpc/rpc/netdb.h: Likewise.
11470         * sunrpc/rpc/pmap_clnt.h: Likewise.
11471         * sunrpc/rpc/xdr.h: Likewise.
11472         * sysdeps/generic/inttypes.h: Likewise.
11473         * sysdeps/generic/net/if.h: Likewise.
11474         * sysdeps/generic/sys/swap.h: Likewise.
11475         * sysdeps/gnu/net/if.h: Likewise.
11476         * sysdeps/gnu/utmpx.h: Likewise.
11477         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
11478         * sysdeps/i386/i486/bits/string.h: Likewise.
11479         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
11480         * sysdeps/s390/bits/string.h: Likewise.
11481         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
11482         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
11483         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11484         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
11485         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11486         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11487         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11488         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
11489         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
11490         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
11491         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
11492         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
11493         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
11494         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
11495         * sysdeps/unix/sysv/linux/readv.c: Likewise.
11496         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
11497         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
11498         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11499         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
11500         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
11501         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
11502         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
11503         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
11504         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
11505         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
11506         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
11507         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
11508         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11509         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
11510         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
11511         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
11512         * sysvipc/sys/ipc.h: Likewise.
11513         * sysvipc/sys/msg.h: Likewise.
11514         * sysvipc/sys/sem.h: Likewise.
11515         * sysvipc/sys/shm.h: Likewise.
11516         * termios/termios.h: Likewise.
11517         * time/sys/time.h: Likewise.
11518         * time/time.h: Likewise.
11519         * wcsmbs/bits/wchar2.h: Likewise.
11520         * wcsmbs/uchar.h: Likewise.
11521         * wcsmbs/wchar.h: Likewise.
11522         * wctype/wctype.h: Likewise.
11524         [BZ #13551]
11525         * Makeconfig: Remove all but ELF support including AIX support.
11526         * Makerules: Likewise.
11527         * config.h.in: Likewise.
11528         * config.make.in: Likewise.
11529         * configure: Likewise.
11530         * configure.in: Likewise.
11531         * csu/Makefile: Likewise.
11532         * csu/version.c: Likewise.
11533         * debug/Makefile: Likewise.
11534         * dlfcn/Makefile: Likewise.
11535         * elf/Makefile: Likewise.
11536         * extra-lib.mk: Likewise.
11537         * iconv/Makefile: Likewise.
11538         * include/libc-symbols.h: Likewise.
11539         * include/shlib-compat.h: Likewise.
11540         * resolv/Makefile: Likewise.
11541         * resolv/res_libc.c: Likewise.
11542         * rt/Makefile: Likewise.
11543         * sysdeps/i386/asm-syntax.h: Likewise.
11544         * sysdeps/i386/sysdep.h: Likewise.
11545         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
11546         * sysdeps/mach/sysdep.h: Likewise.
11547         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
11548         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
11549         * sysdeps/s390/asm-syntax.h: Likewise.
11550         * sysdeps/s390/s390-32/sysdep.h: Likewise.
11551         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11552         * sysdeps/sh/sysdep.h: Likewise.
11553         * sysdeps/unix/sparc/sysdep.h: Likewise.
11554         * sysdeps/wordsize-32/divdi3.c: Likewise.
11555         * sysdeps/x86_64/sysdep.h: Likewise.
11557         * argp/Versions: Remove _argp_unlock_xxx.
11559         [BZ #13559]
11560         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
11561         * abilist/libBrokenLocale.abilist: Likewise.
11562         * abilist/libanl.abilist: Likewise.
11563         * abilist/libc.abilist: Likewise.
11564         * abilist/libcrypt.abilist: Likewise.
11565         * abilist/libdl.abilist: Likewise.
11566         * abilist/libm.abilist: Likewise.
11567         * abilist/libnsl.abilist: Likewise.
11568         * abilist/libpthread.abilist: Likewise.
11569         * abilist/libresolv.abilist: Likewise.
11570         * abilist/librt.abilist: Likewise.
11571         * abilist/libthread_db.abilist: Likewise.
11572         * abilist/libutil.abilist: Likewise.
11573         * abilist/libnss_db.abilist: New file.
11575         * scripts/abilist.awk: Add support for indirect functions.
11577         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
11579         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
11581         * shlib-versions: Remove entries for ports architectures.
11583         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
11584         files in ports.
11585         * elf/stackguard-macros.h: Remove support for IA-64.
11586         * elf/tst-auditmod1.c: Likewise.
11587         * sysdeps/generic/ldsodefs.h: Likewise.
11589         * sysdeps/unix/sysv/linux/configure.in: Ports should define
11590         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
11591         configure files.
11593         [BZ #13552]
11594         * configure.in: Remove --enable-omitfp support.
11595         * FAQ.in: Adjust.
11596         * config.make.in: Likewise.
11597         * Makeconfig: Likewise.
11598         * manual/install.texi: Likewise.
11600         In case anyone cares, the IA-64 architecture could move to ports.
11601         * sysdeps/ia64/*: Removed.
11602         * sysdeps/unix/sysv/linux/ia64/*: Removed.
11603         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
11605         [BZ #13555]
11606         * configure.in: Remove entries for unsupported architectures.
11608         [BZ #13533]
11609         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
11610         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
11611         routines.
11612         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
11613         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
11614         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
11615         fall back to using wcrtomb.
11616         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
11617         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
11618         renaming.
11619         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
11620         * wcsmbs/tst-c16c32-1.c: New file.
11622         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
11623         local variable.
11625         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
11627         * elf/tst-unique3.cc: Add explicit declaration of gets.
11628         * elf/tst-unique3lib.cc: Likewise.
11629         * elf/tst-unique3lib2.cc: Likewise.
11630         * elf/tst-unique4.cc: Likewise.
11632         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
11634 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
11636         [BZ #13566]
11637         * assert/assert.h (static_assert): Don't define for C++.
11638         * libio/stdio.h (gets): Do declare for C++ <= C++11.
11639         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
11641 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
11643         * iconv/loop.c (single loop): Fix assertion in storing of
11644         remaining bytes.
11646         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
11648 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
11650         * posix/getconf.c: Update copyright year.
11651         * nss/getent.c: Likewise.
11652         * nss/makedb.c: Likewise.
11653         * iconv/iconvconfig.c: Likewise.
11654         * iconv/iconv_prog.c: Likewise.
11655         * elf/ldconfig.c: Likewise.
11656         * elf/pldd.c: Likewise.
11657         * elf/sotruss.ksh: Likewise.
11658         * catgets/gencat.c: Likewise.
11659         * csu/version.c: Likewise.
11660         * elf/ldd.bash.in: Likewise.
11661         * elf/sprof.c (print_version): Likewise.
11662         * locale/programs/locale.c: Likewise.
11663         * locale/programs/localedef.c: Likewise.
11664         * login/programs/pt_chown.c: Likewise.
11665         * nscd/nscd.c (print_version): Likewise.
11666         * debug/xtrace.sh: Likewise.
11667         * malloc/memusage.sh: Likewise.
11668         * malloc/mtrace.pl: Likewise.
11669         * debug/catchsegv.sh: Likewise.
11671 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
11673         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
11674         pure attribute.
11676 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
11678         [BZ #13533]
11679         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
11680         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
11681         transformations.
11682         * iconv/gconv_int.h: Likewise.
11683         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
11684         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
11685         from libc for GLIBC_2.16.
11686         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
11687         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
11688         * wcsmbs/uchar.h: Really define mbstate_t.
11689         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
11690         * wcsmbs/c16rtomb.c: New file.
11691         * wcsmbs/mbrtoc16.c: New file.
11692         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
11693         for C/POSIX locale.
11694         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
11695         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
11697         * wcsmbs/wchar.h: Add missing __restrict.
11699 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
11701         [BZ #13532]
11702         * time/Makefile (routines): Add timespec_get.
11703         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
11704         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
11705         timespec for ISO C11.
11706         * time/timespec_get.c: New file.
11707         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
11708         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
11710         [BZ #13531]
11711         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
11712         * stdlib/stdlib.h: Declare aligned_alloc.
11713         * Versions.def: Add GLIBC_2.16 for libc.
11714         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
11716         [BZ 13527]
11717         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
11718         ISO C11.
11720         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
11721         code.
11723         [BZ #13528]
11724         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
11726         [BZ #13529]
11727         * assert/assert.h (static_assert): Define.
11729         * version.h: Update for 2.16 development version.
11731         [BZ #13526]
11732         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
11733         _ISOC11_SOURCE.
11735         * version.h (RELEASE): Bump for 2.15 release.
11736         * include/features.h (__GLIBC_MINOR__): Bump to 15.
11738         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
11739         Patch by Marek Polacek <mpolacek@redhat.com>.
11741         * bits/byteswap.h: Protect long long constants with __extension__.
11742         * sysdeps/i386/bits/byteswap.h: Likewise.
11743         * sysdeps/ia64/bits/byteswap.h: Likewise.
11744         * sysdeps/s390/bits/byteswap.h: Likewise.
11745         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11747 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11749         [BZ #13540]
11750         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
11751         destination buffer.
11752         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
11754 2011-12-23  Marek Polacek  <polacek@redhat.com>
11756         * elf/dl-addr.c (determine_info): Add inline keyword.
11757         * elf/tst-auditmod4b.c (check_avx): Likewise.
11758         * elf/tst-auditmod6b.c (check_avx): Likewise.
11759         * elf/tst-auditmod6c.c (check_avx): Likewise.
11760         * elf/tst-auditmod7b.c (check_avx): Likewise.
11762 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
11764         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
11765         !__SSE_MATH__.
11767 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11769         [BZ #13540]
11770         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
11771         processing for last bytes.
11773 2011-08-06  Bruno Haible  <bruno@clisp.org>
11775         [BZ #13061]
11776         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
11777         U+0385, not to U+1FEE.
11779         [BZ #13062]
11780         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
11781         entry for U+00A5 U+0301.
11783 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
11785         [BZ #13166]
11786         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
11787         buffer for the output is too small.
11789         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
11790         optimization.
11792         [BZ #13185]
11793         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
11794         SSE flags if possible.
11796 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11798         [BZ #13540]
11799         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
11800         processing for last bytes.
11802 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
11804         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
11805         (syscall-list-default-options, syscall-list-default-condition)
11806         (syscall-list-includes): Define.
11807         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
11808         list of ABIs and options and #if conditions for each ABI.  Do not
11809         handle common syscalls between ABIs specially.
11810         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
11811         Remove.
11812         (syscall-list-variants, syscall-list-32bit-options)
11813         (syscall-list-32bit-condition, syscall-list-64bit-options)
11814         (syscall-list-64bit-condition): Define.
11815         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
11816         (syscall-list-variants, syscall-list-32bit-options)
11817         (syscall-list-32bit-condition, syscall-list-64bit-options)
11818         (syscall-list-64bit-condition): Define.
11819         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
11820         Remove.
11821         (syscall-list-variants, syscall-list-32bit-options)
11822         (syscall-list-32bit-condition, syscall-list-64bit-options)
11823         (syscall-list-64bit-condition): Define.
11824         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
11825         Remove.
11826         (syscall-list-variants, syscall-list-32bit-options)
11827         (syscall-list-32bit-condition, syscall-list-64bit-options)
11828         (syscall-list-64bit-condition): Define.
11830 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
11832         * locale/iso-639.def: Add brx entry.
11834         [BZ #13328]
11835         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
11836         Proposed by Mariusz_Cukr <marcukr@op.pl>.
11838         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
11839         __feraiseexcept_renamed.
11841 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
11843         [BZ #13538]
11844         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
11845         EPOLLET with unsigned values.
11846         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11847         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
11849         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
11850         to large cancellation.
11851         * math/s_cacoshf.c: Likewise.
11852         * math/s_cacoshl.c: Likewise.
11854 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
11856         [BZ #13305]
11857         [BZ #12786]
11858         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
11859         * math/s_cacoshf.c: Likewise.
11860         * math/s_cacoshl.c: Likewise.
11862 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
11864         [BZ #13439]
11865         * iconv/gconv.h: Define __GCONV_SWAP.
11866         * iconvdata/unicode.c: The swap bit must be stored in __flags.
11867         * iconvdata/utf-16.c: Likewise.
11868         * iconvdata/utf-32.c: Likewise.
11870 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
11872         [BZ #13524]
11873         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
11874         numerator after shifting it by one limb.
11876 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
11878         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
11879         under [__USE_EXTERN_INLINES].
11881 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
11883         [BZ #13446]
11884         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
11886 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11888         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
11889         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
11890         optimized code.
11891         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
11892         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
11893         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
11894         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
11895         for strncasecmp/strncasecmp_l compilation.
11896         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
11897         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
11899 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
11901         [BZ #13484]
11902         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
11903         of __asm__.
11905 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
11907         [BZ #13506]
11908         * time/tzfile.c (__tzfile_read): Check values from file header.
11910 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
11912         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
11913         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
11914         * powerpc/powerpc32/dl-start.S: Likewise.
11915         * powerpc/powerpc32/elf/start.S: Likewise.
11916         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
11917         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
11918         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
11919         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
11920         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
11921         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
11922         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
11923         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
11924         * powerpc/powerpc32/fpu/s_round.S: Likewise.
11925         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
11926         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
11927         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
11928         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
11929         * powerpc/powerpc32/memset.S: Likewise.
11930         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
11931         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
11932         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
11933         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
11934         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
11935         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
11936         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
11937         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
11938         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
11939         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
11940         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
11941         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
11942         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
11944 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11946         * math/libm-test.inc: Added more nearbyint tests.
11947         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
11948         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
11949         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
11950         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
11952 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
11954         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
11955         FD_CLOEXEC.
11957 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11959         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
11960         Add wcscpy-ssse3 wcscpy-c.
11961         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
11962         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
11963         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
11964         * sysdeps/x86_64/wcschr.S: New file.
11965         * sysdeps/x86_64/wcsrchr.S: New file.
11966         * string/test-strcmp.c: Remove checking of wcscmp function for
11967         wrong alignments.
11968         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
11969         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
11970         wcsrchr-sse2 wcsrchr-c.
11971         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
11972         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
11973         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
11974         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
11975         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
11976         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
11977         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
11978         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
11979         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
11980         * wcsmbc/wcschr.c (WCSCHR): New macro.
11982 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11984         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
11985         * wcsmbs/test-wcsrchr.c: New file.
11986         * string/test-strrchr.c: Add wcsrchr support.
11987         (WIDE): New macro.
11988         * wcsmbs/test-wcscpy.c: New file.
11989         * string/test-strcpy.c: Add wcscpy support.
11990         (WIDE): New macro.
11992 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
11994         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
11995         the inner loop.
11997 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
11999         [BZ #13472]
12000         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
12002 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
12004         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
12005         Minor optimizations.
12007         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
12008         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
12009         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
12011 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
12013         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
12014         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
12015         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
12016         for gcc to avoid warnings.
12017         * inet/Makefile (tests): Add tst-checks.
12018         * inet/tst-checks.c: New file.
12020         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
12021         warning.
12023         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
12024         __wmemcmp_sse2.
12026         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
12027         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
12029         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
12031 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
12033         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
12034         problem.
12036         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
12038 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
12040         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
12041         conditional on GCC version.
12042         (__arch_compare_and_exchange_val_8_acq)
12043         (__arch_compare_and_exchange_val_16_acq)
12044         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
12045         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
12046         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
12048 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
12050         * sysdeps/sh/backtrace.c: New file.
12052 2011-12-02  Andreas Schwab  <schwab@redhat.com>
12054         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
12055         parenthesis.
12057 2011-12-01  Andreas Schwab  <schwab@redhat.com>
12059         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
12060         falling back to utime.
12062 2011-11-30  Andreas Schwab  <schwab@redhat.com>
12064         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
12065         expectations for float.
12067 2011-11-29  Andreas Schwab  <schwab@redhat.com>
12069         * locale/weight.h (findidx): Add parameter len.
12070         * locale/weightwc.h (findidx): Likewise.
12071         * posix/fnmatch_loop.c (FCT): Adjust caller.
12072         * posix/regcomp.c (build_equiv_class): Likewise.
12073         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
12074         * posix/regexec.c (check_node_accept_bytes): Likewise.
12075         * string/strcoll_l.c (STRCOLL): Likewise.
12076         * string/strxfrm_l.c (STRXFRM): Likewise.
12078 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
12080         * Makefile.in: Remove CVSOPT handling.
12081         * configure.in: Remove use of AC_REVISION.
12082         * iconvdata/Makefile (distribute): No need to filter out CVS.
12083         * scripts/list-sources.sh: Remove CVS, subversion and monotone
12084         handling.
12086 2011-11-16  Andreas Schwab  <schwab@redhat.com>
12088         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
12089         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
12090         [USE_AS_STRNCASECMP_L]: Likewise.
12091         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
12092         NO_TLS_DIRECT_SEG_REFS.
12093         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
12094         Fix argument offsets for non-PIC.
12095         [USE_AS_STRNCASECMP_L]: Likewise.
12096         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
12097         NO_TLS_DIRECT_SEG_REFS.
12099 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12101         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
12102         O_CLOEXEC.
12103         * locale/loadlocale.c (_nl_load_locale): Likewise.
12105 2011-11-15  Andreas Schwab  <schwab@redhat.com>
12107         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
12108         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
12109         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
12110         (SYSCALL_GETTIME): Set errno on error.
12112         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
12113         count references to noai6ai_cached.
12115 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12117         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
12119         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
12120         FD_CLOEXEC for /proc/self/maps.
12122         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
12123         FD_CLOEXEC for /proc/meminfo.
12125         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
12126         gai.conf.
12128         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
12129         FD_CLOEXEC for given file.
12131         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
12133         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
12134         FD_CLOEXEC for /etc/hosts.
12135         (_gethtent): Likewise.
12137         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
12139         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
12140         cancellation and set FD_CLOEXEC for /etc/netgroup.
12142         * nss/nss_files/files-key.c (search): Don't allow cancellation when
12143         reading /etc/publickey.
12145         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
12146         allow cancellation when reading /etc/group.
12148         * nss/nss_files/files-alias.c (internal_setent): Don't allow
12149         cancellation.
12150         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
12152         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
12153         when using data file.
12155         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
12157         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
12158         (write_nis_obj): Use "c" and "e" in fopen.
12160         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
12162         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
12164         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
12166         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
12168         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
12169         locale.alias.
12171         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
12173         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
12175         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
12177         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
12178         file parsing and set FD_CLOEXEC.
12180 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
12182         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
12184 2011-11-14  Andreas Schwab  <schwab@redhat.com>
12186         * malloc/arena.c (arena_get2): Don't call reused_arena when
12187         _int_new_arena failed.
12189 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
12191         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
12192         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
12193         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
12194         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12195         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12196         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
12197         to compile strcasecmp and strncasecmp.
12198         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
12199         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
12201         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
12203 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
12205         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
12206         locale-defines.sym to gen-as-const-headers.
12207         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
12208         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
12209         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
12210         to compile strcasecmp and strncasecmp.
12211         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
12212         strcasecmp_l and strncasecmp_l.
12213         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
12214         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
12215         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
12216         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
12217         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
12218         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
12219         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
12220         * sysdeps/i386/i686/multiarch/strncase.S: New file.
12221         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
12222         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
12223         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
12225 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
12227         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
12228         result of SYSDEP_GETTIME_CPU to retval.
12229         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
12230         parameter list to macro.  Remove trailing semicolon.  Adjust users.
12232         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
12233         variable.
12235         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
12236         mantissa words.
12237         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
12239         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
12240         from unused variable.
12242         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
12243         DWARF definitions.
12244         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
12245         for assembling.
12247         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
12248         over namespaces.
12250         * sunrpc/rpc_prot.c (rejected): Fix case value.
12252         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
12253         unsigned long long int to avoid warnings in shift.
12255         * posix/regex_internal.c (re_string_reconstruct): Actually use result
12256         of use of trans.
12257         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
12258         variable tmp.
12260         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
12261         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
12262         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
12264         * nis/nis_table.c (nis_list): Use variable of correct type for
12265         result of __follow_path call.
12267 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12269         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
12270         of math functions ceil, trunc, floor, round, and sqrt, when
12271         avaliable on the platform.
12272         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
12273         name clash.
12274         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12275         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
12276         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
12278 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
12280         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
12281         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
12283 2011-11-11  Roland McGrath  <roland@hack.frob.com>
12285         * include/unistd.h: Fix __readlink return type.
12286         Reported by Chris Metcalf <cmetcalf@tilera.com>.
12288 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
12290         * stdlib/ucontext.h: Undo last change for makecontext.
12292 2011-11-11  Andreas Schwab  <schwab@redhat.com>
12294         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
12296         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
12297         * setjmp/setjmp.h: Mark functions as non-leaf.
12298         * setjmp/bits/setjmp2.h: Likewise.
12299         * stdlib/ucontext.h: Likewise.
12301 2011-11-10  Andreas Schwab  <schwab@redhat.com>
12303         * malloc/arena.c (_int_new_arena): Don't increment narenas.
12304         (reused_arena): Don't check arena limit.
12305         (arena_get2): Atomically check arena limit.
12307 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
12309         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
12310         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
12312         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
12313         instructions.
12315 2011-11-07  Andreas Schwab  <schwab@redhat.com>
12317         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
12318         handler when locking.
12320         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12321         Fix size of allocated buffer.
12323 2011-11-04  Andreas Schwab  <schwab@redhat.com>
12325         [BZ #10103]
12326         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
12327         declarations for long double functions.
12328         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
12330         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
12332 2011-11-03  Andreas Schwab  <schwab@redhat.com>
12334         * nscd/nscd.c (main): Don't start AVC thread until credentials are
12335         installed.
12337         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
12338         is disabled.
12340 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12342         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
12344 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
12346         * include/alloca.h (stackinfo_alloca_round): Define.
12347         (extend_alloca): Use it.
12348         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
12349         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
12350         here.
12352         * scripts/check-local-headers.sh: Ignore libaudit.h.
12354         * nscd/Makefile (extra-objs): Make recursively expanded.
12356 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
12358         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
12359         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
12361         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
12362         * posix/tst-rfc3484-2.c: Likewise.
12363         * posix/tst-rfc3484-3.c: Likewise.
12365         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12366         process_vm_writev.
12367         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
12368         process_vm_writev.
12369         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
12370         process_vm_writev from libc using GLIBC_2.15 version.
12372         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
12374 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
12376         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
12377         stack usage.
12379 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
12381         [BZ #13367]
12382         * nss/getent.c (initgroups_keys): Show error message in case no group
12383         names are given.
12385         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
12386         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
12387         __bump_nl_timestamp.
12388         * nscd/connections (nscd_init): When host database is served open
12389         netlink socket and request notification about configuration changes.
12390         (main_loop_poll): Track netlink file descriptor and bump timestamp
12391         in case data becomes available.
12392         (main_loop_epoll): Likewise.
12393         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
12394         (database_pers_head): Add extra_data fileds.
12395         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
12396         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
12397         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
12398         Adjust caller.
12399         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
12400         in6ai data, call __free_in6ai.
12401         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
12402         Add -DHAVE_NETLINK.
12403         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
12404         interface information.  Reuse previous data if netlink timestamp
12405         is not changed.
12406         (__bump_nl_timestamp): New function.
12407         (__free_in6ai): New function.
12409 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
12411         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
12412         close_not_cancel_no_status here.
12413         (__check_pf): Reorganize code a bit to not call close twice if OOM.
12415 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
12417         [BZ #13276]
12418         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
12419         return value.
12421         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
12422         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
12423         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
12425 2011-07-03  Andreas Jaeger  <aj@suse.de>
12427         [BZ #10709]
12428         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
12429         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
12430         * math/libm-test.inc (sin_test): Add test case.
12432 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
12434         [BZ #13337]
12435         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
12436         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
12438         * elf/chroot_canon.c (chroot_canon): Cleanups.
12440         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
12442         [BZ #13335]
12443         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
12444         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
12446         * string/test-strchr.c: Make usable for strchrnul testing.
12447         * string/test-strchrnul.c: New file.
12448         * string/Makefile (strop-tests): Add strchrnul.
12450         * po/it.po: Update from translation team.
12451         * po/es.po: Likewise.
12453 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
12455         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
12456         the three constants needed as parameters.  Drop the others.
12457         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
12458         __m128i_strloadu_tolower.
12459         Create and initialize variable zero and use it in all the places
12460         where _mm_setzero_si128 was used.
12462         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
12463         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
12464         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
12465         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
12466         anymore.
12467         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
12468         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
12469         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
12470         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
12471         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
12472         __mpranred, __mptan.
12473         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
12474         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
12475         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
12476         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
12477         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
12478         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
12479         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
12480         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
12481         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
12483 2011-10-28  Andreas Schwab  <schwab@redhat.com>
12485         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
12486         redefine if SHARED.
12487         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
12489         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
12490         wide char related routines to wcsmbs subdir.
12492 2011-10-27  Andreas Schwab  <schwab@redhat.com>
12494         [BZ #13344]
12495         * misc/sys/cdefs.h (__THROWNL): Define.
12496         * posix/unistd.h: Use __THREADNL instead of __THREAD
12497         for memory synchronization functions.
12499 2011-10-26  Roland McGrath  <roland@hack.frob.com>
12501         [BZ #13349]
12502         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
12503         doesn't exist.
12504         * manual/stdio.texi (Obstack Streams): Node removed.
12506 2011-10-26  Andreas Schwab  <schwab@redhat.com>
12508         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
12509         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12510         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12512         * math/math_private.h (math_force_eval): Allow non-addressable
12513         arguments.
12514         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
12516 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
12518         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
12519         file is not needed.
12521         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
12522         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
12523         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12524         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12525         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12526         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12527         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12528         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
12529         Add AVX variants.
12530         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
12531         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
12532         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
12533         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
12534         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
12535         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
12536         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
12537         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
12538         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
12539         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
12540         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
12541         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
12542         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
12543         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
12544         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
12545         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
12546         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
12547         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
12548         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
12550         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
12551         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
12553         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
12554         place.  Use VEX encoding when compiling for AVX.
12556 2011-10-25  Andreas Schwab  <schwab@redhat.com>
12558         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
12559         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
12561         * string/test-strchr.c (do_test): Don't generate NUL bytes.
12563 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
12565         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
12566         useless if() expression.
12567         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12568         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12569         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12570         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12571         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12572         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12573         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12574         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12575         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12576         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12577         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12578         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12579         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12580         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12581         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12582         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12583         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12584         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12585         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12587         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
12589 2011-10-25  Andreas Schwab  <schwab@redhat.com>
12591         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
12592         condition.
12593         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12595 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
12597         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
12598         .text section.  Avoid duplicate constants.
12599         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12600         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12601         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12602         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12603         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12604         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12605         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12606         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12607         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
12608         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
12609         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
12610         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
12611         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
12612         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
12613         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
12614         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
12615         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
12616         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
12617         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12618         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12619         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12620         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12621         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12622         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
12623         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
12624         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
12625         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
12626         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
12627         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
12628         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
12629         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
12630         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
12631         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
12632         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
12633         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
12634         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
12635         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
12636         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
12637         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
12638         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
12639         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
12640         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
12641         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
12642         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
12643         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
12645 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
12647         * sysdeps/x86_64/dla.h: Move to ...
12648         * sysdeps/x86_64/fpu/dla.h: ...here.
12649         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
12650         situations.  Use __builtin_fma only for gcc 4.6 and up.
12652         * config.make.in: Add have-mfma4 entry.
12653         * configure.in: Substitute libc_cv_cc_fma4.
12654         * math/Makefile (dbl-only-routines): Add sincostab.
12655         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
12656         Use __sincostab not sincos.
12657         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
12658         name is a macro.
12659         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12660         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12661         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12662         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
12663         using __copysign.
12664         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
12665         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
12666         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
12667         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
12668         and __inv.
12669         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
12670         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
12671         __copysign.
12672         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
12673         define aliases when function name is a macro.
12674         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
12675         sysdeps/ieee754/dbl-64/sincos.tbl.
12676         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
12677         fma4-enabled routines.
12678         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
12679         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
12680         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
12681         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
12682         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
12683         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
12684         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
12685         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
12686         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
12687         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
12688         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
12689         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
12690         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
12691         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
12692         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
12693         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
12694         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
12695         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
12696         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
12697         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
12698         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
12699         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
12700         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
12701         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
12702         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
12703         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
12704         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
12705         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
12706         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
12707         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
12709         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
12710         rename.
12711         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12712         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12713         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12714         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12715         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12716         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12717         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12718         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12720 2011-10-24  Andreas Schwab  <schwab@redhat.com>
12722         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
12724 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
12726         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
12728         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
12729         prediction.
12730         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
12732         * string/strnlen.c: Don't define STRNLEN, reverse logic.
12733         Remove unused variable magic_bits.
12734         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
12736         * string/strnlen.c: Define and use STRNLEN macro.
12737         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
12738         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
12739         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
12740         * wcsmbs/wcslen.c: Define and use WCSLEN.
12741         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
12742         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
12743         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
12744         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
12745         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
12746         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
12747         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
12749 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12751         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12752         strnlen-sse2-no-bsf.
12753         Rename strlen-no-bsf to strlen-sse2-no-bsf.
12754         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
12755         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
12756         Add strnlen support.
12757         (USE_AS_STRNLEN): New macro.
12758         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
12759         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
12760         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
12761         * sysdeps/x86_64/wcslen.S: New file.
12763 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
12765         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
12766         XMM-moves are used for copying on small sizes.
12768 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12770         * wcsmbs/Makefile (strop-tests): Add wcschr.
12771         * wcsmbs/test-wcschr.c: New file.
12772         * string/test-strchr.c: Update.
12773         Add wcschr support.
12774         (WIDE): New macro.
12776 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12778         * wcsmbs/Makefile (strop-tests): Add wcslen.
12779         * wcsmbs/test-wcslen.c: New file.
12780         * string/test-strlen.c: Update.
12781         Add wcslen support.
12782         (WIDE): New macro.
12784 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
12786         * po/it.po: Update from translation team.
12788 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12790         * sysdeps/x86_64/wcscmp.S: Update.
12791         Fix wrong comparison semantics.
12792         wcscmp shall use signed comparison not unsigned.
12793         Don't use substraction to avoid overflow bug.
12794         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
12795         * wcsmbc/wcscmp.c: Likewise.
12796         * string/test-strcmp.c: Likewise.
12797         Add new tests to check cases with negative values.
12799 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
12801         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
12802         * sysdeps/x86_64/dla.h: ...here.  New file.
12803         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
12804         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12805         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12806         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12807         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12808         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12809         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12810         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12811         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12813 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
12815         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
12816         __ynl_finite aliases.
12818 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
12820         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12822         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
12823         define DLA_FMA.
12824         [DLA_FMA] (EMULV): Use DLA_FMA.
12825         [DLA_FMA] (MUL12): Use EMULV.
12826         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
12827         that are not needed.
12828         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12829         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12830         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12831         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12832         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12833         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12834         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12836 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
12838         * math/s_nan.c: Undef __nan.
12839         * math/s_nanf.c: Undef __nanf.
12840         * math/s_nanl.c: Undef __nanl.
12841         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
12842         "math_private.h".
12844 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
12846         * math/s_catan.c: Add branch predictions.
12847         * math/s_catanf.c: Likewise.
12848         * math/s_catanh.c: Likewise.
12849         * math/s_catanhf.c: Likewise.
12850         * math/s_catanhl.c: Likewise.
12851         * math/s_catanl.c: Likewise.
12852         * math/s_cexp.c: Likewise.
12853         * math/s_cexpf.c: Likewise.
12854         * math/s_cexpl.c: Likewise.
12855         * math/s_clog.c: Likewise.
12856         * math/s_clog10.c: Likewise.
12857         * math/s_clog10f.c: Likewise.
12858         * math/s_clog10l.c: Likewise.
12859         * math/s_clogf.c: Likewise.
12860         * math/s_clogl.c: Likewise.
12861         * math/s_csqrt.c: Likewise.
12862         * math/s_csqrtf.c: Likewise.
12863         * math/s_csqrtl.c: Likewise.
12864         * math/s_ctanf.c: Likewise.
12865         * math/s_ctanh.c: Likewise.
12866         * math/s_ctanhf.c: Likewise.
12867         * math/s_ctanhl.c: Likewise.
12868         * math/s_ctanl.c: Likewise.
12870         * math/math_private.h: Define __nan, __nanf, __nanl.
12871         * math/s_cacosh.c: Include <math_private.h>.
12872         * math/s_cacoshl.c: Likewise.
12873         * math/s_casinh.c: Likewise.
12874         * math/s_casinhf.c: Likewise.
12875         * math/s_casinhl.c: Likewise.
12876         * math/s_ccos.c: Rely entire on ccosh.
12877         * math/s_ccosf.c: Rely entire on ccoshf.
12878         * math/s_ccosl.c: Rely entirely on ccoshl.
12879         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
12880         Remove tests for FE_INVALID.
12881         * math/s_ccoshf.c: Likewise.
12882         * math/s_ccoshl.c: Likewise.
12883         * math/s_csin.c: Likewise.
12884         * math/s_csinf.c: Likewise.
12885         * math/s_csinh.c Likewise.
12886         * math/s_csinhf.c: Likewise.
12887         * math/s_csinhl.c: Likewise.
12888         * math/s_csinl.c: Likewise.
12889         * math/s_ctan.c: Likewise.
12890         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
12891         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
12892         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
12894 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
12896         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
12897         compilation problems.
12899         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
12900         __builtin_expect.
12902 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
12904         * sysdeps/i386/configure.in: Test for -mfma4 option.
12905         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
12906         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
12907         COMMON_CPUID_INDEX_80000001.
12908         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
12909         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
12910         use it if FMA3 is not supported.
12911         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
12913         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
12914         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
12916 2011-10-20  Andreas Schwab  <schwab@redhat.com>
12918         [BZ #12892]
12919         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
12920         it would create a cycle with a link time dependency.
12922 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
12924         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
12925         instruction.
12926         * string/Makefile (strop-tests): Add rawmemchr.
12927         * string/test-rawmemchr.c: New file.
12929         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
12930         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
12931         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
12932         when compiling str{,n}casecmp and when AVX is available.  Hook up
12933         new optimized code in initializers.
12935 2011-10-19  Andreas Schwab  <schwab@redhat.com>
12937         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
12938         __feraiseexcept instead of feraiseexcept.
12940 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
12942         * math/math_private.h: Define defaults for libc_fetestexcept and
12943         libc_feupdateenv.
12944         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
12945         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12946         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12947         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12948         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12949         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
12950         libc_fetestexcept and libc_feupdateenv.
12952         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
12953         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
12954         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
12955         * sysdeps/x86_64/fpu/math_private.h: Define special version of
12956         libc_feholdexcept_setround.
12958         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
12959         Add s_nearbyint-c and s_nearbyintf-c.
12960         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
12961         nearbyintf inlines.
12962         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
12963         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
12964         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
12965         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
12967         * math/math_private.h: Define defaults for libc_fegetround,
12968         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
12969         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
12970         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
12971         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
12972         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
12973         standard functions.
12974         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12975         Remove comments and hacks for old compiler versions.
12976         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
12977         libc_fegetround, libc_fesetround, libc_feholdexcept, and
12978         libc_feholdexceptl.
12980 2011-10-18  Andreas Schwab  <schwab@redhat.com>
12982         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
12983         (__feraiseexcept_renamed): Add __NTH.
12984         (feraiseexcept): Add __NTH.  Rename local variables to fix
12985         namespace violations.
12987 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
12989         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
12991         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
12993         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
12994         recently added interfaces.
12995         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
12997         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
12998         about macro parameter expansion.
13000         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
13001         __NO_MATH_INLINES is defined.  Cleanups.
13003         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
13004         and __floorf is target has SSE4.1.
13005         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
13006         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
13007         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
13008         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
13010         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
13011         name.
13012         (floorf): Likewise.
13014         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
13016 2011-10-17  Andreas Schwab  <schwab@redhat.com>
13018         * misc/sys/cdefs.h: Fix last change.
13020         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
13021         database lookup.
13023 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
13025         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
13027         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
13028         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13029         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13030         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13031         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13032         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13033         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13034         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13035         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13036         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
13037         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
13038         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
13039         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
13040         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
13041         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
13042         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
13043         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
13044         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
13045         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
13046         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
13047         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
13048         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
13050         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
13051         ceil, ceilf, floor, floorf.
13053         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
13054         Perform IRELATIVE relocations last.
13056         * elf/do-rel.h: Add another parameter nrelative, replacing the
13057         local variable with the same name.  Change name of the function
13058         to end in Rel or Rela (uppercase).
13059         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
13060         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
13061         elf_dynamic_do_##reloc function.
13063 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13065         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
13066         is sufficient, at least on modern CPUs.
13068         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
13070         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
13071         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
13073         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
13074         __expl_finite.
13075         * math/bits/math-finite.h: Add entries for exp.
13076         * math/e_expl.c: Add __*_finite alias.
13077         * sysdeps/i386/fpu/e_exp.S: Likewise.
13078         * sysdeps/i386/fpu/e_expf.S: Likewise.
13079         * sysdeps/i386/fpu/e_expl.c: Likewise.
13080         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13081         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13082         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13083         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13084         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
13085         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13086         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13088         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
13089         is sufficient, at least on modern CPUs.
13091         * ctype/ctype-info.c (__ctype_init): Define.
13092         * include/ctype.h (__ctype_init): Declare.
13093         (__ctype_b_loc): The variable is always initialized.
13094         (__ctype_toupper_loc): Likewise.
13095         (__ctype_tolower_loc): Likewise.
13096         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
13097         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
13099 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
13101         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
13103         * configure.in: Also look in $cxxmachine/include for C++ system
13104         headers.
13106 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13108         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
13109         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
13110         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
13111         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
13112         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
13113         (USE_AS_WMEMCMP): New macro.
13114         Fixing indents.
13115         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
13116         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
13117         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
13118         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
13119         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13120         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
13121         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
13122         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
13123         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
13124         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
13125         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
13126         (USE_AS_WMEMCMP): New macro.
13127         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
13128         * sysdeps/string/test-memcmp.c: Update.
13129         Fix simple_wmemcmp.
13130         Add new tests.
13131         * wcsmbs/wmemcmp.c: Update.
13132         (WMEMCMP): New macro.
13133         Fix overflow bug.
13135 2011-10-12  Andreas Jaeger  <aj@suse.de>
13137         [BZ #13268]
13138         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
13140 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13142         * libio/iofwide.c (do_length): Avoid warning.
13144         * ctype/ctype.h (__isctype_f): Add missing __THROW.
13146 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
13148         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
13150         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
13151         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
13152         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
13153         * sysdeps/i386/i686/fpu/e_log.S: New file.
13154         * sysdeps/i386/i686/fpu/e_logf.S: New file.
13155         * sysdeps/i386/i686/fpu/e_logl.S: New file.
13157         * ctype/ctype.h: Add support for inlined isXXX functions when
13158         compiling C++ code.
13160 2011-10-14  Andreas Schwab  <schwab@redhat.com>
13162         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13164         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
13166 2011-10-13  Roland McGrath  <roland@hack.frob.com>
13168         [BZ #13291]
13169         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
13171 2011-10-13  Andreas Schwab  <schwab@redhat.com>
13173         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
13174         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
13175         feraiseexcept.
13177         * sysdeps/x86_64/memrchr.S: Check for zero size.
13179         * string/stratcliff.c: Add memrchr tests.
13181 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13183         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13184         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
13185         rawmemchr-sse2 rawmemchr-sse2-bsf.
13186         * sysdeps/i386/i686/multiarch/memchr.S: New file.
13187         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
13188         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
13189         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
13190         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
13191         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
13192         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
13193         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
13194         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
13195         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
13196         * string/memrchr.c (MEMRCHR): New macro.
13198 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
13200         Add integration with gcc's -ffinite-math-only and optimize wrapper
13201         functions in libm.
13202         * Versions.def: Define GLIBC_2.15 version for libm.
13203         * math/Makefile (headers): Add bits/math-finite.h.
13204         * math/bits/math-finite.h: New file.
13205         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
13206         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
13207         * math/e_acoshl.c: Add __*_finite alias.
13208         * math/e_acosl.c: Likewise.
13209         * math/e_asinl.c: Likewise.
13210         * math/e_atan2l.c: Likewise.
13211         * math/e_atanhl.c: Likewise.
13212         * math/e_coshl.c: Likewise.
13213         * math/e_exp10.c: Likewise.
13214         * math/e_exp10f.c: Likewise.
13215         * math/e_exp10l.c: Likewise.
13216         * math/e_exp2l.c: Likewise.
13217         * math/e_fmodl.c: Likewise.
13218         * math/e_gammal_r.c: Likewise.
13219         * math/e_hypotl.c: Likewise.
13220         * math/e_j0l.c: Likewise.
13221         * math/e_j1l.c: Likewise.
13222         * math/e_jnl.c: Likewise.
13223         * math/e_lgammal_r.c: Likewise.
13224         * math/e_log10l.c: Likewise.
13225         * math/e_log2l.c: Likewise.
13226         * math/e_logl.c: Likewise.
13227         * math/e_powl.c: Likewise.
13228         * math/e_sinhl.c: Likewise.
13229         * math/e_sqrtl.c: Likewise.
13230         * math/e_scalb.c: Completely rewritten and optimized.
13231         * math/e_scalbf.c: Likewise.
13232         * math/e_scalbl.c: Likewise.
13233         * math/w_acos.c: Likewise.
13234         * math/w_acosf.c: Likewise.
13235         * math/w_acosl.c: Likewise.
13236         * math/w_acosh.c: Likewise.
13237         * math/w_acoshf.c: Likewise.
13238         * math/w_acoshl.c: Likewise.
13239         * math/w_asin.c: Likewise.
13240         * math/w_asinf.c: Likewise.
13241         * math/w_asinl.c: Likewise.
13242         * math/w_atan2.c: Likewise.
13243         * math/w_atan2f.c: Likewise.
13244         * math/w_atan2l.c: Likewise.
13245         * math/w_atanh.c: Likewise.
13246         * math/w_atanhf.c: Likewise.
13247         * math/w_atanhl.c: Likewise.
13248         * math/w_exp10.c: Likewise.
13249         * math/w_exp10f.c: Likewise.
13250         * math/w_exp10l.c: Likewise.
13251         * math/w_fmod.c: Likewise.
13252         * math/w_fmodf.c: Likewise.
13253         * math/w_fmodl.c: Likewise.
13254         * math/w_j0.c: Likewise.
13255         * math/w_j0f.c: Likewise.
13256         * math/w_j0l.c: Likewise.
13257         * math/w_j1.c: Likewise.
13258         * math/w_j1f.c: Likewise.
13259         * math/w_j1l.c: Likewise.
13260         * math/w_jn.c: Likewise.
13261         * math/w_jnf.c: Likewise.
13262         * math/w_log.c: Likewise.
13263         * math/w_logf.c: Likewise.
13264         * math/w_logl.c: Likewise.
13265         * math/w_log10.c: Likewise.
13266         * math/w_log10f.c: Likewise.
13267         * math/w_log10l.c: Likewise.
13268         * math/w_log2.c: Likewise.
13269         * math/w_log2f.c: Likewise.
13270         * math/w_log2l.c: Likewise.
13271         * math/w_pow.c: Likewise.
13272         * math/w_powf.c: Likewise.
13273         * math/w_powl.c: Likewise.
13274         * math/w_remainder.c: Likewise.
13275         * math/w_remainderf.c: Likewise.
13276         * math/w_remainderl.c: Likewise.
13277         * math/w_scalb.c: Likewise.
13278         * math/w_scalbf.c: Likewise.
13279         * math/w_scalbl.c: Likewise.
13280         * math/w_sqrt.c: Likewise.
13281         * math/w_sqrtf.c: Likewise.
13282         * math/w_sqrtl.c: Likewise.
13283         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
13284         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
13285         used.
13286         * math/math_private.h: Declare __kernel_standard_f.
13287         * math/w_cosh.c: Remove cruft and optimize a bit.
13288         * math/w_coshf.c: Likewise.
13289         * math/w_coshl.c: Likewise.
13290         * math/w_exp2.c: Likewise.
13291         * math/w_exp2f.c: Likewise.
13292         * math/w_exp2l.c: Likewise.
13293         * math/w_hypot.c: Likewise.
13294         * math/w_hypotf.c: Likewise.
13295         * math/w_hypotl.c: Likewise.
13296         * math/w_lgamma.c: Likewise.
13297         * math/w_lgamma_r.c: Likewise.
13298         * math/w_lgammaf.c: Likewise.
13299         * math/w_lgammaf_r.c: Likewise.
13300         * math/w_lgammal.c: Likewise.
13301         * math/w_lgammal_r.c: Likewise.
13302         * math/w_sinh.c: Likewise.
13303         * math/w_sinhf.c: Likewise.
13304         * math/w_sinhl.c: Likewise.
13305         * math/w_tgamma.c: Likewise.
13306         * math/w_tgammaf.c: Likewise.
13307         * math/w_tgammal.c: Likewise.
13308         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13309         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13310         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
13311         Minor optimizations.  Pretty printing.  Remove cruft.
13312         * sysdeps/i386/fpu/e_acosf.S: Likewise.
13313         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13314         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13315         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13316         * sysdeps/i386/fpu/e_acosl.c: Likewise.
13317         * sysdeps/i386/fpu/e_asin.S: Likewise.
13318         * sysdeps/i386/fpu/e_asinf.S: Likewise.
13319         * sysdeps/i386/fpu/e_atan2.S: Likewise.
13320         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
13321         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
13322         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13323         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13324         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13325         * sysdeps/i386/fpu/e_exp10.S: Likewise.
13326         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
13327         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
13328         * sysdeps/i386/fpu/e_exp2.S: Likewise.
13329         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
13330         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
13331         * sysdeps/i386/fpu/e_fmod.S: Likewise.
13332         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
13333         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
13334         * sysdeps/i386/fpu/e_hypot.S: Likewise.
13335         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
13336         * sysdeps/i386/fpu/e_log.S: Likewise.
13337         * sysdeps/i386/fpu/e_log10.S: Likewise.
13338         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13339         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13340         * sysdeps/i386/fpu/e_log2.S: Likewise.
13341         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13342         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13343         * sysdeps/i386/fpu/e_logf.S: Likewise.
13344         * sysdeps/i386/fpu/e_logl.S: Likewise.
13345         * sysdeps/i386/fpu/e_pow.S: Likewise.
13346         * sysdeps/i386/fpu/e_powf.S: Likewise.
13347         * sysdeps/i386/fpu/e_powl.S: Likewise.
13348         * sysdeps/i386/fpu/e_remainder.S: Likewise.
13349         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
13350         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
13351         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13352         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13353         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13354         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
13355         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
13356         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
13357         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
13358         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13359         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13360         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13361         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13362         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
13363         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13364         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13365         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13366         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13367         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13368         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
13369         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13370         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
13371         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
13372         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13373         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13374         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13375         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13376         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13377         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13378         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
13379         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13380         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13381         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
13382         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
13383         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13384         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
13385         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13386         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
13387         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13388         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13389         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13390         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
13391         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
13392         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
13393         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
13394         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
13395         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
13396         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13397         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
13398         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13399         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
13400         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
13401         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13402         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
13403         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13404         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
13405         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
13406         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13407         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13408         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
13409         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13410         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13411         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
13412         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
13413         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
13414         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
13415         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13416         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
13417         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13418         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
13419         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13420         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13421         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
13422         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13423         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
13424         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
13425         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13426         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13427         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
13428         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
13429         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
13430         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13431         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
13432         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13433         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
13434         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
13435         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13436         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
13437         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13438         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
13439         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13440         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13441         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13442         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13443         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13444         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
13445         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
13446         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13447         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13448         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13449         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
13450         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13451         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13452         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13453         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13454         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
13455         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
13456         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
13457         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
13458         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
13459         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
13460         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
13461         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13462         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13463         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13464         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13465         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
13466         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13467         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
13468         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
13469         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
13470         (__isnanf): Likewise.
13471         (__isinf_ns): Likewise.
13472         (__isinf_nsf): Likewise.
13473         (__finite): Likewise.
13474         (__finitef): Likewise.
13475         (__ieee754_sqrt): Define as macro.
13476         (__ieee754_sqrtf): Define as macro.
13477         (__ieee754_sqrtl): Define as macro.
13478         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
13479         inlined copy.
13480         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
13481         __FINITE_MATH_ONLY__ consistent.
13482         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
13484 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
13486         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
13487         of rawmemchr.
13489         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
13491 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
13493         * po/ja.po: Update from translation team.
13495 2011-10-08  Roland McGrath  <roland@hack.frob.com>
13497         * locale/programs/locarchive.c (prepare_address_space): New function.
13498         (create_archive, enlarge_archive, open_archive): Use it.
13500         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
13501         inside [SHARED], where it is used.
13503         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
13505         * nss/getent.c (netgroup_keys): Remove unused variable.
13506         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
13508 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
13510         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
13511         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
13512         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
13513         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
13514         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
13515         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
13516         * math/Makefile (libm-calls): Add s_isinf_ns.
13517         * math/divtc3.c: Use __isinf_nsl instead of isinf.
13518         * math/multc3.c: Likewise.
13519         * math/s_casin.c: Likewise.
13520         * math/s_casinf.c: Likewise.
13521         * math/s_casinl.c: Likewise.
13522         * math/s_ccos.c: Likewise.
13523         * math/s_ccosf.c: Likewise.
13524         * math/s_ccosl.c: Likewise.
13525         * math/s_ctan.c: Likewise.
13526         * math/s_ctanf.c: Likewise.
13527         * math/s_ctanh.c: Likewise.
13528         * math/s_ctanhf.c: Likewise.
13529         * math/s_ctanhl.c: Likewise.
13530         * math/s_ctanl.c: Likewise.
13531         * math/w_fmod.c: Likewise.
13532         * math/w_fmodf.c: Likewise.
13533         * math/w_fmodl.c: Likewise.
13534         * math/w_remainder.c: Likewise.
13535         * math/w_remainderf.c: Likewise.
13536         * math/w_remainderl.c: Likewise.
13537         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
13538         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
13539         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
13540         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
13541         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
13542         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
13543         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
13544         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
13546         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
13547         of the number.
13548         * stdio-common/printf_fphex.c: Likewise.
13549         * stdio-common/printf_size.c: Likewise.
13551         * math/e_exp10.c: Include math_private.h using <...> not "...".
13552         * math/e_exp10f.c: Likewise.
13553         * math/e_exp10l.c: Likewise.
13554         * math/e_exp2l.c: Likewise.
13555         * math/e_j0l.c: Likewise.
13556         * math/e_j1l.c: Likewise.
13557         * math/e_jnl.c: Likewise.
13558         * math/e_lgammal_r.c: Likewise.
13559         * math/e_rem_pio2l.c: Likewise.
13560         * math/e_scalb.c: Likewise.
13561         * math/e_scalbf.c: Likewise.
13562         * math/e_scalbl.c: Likewise.
13563         * math/k_cosl.c: Likewise.
13564         * math/k_sinl.c: Likewise.
13565         * math/k_tanl.c: Likewise.
13566         * math/s_cacoshf.c: Likewise.
13567         * math/s_catan.c: Likewise.
13568         * math/s_catanf.c: Likewise.
13569         * math/s_catanh.c: Likewise.
13570         * math/s_catanhf.c: Likewise.
13571         * math/s_catanhl.c: Likewise.
13572         * math/s_catanl.c: Likewise.
13573         * math/s_ccosh.c: Likewise.
13574         * math/s_ccoshf.c: Likewise.
13575         * math/s_ccoshl.c: Likewise.
13576         * math/s_cexp.c: Likewise.
13577         * math/s_cexpf.c: Likewise.
13578         * math/s_cexpl.c: Likewise.
13579         * math/s_clog.c: Likewise.
13580         * math/s_clog10.c: Likewise.
13581         * math/s_clog10f.c: Likewise.
13582         * math/s_clog10l.c: Likewise.
13583         * math/s_clogf.c: Likewise.
13584         * math/s_clogl.c: Likewise.
13585         * math/s_csin.c: Likewise.
13586         * math/s_csinf.c: Likewise.
13587         * math/s_csinh.c: Likewise.
13588         * math/s_csinhf.c: Likewise.
13589         * math/s_csinhl.c: Likewise.
13590         * math/s_csinl.c: Likewise.
13591         * math/s_csqrt.c: Likewise.
13592         * math/s_csqrtf.c: Likewise.
13593         * math/s_csqrtl.c: Likewise.
13594         * math/s_ctan.c: Likewise.
13595         * math/s_ctanf.c: Likewise.
13596         * math/s_ctanh.c: Likewise.
13597         * math/s_ctanhf.c: Likewise.
13598         * math/s_ctanhl.c: Likewise.
13599         * math/s_ctanl.c: Likewise.
13600         * math/s_ldexp.c: Likewise.
13601         * math/s_ldexpf.c: Likewise.
13602         * math/s_ldexpl.c: Likewise.
13603         * math/s_significand.c: Likewise.
13604         * math/s_significandf.c: Likewise.
13605         * math/s_significandl.c: Likewise.
13606         * math/w_acos.c: Likewise.
13607         * math/w_acosf.c: Likewise.
13608         * math/w_acosh.c: Likewise.
13609         * math/w_acoshf.c: Likewise.
13610         * math/w_acoshl.c: Likewise.
13611         * math/w_acosl.c: Likewise.
13612         * math/w_asin.c: Likewise.
13613         * math/w_asinf.c: Likewise.
13614         * math/w_asinl.c: Likewise.
13615         * math/w_atan2.c: Likewise.
13616         * math/w_atan2f.c: Likewise.
13617         * math/w_atan2l.c: Likewise.
13618         * math/w_atanh.c: Likewise.
13619         * math/w_atanhf.c: Likewise.
13620         * math/w_atanhl.c: Likewise.
13621         * math/w_cosh.c: Likewise.
13622         * math/w_coshf.c: Likewise.
13623         * math/w_coshl.c: Likewise.
13624         * math/w_dremf.c: Likewise.
13625         * math/w_exp10.c: Likewise.
13626         * math/w_exp10f.c: Likewise.
13627         * math/w_exp10l.c: Likewise.
13628         * math/w_exp2.c: Likewise.
13629         * math/w_exp2f.c: Likewise.
13630         * math/w_fmod.c: Likewise.
13631         * math/w_fmodf.c: Likewise.
13632         * math/w_fmodl.c: Likewise.
13633         * math/w_hypot.c: Likewise.
13634         * math/w_hypotf.c: Likewise.
13635         * math/w_hypotl.c: Likewise.
13636         * math/w_j0.c: Likewise.
13637         * math/w_j0f.c: Likewise.
13638         * math/w_j0l.c: Likewise.
13639         * math/w_j1.c: Likewise.
13640         * math/w_j1f.c: Likewise.
13641         * math/w_j1l.c: Likewise.
13642         * math/w_jn.c: Likewise.
13643         * math/w_jnf.c: Likewise.
13644         * math/w_jnl.c: Likewise.
13645         * math/w_lgamma.c: Likewise.
13646         * math/w_lgamma_r.c: Likewise.
13647         * math/w_lgammaf.c: Likewise.
13648         * math/w_lgammaf_r.c: Likewise.
13649         * math/w_lgammal.c: Likewise.
13650         * math/w_lgammal_r.c: Likewise.
13651         * math/w_log.c: Likewise.
13652         * math/w_log10.c: Likewise.
13653         * math/w_log10f.c: Likewise.
13654         * math/w_log10l.c: Likewise.
13655         * math/w_log2.c: Likewise.
13656         * math/w_log2f.c: Likewise.
13657         * math/w_log2l.c: Likewise.
13658         * math/w_logf.c: Likewise.
13659         * math/w_logl.c: Likewise.
13660         * math/w_pow.c: Likewise.
13661         * math/w_powf.c: Likewise.
13662         * math/w_powl.c: Likewise.
13663         * math/w_remainder.c: Likewise.
13664         * math/w_remainderf.c: Likewise.
13665         * math/w_remainderl.c: Likewise.
13666         * math/w_scalb.c: Likewise.
13667         * math/w_scalbf.c: Likewise.
13668         * math/w_scalbl.c: Likewise.
13669         * math/w_sinh.c: Likewise.
13670         * math/w_sinhf.c: Likewise.
13671         * math/w_sinhl.c: Likewise.
13672         * math/w_sqrt.c: Likewise.
13673         * math/w_sqrtf.c: Likewise.
13674         * math/w_sqrtl.c: Likewise.
13675         * math/w_tgamma.c: Likewise.
13676         * math/w_tgammaf.c: Likewise.
13677         * math/w_tgammal.c: Likewise.
13679         * po/ja.po: Update from translation team.
13681 2011-09-29  Andreas Jaeger  <aj@suse.de>
13683         [BZ #13179]
13684         * sunrpc/netname.c (netname2host): Fix logic.
13686         [BZ #6779]
13687         [BZ #6783]
13688         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
13689         correctly.
13690         * math/w_remainder.c (__remainder): Likewise.
13691         * math/w_remainderf.c (__remainderf): Likewise.
13692         * math/libm-test.inc (remainder_test): Add test cases.
13694 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13696         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
13697         sdiv_qrnnd.
13699 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
13701         * string/test-memcmp.c: Avoid unncessary #defines.
13702         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13704 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13706         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
13707         Use new sse2 version for core i3 - i7 as it's faster
13708         than sse42 version.
13709         (bit_Prefer_PMINUB_for_stringop): New.
13710         * sysdeps/x86_64/rawmemchr.S: Update.
13711         Replace with faster SSE2 version.
13712         * sysdeps/x86_64/memrchr.S: New file.
13713         * sysdeps/x86_64/memchr.S: Update.
13714         Replace with faster SSE2 version.
13716 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
13718         * elf/dl-load.c (lose): Add cast to avoid warning.
13720 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
13722         * po/ca.po: Update from translation team.
13724         * inet/getnetgrent_r.c: Hook up nscd.
13725         * nscd/Makefile (routines): Add nscd_netgroup.
13726         (nscd-modules): Add netgroupcache.
13727         (CFLAGS-netgroupcache.c): Define.
13728         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
13729         (cache_search): Add const to second parameter.
13730         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
13731         INNETGR.
13732         (dbs): Add netgrdb entry.
13733         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
13734         (verify_persistent_db): Handle netgrdb.
13735         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
13736         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
13737         GETFDNETGR.
13738         (netgroup_response_header): Define.
13739         (innetgroup_response_header): Define.
13740         (datahead): Add netgroup_response_header and innetgroup_response_header
13741         elements.
13742         * nscd/nscd.conf: Add entries for netgroup cache.
13743         * nscd/nscd.h (dbtype): Add netgrdb.
13744         (_PATH_NSCD_NETGROUP_DB): Define.
13745         (netgroup_iov_disabled): Declare.
13746         (xmalloc, xcalloc, xrealloc): Move declarations here.
13747         (cache_search): Adjust prototype.
13748         Add netgroup-related prototypes.
13749         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
13750         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
13751         (__nscd_innetgr): Declare.
13752         * nscd/selinux.c (perms): Use access_vector_t as element type and
13753         add netgroup-related initializers.
13754         * nscd/netgroupcache.c: New file.
13755         * nscd/nscd_netgroup.c: New file.
13756         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
13757         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
13758         For four parameters use innetgr.
13759         * nss/nss_files/files-init.c: Add definition and callback for netgr.
13760         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
13761         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
13762         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
13764         * nscd/connections.c (register_traced_file): Don't register file
13765         for disabled databases.
13767 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
13769         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
13771         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
13772         from tree and freeing node.
13774 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
13776         * nss/nsswitch.c (__nss_database_lookup): Handle
13777         nss_parse_service_list out of memory case.
13779 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
13781         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
13782         out of memory case.
13784 2011-10-04  Andreas Schwab  <schwab@redhat.com>
13786         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
13787         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
13788         pass it down.
13789         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
13790         elf_machine_rela, elf_machine_lazy_rel.
13791         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
13792         (ELF_DYNAMIC_DO_REL): Likewise.
13793         (ELF_DYNAMIC_DO_RELA): Likewise.
13794         (ELF_DYNAMIC_RELOCATE): Likewise.
13795         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
13796         to ELF_DYNAMIC_DO_REL.
13797         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
13798         (dl_main): In trace mode always set __RTLD_NOIFUNC.
13799         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
13800         elf_machine_rela.
13801         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
13802         skip_ifunc, don't call ifunc function if non-zero.
13803         (elf_machine_rela): Likewise.
13804         (elf_machine_lazy_rel): Likewise.
13805         (elf_machine_lazy_rela): Likewise.
13806         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13807         (elf_machine_lazy_rel): Likewise.
13808         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13809         Likewise.
13810         (elf_machine_lazy_rel): Likewise.
13811         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13812         Likewise.
13813         (elf_machine_lazy_rel): Likewise.
13814         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
13815         (elf_machine_lazy_rel): Likewise.
13816         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
13817         (elf_machine_lazy_rel): Likewise.
13818         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13819         (elf_machine_lazy_rel): Likewise.
13820         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
13821         (elf_machine_lazy_rel): Likewise.
13822         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
13823         (elf_machine_lazy_rel): Likewise.
13824         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13825         (elf_machine_lazy_rel): Likewise.
13827 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
13829         * nss/nss_files/files-init.c (_nss_files_init): Use static
13830         initialization for all the *_traced_file variables.
13832 2011-09-28  Andreas Schwab  <schwab@redhat.com>
13834         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13836 2011-09-27  Roland McGrath  <roland@hack.frob.com>
13838         [BZ #13226]
13839         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
13841 2011-09-27  Andreas Schwab  <schwab@redhat.com>
13843         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13844         Reread the line before reparsing it.
13846 2011-09-26  Andreas Schwab  <schwab@redhat.com>
13848         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
13850 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
13851             Maxim Kuvyrkov  <maxim@codesourcery.com>
13852             Joseph Myers  <joseph@codesourcery.com>
13854         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
13855         if needed for __stack_chk_guard.
13857 2011-09-19  Roland McGrath  <roland@hack.frob.com>
13859         * sysdeps/posix/spawni.c (script_execute): Always define it.
13860         It will be optimized away if unused.
13861         (maybe_script_execute): New function.
13862         (__spawni): Call it.
13864         * Makerules: Don't include tls.make.
13865         (config-tls): Always set to thread.
13866         * tls.make.c: File removed.
13868 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
13870         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
13871         * config.make.in (CPPFLAGS-config): New substituted variable.
13873 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
13875         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
13877         [BZ #13192]
13878         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
13879         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
13881 2011-09-15  Roland McGrath  <roland@hack.frob.com>
13883         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
13884         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
13885         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
13886         (CALL_FAIL): Likewise.
13887         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
13888         (CALL_FAIL): Macro removed.
13889         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
13891 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
13893         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
13894         for __FINITE_MATH_ONLY__ == 1.
13896 2011-09-15  Andreas Schwab  <schwab@redhat.com>
13898         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
13899         __ieee754_sqrt instead of sqrt.
13900         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
13901         __ieee754_sqrtf instead of sqrtf.
13902         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
13903         __floorf instead of floorf.
13904         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
13905         __floorf, __truncf instead of floorf, truncf.
13907 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
13909         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
13911         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
13912         __extern_always_inline.
13913         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
13914         32-bit.
13916 2011-09-14  Andreas Schwab  <schwab@redhat.com>
13918         * elf/rtld.c (dl_main): Also relocate in dependency order when
13919         doing symbol dependency testing.
13921 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
13923         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13924         Always define `refsym'.
13926 2011-09-13  Andreas Schwab  <schwab@redhat.com>
13928         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
13929         (__FD_ELT): Renamed from __FDELT.
13930         * misc/bits/select2.h (__FD_ELT): Likewise.
13931         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
13932         __FD_MASK instead of __FDELT, __FDMASK.
13933         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
13934         Likewise.
13935         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
13936         Likewise.
13938         * elf/Makefile (gen-ldd): Fix pattern.
13940         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
13941         (init_tls): Likewise.
13943 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
13945         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
13947 2011-09-12  Andreas Schwab  <schwab@redhat.com>
13949         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
13950         `struct cmsghdr *' instead of `void *'.
13951         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
13952         Likewise.
13954 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
13956         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
13957         if non-absolute.
13958         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
13959         ldd_rewrite_script.
13961 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
13963         * configure.in: Remove --with-tls option.
13964         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
13965         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
13966         out in case it is missing.
13967         * sysdeps/ia64/elf/configure.in: Likewise.
13968         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
13969         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
13970         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
13971         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
13972         * sysdeps/sh/elf/configure.in: Likewise.
13973         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
13974         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13975         * sysdeps/x86_64/elf/configure.in: Likewise.
13976         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
13977         * sysdeps/mach/hurd/tls.h: Likewise.
13979         [BZ #13067]
13980         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
13982         [BZ #13090]
13983         * configure.in: Fix use of AC_INIT.
13985         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
13987 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
13989         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
13990         __set_errno.
13991         * malloc/hooks.c: Likewise.
13993         [BZ #11929]
13994         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
13995         variables statically.
13996         (narenas): Initialize.
13997         (list_lock): Initialize.
13998         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
13999         initializtion of main_arena and list_lock.  Small cleanups.
14000         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
14001         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
14002         Add initializers to main_arena and mp_.
14003         (malloc_state): Remove pagesize member.  Change all users to use
14004         GLRO(dl_pagesize).
14006         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
14007         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
14008         is always initialized.
14010         * malloc/malloc.c: Removed unused configurations and dead code.
14011         * malloc/arena.c: Likewise.
14012         * malloc/hooks.c: Likewise.
14013         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
14015         * include/tls.h: Removed.  USE___THREAD must always be defined.
14016         * bits/libc-tsd.h: Don't handle !USE___THREAD.
14017         * elf/dl-libc.c: Likewise.
14018         * elf/dl-tsd.c: Likewise.
14019         * include/errno.h: Likewise.
14020         * include/netdb.h: Likewise.
14021         * include/resolv.h: Likewise.
14022         * inet/herrno-loc.c: Likewise.
14023         * inet/herrno.c: Likewise.
14024         * malloc/arena.c: Likewise.
14025         * malloc/hooks.c: Likewise.
14026         * malloc/malloc.c: Likewise.
14027         * resolv/res-state.c: Likewise.
14028         * resolv/res_libc.c: Likewise.
14029         * sysdeps/i386/dl-machine.h: Likewise.
14030         * sysdeps/ia64/dl-machine.h: Likewise.
14031         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
14032         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14033         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
14034         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
14035         * sysdeps/sh/dl-machine.h: Likewise.
14036         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
14037         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
14038         * sysdeps/unix/i386/sysdep.S: Likewise.
14039         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
14040         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14041         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14042         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
14043         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14044         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
14045         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
14046         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
14047         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14048         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14049         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14050         * sysdeps/x86_64/dl-machine.h: Likewise.
14051         * tls.make.c: Likewise.
14053         * configure.in: Remove --with-__thread option.  Make tests for
14054         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
14055         tls_model attribute fail if no support is available.  Remove
14056         USE_IN_LIBIO.
14057         * Makeconfig: Adjust for dropped configure option.  All features are
14058         now mandatory.
14059         * Makerules: Likewise.
14060         * Versions.def: Likewise.
14061         * argp/argp-fmtstream.c: Likewise.
14062         * argp/argp-fmtstream.h: Likewise.
14063         * argp/argp-help.c: Likewise.
14064         * assert/assert.c: Likewise.
14065         * config.h.in: Likewise.
14066         * config.make.in: Likewise.
14067         * configure: Likewise.
14068         * configure.in: Likewise.
14069         * csu/Versions: Likewise.
14070         * csu/init.c: Likewise.
14071         * elf/tst-audit2.c: Likewise.
14072         * elf/tst-tls10.c: Likewise.
14073         * elf/tst-tls10.h: Likewise.
14074         * elf/tst-tls11.c: Likewise.
14075         * elf/tst-tls12.c: Likewise.
14076         * elf/tst-tls14.c: Likewise.
14077         * elf/tst-tlsmod11.c: Likewise.
14078         * elf/tst-tlsmod12.c: Likewise.
14079         * elf/tst-tlsmod13.c: Likewise.
14080         * elf/tst-tlsmod13a.c: Likewise.
14081         * elf/tst-tlsmod14a.c: Likewise.
14082         * elf/tst-tlsmod15b.c: Likewise.
14083         * elf/tst-tlsmod16a.c: Likewise.
14084         * elf/tst-tlsmod16b.c: Likewise.
14085         * elf/tst-tlsmod7.c: Likewise.
14086         * elf/tst-tlsmod8.c: Likewise.
14087         * elf/tst-tlsmod9.c: Likewise.
14088         * gmon/gmon.c: Likewise.
14089         * grp/fgetgrent_r.c: Likewise.
14090         * grp/putgrent.c: Likewise.
14091         * hurd/fopenport.c: Likewise.
14092         * include/libc-symbols.h: Likewise.
14093         * include/tls.h: Likewise.
14094         * intl/gettextP.h: Likewise.
14095         * intl/loadinfo.h: Likewise.
14096         * locale/global-locale.c: Likewise.
14097         * locale/localeinfo.h: Likewise.
14098         * mach/devstream.c: Likewise.
14099         * malloc/arena.c: Likewise.
14100         * malloc/set-freeres.c: Likewise.
14101         * misc/err.c: Likewise.
14102         * misc/getttyent.c: Likewise.
14103         * misc/mntent_r.c: Likewise.
14104         * posix/getopt.c: Likewise.
14105         * posix/wordexp.c: Likewise.
14106         * pwd/fgetpwent_r.c: Likewise.
14107         * resolv/Versions: Likewise.
14108         * resolv/res_hconf.c: Likewise.
14109         * shadow/fgetspent_r.c: Likewise.
14110         * shadow/putspent.c: Likewise.
14111         * stdio-common/printf_fphex.c: Likewise.
14112         * stdio-common/tmpfile.c: Likewise.
14113         * stdlib/abort.c: Likewise.
14114         * stdlib/fmtmsg.c: Likewise.
14115         * sunrpc/auth_unix.c: Likewise.
14116         * sunrpc/clnt_perr.c: Likewise.
14117         * sunrpc/clnt_tcp.c: Likewise.
14118         * sunrpc/clnt_udp.c: Likewise.
14119         * sunrpc/clnt_unix.c: Likewise.
14120         * sunrpc/openchild.c: Likewise.
14121         * sunrpc/svc_simple.c: Likewise.
14122         * sunrpc/svc_tcp.c: Likewise.
14123         * sunrpc/svc_udp.c: Likewise.
14124         * sunrpc/svc_unix.c: Likewise.
14125         * sunrpc/xdr.c: Likewise.
14126         * sunrpc/xdr_array.c: Likewise.
14127         * sunrpc/xdr_rec.c: Likewise.
14128         * sunrpc/xdr_ref.c: Likewise.
14129         * sunrpc/xdr_stdio.c: Likewise.
14131 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14133         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14135 2011-07-03  Andreas Jaeger  <aj@suse.de>
14137         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
14138         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
14139         regenerate with gen-libm-tests.pl.
14141 2010-05-12  Petr Baudis  <pasky@suse.cz>
14143         [BZ #11589]
14144         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
14145         around j0() zero points by switching to j1().
14146         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14147         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14148         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14149         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14151 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14153         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
14154         instead of 0.
14155         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
14156         instead of 0.                              .
14157         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14158         Patch in part by Pavel Roskin <proski@gnu.org>.
14160         [BZ #13138]
14161         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
14162         realloc.
14163         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
14164         Free memory block if necessary.
14166         [BZ #12847]
14167         * libio/genops.c (INTDEF): For string streams the _lock pointer can
14168         be NULL.  Don't lock in this case.
14170 2011-09-09  Roland McGrath  <roland@hack.frob.com>
14172         * elf/elf.h (ELFOSABI_GNU): New macro.
14173         (ELFOSABI_LINUX): Define to that.
14175 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
14177         * string/strncat.c (strncat): Undef the symbol in case it has been
14178         defined in bits/string.h.
14180 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14182         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
14184         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
14185         link map.
14187 2011-08-17  Andreas Jaeger  <aj@suse.de>
14189         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
14191 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
14192             Ian Lance Taylor  <iant@google.com>
14194         * math/libm-test.inc (lround_test): New testcase.
14195         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
14197 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
14199         * Makefile: Remove support for automatic cvs check-ins.
14200         * Makerules: Likewise.
14201         * config.make.in: Likewise.
14202         * configure.in: Likewise.
14203         * intl/Makefile: Likewise.
14204         * locale/Makefile: Likewise.
14205         * po/Makefile: Likewise.
14206         * posix/Makefile: Likewise.
14207         * sysdeps/gnu/Makefile: Likewise.
14208         * sysdeps/mach/hurd/Makefile: Likewise.
14209         * sysdeps/sparc/sparc32/Makefile: Likewise.
14211         [BZ #13118]
14212         * posix/Makefile (bug-regex32-ENV): Define.
14213         Patch by John Stanley <jpsinthemix@verizon.net>.
14215         * misc/Makefile (headers): Add bits/select2.h.
14216         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
14217         * misc/bits/select2.h: New file.
14218         * include/bits/select2.h: New file.
14219         * debug/Makefile (routines): Add fdelt_chk.
14220         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
14221         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
14222         FD_ISSET.
14223         * debug/fdelt_chk.c: New file.
14225         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
14226         * wcsmbs/test-wmemcmp.c: Likewise.
14227         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
14228         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
14230 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14232         * string/Makefile (strop-tests): Add memcmp.
14233         * string/test-wmemcmp.c: New file.
14234         * string/test-memcmp.c: Add wmemcmp support.
14236 2011-09-08  Roland McGrath  <roland@hack.frob.com>
14238         [BZ #13153]
14239         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
14240         2011-07-19 change.
14242         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
14243         garbage value in a __mach_port_mod_refs call in the cases of the
14244         task-self and thread-self ports.
14246 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14248         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
14250 2011-09-08  Andreas Schwab  <schwab@redhat.com>
14252         * elf/dl-load.c (lose): Check for non-null L.
14254 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
14256         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
14258         * elf/dl-libc.c (dlerror_run): Pass back error code from
14259         dl_catch_error.
14261         [BZ #13123]
14262         * elf/dl-load.c (lose): Free l_origin if it is valid.
14264         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
14265         names.
14266         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
14267         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
14268         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
14269         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
14270         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
14271         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
14273 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14275         * sysdeps/powerpc/fpu/e_hypot.c: New file.
14276         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
14277         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
14278         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
14279         * sysdeps/powerpc/fpu/k_cosf.c: New file.
14280         * sysdeps/powerpc/fpu/k_sinf.c: New file.
14281         * sysdeps/powerpc/fpu/s_cosf.c: New file.
14282         * sysdeps/powerpc/fpu/s_sinf.c: New file.
14283         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
14284         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
14286 2011-08-15  Alan Modra  <amodra@gmail.com>
14288         [BZ #13092]
14289         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
14290         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
14291         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
14292         ppc_mcount to static-only-routines.
14293         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
14294         __mcount_internal.
14295         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
14296         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
14298 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
14300         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
14301         for finite and infinity parameters.
14303 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14305         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
14306         and add nop instructions for throughput optimization.
14307         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14309 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
14311         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
14312         aligned copy for power7 with vector-scalar instructions.
14313         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
14315 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
14317         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
14318         AVX check.
14320 2011-09-07  Andreas Schwab  <schwab@redhat.com>
14322         [BZ #13144]
14323         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
14324         last change.
14326 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
14328         * sysdeps/unix/sysv/linux/x86_64/init-first.c
14329         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
14330         syscall wrapper around clock_gettime in __vdso_clock_gettime.
14331         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
14332         clock_gettime.
14334 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
14336         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
14337         Forgot to demangle the pointer.
14339         * sysdeps/i386/sysdep.h: Define atom_text_section.
14340         * sysdeps/x86_64/sysdep.h: Likewise.
14341         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
14342         section with atom_text_section.
14343         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
14344         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
14345         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
14346         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
14347         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
14349         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
14350         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
14351         already be defined.  Change to take two parameters and don't assign
14352         result to variable.  Adjust all users.
14353         Define INTERNAL_GETTIME if not already defined.
14354         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
14355         call.
14356         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
14357         HAVE_CLOCK_GETTIME_VSYSCALL.
14358         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
14360         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
14361         gettimeofday vsyscall, just use time.
14363 2011-09-06  Andreas Schwab  <schwab@redhat.com>
14365         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
14366         <errno.h>.
14368 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
14370         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
14371         syscall on x86-64.
14372         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
14373         syscall.
14374         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
14375         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
14376         syscall if possible.
14378 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
14380         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
14381         e_ident.  Don't pass to find_mapsXX.
14382         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
14384 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14386         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14387         strchr-sse2-no-bsf strrchr-sse2-no-bsf
14388         * sysdeps/x86_64/multiarch/strchr.S: Update.
14389         Check bit_slow_BSF bit.
14390         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14391         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
14392         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
14394 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
14396         [BZ #13134]
14397         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
14398         before glibc 2.15.
14399         (tryshell): Define.
14400         (__spawni): Change last parameter to be flag.  Test
14401         SPAWN_XFLAGS_USE_PATH flag to use path or not.
14402         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
14403         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
14404         * posix/spawni.c: Likewise.
14405         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
14406         * posix/spawnp.c: Likewise.  Change normal version to use
14407         SPAWN_XFLAGS_USE_PATH.
14408         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
14409         SPAWN_XFLAGS_TRY_SHELL.
14411         [BZ #13150]
14412         * posix/glob.h: Remove gcc 1.x support.
14414         [BZ #13068]
14415         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
14417 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14419         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14420         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
14421         strrchr-sse2-bsf
14422         * sysdeps/i386/i686/multiarch/strchr.S: New file.
14423         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
14424         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
14425         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
14426         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
14427         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
14429 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14431         * sysdeps/x86_64/wcscmp.S: New file.
14433         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
14434         wcscmp-c wcscmp-sse2
14435         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
14436         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
14437         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
14438         * wcsmbs/wcscmp.c: Allow renaming.
14440 2011-09-05  David S. Miller  <davem@davemloft.net>
14442         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
14443         stack slot, rather than the struct return pointer slot.
14444         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
14445         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
14446         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
14447         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
14449 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
14451         * po/ja.po: Update from translation team.
14453         [BZ #13144]
14454         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
14455         kernel in 64-bit binaries.
14457 2011-09-01  David S. Miller  <davem@davemloft.net>
14459         * elf/elf.h (HWCAP_SPARC_*): Move to..
14460         * sysdeps/sparc/sysdep.h: this new file and add new values.
14461         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
14462         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
14463         _DL_HWCAP_COUNT to 24.
14464         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
14465         entries.
14466         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
14467         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
14468         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
14469         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
14470         instead of magic constants.
14471         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14473 2011-08-31  David S. Miller  <davem@davemloft.net>
14475         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
14476         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
14477         Reimplement to do errno handling inline.
14478         (SYSCALL_ERROR_HANDLER): New macro.
14479         (__SYSCALL_STRING): Do not do errno handling in asm.
14480         (__CLONE_SYSCALL_STRING): Delete.
14481         (__INTERNAL_SYSCALL_STRING): Delete.
14482         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
14483         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
14484         (PSEUDO): Reimplement to do errno handling inline.
14485         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
14486         (SYSCALL_ERROR_HANDLER): New macro.
14487         (__SYSCALL_STRING): Do not do errno handling in asm.
14488         (__CLONE_SYSCALL_STRING): Delete.
14489         (__INTERNAL_SYSCALL_STRING): Delete.
14490         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
14491         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
14492         i386.
14493         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
14494         (inline_syscall*): Add 'err' argument.
14495         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
14496         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
14497         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
14498         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
14500         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
14501         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
14503 2011-08-30  Andreas Schwab  <schwab@redhat.com>
14505         * elf/rtld.c (dl_main): Relocate objects in dependency order.
14507 2011-08-29  Jiri Olsa <jolsa@redhat.com>
14509         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
14510         directive.
14512 2011-08-24  David S. Miller  <davem@davemloft.net>
14514         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
14516 2011-08-24  Andreas Schwab  <schwab@redhat.com>
14518         * elf/Makefile: Add rules to build and run unload8 test.
14519         * elf/unload8.c: New file.
14520         * elf/unload8mod1.c: New file.
14521         * elf/unload8mod1x.c: New file.
14522         * elf/unload8mod2.c: New file.
14523         * elf/unload8mod3.c: New file.
14525         * elf/dl-close.c (_dl_close_worker): Reset private search list if
14526         it wasn't used.
14528 2011-08-23  David S. Miller  <davem@davemloft.net>
14530         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
14531         subtract stack bias.
14532         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
14533         %sp not %fp in calculations.
14534         (_JMPBUF_UNWINDS_ADJ): Likewise.
14536         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
14537         (aio_suspend): Call it to force an exception region around the
14538         AIO_MISC_WAIT() invocation.
14540 2011-08-23  Andreas Schwab  <schwab@redhat.com>
14542         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
14543         backslash.
14545 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
14547         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
14548         protection macro.
14549         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
14550         and <dl-machine.h>.
14551         (Elf64_FuncDesc): Remove.
14553 2011-08-22  David S. Miller  <davem@davemloft.net>
14555         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
14556         sigaltstack check, add missing cfi directives.
14557         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
14558         missing cfi directives, and sigaltstack handling.
14560 2011-08-16  Andreas Schwab  <schwab@redhat.com>
14562         [BZ #11724]
14563         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
14564         object is seen twice.
14565         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14567         * elf/Makefile (distribute): Add tst-initorder2.c.
14568         (tests): Add tst-initorder2.
14569         (modules-names): Add tst-initorder2a tst-initorder2b
14570         tst-initorder2c tst-initorder2d.  Add rules to build them.
14571         ($(objpfx)tst-initorder2.out): New rule.
14572         * elf/tst-initorder2.c: New file.
14573         * elf/tst-initorder2.exp: New file.
14575 2011-08-22  Andreas Schwab  <schwab@redhat.com>
14577         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
14579         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
14580         dependencies back to end of function.
14582         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
14583         $(elfobjdir)/ld.so.
14585 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
14587         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
14588         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
14589         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
14590         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
14591         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
14592         of __vdso_gettimeofday.
14593         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
14594         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
14595         attribute_hidden.
14596         (_libc_vdso_platform_setup): Remove initialization of
14597         __vdso_gettimeofday and __vdso_time.
14599 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
14601         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
14602         and fgetc_unlocked.
14603         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
14604         getc_unlocked.
14606         * elf/dl-open.c (add_to_global): Report additions to the global scope
14607         for LD_DEBUG=scopes.
14608         (dl_open_worker): Also print scope of newly loaded dependencies.
14609         (_dl_show_scope): Indicate if there is no scope.
14611         [BZ #13114]
14612         * stdio-common/Makefile (tests): Add bug24.
14613         * stdio-common/bug24.c: New file.
14615 2011-08-19  Andreas Jaeger  <aj@suse.de>
14617         [BZ #13114]
14618         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
14619         non-existant file when using close-on-exec mode.
14621 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
14623         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
14624         the very first instruction.
14626         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
14627         the CFI state in the end.
14628         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
14629         inclusion of dl-trampoline.h.
14630         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
14632 2011-08-19  Andreas Schwab  <schwab@redhat.com>
14634         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
14635         expectations for long double.
14637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
14638         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
14640 2011-08-14  David S. Miller  <davem@davemloft.net>
14642         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
14643         artificual limit depends upon the system page size.
14645 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
14647         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
14648         * resolv/Makefile: Define CFLAGS-libresolv.
14650 2011-08-17  Andreas Schwab  <schwab@redhat.com>
14652         * nss/makedb.c (compute_tables): Make variables used in nested
14653         function static.
14655 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
14657         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
14658         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
14659         if buffer was too small.
14661         * elf/pldd.c (main): Attach to all threads in the process.
14662         Rewrite /proc handling to use *at functions.
14664 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
14666         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
14667         specifies first scope to show.
14668         (dl_open_worker): Update callers.  Move printing scope of new
14669         object to before the relocation.
14670         * elf/rtld.c (dl_main): Update _dl_show_scope call.
14671         * sysdeps/generic/ldsodefs.h: Update declaration.
14673         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
14674         string for the scope number.
14676 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
14678         * nscd/servicescache.c (cache_addserv): Make sure written is always
14679         initialized.
14681 2011-08-14  Roland McGrath  <roland@hack.frob.com>
14683         * sysdeps/i386/i486/bits/atomic.h
14684         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
14685         statement expression, so as to suppress "set but not used" warning.
14686         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
14688         * string/strncat.c (STRNCAT): Use prototype definition.
14690         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
14691         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
14692         -Iprograms here.
14693         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
14694         (localedef-modules): Add localedef.
14695         (locale-modules): Add locale.
14697         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
14698         * elf/rtld.c (dl_main): Invert order of assignment in last change,
14699         to avoid a warning.
14701 2011-08-14  David S. Miller  <davem@davemloft.net>
14703         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
14704         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
14706 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
14708         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
14709         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
14710         * elf/rtld.c (dl_main): Set l_name of vDSO.
14711         Call _dl_show_scope when DL_DEBUG_SCOPES.
14712         (process_dl_debug): Recognize scopes flag and also set it for all.
14713         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
14714         Declare _dl_show_scope.
14716         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
14717         (do_dlopen): Pass caller_dlopen to dl_open.
14718         (__libc_dlopen_mode): Initialize caller_dlopen.
14720         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
14721         of libc.  Make tolower call locale-independent.  Optimize a bit by
14722         using isdigit instead of isalnum.
14723         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
14725 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
14727         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
14728         was a dependency or dynamically loaded.
14730 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
14732         * intl/l10nflist.c: Allow architecture-specific pop function.
14733         * sysdeps/x86_64/l10nflist.c: New file.
14735         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
14736         classification.
14738 2011-08-10  Andreas Schwab  <schwab@redhat.com>
14740         * include/dirent.h: Add libc_hidden_proto for scandirat and
14741         scandirat64.  Don't declare __scandirat64.
14742         * dirent/scandirat.c: Add libc_hidden_def.
14743         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
14744         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
14746 2011-08-10  David S. Miller  <davem@davemloft.net>
14748         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
14749         enum.
14750         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14751         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14752         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14754 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
14756         * Versions.def [libc]: Add GLIBC_2.15.
14757         * dirent/Makefile (routines): Add scandirat and scandirat64.
14758         * dirent/Versions [libc]: Export scandirat and scandirat64 for
14759         GLIBC_2.15.
14760         * dirent/dirent.h: Declare scandirat and scandirat64.
14761         * dirent/scandirat.c: New file.
14762         * dirent/scandirat64.c: New file.
14763         * sysdeps/wordsize-64/scandirat.c: New file.
14764         * sysdeps/wordsize-64/scandirat64.c: New file.
14765         * dirent/opendir.c: Define opendirat.
14766         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
14767         using scandirat.
14768         * dirent/scandir64.c: Adjust for scandir.c change.
14769         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
14770         __scandirat64, and __scandir_cancel_handler.
14771         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
14772         additional parameter and use openat instead of open (outside of ld.so).
14773         Add new __opendir as wrapper around __opendirat.
14774         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
14775         here without requiring old scandirat implementation.
14777 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
14779         * dirent/scandir.c (cancel_handler): Renamed to
14780         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
14781         defined.  Adjust users.
14782         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
14783         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
14785 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
14787         * string/test-string.h (IMPL): Use __STRING to expand name and then
14788         stringify it.
14790         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
14791         of cleanups.
14793 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14795         * string/Makefile: Update.
14796         (strop-tests): Append strncat.
14797         * string/test-wcscmp.c: New file.
14798         New comprehensive test for wcscmp.
14799         * string/test-strcmp.c: Update.
14800         (WIDE): New define.
14802 2011-07-22  Andreas Schwab  <schwab@redhat.com>
14804         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
14805         line.
14807 2011-07-26  Andreas Schwab  <schwab@redhat.com>
14809         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
14810         encoding to ACE if AI_IDN.
14812 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
14814         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
14815         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
14817 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14819         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
14820         Fix overflow bug in strncat.
14821         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
14823         * string/test-strncat.c: Update.
14824         Add new tests for checking overflow bugs.
14826 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14828         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14829         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
14830         * sysdeps/i386/i686/multiarch/strcat.S: New file.
14831         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
14832         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
14833         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
14834         * sysdeps/i386/i686/multiarch/strncat.S: New file.
14835         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
14836         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
14838         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
14839         (USE_AS_STRCAT): Define.
14840         Add strcat and strncat support.
14841         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
14843 2011-07-25  Andreas Schwab  <schwab@redhat.com>
14845         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
14846         __n bigger than INT_MAX+1.
14847         (__strncmp_g): Likewise.
14849 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
14851         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
14852         * libio/stido.h: Likewise.
14854         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
14855         (AF_NFC): Define.
14856         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
14857         (AF_NFC): Define.
14859         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
14860         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14861         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14862         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
14863         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14865         [BZ #13021]
14866         * scripts/test-installation.pl: Don't expect libnss_test1 to be
14867         installed.
14869         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
14870         typo.
14871         (_dl_x86_64_save_sse): Likewise.
14873 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
14875         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
14876         OSXSAVE.
14877         (_dl_x86_64_save_sse): Likewise.
14879         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
14881         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
14883 2011-07-21  Andreas Schwab  <schwab@redhat.com>
14885         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
14886         change.
14887         (_dl_x86_64_save_sse): Use correct AVX check.
14889 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14891         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
14892         bug in strncpy/strncat.
14893         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
14895 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
14897         * string/tester.c (test_strcat): Add tests for different alignments
14898         of source and destination.
14899         (test_strncat): Likewise.
14901 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
14903         [BZ #12852]
14904         * posix/glob.c (glob): Check passed in values before using them in
14905         expressions to avoid some overflows.
14906         (glob_in_dir): Likewise.
14908         [BZ #13007]
14909         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
14910         check for AVX enablement so that we don't crash with old kernels and
14911         new hardware.
14912         * elf/tst-audit4.c: Add same checks here.
14913         * elf/tst-audit6.c: Likewise.
14915         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
14917 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
14919         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
14921 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
14923         * po/cs.po: Update from translation team.
14924         * po/bg.po: Likewise.
14926 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
14928         * misc/sys/cdefs.h: Add support for const attribute.
14929         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
14930         to gnu_dev_{major,minor,makedev} functions.
14932 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
14934         * intl/dcigettext.c (get_output_charset): Add missing bracket.
14936 2011-07-20  Andreas Schwab  <schwab@redhat.com>
14938         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
14939         strlen results.
14941 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14943         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
14944         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
14945         register in order to avoid conflicts with the soft frame pointer
14946         being held in r11 when necessary.
14947         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
14948         (INTERNAL_VSYSCALL_NCS): Likewise.
14950 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
14952         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
14953         * elf/dl-fini.c (_dl_fini): Adjust caller.
14954         * elf/dl-close.c (_dl_close_worker): Likewise.
14955         * sysdeps/generic/ldsodefs.h: Adjust declaration.
14957 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
14959         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
14960         "aux_cache->nlibs < 0".
14962         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
14963         in the reload-count case.
14965 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14967         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14968         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
14969         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
14970         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
14971         * sysdeps/x86_64/multiarch/strcat.S: New file.
14972         * sysdeps/x86_64/multiarch/strncat.S: New file.
14973         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
14974         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
14975         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
14976         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
14977         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
14978         (USE_AS_STRCAT): Define.
14979         Add strcat and strncat support.
14980         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
14981         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
14982         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
14983         * string/strncat.c: Update.
14984         (USE_AS_STRNCAT): Define.
14985         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14986         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
14987         and i7.
14988         * sysdeps/x86_64/multiarch/init-arch.h
14989         (bit_Prefer_PMINUB_for_stringop): New.
14990         (index_Prefer_PMINUB_for_stringop): Likewise.
14991         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
14992         bit_Prefer_PMINUB_for_stringop.
14994 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
14996         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
14997         buffer64.
14998         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
14999         of casting of buffer.
15000         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
15001         buffer32 and buffer64.
15002         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
15003         writes instead of casting of buffer.
15004         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
15005         buffer32.
15006         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
15007         casting of buffer.
15009 2011-07-19  Andreas Schwab  <schwab@redhat.com>
15011         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
15013 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15015         * nscd/nscd.c (termination_handler): Don't do anything for a database
15016         if it has not yet been initialized.
15018 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15020         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15022 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15024         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15026 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15028         * po/nl.po: Update from translation team.
15029         * po/sv.po: Likewise.
15031 2011-07-16  Roland McGrath  <roland@hack.frob.com>
15033         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
15034         now disallowed by GCC.
15036         * configure.in (use-default-link): Default to yes if a test -shared
15037         link meets our qualifications.
15038         * configure: Regenerated.
15040         * config.make.in (output-format): New variable.
15041         * configure.in: Check for ld --print-output-format support.
15042         * configure: Regenerated.
15043         * Makerules ($(common-objpfx)format.lds)
15044         [$(output-format) != unknown]: Just use $(output-format),
15045         instead of the linker-script munging.
15047 2011-07-14  Roland McGrath  <roland@hack.frob.com>
15049         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
15050         of $(common-objpfx)shlib.lds.
15051         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
15053         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
15054         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
15056         * configure.in (-z relro check): Adjust test code to add a large
15057         writable data section after it.
15058         * configure: Regenerated.
15060 2011-07-11  Roland McGrath  <roland@hack.frob.com>
15062         * configure.in (-z relro check): Fix test code to make the variable
15063         truly const.
15064         * configure: Regenerated.
15066 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
15068         * nscd/nscd.h (struct traced_file): Define.
15069         (struct database_dyn): Remove inotify_descr, reset_res, and filename
15070         elements.  Add traced_files.
15071         (inotify_fd): Declare.
15072         (register_traced_file): Declare.
15073         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
15074         (inotify_fd): Export.
15075         (resolv_conf_descr): Remove.
15076         (nscd_init): Move inotify descriptor creation to main.
15077         Don't register files for notification here.
15078         (register_traced_file): New function.
15079         (invalidate_cache): Don't use reset_res to determine whether to call
15080         res_init, go through the list of registered files.
15081         (main_loop_poll): The inotify descriptors are now stored in the
15082         structures for the traced files.
15083         (main_loop_epoll): Likewise
15084         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
15085         to __nss_disable_nscd.
15086         * nscd/cache.c (prune_cache): There is no single inotify descriptor
15087         for a database anymore.  Check the records for all the registered
15088         files instead.
15089         * nss/Makefile (libnss_files-routines): Add files-init.
15090         (libnss_db-routines): Add db-init.
15091         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
15092         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
15093         * nss/nss_db/db-init.c: New file.
15094         * nss/nss_files/files-init.c: New file.
15095         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
15096         __nss_lookup_function.
15097         (__nss_lookup_function): Call nss_load_library.
15098         (nss_load_all_libraries): New function.
15099         (__nss_disable_nscd): Take parameter with callback function for files
15100         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
15101         used for the cached services.
15102         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
15103         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
15104         options for features to all the files in nscd.
15106         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
15108 2011-07-10  Roland McGrath  <roland@hack.frob.com>
15110         * csu/elf-init.c (__libc_csu_init): Comment typo.
15112 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
15114         * po/pl.po: Update from translation team.
15115         * po/ja.po: Likewise.
15116         * po/ru.po: Likewise.
15117         * po/ko.po: Likewise.
15118         * po/fr.po: Likewise.
15120 2011-07-09  Roland McGrath  <roland@hack.frob.com>
15122         * configure.in (.ctors/.dtors header and trailer check):
15123         Use an empirical test on a built program.
15124         * configure: Regenerated.
15126         * configure.in (-z relro check): Use an empirical test on a built DSO.
15127         Detect, but do not require, on ia64.
15128         * configure: Regenerated.
15130         * configure.in (READELF): Find it with AC_CHECK_TOOL.
15131         Update tests that use readelf to use $READELF instead.
15132         * configure: Regenerated.
15134 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
15136         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
15137         if the result is not used.
15139 2011-07-05  Andreas Jaeger  <aj@suse.de>
15141         [BZ#9696]
15142         * stdlib/tst-strtod.c: Add testcase.
15144 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15146         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
15147         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
15148         The latter has a higher limit.  Take additional parameter to pass to
15149         the new function.
15150         (__pathconf): Pass file to __statfs_link_max.
15151         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
15152         __statfs_link_max.
15153         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
15154         __statfs_link_max.
15156         [BZ #12868]
15157         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
15158         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15159         Handle Lustre.
15160         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
15161         (__statfs_filesize_max): Likewise.
15162         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
15164 2011-07-05  Andreas Jaeger  <aj@suse.de>
15166         * resolv/res_comp.c (dn_skipname): Remove unused variable.
15168 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
15170         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
15171         `status' variable.
15172         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
15173         Likewise.
15175 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
15177         * Makefile (strop-tests): Add strncat.
15178         * string/test-strncat.c: New file.
15180 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
15182         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
15184 2011-06-21  Andreas Jaeger  <aj@suse.de>
15186         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
15187         Copy rule from iconvdata/Makefile.
15189 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
15191         [BZ #12922]
15192         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
15193         but no long options are defined, just return 'W'.
15195 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
15197         [BZ #9696]
15198         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
15200 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
15202         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
15203         netgroups to read.
15204         (innetgr): Likewise.
15206 2011-07-05  Roland McGrath  <roland@hack.frob.com>
15208         * config.make.in (install_root): Default to $(DESTDIR).
15210 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
15212         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
15214 2011-07-02  Roland McGrath  <roland@hack.frob.com>
15216         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
15218         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
15219         containing directory rather than embedding absolute directory names.
15221         * scripts/check-local-headers.sh: Rewritten using awk.
15222         Match by word, not by line.  Print error messages for matches.
15223         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
15225         * Makerules [shlib-lds-flags empty]:
15226         ($(common-objpfx)libc_pic.opts): New target.
15227         ($(common-objpfx)libc_pic.os.clean): New target.
15228         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
15230         * config.make.in (OBJCOPY): New variable.
15231         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
15232         * configure: Regenerated.
15234         * config.make.in (use-default-link): New variable.
15235         * configure.in (use_default_link): Grok --with-default-link to set it.
15236         * configure: Regenerated.
15237         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
15238         (shlib-lds, shlib-lds-flags): Define to empty.
15240         * Makerules (shlib-lds): New variable.
15241         (shlib-lds-flags): New variable.
15242         (build-shlib, build-moduile, build-module-asneeded): Use it.
15243         ($(common-objpfx)libc.so): Use $(shlib-lds).
15244         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
15245         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
15247         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
15248         DT_FLAGS/DT_FLAGS_1 with zero flags.
15250         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
15251         linker script munging.
15253 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
15255         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
15256         as 128-bit value.
15257         * crypt/sha512.c (sha512_process_block): Perform total addition using
15258         128-bit if possible.
15259         (__sha512_finish_ctx): Likewise.
15260         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
15261         as 64-bit value.
15262         * crypt/sha256.c (SWAP64): Define.
15263         (sha256_process_block): Perform total addition using 64-bit if
15264         possible.
15265         (__sha256_finish_ctx): Likewise.
15267 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
15269         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
15270         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15271         * nscd/hstcache.c (cache_addhst): Likewise.
15272         * nscd/grpcache.c (cache_addgr): Likewise.
15273         * nscd/aicache.c (addhstaiX): Likewise
15274         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
15276 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
15278         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
15279         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15280         * nscd/hstcache.c (cache_addhst): Likewise.
15281         * nscd/grpcache.c (cache_addgr): Likewise.
15282         * nscd/aicache.c (addhstaiX): Likewise
15284 2011-07-01  Andreas Schwab  <schwab@redhat.com>
15286         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
15287         domain only when needed.
15289 2011-06-30  Andreas Schwab  <schwab@redhat.com>
15291         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
15292         is always restored.
15294 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
15296         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
15297         are re-adding the entry.
15298         * nscd/servicescache.c (cache_addserv): Likewise.
15300 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
15302         * sysdeps/generic/dl-irel.h: fix protection against multiple
15303         inclusions.
15304         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
15306 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
15308         [BZ #12935]
15309         * malloc/memusage.sh: Fix quoting in message.
15310         * debug/xtrace.sh: Likewise.
15312         * configure.in: Remove support for --experimental-malloc option, make
15313         it the default.
15314         * config.make.in: Likewise.
15315         * malloc/Makefile: Likewise.
15317 2011-06-27  Andreas Schwab  <schwab@redhat.com>
15319         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
15320         two-byte characters.
15322 2011-06-27  Roland McGrath  <roland@hack.frob.com>
15324         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
15325         AC_CACHE_CHECK invocation.
15326         * configure: Regenerated.
15328         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
15330 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
15332         [BZ #12350]
15333         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
15334         bit from old_res_options.
15336         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
15338         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
15339         value type for setfct.
15341 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
15343         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
15344         __gettimeofday instead of gettimeofday.
15346 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
15348         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
15350 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15352         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
15354         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
15355         info.
15357 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
15359         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15360         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
15361         strcpy-sse2-unaligned strncpy-sse2-unaligned
15362         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
15363         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
15364         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
15365         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
15366         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
15367         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
15368         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
15369         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
15370         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
15371         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
15372         (STRCPY): Support SSE2 and SSSE3 versions.
15374 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
15376         [BZ #12874]
15377         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
15378         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
15379         kernels which artificially limit size of requests.
15381 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
15383         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15384         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
15385         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
15386         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
15387         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
15388         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
15389         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
15390         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
15391         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
15392         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
15393         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
15394         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
15395         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
15396         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
15397         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
15398         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15399         Enable unaligned load optimization for Intel Core i3, i5 and i7
15400         processors.
15401         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
15402         Define.
15403         (index_Fast_Unaligned_Load): Define.
15404         (HAS_FAST_UNALIGNED_LOAD): Define.
15406 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
15408         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
15410 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
15412         [BZ #12907]
15413         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
15414         until it is clear that the information is realy needed.
15415         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
15417 2011-06-22  Andreas Schwab  <schwab@redhat.com>
15419         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
15421 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
15423         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
15424         /sys/devices/system/cpu/online if it is usable.
15426         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
15427         reading the information from the /proc filesystem to once a second.
15429 2011-06-21  Andreas Jaeger  <aj@suse.de>
15431         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
15432         NULL after inclusion of kernel headers.
15434 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
15436         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
15437         calls to internal_setent.
15439         [BZ #12885]
15440         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
15441         addresses using gethostbyname4_r ignore IPv4 addresses.
15443         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
15444         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
15446         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
15448 2011-06-20  David S. Miller  <davem@davemloft.net>
15450         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
15451         inclusions.
15452         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
15454         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
15455         (elf_irel): Use it.
15456         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
15457         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
15458         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
15459         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
15460         * sysdeps/x86_64/dl-irel.h: Likewise.
15462         * elf/dl-runtime.c: Use elf_ifunc_invoke.
15463         * elf/dl-sym.c: Likewise.
15465 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
15467         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
15468         need to dereference resplen2.
15470 2011-06-14  Andreas Schwab  <schwab@redhat.com>
15472         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
15474 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
15476         * Makeconfig: Define vardbdir and inst_vardbdir.
15477         * nss/Makefile: Add rules to install db-Makefile.
15479         * nss/nss_db/db-XXX.c: Cleanup.
15481         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
15482         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
15483         GLIBC_PRIVATE.
15484         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
15485         * nss/makedb.c: Implement -g option to specify that value strings
15486         are generated and should not be added to table iterated over for
15487         get*ent calls.
15488         * nss/nss_db/db-initgroups.c: New file.
15490         * nss/getent.c: Add support for initgroups lookups through getgrouplist
15491         interface.
15493         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
15494         (internal_getgrouplist): Adjust to name change.
15495         Update use_initgroups_entry if this is not the first call.
15496         * nss/databases.def: Add initgroups entry.
15498         * nss/makedb.c (compute_tables): Check result of multiple hash table
15499         sizes to minimize maximum chain length.
15501 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
15503         * Versions.def: Add entry for libnss_db.
15504         * shlib-versions: Likewise.
15505         * nss/Makefile: Add rules to build libnss_db.
15506         * nss/Versions: Add libnss_db information.  Organize libnss_files
15507         entries better.
15508         * nss/db-Makefile: Add gshadow support.  Change rules for the new
15509         makedb progra.  Some minor improvements to generate smaller files.
15510         * nss/nss_db/nss_db.h: Move NSS database header data structures to
15511         here from...
15512         * nss/makedb.c: ...here.
15513         Improve database format to be smaller and require less memory at
15514         runtime.
15515         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
15516         db anymore.
15517         * nss/nss_db/db-netgrp.c: Likewise.
15518         * nss/nss_db/db-open.c: Likewise.
15519         * nss/nss_files/flies-XXX.x: Adjust comments.
15520         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
15521         * nss/nss_files/files-grp.c: Likewise.
15522         * nss/nss_files/files-hosts.c: Likewise.
15523         * nss/nss_files/files-network.c: Likewise.
15524         * nss/nss_files/files-proto.c: Likewise.
15525         * nss/nss_files/files-pwd.c: Likewise.
15526         * nss/nss_files/files-rpc.c: Likewise.
15527         * nss/nss_files/files-service.c: Likewise.
15528         * nss/nss_files/files-sgrp.c: Likewise.
15529         * nss/nss_files/files-spwd.c: Likewise.
15530         * nss/nss_db/db-alias.c: Removed.
15531         * nss/nss_db/dummy-db.h: Removed.
15533 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
15535         * nss/makedb.c: Rewritten to not use database library.
15536         * nss/Makefile: Update to build new makedb program.
15538 2011-06-14  Andreas Jaeger  <aj@suse.de>
15540         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
15541         memset declaration.
15543 2011-06-10  Andreas Schwab  <schwab@redhat.com>
15545         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
15546         tmpbuf.
15548 2011-06-10  Roland McGrath  <roland@hack.frob.com>
15550         * Makerules (shlib.lds): Fail if the linker script comes out empty.
15551         * elf/Makefile ($(objpfx)ld.so): Likewise.
15553         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
15554         Don't list ld.so twice in dependencies.
15556         * posix/bug-regex31.c: Include <stdlib.h>.
15558         * nscd/hstcache.c (cache_addhst): Remove unused variable.
15560         * nis/nss_compat/compat-spwd.c
15561         (getspent_next_nss_netgr): Remove unused variable.
15562         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
15564         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
15565         nonmembers" output to use the right array.
15567         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
15569         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
15571         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
15572         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
15573         * catgets/gencat.c (read_input_file): Likewise.
15574         * locale/programs/locarchive.c (enlarge_archive): Likewise.
15576         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
15577         variable definition inside #if's controlling its use.
15579         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
15581         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
15583         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
15585         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
15586         unreachable code.
15588         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
15590         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
15591         * configure: Regenerated.
15593         * Makerules: Revert last change.
15594         * elf/Makefile: Likewise.
15596 2011-06-09  Roland McGrath  <roland@hack.frob.com>
15598         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
15599         * elf/Makefile ($(objpfx)librtld.os): Likewise.
15600         (reloc-link): Likewise.
15602 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
15604         * elf/Makefile: Add rules to build pldd.
15605         * elf/pldd.c: New file.
15606         * elf/pldd-xx.c: New file.
15608 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
15610         * version.h: Update for 2.15 development version.
15612 2011-06-07  David S. Miller  <davem@davemloft.net>
15614         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
15615         ifuncs.
15616         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
15617         elf_machine_lazy_rel): Likewise.
15618         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
15619         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
15620         elf_machine_lazy_rel): Likewise.
15621         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
15622         dl_hwcap via passed in argument.
15623         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
15624         Likewise.
15626 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15628         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
15630 2011-06-06  Roland McGrath  <roland@hack.frob.com>
15632         [BZ #12849]
15633         * manual/fdl-1.1.texi: New file, verbatim from:
15634         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
15635         * manual/lgpl-2.1.texi: New file, verbatim from:
15636         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
15637         * manual/Makefile (licenses): New variable, list those new file names.
15638         (texis): Use it.
15639         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
15641         * manual/fdl.texi: File removed.
15642         * manual/lesser.texi: File removed.
15643         * manual/libc.texinfo (Copying, Documentation License):
15644         Use new @include file names, put @appendix directive before @include.
15646 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
15648         [BZ #12841]
15649         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
15650         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
15651         (mq_open): Add __NTH.
15653 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
15655         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15656         Assume Intel Core i3/i5/i7 processor if AVX is available.
15658 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
15660         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
15661         typo.
15663 2011-05-31  Andreas Schwab  <schwab@redhat.com>
15665         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
15666         memory.  Use alloca_account.  Fix memory leak when retrying.
15668 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
15670         * version.h (RELEASE): Bump for 2.14 release.
15671         * include/features.h (__GLIBC_MINOR__): Bump to 14.
15673         * config.make.in (RANLIB): Remove entry.
15675 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
15677         * po/Makefile (po-sed-cmd): Add ksh to extensions.
15678         (libc.pot): Work around missing support for .ksh extension in xgettext.
15680         [BZ #12684]
15681         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
15682         if both request failed.
15683         (send_dg): In case of server errors clear resplen or *resplen2.
15685         [BZ #12454]
15686         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
15687         when there are multiple maps.
15688         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
15689         (_dl_fini): Remove test here.
15691         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
15693 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
15695         [BZ #12350]
15696         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
15697         bit from old_res_options.
15698         (gaih_inet): Likewise.
15700         [BZ #11099]
15701         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
15702         as signed.
15704         * resolv/res_init.c (res_setoptions): Make the code more compact.
15706         [BZ #11558]
15707         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
15708         set RES_USEVC.
15710         [BZ #11634]
15711         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
15713         * malloc/malloc.h: Mark malloc hook variables as deprecated.
15715         [BZ #11781]
15716         * malloc/malloc.h: Declare malloc hook variables as volatile.
15718         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
15719         in last patch.
15721         [BZ #11799]
15722         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
15723         raise in the comment.
15724         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
15725         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
15726         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
15728 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
15730         [BZ #12811]
15731         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
15732         grow the buffers more if it already has to be sufficient.
15733         (build_wcs_upper_buffer): Likewise.
15734         * posix/regexec.c (check_matching): Likewise.
15735         (clean_state_log_if_needed): Likewise.
15736         (extend_buffers): Don't enlarge buffers beyond size of the input
15737         buffer.
15738         Patches mostly by Emil Wojak <emil@wojak.eu>.
15739         * posix/bug-regex32.c: New file.
15740         * posix/Makefile (tests): Add bug-regex32.
15742         * locale/findlocale.c (_nl_find_locale): Return right away if
15743         _nl_explode_name failed.
15744         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
15746         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
15748         * debug/xtrace.sh: Unify messages.
15749         * malloc/memusage.sh: Likewise.
15751         [BZ #12813]
15752         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
15753         time symbol from vDSO.  Substitute with vsyscall if not available.
15754         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
15755         __vdso_time.
15757         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
15758         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
15759         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
15760         Add sendmmsg and internal_sendmmsg.
15761         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
15762         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
15763         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
15765         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
15766         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
15767         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
15769 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
15771         [BZ #12813]
15772         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
15773         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
15774         available.
15775         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
15776         __vdso_getcpu.
15778         [BZ #12814]
15779         * iconvdata/Makefile (tests): Add bug-iconv9.
15780         * iconvdata/bug-iconv9.c: New file.
15782 2011-05-27  Andreas Schwab  <schwab@redhat.com>
15784         [BZ #12814]
15785         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
15787 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
15789         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
15790         (struct user_regs_struct): Change intcs field back to cs.
15792 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
15794         * po/ja.po: Update from translation team.
15796 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
15798         [BZ #12795]
15799         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
15800         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
15802 2011-05-20  Andreas Schwab  <schwab@redhat.com>
15804         * stdlib/longlong.h: Update from GCC.
15806 2011-05-23  Andreas Schwab  <schwab@redhat.com>
15808         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
15809         parameter name.
15810         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
15811         Add parameter name.
15812         (__sysconf): Pass it down.
15814 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
15816         [BZ #12671]
15817         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
15818         some situations.
15819         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
15820         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
15821         add in in __libc_use_alloca calls.  Adjust callers.
15822         (glob): Use malloc in some situations.
15824         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
15825         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
15826         pltexit.
15828 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
15830         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
15831         and CLOCK_BOOTTIME_ALARM.
15833         [BZ #12782]
15834         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
15835         is returned.
15837         * string/_strerror.c (__strerror_r): Print negative errors as signed
15838         numbers.
15840         [BZ #12777]
15841         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
15842         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
15843         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
15845         * configure.in: Fix typo in redirection and correct removal of test
15846         files in two cases.
15848         [BZ #12788]
15849         * locale/setlocale.c (new_composite_name): Fix test to check for
15850         identical name of all categories.
15852         [BZ #12792]
15853         * libio/filedoalloc.c (local_isatty): New function.
15854         (_IO_file_doallocate): Use local_isatty.
15855         * stdio-common/perror.c (perror): In case a new stream is used
15856         forward the stream error.
15857         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
15858         error flag.
15860 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
15862         [BZ #11869]
15863         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
15864         alloca.
15865         * include/alloca.h (extend_alloca_account): Define.
15867         [BZ #11857]
15868         * posix/regex.h: Fix comments with documentation of user-accessible
15869         fields after compilation and describe correct free'ing of pattern
15870         after re_compile_pattern.
15871         Patch by Reuben Thomas <rrt@sc3d.org>.
15873 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
15875         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
15876         and -mno-altivec to prevent the compiler from using Altivec and/or
15877         VSX instructions when the corresponding registers are not available.
15879 2011-05-19  Andreas Schwab  <schwab@redhat.com>
15881         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
15883 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
15885         * libio/freopen.c (freopen): Use __dup2, not dup2.
15886         * libio/freopen64.c (freopen64): Likewise.
15888 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15890         [BZ #12775]
15891         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
15892         * math/Makefile (tests): Add test-powl.
15893         (CFLAGS-test-powl.c): Define.
15894         * math/test-powl.c: New file.
15896 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15898         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
15900 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
15902         [BZ #11837]
15903         * iconvdata/gb18030.c: Update to GB18020-2005.
15905 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
15907         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
15908         RE_SYNTAX_POSIX_AWK): Update to match recent development.
15909         Patch by Aharon Robbins <arnold@skeeve.com>.
15911         [BZ #11892]
15912         * stdlib/putenv.c (putenv): Don't always create copy of the variable
15913         on the stack.
15915         [BZ #11895]
15916         * misc/pselect.c (__pselect): Handle timeout value errors hidden
15917         through underflows.
15919         [BZ #12766]
15920         * misc/error.c (error_at_line): Ensure file_name and old_file_name
15921         point to strings before performing equality test for error_one_per_line
15922         mode.
15924         [BZ #11697]
15925         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
15927         [BZ #11820]
15928         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
15929         (struct user_fpregs_struct): Avoid __uint*_t types.
15931         [BZ #6420]
15932         * malloc/mtrace.c (tr_where): Add additional parameter to point to
15933         symbol info.  Use it instead of calling _dl_addr locally.
15934         (lock_and_info): New function.
15935         (tr_freehook): Call lock_and_info and pass symbol info as additional
15936         parameter to tr_where.
15937         (tr_mallochook): Likewise.
15938         (tr_reallochook): Likewise.
15939         (tr_memalignhook): Likewise.
15941         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
15942         used and couldn't be at all thread-safe.
15944 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
15946         * libio/freopen.c (freopen): Don't close old file descriptor
15947         before the new one is opened.  Instead dup the new file descriptor
15948         to the old one after the new stream is created.
15949         * libio/freopen64.c (freopen64): Likewise.
15950         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
15951         * libio/fileops.c (_IO_new_file_close_it): Handle new
15952         _IO_FLAGS2_NOCLOSE flag.
15953         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
15954         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
15955         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
15956         _IO_FLAGS2_NOCLOSE flag.
15957         * include/unistd.h: Add hidden_proto for dup3.
15958         Define __have_dup3.
15959         * io/dup3.c: Define hidden symbol.
15960         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
15962         [BZ #7101]
15963         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
15964         when an incomplete long option is used.
15965         * posix/tst-getopt_long1.c: New file.
15966         * posix/Makefile (tests): Add tst-getopt_long1.
15968         [BZ #10138]
15969         * scripts/config.guess: Update from autoconf-2.68.
15970         * scripts/config.sub: Likewise.
15972         [BZ #10157]
15973         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
15974         tests into ...
15975         (has_cpuclock): ...this.  New function.
15976         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
15977         macro here based on has_cpuclock code.
15979         [BZ #10149]
15980         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
15981         First byte (not low byte) is now always NUL.
15982         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
15984         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
15985         Use non-cancelable interfaces.
15987         [BZ #9809]
15988         * locale/iso-639.def: Add entry for Sorani.
15990         [BZ #11901]
15991         * include/stdlib.h: Move include protection to the right place.
15992         Define abort_msg_s.  Declare __abort_msg with it.
15993         * stdlib/abort.c (__abort_msg): Adjust type.
15994         * assert/assert.c (__assert_fail_base): New function.  Majority
15995         of code from __assert_fail.  Allocate memory for __abort_msg with
15996         mmap.
15997         (__assert_fail): Now call __assert_fail_base.
15998         * assert/assert-perr.c: Remove bulk of implementation.  Use
15999         __assert_fail_base.
16000         * include/assert.hL Declare __assert_fail_base.
16001         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
16002         mmap.
16003         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
16005 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
16007         [BZ #11952]
16008         [BZ #12453]
16009         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
16010         until all modules are registered in the DTV.
16011         * elf/Makefile: Add rules to build and run tst-tls19.
16012         * elf/tst-tls19.c: New file.
16013         * elf/tst-tls19mod1.c: New file.
16014         * elf/tst-tls19mod2.c: New file.
16015         * elf/tst-tls19mod3.c: New file.
16016         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
16018         [BZ #12083]
16019         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
16020         correctly.
16022         [BZ #12601]
16023         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
16024         two-byte sequence errors.
16025         * iconvdata/Makefile (tests): Add bug-iconv8.
16026         * iconvdata/bug-iconv8.c: New file.
16028         [BZ #12626]
16029         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
16030         buf2 definition.
16032         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
16034         [BZ #12432]
16035         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
16036         (dummy_getcfa): New function.
16037         (init): Get _Unwind_GetCFA address, use dummy if not found.
16038         (backtrace_helper): In recursion check, also check whether CFA changes.
16039         (__backtrace): Completely initialize arg.
16041         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
16042         storing incomplete byte sequence in state object.  Avoid testing for
16043         guaranteed too small input if we know there is enough data available.
16045 2011-05-11  Andreas Schwab  <schwab@redhat.com>
16047         * Makeconfig (+link-pie): Indent.
16048         * Rules (binaries-pie): Define if $(have-fpie) and
16049         $(build-shared).
16050         (binaries-shared): Also filter out $(binaries-pie).
16051         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
16052         * nscd/Makefile (others-pie): Add nscd.
16053         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
16054         ($(objpfx)nscd): Remove command override.
16055         * login/Makefile (others-pie): Add pt_chown.
16056         ($(objpfx)pt_chown): Remove command override.
16057         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
16058         remove command overrides.
16060 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
16062         * libio/tst_putwc.c: Fix error messages.
16064         [BZ #12724]
16065         * libio/fileops.c (_IO_new_file_close_it): Always flush when
16066         currently writing and seek to current position when not.
16067         * libio/Makefile (tests): Add bug-fclose1.
16068         * libio/bug-fclose1.c: New file.
16070 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
16072         [BZ #12511]
16073         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
16074         don't set DF_1_NODELETE here.
16075         (do_lookup_x): When entering new entry test for copy relocation
16076         and if necessary set DF_1_NODELETE flag.
16077         * elf/tst-unique4.cc: New file.
16078         * elf/tst-unique4.h: New file.
16079         * elf/tst-unique4lib.cc: New file.
16080         * elf/Makefile: Add rules to build and run tst-unique4.
16081         Patch by Piotr Bury <pbury@goahead.com>.
16083 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16085         [BZ #12052]
16086         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
16088         [BZ #12625]
16089         * misc/mntent_r.c (addmntent): Flush the stream after the output
16091         [BZ #12393]
16092         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
16093         (is_trusted_path_normalize): Skip initial colon.  Append slash
16094         to empty buffer.  Duplicate is_trusted_path code but allow
16095         constructed patch to be prefix.
16096         (is_dst): Allow $ORIGIN followed by /.
16097         (_dl_dst_substitute): Correct clearing of check_for_trusted.
16098         Correct testing of result of is_trusted_path_normalize
16099         (decompose_rpath): Fix warning.
16101 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
16103         [BZ #11257]
16104         * grp/initgroups.c (internal_getgrouplist): When we found the service
16105         list through the initgroups entry in nsswitch.conf do not always
16106         continue on a successful lookup.  Don't always use the
16107         __nss_group_database value if it is set.
16108         * nss/nsswitch.conf (initgroups): Change action for successful db
16109         lookup to continue for compatibility.
16111 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
16113         [BZ #11532]
16114         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
16115         and CP774 modules.
16116         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
16117         and CP774 modules.
16118         * iconvdata/tst-tables.sh: Likewise.
16119         * iconvdata/cp770.c: New file.
16120         * iconvdata/cp771.c: New file.
16121         * iconvdata/cp772.c: New file.
16122         * iconvdata/cp773.c: New file.
16123         * iconvdata/cp774.c: New file.
16124         * iconvdata/testdata/CP770: New file.
16125         * iconvdata/testdata/CP770..UTF8: New file.
16126         * iconvdata/testdata/CP771: New file.
16127         * iconvdata/testdata/CP771..UTF8: New file.
16128         * iconvdata/testdata/CP772: New file.
16129         * iconvdata/testdata/CP772..UTF8: New file.
16130         * iconvdata/testdata/CP773: New file.
16131         * iconvdata/testdata/CP773..UTF8: New file.
16132         * iconvdata/testdata/CP774: New file.
16133         * iconvdata/testdata/CP774..UTF8: New file.
16135         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
16136         END CHARMAP line.
16137         * iconvdata/gen-8bit-gap.sh: Likewise.
16138         * iconvdata/gen-8bit.sh: Likewise.
16140         * locale/iso-639.def: Add ary entry.
16142         [BZ #11258]
16143         * locale/C-translit.h.in: Add U20A1 transliteration.
16145         [BZ #12178]
16146         * locale/iso-639.def: Add wae entry.
16147         Patch by Kevin Bortis <bortis@translate-wae.ch>.
16149         [BZ #12545]
16150         * locale/programs/localedef.c (construct_output_path): Use ssize_t
16151         for n.
16153         [BZ #12711]
16154         * locale/C-translit.h.in: Add entry for U20B9.
16155         Patch by pravin.d.s@gmail.com.
16157 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
16159         [BZ #12713]
16160         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
16161         ENAMETOOLONG use generic getcwd.
16162         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
16163         in rtld.  Use *stat64.
16164         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
16165         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
16166         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
16167         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
16168         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
16169         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
16170         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
16171         __fstatat64 macros.
16172         * include/dirent.h: Add libc_hidden_proto for rewinddir.
16173         * dirent/rewinddir.c: Add libc_hidden_def.
16174         * sysdeps/mach/hurd/rewinddir.c: Likewise.
16175         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
16177         * include/dirent.h (__alloc_dir): Add flags parameter.
16178         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
16179         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
16180         __alloc_dir.
16181         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
16182         from fdopendir if O_CLOEXEC is already set.
16184 2011-03-15  Alan Modra  <amodra@gmail.com>
16186         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
16187         l_tls_firstbyte_offset non-zero.  Save padding offset in
16188         l_tls_firstbyte_offset for later use.
16189         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
16190         freeing static tls block.
16192 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
16194         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
16195         where #ifdef was intended.  The intent is to prevent ARG_MAX from
16196         being defined by the kernel headers.
16198 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
16200         [BZ #12734]
16201         * resolv/resolv.h: Define RES_NOTLDQUERY.
16202         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
16203         no-tld-query and set RES_NOTLDQUERY.
16204         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
16205         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
16206         modern BIND to search name as TLD unless forbidden.
16208 2011-05-07  Petr Baudis  <pasky@suse.cz>
16209             Ulrich Drepper  <drepper@gmail.com>
16211         [BZ #12393]
16212         * elf/dl-load.c (fillin_rpath): Move trusted path check...
16213         (is_trusted_path): ...to here.
16214         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
16215         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
16216         using is_trusted_path_normalize() in setuid scripts.
16218 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
16220         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
16221         __BEGIN/__END_DECLS.
16223 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
16225         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
16226         NSS_STATUS_NOTFOUND if no record was found.
16228 2011-05-05  Andreas Schwab  <schwab@redhat.com>
16230         * sunrpc/Makefile (headers): Add rpc/netdb.h.
16231         (headers-not-in-tirpc): Remove rpc/netdb.h
16232         * resolv/netdb.h: Revert last change.
16234 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
16236         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
16237         circular dependency between libgcc.a and libc.a.
16239 2011-05-05  Andreas Schwab  <schwab@redhat.com>
16241         * resolv/netdb.h: Don't include <rpc/netdb.h>.
16242         * nis/Makefile: Don't install rpcsvc/*.
16243         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
16244         instead of <rpc/types.h>.
16245         (MAXHOSTNAMELEN): Define.
16247 2011-05-03  Andreas Schwab  <schwab@redhat.com>
16249         * elf/ldconfig.c (add_dir): Don't crash on empty path.
16251 2011-04-28  Maciej Babinski  <mbabinski@google.com>
16253         [BZ #12714]
16254         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
16255         gethostbyname4_r when IPv6 results are possible.
16257 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
16259         [BZ #12723]
16260         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
16261         _PC_PIPE_BUF handling.
16263 2011-04-30  Bruno Haible  <bruno@clisp.org>
16265         [BZ #12717]
16266         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
16267         * resolv/netdb.h (getnameinfo): Change type of flags parameter
16268         to 'int'.
16269         * inet/getnameinfo.c (getnameinfo): Likewise.
16271 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
16273         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
16274         to groups setting in database lookup.
16275         * nss/nsswitch.conf: Add initgroups entry.
16277 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
16279         [BZ #12685]
16280         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
16281         mode string.
16282         Patch by Eric Blake <eblake@redhat.com>.
16284 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
16286         * sunrpc/Makefile (need-export-routines): Add svc_run.
16287         (routines): Remove svc_run.
16288         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
16289         * sunrpc/clnt_perr.c (clnt_perrno): Export.
16290         * sunrpc/svc_run.c (svc_run): Likewise.
16291         * sunrpc/svc_udp.c (svcudp_create): Likewise.
16293 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
16295         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
16296         problem in reallocation in last patch.
16298 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
16300         * sunrpc/Makefile: Move inclusion of Rules.
16302 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
16304         * nss/nss_files/files-initgroups.c: New file.
16305         * nss/Makefile (libnss_files-routines): Add files-initgroups.
16306         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
16307         _nss_files_initgroups_dyn.
16309 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
16311         * elf/elf.h (R_ARM_IRELATIVE): Define.
16313 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
16315         * po/ru.po: Update from translation team.
16317 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
16319         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
16320         dependencies.
16322 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
16324         [BZ #12653]
16325         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
16326         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
16327         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
16328         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
16329         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
16331 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
16333         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
16334         differing bytes.
16335         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
16336         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
16337         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16339 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
16341         [BZ #12420]
16342         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
16343         storing it.
16344         * stdlib/bug-getcontext.c: New file.
16345         * stdlib/Makefile: Add rules to build and run bug-getcontext.
16347 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16349         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
16350         instructions into .machine "z9-109".
16351         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
16352         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
16354 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16356         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
16357         between environment variables and auxiliary vector.
16359 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
16361         * Makefile: Add rules to build linkobj/libc.so.
16362         * include/libc-symbols.h: Define libc_hidden_nolink.
16363         * include/rpc/auth.h: Mark functions which are to be hidden.
16364         * include/rpc/auth_des.h: Likewise.
16365         * include/rpc/auth_unix.h: Likewise.
16366         * include/rpc/clnt.h: Likewise.
16367         * include/rpc/des_crypt.h: Likewise.
16368         * include/rpc/key_prot.h: Likewise.
16369         * include/rpc/pmap_clnt.h: Likewise.
16370         * include/rpc/pmap_prot.h: Likewise.
16371         * include/rpc/pmap_rmt.h: Likewise.
16372         * include/rpc/rpc_msg.h: Likewise.
16373         * include/rpc/svc.h: Likewise.
16374         * include/rpc/svc_auth.h: Likewise.
16375         * include/rpc/xdr.h: Likewise.
16376         * nis/Makefile: Link all DSOs against linkobj/libc.so.
16377         * nss/Makefile: Likewise.
16378         * sunrpc/Makefile: Don't install headers.  Build library with normal
16379         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
16380         * sunrpc/auth_des.c: Hide exported symbols by default, export some
16381         for the compat linking library.  Remove use of INTDEF/INTUSE.
16382         * sunrpc/auth_none.c: Likewise.
16383         * sunrpc/auth_unix.c: Likewise.
16384         * sunrpc/authdes_prot.c: Likewise.
16385         * sunrpc/authuxprot.c: Likewise.
16386         * sunrpc/clnt_gen.c: Likewise.
16387         * sunrpc/clnt_perr.c: Likewise.
16388         * sunrpc/clnt_raw.c: Likewise.
16389         * sunrpc/clnt_simp.c: Likewise.
16390         * sunrpc/clnt_tcp.c: Likewise.
16391         * sunrpc/clnt_udp.c: Likewise.
16392         * sunrpc/clnt_unix.c: Likewise.
16393         * sunrpc/des_crypt.c: Likewise.
16394         * sunrpc/des_soft.c: Likewise.
16395         * sunrpc/get_myaddr.c: Likewise.
16396         * sunrpc/key_call.c: Likewise.
16397         * sunrpc/key_prot.c: Likewise.
16398         * sunrpc/netname.c: Likewise.
16399         * sunrpc/pm_getmaps.c: Likewise.
16400         * sunrpc/pm_getport.c: Likewise.
16401         * sunrpc/pmap_clnt.c: Likewise.
16402         * sunrpc/pmap_prot.c: Likewise.
16403         * sunrpc/pmap_prot2.c: Likewise.
16404         * sunrpc/pmap_rmt.c: Likewise.
16405         * sunrpc/publickey.c: Likewise.
16406         * sunrpc/rpc_cmsg.c: Likewise.
16407         * sunrpc/rpc_common.c: Likewise.
16408         * sunrpc/rpc_dtable.c: Likewise.
16409         * sunrpc/rpc_prot.c: Likewise.
16410         * sunrpc/rpc_thread.c: Likewise.
16411         * sunrpc/rtime.c: Likewise.
16412         * sunrpc/svc.c: Likewise.
16413         * sunrpc/svc_auth.c: Likewise.
16414         * sunrpc/svc_authux.c: Likewise.
16415         * sunrpc/svc_raw.c: Likewise.
16416         * sunrpc/svc_run.c: Likewise.
16417         * sunrpc/svc_simple.c: Likewise.
16418         * sunrpc/svc_tcp.c: Likewise.
16419         * sunrpc/svc_udp.c: Likewise.
16420         * sunrpc/svc_unix.c: Likewise.
16421         * sunrpc/svcauth_des.c: Likewise.
16422         * sunrpc/xcrypt.c: Likewise.
16423         * sunrpc/xdr.c: Likewise.
16424         * sunrpc/xdr_array.c: Likewise.
16425         * sunrpc/xdr_float.c: Likewise.
16426         * sunrpc/xdr_intXX_t.c: Likewise.
16427         * sunrpc/xdr_mem.c: Likewise.
16428         * sunrpc/xdr_rec.c: Likewise.
16429         * sunrpc/xdr_ref.c: Likewise.
16430         * sunrpc/xdr_sizeof.c: Likewise.
16431         * sunrpc/xdr_stdio.c: Likewise.
16433 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
16435         [BZ #12650]
16436         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
16437         * sysdeps/ia64/dl-tls.h: Likewise.
16438         * sysdeps/powerpc/dl-tls.h: Likewise.
16439         * sysdeps/s390/dl-tls.h: Likewise.
16440         * sysdeps/sh/dl-tls.h: Likewise.
16441         * sysdeps/sparc/dl-tls.h: Likewise.
16442         * sysdeps/x86_64/dl-tls.h: Likewise.
16443         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
16445 2011-03-14  Andreas Schwab  <schwab@redhat.com>
16447         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
16448         rpath element also skip the following colon.
16449         (expand_dynamic_string_token): Add is_path parameter and pass
16450         down to DL_DST_REQUIRED and _dl_dst_substitute.
16451         (decompose_rpath): Call expand_dynamic_string_token with
16452         non-zero is_path.  Ignore empty rpaths.
16453         (_dl_map_object_from_fd): Call expand_dynamic_string_token
16454         with zero is_path.
16456 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
16458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
16459         Make cancelable.
16461 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
16463         [BZ #12655]
16464         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
16465         Patch by Filipe David Manana <fdmanana@apache.org>.
16467 2011-04-07  Andreas Schwab  <schwab@redhat.com>
16469         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
16470         Maintain aligned stack.
16471         (CHECK_RSP): Remove unused macro.
16473 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
16475         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
16476         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
16478 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
16480         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
16482         * include/features.h: Mention __USE_XOPEN2K8 in comment.
16484 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
16486         [BZ #12518]
16487         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
16488         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
16489         * sysdeps/x86_64/memmove.c: New file.
16490         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
16491         (memcpy): Renamed to ...
16492         (__new_memcpy): This.
16493         (memcpy): Provide GLIBC_2_14 memcpy.
16494         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
16495         (memcpy): Provide GLIBC_2_2_5 memcpy.
16497 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
16499         [BZ #12631]
16500         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
16502 2011-03-30  Andreas Schwab  <schwab@redhat.com>
16504         * misc/syncfs.c: New file.
16505         * misc/Makefile (routines): Add syncfs.
16506         * posix/unistd.h: Declare syncfs.
16507         * sysdeps/unix/syscalls.list: Add syncfs.
16509 2011-04-01  Andreas Schwab  <schwab@redhat.com>
16511         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
16512         open_by_handle_at.
16513         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
16514         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
16515         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16516         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16517         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16518         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
16519         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16521 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
16523         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
16524         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
16525         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
16526         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16527         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16528         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16529         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16531         * io/Makefile: Compile fallocate.c, fallocate64.c, and
16532         sync_file_range.c with -fexceptions.
16533         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
16534         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
16535         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
16536         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
16537         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
16538         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
16539         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
16540         sync_file_range as cancellation point
16541         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
16542         now a wrapper around __call_sync_file_range with cancellation handling.
16543         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
16544         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
16545         function name to __call_sync_file_range.
16546         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
16547         Add call_sync_file_range.
16549 2011-04-01  Andreas Schwab  <schwab@redhat.com>
16551         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16552         bits/timex.h.
16554 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
16556         * iconv/iconv.h: Fix typo in comment.
16557         * io/fcntl.h: Likewise.
16558         * libio/stdio.h: Likewise.
16559         * posix/spawn.h: Likewise.
16560         * posix/unistd.h: Likewise.
16561         * stdlib/stdlib.h: Likewise.
16562         * time/time.h: Likewise.
16563         * wcsmbs/wchar.h: Likewise.
16565         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
16566         open_by_handle): Add.
16567         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
16568         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
16569         Augment a few comments.
16570         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
16571         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16572         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16573         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16574         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16575         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
16576         open_by_handle.
16578         * io/fcntl.h (AT_EMPTY_PATH): Define.
16580 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
16582         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
16583         * sysdeps/unix/sysv/linux/bits/time.h: New file.
16584         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
16585         to...
16586         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
16587         * Versions.def: Add GLIBC_2.14.
16588         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
16589         Export.
16591 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
16593         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
16594         round counter.
16595         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
16597 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
16599         [BZ #12597]
16600         * string/test-strncmp.c (do_page_test): New function.
16601         (check2): Likewise.
16602         (test_main): Call check2.
16603         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
16605 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
16607         [BZ #12587]
16608         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
16609         Handle cache information in CPU leaf 4.
16610         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
16612 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
16614         [BZ #12583]
16615         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
16616         character representation.
16617         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
16619 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
16621         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
16622         END(__isnan) to END(__isnanf) to match function entry point/label
16623         EALIGN(__isnanf,...).
16625 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
16627         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
16629 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
16631         [BZ #12510]
16632         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
16633         copy from the symbol referenced in the relocation to initialize the
16634         used variable.
16635         Patch by Piotr Bury <pbury@goahead.com>.
16636         * elf/Makefile: Add rules to build and tst-unique3.
16637         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
16638         * elf/tst-unique3.cc: New file.
16639         * elf/tst-unique3.h: New file.
16640         * elf/tst-unique3lib.cc: New file.
16641         * elf/tst-unique3lib2.cc: New file.
16643         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
16645 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
16647         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
16648         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
16649         to _start.
16651 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
16653         * elf/dl-load.c (_dl_map_object): If we are looking for the first
16654         to-be-loaded object along a path to loader is ld.so.
16656 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
16657             Ulrich Drepper  <drepper@gmail.com>
16659         * sysdeps/x86_64/memset.S: After aligning destination, code
16660         branches to different locations depending on the value of
16661         misalignment, when multiarch is enabled. Fix this.
16663 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
16665         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
16666         Set _x86_64_preferred_memory_instruction for AMD processsors.
16667         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16668         Set bit_Prefer_SSE_for_memop for AMD processors.
16670 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
16672         * libio/fmemopen.c (fmemopen): Optimize a bit.
16674 2011-03-03  Andreas Schwab  <schwab@redhat.com>
16676         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
16678 2011-03-03  Roland McGrath  <roland@redhat.com>
16680         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
16682 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
16684         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
16685         __bzero_ultra1 instead of __memset_ultra1.
16687 2011-02-23  Andreas Schwab  <schwab@redhat.com>
16688             Ulrich Drepper  <drepper@gmail.com>
16690         [BZ #12509]
16691         * include/link.h (struct link_map): Add l_orig_initfini.
16692         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
16693         returning unsuccessfully.
16694         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
16695         close of a file loaded at startup, restore the original l_initfini
16696         list.
16697         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
16698         list, store the pointer.
16699         * elf/Makefile ($(objpfx)noload-mem): New rule.
16700         (noload-ENV): Define.
16701         (tests): Add $(objpfx)noload-mem.
16702         * elf/noload.c: Include <memcheck.h>.
16703         (main): Call mtrace.  Close all opened handles.
16705 2011-02-17  Andreas Schwab  <schwab@redhat.com>
16707         [BZ #12454]
16708         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
16709         dependencies are missing.
16711 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16713         Fix __if_freereq crash: Unlike the generic version which uses free,
16714         Hurd needs munmap.
16715         * sysdeps/mach/hurd/ifreq.h: New file.
16717 2011-01-27  Petr Baudis  <pasky@suse.cz>
16718             Ulrich Drepper  <drepper@gmail.com>
16720         [BZ 12445]#
16721         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
16722         to extend_alloca().
16723         * stdio-common/bug23.c: New file.
16724         * stdio-common/Makefile (tests): Add bug23.
16726 2010-09-28  Andreas Schwab  <schwab@redhat.com>
16727             Ulrich Drepper  <drepper@gmail.com>
16729         [BZ #12489]
16730         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
16731         before performing relro protection.  At old place add assertion
16732         to make sure nothing changed.
16734 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
16735             Glauber de Oliveira Costa  <glommer@gmail.com>
16737         * elf/elf.h: Add new ARM TLS relocs.
16739 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
16741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16742         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
16743         cast from r3.
16744         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
16745         'tests' variable.
16746         * sysdeps/wordsize-64/tst-writev.c: New file.
16748 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
16750         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
16751         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
16752         insns in _dl_start to prevent a TOC reference before relocs are
16753         resolved.
16755 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
16757         [BZ #12469]
16758         * Makeconfig: Remove RANLIB definition.
16759         * Makerules: Don't use RANLIB.
16760         * aclocal.m4: Remove ranlib test.
16761         * configure.in: No need to check for ranlib.
16762         * elf/rtld-Rules: Don't use RANLIB.
16764 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16766         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
16767         protection macro.
16768         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
16769         inclusion protection macro.
16771         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
16772         SIGRTMIN and SIGRTMAX and print information in that case only when
16773         SIGRTMIN is defined.
16775 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
16777         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
16778         arginfo fn returning -1.
16780         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
16781         and thousands string is zero terminated.
16783 2011-02-03  Andreas Schwab  <schwab@redhat.com>
16785         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
16786         sysdeps/unix/sysv/linux/bits/socket.h.
16788 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16790         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
16791         (__CPU_COUNT): Remove old macros.
16792         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
16793         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
16794         (__CPU_ALLOC, __CPU_FREE): Add macros.
16795         (__sched_cpualloc, __sched_cpufree): Add declarations.
16797 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
16799         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
16800         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
16801         * nscd/aicache.c (addhstaiX): Return timeout of added value.
16802         (readdhstai): Return value of addhstaiX call.
16803         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
16804         (addgrbyX): Return value returned by cache_addgr.
16805         (readdgrbyname): Return value returned by addgrbyX.
16806         (readdgrbygid): Likewise.
16807         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
16808         (addpwbyX): Return value returned by cache_addpw.
16809         (readdpwbyname): Return value returned by addhstbyX.
16810         (readdpwbyuid): Likewise.
16811         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
16812         (addservbyX): Return value returned by cache_addserv.
16813         (readdservbyname): Return value returned by addservbyX:
16814         (readdservbyport): Likewise.
16815         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
16816         (addhstbyX): Return value returned by cache_addhst.
16817         (readdhstbyname): Return value returned by addhstbyX.
16818         (readdhstbyaddr): Likewise.
16819         (readdhstbynamev6): Likewise.
16820         (readdhstbyaddrv6): Likewise.
16821         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
16822         (readdinitgroups): Return value returned by addinitgroupsX.
16823         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
16824         (prune_cache): Keep track of timeout value of re-added entries.
16825         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
16826         * nscd/nscd.h: Adjust prototypes of readd* functions.
16828 2011-02-04  Roland McGrath  <roland@redhat.com>
16830         * nis/nis_server.c (nis_servstate): Use the right name for 0.
16831         (nis_stats): Likewise.
16832         * nis/nis_modify.c (nis_modify): Likewise.
16833         * nis/nis_remove.c (nis_remove): Likewise.
16834         * nis/nis_add.c (nis_add): Likewise.
16836         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
16838         * posix/fnmatch_loop.c: Add some consts.
16840         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
16842 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
16844         [BZ #12460]
16845         * config.make.in (config-cflags-novzeroupper): Define.
16846         * configure.in: Substitute libc_cv_cc_novzeroupper.
16847         * elf/Makefile (AVX-CFLAGS): Define.
16848         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
16849         (CFLAGS-tst-auditmod4a.c): Likewise.
16850         (CFLAGS-tst-auditmod4b.c): Likewise.
16851         (CFLAGS-tst-auditmod6b.c): Likewise.
16852         (CFLAGS-tst-auditmod6c.c): Likewise.
16853         (CFLAGS-tst-auditmod7b.c): Likewise.
16854         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
16856 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
16858         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
16859         function to the callback.
16860         Patch partly by Jiri Olsa <jolsa@redhat.com>.
16862 2011-02-02  Andreas Schwab  <schwab@redhat.com>
16864         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
16865         of errno.
16867 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
16869         [BZ #11724]
16870         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
16871         of constructors.
16872         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
16873         of destructors.
16874         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
16876         [BZ #11724]
16877         * elf/Makefile: Add rules to build and run new test.
16878         * elf/tst-initorder.c: New file.
16879         * elf/tst-initorder.exp: New file.
16880         * elf/tst-initordera1.c: New file.
16881         * elf/tst-initordera2.c: New file.
16882         * elf/tst-initordera3.c: New file.
16883         * elf/tst-initordera4.c: New file.
16884         * elf/tst-initorderb1.c: New file.
16885         * elf/tst-initorderb2.c: New file.
16886         * elf/tst-order-a1.c: New file.
16887         * elf/tst-order-a2.c: New file.
16888         * elf/tst-order-a3.c: New file.
16889         * elf/tst-order-a4.c: New file.
16890         * elf/tst-order-b1.c: New file.
16891         * elf/tst-order-b2.c: New file.
16892         * elf/tst-order-main.c: New file.
16893         New test case by George Gensure <werkt0@gmail.com>.
16895 2010-10-01  Andreas Schwab  <schwab@redhat.com>
16897         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16898         decoding ACE if AI_CANONIDN.
16900 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
16902         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
16904 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
16906         * version.h (RELEASE): Bump for 2.13 release.
16907         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
16909         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
16911         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
16912         MADV_NOHUGEPAGE.
16913         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
16914         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
16915         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
16916         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
16917         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
16918         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
16920         * posix/getconf.c: Update copyright year.
16921         * catgets/gencat.c: Likewise.
16922         * csu/version.c: Likewise.
16923         * debug/catchsegv.sh: Likewise.
16924         * debug/xtrace.sh: Likewise.
16925         * elf/ldconfig.c: Likewise.
16926         * elf/ldd.bash.in: Likewise.
16927         * elf/sprof.c (print_version): Likewise.
16928         * iconv/iconv_prog.c: Likewise.
16929         * iconv/iconvconfig.c: Likewise.
16930         * locale/programs/locale.c: Likewise.
16931         * locale/programs/localedef.c: Likewise.
16932         * malloc/memusage.sh: Likewise.
16933         * malloc/mtrace.pl: Likewise.
16934         * nscd/nscd.c (print_version): Likewise.
16935         * nss/getent.c: Likewise.
16937         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
16938         PF_CAIF, and PF_ALG.
16939         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16941 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
16943         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
16944         (modules-names): Use them.
16945         (ifunc-test-modules, ifunc-pie-tests): Define.
16946         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
16947         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
16948         (test-extras): Likewise.
16949         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
16950         $(compile-command.c).
16951         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
16952         (all-built-dso): Define.
16953         (check-textrel.out, check-execstack.out): Depend on it.
16955         * configure.in: Don't override --enable-multi-arch.
16957 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
16959         [BZ #6812]
16960         * nscd/hstcache.c (tryagain): Define.
16961         (cache_addhst): Return tryagain not notfound for temporary errors.
16962         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
16963         failed.
16965 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
16967         [BZ #10563]
16968         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
16969         to make the syscall.
16970         * sysdeps/unix/sysv/linux/setgroups.c: New file.
16972         [BZ #12378]
16973         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
16974         and fall back to matching as normal character if the string ends before
16975         the matching ']' is found.  This is what POSIX requires.
16976         * posix/testfnm.c: Adjust test result.
16977         * posix/globtest.sh: Adjust test result.  Add new test.
16978         * posix/tst-fnmatch.input: Likewise.
16979         * posix/tst-fnmatch2.c: Add new test.
16981 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
16983         * elf/Makefile (check-execstack): Revert last change.  Depend on
16984         check-execstack.h.
16985         (check-execstack.h): New target.
16986         (generated): Add check-execstack.h.
16987         * elf/check-execstack.c: Include "check-execstack.h".
16988         (main): Revert last change.
16989         (handle_file): Return zero if GNU_STACK is absent and
16990         DEFAULT_STACK_PERMS doesn't include PF_X.
16992 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
16994         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
16995         in child fails because the descriptor is already closed.
16996         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
16997         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
16998         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
17000         [BZ #12397]
17001         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
17002         syscall.
17004         [BZ #10484]
17005         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
17006         temporary buffer used to handle multi lookups locally.
17007         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
17009 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17011         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
17012         loader is ld.so.
17014 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
17016         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
17017         alignment for SSE2.
17019 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17021         [BZ #12394]
17022         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
17023         characters.  When rounding increased number of integer digits recompute
17024         number of groups.
17025         * stdio-common/tst-grouping.c: New file.
17026         * stdio-common/Makefile: Add rules to build and run tst-grouping.
17028 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
17030         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
17031         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
17033         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
17034         void.
17035         * bits/select.h: Likewise.
17037 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
17039         * po/ja.po: Update from translation team.
17041 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
17043         [BZ #11155]
17044         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
17045         implementation just like for lxstat, fxstatat, et al.
17047 2010-12-27  Jim Meyering  <meyering@redhat.com>
17049         [BZ #12348]
17050         * posix/regexec.c (build_trtable): Return failure indication upon
17051         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17053 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
17055         [BZ #12201]
17056         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
17057         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
17058         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
17059         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
17061         [BZ #12207]
17062         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
17064         [BZ #12204]
17065         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
17066         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
17068 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
17070         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
17071         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
17072         script has SORT_BY_INIT_PRIORITY.
17073         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
17074         NO_CTORS_DTORS_SECTIONS is defined.
17075         * elf/soinit.c: Likewise.
17076         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
17077         NO_CTORS_DTORS_SECTIONS is defined.
17078         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
17079         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
17080         * sysdeps/sh/init-first.c: Likewise.
17081         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
17083 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
17085         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
17086         always use the slow path.
17088 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
17090         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
17091         similar rule which adds the sysdep directories to the header search in
17092         order to pick up the correct platform stackinfo.h.
17093         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
17094         perform test if it is, otherwise return successfully without testing.
17095         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
17096         DEFAULT_STACK_PERMS define in stackinfo.h.
17097         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
17098         defined in stackinfo.h.
17099         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
17100         DEFAULT_STACK_PERMS defined in stackinfo.h.
17101         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
17102         * sysdeps/ia64/stackinfo.h: Likewise.
17103         * sysdeps/s390/stackinfo.h: Likewise.
17104         * sysdeps/sh/stackinfo.h: Likewise.
17105         * sysdeps/sparc/stackinfo.h: Likewise.
17106         * sysdeps/x86_64/stackinfo.h: Likewise.
17107         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
17108         PF_X for powerpc64.  Retain PF_X for powerpc32.
17110 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
17112         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
17113         accurately.
17114         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
17115         GETDENTS_64BIT_ALIGNED.
17117 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
17119         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
17121 2010-12-10  Andreas Schwab  <schwab@redhat.com>
17123         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
17124         _GNU_SOURCE.
17126         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
17127         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
17128         Remove __restrict.
17129         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
17130         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
17132 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
17134         [BZ #11655]
17135         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
17136         are initialized.
17138 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
17140         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
17142 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
17144         * po/it.po: Update from translation team.
17146 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
17148         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
17149         unused codes.
17151 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
17153         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
17155 2010-11-24  Andreas Schwab  <schwab@redhat.com>
17157         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
17158         specially.
17159         (gaih_getanswer_slice): Likewise.
17161 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
17163         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
17165 2010-05-31  Petr Baudis  <pasky@suse.cz>
17167         [BZ #11149]
17168         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
17169         silently even in the chroot mode.
17171 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
17173         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
17174         last patch a bit.  Pretty printing
17176 2010-05-31  Petr Baudis <pasky@suse.cz>
17178         [BZ #10085]
17179         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
17180         initialization of skip_initgroups_dyn.
17182 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
17184         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
17185         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17187 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
17189         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
17191 2010-11-11  Andreas Schwab  <schwab@redhat.com>
17193         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
17194         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
17195         (tst-fnmatch-ENV): Set MALLOC_TRACE.
17196         ($(objpfx)tst-fnmatch-mem): New rule.
17197         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
17198         * posix/tst-fnmatch.c (main): Call mtrace.
17200 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
17202         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17203         Support Intel processor model 6 and model 0x2c.
17205 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
17207         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
17208           signed comparison.
17210 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
17212         [BZ #12205]
17213         * string/test-strncasecmp.c (check_result): New function.
17214         (do_one_test): Use it.
17215         (check1): New function.
17216         (test_main): Use it.
17217         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
17218         Support strcasecmp and strncasecmp.
17220 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
17222         [BZ #12194]
17223         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
17224         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17226 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
17228         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
17229         IFUNC support.
17230         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17231         memset-x86-64.
17232         * sysdeps/x86_64/multiarch/bzero.S: New file.
17233         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
17234         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
17235         * sysdeps/x86_64/multiarch/memset.S: New file.
17236         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
17237         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17238         Set bit_Prefer_SSE_for_memop for Intel processors.
17239         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
17240         Define.
17241         (index_Prefer_SSE_for_memop): Define.
17242         (HAS_PREFER_SSE_FOR_MEMOP): Define.
17244 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
17246         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
17247         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
17249 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
17251         [BZ #12191]
17252         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
17253         (__x86_64_raw_data_cache_size_half): Likewise.
17254         (__x86_64_raw_shared_cache_size): Likewise.
17255         (__x86_64_raw_shared_cache_size_half): Likewise.
17257         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
17258         (__x86_64_raw_data_cache_size_half): Likewise.
17259         (__x86_64_raw_shared_cache_size): Likewise.
17260         (__x86_64_raw_shared_cache_size_half): Likewise.
17261         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
17262         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
17263         and __x86_64_raw_shared_cache_size_half.  Round
17264         __x86_64_data_cache_size_half, __x86_64_data_cache_size
17265         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
17266         to multiple of 256 bytes.
17268 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
17270         [BZ #12167]
17271         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
17272         of inacessible symlinks.  Verify result of symlink before returning it.
17273         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
17274         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
17276 2010-10-28  Erich Ritz  <erichritz@gmail.com>
17278         * math/math.h (isinf): Fix typo in comment.
17280 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
17282         * po/da.po: Update from translation team.
17284 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
17286         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
17287         is added to the list.
17289 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17290             Ulrich Drepper  <drepper@gmail.com>
17292         * elf/dl-object.c (_dl_new_object): Don't append the new object to
17293         the global list here.  Move code to...
17294         (_dl_add_to_namespace_list): ...here.  New function.
17295         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
17296         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
17297         * elf/dl-load.c (lose): Don't remove the element from the list.
17298         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
17299         (_dl_map_object): Likewise.
17301 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
17303         [BZ #12159]
17304         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
17305         into all bytes of SSE register.
17306         Patch by Richard Li <richardpku@gmail.com>.
17308 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
17310         [BZ #12140]
17311         * malloc/malloc.c (_int_free): Fill correct number of bytes when
17312         perturbing.
17314 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
17316         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
17317         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
17318         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
17319         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
17320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
17321         submachine.
17322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
17324 2010-10-22  Andreas Schwab  <schwab@redhat.com>
17326         * include/dlfcn.h (__RTLD_SECURE): Define.
17327         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
17328         mode & __RTLD_SECURE instead.
17329         (open_path): Rename preloaded parameter to secure.
17330         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
17331         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
17332         * elf/dl-deps.c (openaux): Likewise.
17333         * elf/rtld.c (struct map_args): Remove is_preloaded.
17334         (map_doit): Don't use it.
17335         (dl_main): Likewise.
17336         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
17337         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
17339 2010-09-09  Andreas Schwab  <schwab@redhat.com>
17341         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
17342         (sysd-rules-targets): Remove duplicates.
17343         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
17344         rtld-%.$o dependency.
17346 2010-10-18  Andreas Schwab  <schwab@redhat.com>
17348         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
17349         _dl_map_object do it.
17351 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
17353         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
17354         fast fma builtins, define the macros in the C99 standard.
17355         (FP_FAST_FMAF): Likewise.
17356         (FP_FAST_FMAL): Likewise.
17357         * sysdeps/x86_64/bits/mathdef.h: Likewise.
17359         * bits/mathdef.h: Update copyright year.
17360         * sysdeps/powerpc/bits/mathdef.h: Likewise.
17362 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
17364         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
17365         builtins, define the macros in the C99 standard.
17366         (FP_FAST_FMAF): Likewise.
17367         (FP_FAST_FMAL): Likewise.
17368         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
17369         multiply/add.
17370         (FP_FAST_FMAF): Likewise.
17372 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
17374         [BZ #3268]
17375         * math/libm-test.inc (fma_test): Some new testcases.
17376         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
17377         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
17378         y and infinite z.  Do multiplication by C already in long double.
17379         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
17380         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
17381         y and infinite z.  Do bitwise or of inexact bit into u.d.
17382         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
17383         * sysdeps/i386/fpu/s_fmaf.S: Removed.
17384         * sysdeps/i386/fpu/s_fma.S: Removed.
17385         * sysdeps/i386/fpu/s_fmal.S: Removed.
17387 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
17389         [BZ #3268]
17390         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
17391         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
17392         computation is not scheduled after fetestexcept.  Fix value
17393         of minimum denormal long double.
17395 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
17397         [BZ #3268]
17398         * math/libm-test.inc (fma_test): Add some more tests.
17399         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
17400         correctly.
17402 2010-10-15  Andreas Schwab  <schwab@redhat.com>
17404         * scripts/data/localplt-s390-linux-gnu.data: New file.
17405         * scripts/data/localplt-s390x-linux-gnu.data: New file.
17407 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
17409         [BZ #3268]
17410         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
17411         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
17412         instead of dbl-64.
17413         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
17414         inlines.
17415         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
17416         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
17417         if one of x and y is very large and the other is subnormal.
17418         * sysdeps/s390/fpu/s_fmaf.c: New file.
17419         * sysdeps/s390/fpu/s_fma.c: New file.
17420         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
17421         * sysdeps/powerpc/fpu/s_fma.S: New file.
17422         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
17423         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
17424         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
17426 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
17428         [BZ #3268]
17429         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
17430         fma tests.
17431         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
17432         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
17433         * sysdeps/i386/i686/multiarch/s_fma.c: Include
17434         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
17435         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
17436         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
17437         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
17439 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
17441         [BZ #12078]
17442         * posix/regcomp.c (parse_branch): One more memory leak plugged.
17443         * posix/bug-regex31.input: Add test case.
17445 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
17447         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
17448         * posix/bug-regex31.input: New file.
17450         [BZ #12078]
17451         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
17452         (parse_sub_exp): Fix last change, use postorder.
17454         * posix/bug-regex31.c: New file.
17455         * posix/Makefile: Add rules to build and run bug-regex31.
17457         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
17459         [BZ #12078]
17460         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
17462         [BZ #12108]
17463         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
17464         to have entries in sys_siglist.
17466         [BZ #12093]
17467         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
17468         be NULL.
17470 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
17472         [BZ #3268]
17473         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
17474         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
17475         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
17476         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
17477         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
17478         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
17479         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
17480         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
17481         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
17482         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
17483         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
17484         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
17485         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
17486         * math/ftestexcept.c (fetestexcept): Likewise.
17487         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
17488         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
17489         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
17490         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
17491         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
17492         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
17493         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
17495 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
17497         [BZ #12107]
17498         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
17499         newline.
17501 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
17503         * string/bug-strstr1.c: New file.
17504         * string/Makefile: Add rules to build and run bug-strstr1.
17506 2010-10-05  Eric Blake  <eblake@redhat.com>
17508         [BZ #12092]
17509         * string/str-two-way.h (two_way_long_needle): Always clear memory
17510         when skipping input due to the shift table.
17512 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
17514         [BZ #12005]
17515         * malloc/mcheck.c: Handle large requests.
17517         [BZ #12077]
17518         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
17519         for strncmp and strncasecmp.
17520         * string/stratcliff.c: Add tests for strcmp and strncmp.
17521         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
17523 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17525         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
17526         __set_fpscr.
17528 2010-09-30  Andreas Jaeger  <aj@suse.de>
17530         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
17531         (CGROUP_SUPER_MAGIC): Define.
17532         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17533         Handle btrfs and cgroup file systems.
17534         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
17535         Likewise.
17537 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
17539         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
17540         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
17542 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17544         [BZ #12067]
17545         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
17546         trying to locate the ELF header.
17548 2010-09-27  Andreas Schwab  <schwab@redhat.com>
17550         [BZ #11611]
17551         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
17552         Mask out sign-bit copies when constructing f_fsid.
17554 2010-09-24  Petr Baudis <pasky@suse.cz>
17556         * debug/stack_chk_fail_local.c: Add missing licence exception.
17557         * debug/warning-nop.c: Likewise.
17559 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
17561         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
17562         implementing getdents64 using getdents syscall, set d_type if
17563         __ASSUME_GETDENTS32_D_TYPE.
17565 2010-09-16  Andreas Schwab  <schwab@redhat.com>
17567         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
17568         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
17570 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
17572         [BZ #12037]
17573         * posix/unistd.h: Undo change of feature selection for ftruncate from
17574         2010-01-11.
17576 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
17578         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
17579         detection.
17581 2010-09-20  Andreas Schwab  <schwab@redhat.com>
17583         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
17584         fanotify_mark.
17585         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
17587 2010-09-14  Andreas Schwab  <schwab@redhat.com>
17589         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
17590         variables after CHECK_SP call.
17591         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
17593 2010-09-13  Andreas Schwab  <schwab@redhat.com>
17594             Ulrich Drepper  <drepper@redhat.com>
17596         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
17597         re-relocationg ld.so.
17598         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
17599         _dl_init_paths call.
17600         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
17601         here anymore.
17603 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
17605         * resolv/res_init.c (__res_vinit): Count the default server we added.
17607 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
17608             Ulrich Drepper  <drepper@redhat.com>
17610         [BZ #11968]
17611         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17612         (____longjmp_chk): Use %ebx for saving value across system call.
17613         Add unwind info.
17615 2010-09-06  Andreas Schwab  <schwab@redhat.com>
17617         * manual/Makefile: Don't mix pattern rules with normal rules.
17619 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
17621         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
17622         operation.
17623         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
17624         * libio/iofopncook.c (_IO_cookie_init): Likewise.
17625         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
17626         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17627         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17628         Likewise.
17630 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
17632         [BZ #11979]
17633         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
17634         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
17636 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
17638         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
17639         * sysdeps/x86_64/addmul_1.S: Likewise.
17640         * sysdeps/x86_64/lshift.S: Likewise.
17641         * sysdeps/x86_64/mul_1.S: Likewise.
17642         * sysdeps/x86_64/rshift.S: Likewise.
17643         * sysdeps/x86_64/sub_n.S: Likewise.
17644         * sysdeps/x86_64/submul_1.S: Likewise.
17646 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17648         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
17649         Define __sched_param instead of SCHED_* and sched_param when
17650         <bits/sched.h> is included with __need_schedparam defined.
17651         * bits/sched.h [__need_schedparam]
17652         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
17653         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
17654         (__defined_schedparam): Define to 1.
17655         (__sched_param): New structure, identical to sched_param.
17656         (__need_schedparam): Undefine.
17658 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
17660         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
17661         (epoll_create1): Declare.
17663         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
17665 2010-08-31  Andreas Schwab  <schwab@redhat.com>
17667         [BZ #7066]
17668         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
17669         shifting retval into place.
17671 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
17673         * nis/rpcsvc/nis.h: Update copyright notice.
17674         * nis/rpcsvc/nis.x: Likewise.
17675         * nis/rpcsvc/nis_callback.h: Likewise.
17676         * nis/rpcsvc/nis_callback.x: Likewise.
17677         * nis/rpcsvc/nis_object.x: Likewise.
17678         * nis/rpcsvc/nis_tags.h: Likewise.
17679         * nis/rpcsvc/yp.h: Likewise.
17680         * nis/rpcsvc/yp.x: Likewise.
17681         * nis/rpcsvc/ypupd.h: Likewise.
17682         * nis/yp_xdr.c: Likewise.
17683         * nis/ypupdate_xdr.c: Likewise.
17685         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
17686         mainly the body of pmap_getport.  Add parameters to specify timeouts.
17687         (pmap_getport): Use __libc_rpc_getport.
17688         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
17689         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
17690         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
17692 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
17694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
17695         fanotify_mark.
17697 2010-08-27  Roland McGrath  <roland@redhat.com>
17699         * sysdeps/i386/i686/multiarch/Makefile
17700         (CFLAGS-varshift.c): New variable.
17702 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
17704         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
17705         * sysdeps/i386/i686/multiarch/varshift.c: New file.
17707         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
17709         * sysdeps/x86_64/strlen.S: Minimal code improvement.
17711 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
17713         * sysdeps/x86_64/strlen.S: Unroll the loop.
17714         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17715         strlen-sse2 strlen-sse2-bsf.
17716         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
17717         __strlen_no_bsf if bit_Slow_BSF is set.
17718         (__strlen_sse42): Removed.
17719         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
17720         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
17722 2010-08-25  Roland McGrath  <roland@redhat.com>
17724         * sysdeps/x86_64/multiarch/varshift.S: File removed.
17725         * sysdeps/x86_64/multiarch/varshift.c: New file.
17726         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
17727         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
17728         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
17729         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
17731 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
17733         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17734         strlen-sse2 strlen-sse2-bsf.
17735         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
17736         __strlen_sse2_bsf if bit_Slow_BSF is unset.
17737         (__strlen_sse2): Removed.
17738         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
17739         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
17740         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
17741         bit_Slow_BSF for Atom.
17742         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
17743         (index_Slow_BSF): Define.
17744         (HAS_SLOW_BSF): Define.
17746 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
17748         [BZ #10851]
17749         * resolv/res_init.c (__res_vinit): When no server address at all
17750         is given default to loopback.
17752 2010-08-24  Roland McGrath  <roland@redhat.com>
17754         * configure.in: Remove config-name.h generation.
17755         * configure: Regenerated.
17756         * config-name.in: File removed.
17757         * scripts/config-uname.sh: New file.
17758         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
17759         ($(objdir)config-name.h): New target.
17761         * sunrpc/rpc_parse.h: Avoid nested comment.
17763 2010-08-24  Richard Henderson  <rth@redhat.com>
17764             Ulrich Drepper  <drepper@redhat.com>
17765             H.J. Lu  <hongjiu.lu@intel.com>
17767         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
17768         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
17769         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
17770         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
17771         _mm_alignr_epi8 with _mm_loadu_si128.
17772         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
17773         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
17774         (__m128i_shift_right): Removed.
17775         * sysdeps/i386/i686/multiarch/varshift.h: New file.
17776         * sysdeps/i386/i686/multiarch/varshift.S: New file.
17777         * sysdeps/x86_64/multiarch/varshift.h: New file.
17778         * sysdeps/x86_64/multiarch/varshift.S: New file.
17780 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
17782         * configure.in: Move assembler checks to before sysdep dir checking.
17784 2010-08-20  Petr Baudis  <pasky@suse.cz>
17786         * LICENSES: Sync the sunrpc license.
17788 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
17790         * sunrpc/auth_des.c: Update copyright notice once again.
17791         * sunrpc/auth_none.c: Likewise.
17792         * sunrpc/auth_unix.c: Likewise.
17793         * sunrpc/authdes_prot.c: Likewise.
17794         * sunrpc/authuxprot.c: Likewise.
17795         * sunrpc/bindrsvprt.c: Likewise.
17796         * sunrpc/clnt_gen.c: Likewise.
17797         * sunrpc/clnt_perr.c: Likewise.
17798         * sunrpc/clnt_raw.c: Likewise.
17799         * sunrpc/clnt_simp.c: Likewise.
17800         * sunrpc/clnt_tcp.c: Likewise.
17801         * sunrpc/clnt_udp.c: Likewise.
17802         * sunrpc/clnt_unix.c: Likewise.
17803         * sunrpc/des_crypt.c: Likewise.
17804         * sunrpc/des_soft.c: Likewise.
17805         * sunrpc/get_myaddr.c: Likewise.
17806         * sunrpc/getrpcport.c: Likewise.
17807         * sunrpc/key_call.c: Likewise.
17808         * sunrpc/key_prot.c: Likewise.
17809         * sunrpc/openchild.c: Likewise.
17810         * sunrpc/pm_getmaps.c: Likewise.
17811         * sunrpc/pm_getport.c: Likewise.
17812         * sunrpc/pmap_clnt.c: Likewise.
17813         * sunrpc/pmap_prot.c: Likewise.
17814         * sunrpc/pmap_prot2.c: Likewise.
17815         * sunrpc/pmap_rmt.c: Likewise.
17816         * sunrpc/rpc/auth.h: Likewise.
17817         * sunrpc/rpc/auth_unix.h: Likewise.
17818         * sunrpc/rpc/clnt.h: Likewise.
17819         * sunrpc/rpc/des_crypt.h: Likewise.
17820         * sunrpc/rpc/key_prot.h: Likewise.
17821         * sunrpc/rpc/netdb.h: Likewise.
17822         * sunrpc/rpc/pmap_clnt.h: Likewise.
17823         * sunrpc/rpc/pmap_prot.h: Likewise.
17824         * sunrpc/rpc/pmap_rmt.h: Likewise.
17825         * sunrpc/rpc/rpc.h: Likewise.
17826         * sunrpc/rpc/rpc_des.h: Likewise.
17827         * sunrpc/rpc/rpc_msg.h: Likewise.
17828         * sunrpc/rpc/svc.h: Likewise.
17829         * sunrpc/rpc/svc_auth.h: Likewise.
17830         * sunrpc/rpc/types.h: Likewise.
17831         * sunrpc/rpc/xdr.h: Likewise.
17832         * sunrpc/rpc_clntout.c: Likewise.
17833         * sunrpc/rpc_cmsg.c: Likewise.
17834         * sunrpc/rpc_common.c: Likewise.
17835         * sunrpc/rpc_cout.c: Likewise.
17836         * sunrpc/rpc_dtable.c: Likewise.
17837         * sunrpc/rpc_hout.c: Likewise.
17838         * sunrpc/rpc_main.c: Likewise.
17839         * sunrpc/rpc_parse.c: Likewise.
17840         * sunrpc/rpc_parse.h: Likewise.
17841         * sunrpc/rpc_prot.c: Likewise.
17842         * sunrpc/rpc_sample.c: Likewise.
17843         * sunrpc/rpc_scan.c: Likewise.
17844         * sunrpc/rpc_scan.h: Likewise.
17845         * sunrpc/rpc_svcout.c: Likewise.
17846         * sunrpc/rpc_tblout.c: Likewise.
17847         * sunrpc/rpc_util.c: Likewise.
17848         * sunrpc/rpc_util.h: Likewise.
17849         * sunrpc/rpcinfo.c: Likewise.
17850         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
17851         * sunrpc/rpcsvc/key_prot.x: Likewise.
17852         * sunrpc/rpcsvc/klm_prot.x: Likewise.
17853         * sunrpc/rpcsvc/mount.x: Likewise.
17854         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
17855         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
17856         * sunrpc/rpcsvc/rex.x: Likewise.
17857         * sunrpc/rpcsvc/rstat.x: Likewise.
17858         * sunrpc/rpcsvc/rusers.x: Likewise.
17859         * sunrpc/rpcsvc/sm_inter.x: Likewise.
17860         * sunrpc/rpcsvc/spray.x: Likewise.
17861         * sunrpc/rpcsvc/yppasswd.x: Likewise.
17862         * sunrpc/rtime.c: Likewise.
17863         * sunrpc/svc.c: Likewise.
17864         * sunrpc/svc_auth.c: Likewise.
17865         * sunrpc/svc_authux.c: Likewise.
17866         * sunrpc/svc_raw.c: Likewise.
17867         * sunrpc/svc_run.c: Likewise.
17868         * sunrpc/svc_simple.c: Likewise.
17869         * sunrpc/svc_tcp.c: Likewise.
17870         * sunrpc/svc_udp.c: Likewise.
17871         * sunrpc/svc_unix.c: Likewise.
17872         * sunrpc/svcauth_des.c: Likewise.
17873         * sunrpc/xcrypt.c: Likewise.
17874         * sunrpc/xdr.c: Likewise.
17875         * sunrpc/xdr_array.c: Likewise.
17876         * sunrpc/xdr_float.c: Likewise.
17877         * sunrpc/xdr_mem.c: Likewise.
17878         * sunrpc/xdr_rec.c: Likewise.
17879         * sunrpc/xdr_ref.c: Likewise.
17880         * sunrpc/xdr_sizeof.c: Likewise.
17881         * sunrpc/xdr_stdio.c: Likewise.
17883         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
17884         handling.
17886 2010-08-19  Andreas Schwab  <schwab@redhat.com>
17888         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
17890 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
17892         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
17893         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
17894         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
17895         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
17896         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
17897         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
17898         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
17899         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
17900         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
17901         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
17902         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
17903         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
17904         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
17905         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
17907 2010-07-26  Anton Blanchard  <anton@samba.org>
17909         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
17910         * malloc/arena.c (heap_trim): Likewise.
17912 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
17914         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
17915         here.  Not...
17916         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
17917         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
17919 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
17921         * sysdeps/i386/elf/Makefile: New file.
17923 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
17925         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
17926         from fanotify_init.
17927         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
17928         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
17930 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
17932         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
17933         of strncasecmp_l.
17934         * sysdeps/multiarch/strcmp.S: Likewise.
17936 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
17938         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
17939         strncase_l-nonascii.
17940         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
17941         Add strncase_l-ssse3.
17942         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
17943         * sysdeps/x86_64/strcmp.S: Likewise.
17944         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
17945         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
17946         * sysdeps/x86_64/strncase.S: New file.
17947         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
17948         * sysdeps/x86_64/strncase_l.S: New file.
17949         * string/Makefile (strop-tests): Add strncasecmp.
17950         * string/test-strncasecmp.c: New file.
17952         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
17953         warning.
17955         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
17956         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
17958 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
17960         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
17962 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
17964         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
17965         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
17966         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
17968 2010-05-01  Alan Modra  <amodra@gmail.com>
17970         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
17971         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
17972         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
17973         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
17974         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
17975         tidying.  Don't tail-call __sigjmp_save for static lib.
17976         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
17977         save location.
17978         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
17979         (CALL_MCOUNT): Add eh info, and nop after bl.
17980         (TAIL_CALL_SYSCALL_ERROR): New macro.
17981         (PSEUDO_RET): Use it.
17982         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
17983         Correct save location of integer regs and cr.
17984         (_dl_profile_resolve): Correct cr save location.  Delete nops
17985         after bl when SHARED.  Reduce cfi size a little by better
17986         placement of cfi directives.
17987         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
17988         make a stack frame.  Instead use parm save area as a temp.
17989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
17990         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
17991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
17992         Don't make a stack frame for parent, use parm save area.
17993         Increase child stack frame to 112 bytes.  Don't save unused reg,
17994         and adjust reg usage.  Set up cfi on error recovery and
17995         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
17996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
17997         (__makecontext): Add dummy nop after jump to exit.
17998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
17999         Use correct parm save area and cr save, reduce stack frame.
18000         Correct cfi for possible PSEUDO_RET frame setup.
18001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
18002         Branch to local label emitted by PSEUDO_RET rather than
18003         __syscall_error.
18005 2010-08-12  Andreas Schwab  <schwab@redhat.com>
18007         [BZ #11904]
18008         * locale/programs/locale.c (print_assignment): New function.
18009         (show_locale_vars): Use it.
18011 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
18013         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
18014         field.
18015         (struct statfs64): Likewise.
18016         (_STATFS_F_FLAGS): Define.
18017         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
18018         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18019         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
18020         (ST_VALID): Define locally.
18021         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
18022         __statvfs_getflags, use the provided value.
18023         * sysdeps/unix/sysv/linux/kernel-features.h: Define
18024         __ASSUME_STATFS_F_FLAGS.
18026         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
18028         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
18029         Add sys/fanotify.h.
18030         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
18031         fanotify_mask for GLIBC_2.13.
18032         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
18033         fanotify_init and fanotify_mark.
18034         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18035         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
18037         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
18038         Add prlimit.
18039         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
18040         prlimit64 for GLIBC_2.13.
18041         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
18042         prlimit64.
18043         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
18044         syscall.
18045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18046         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18047         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
18048         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
18049         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
18050         add prlimit alias.
18051         * sysdeps/unix/sysv/linux/prlimit.c: New file.
18053         [BZ #11903]
18054         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
18055         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
18057         * nss/Makefile: Add rules to build and run tst-nss-test1.
18058         * shlib-versions: Add entry for libnss_test1.
18059         * nss/nss_test1.c: New file.
18060         * nss/tst-nss-test1.c: New file.
18062         * nss/nsswitch.c (__nss_database_custom): Define new variable.
18063         (__nss_configure_lookup): Set appropriate entry in
18064         __nss_configure_lookup to true.
18065         * nss/nsswitch.h: Define enum with indeces of databases in
18066         databases and __nss_database_custom arrays.  Declare
18067         __nss_database_custom.
18068         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
18069         to avoid using nscd when custom rules are installed.
18070         * nss/getXXbyYY_r.c: Likewise.
18071         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
18073         * nss/nss_files/files-parse.c: Whitespace fixes.
18075 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
18077         [BZ #11883]
18078         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
18079         * posix/fnmatch_loop.c: Likewise.
18081 2010-07-17  Andi Kleen  <ak@linux.intel.com>
18083         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
18084         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
18085         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
18086         * Versions.def [GLIBC_2.13]: Add.
18088 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
18090         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18091         Also fail if tpwd after pwuid call is NULL.
18093 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18095         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
18096         when converting to ms.
18098 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18100         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
18101         EOPNOTSUPP errors with ENOTTY.
18102         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
18103         EOPNOTSUPP errors with ENOTTY.
18105 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
18107         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18108         Add strcasecmp_l-ssse3.
18109         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
18110         strcasecmp.
18111         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
18112         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
18113         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
18115 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
18117         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
18119         * string/Makefile (strop-tests): Add strcasecmp.
18120         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18121         strcasecmp_l-nonascii.
18122         (gen-as-const-headers): Add locale-defines.sym.
18123         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
18124         * sysdeps/x86_64/strcasecmp.S: New file.
18125         * sysdeps/x86_64/strcasecmp_l.S: New file.
18126         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
18127         * sysdeps/x86_64/locale-defines.sym: New file.
18128         * string/test-strcasecmp.c: New file.
18130         * string/test-strcasestr.c: Test both ends of the range of characters.
18131         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
18133 2010-07-29  Roland McGrath  <roland@redhat.com>
18135         [BZ #11856]
18136         * manual/locale.texi (Yes-or-No Questions): Fix example code.
18138 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
18140         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
18141         for ld.so.
18143 2010-07-27  Andreas Schwab  <schwab@redhat.com>
18145         * manual/memory.texi (Malloc Tunable Parameters): Document
18146         M_PERTURB.
18148 2010-07-26  Roland McGrath  <roland@redhat.com>
18150         [BZ #11840]
18151         * configure.in (-fgnu89-inline check): Set and substitute
18152         gnu89_inline, not libc_cv_gnu89_inline.
18153         * configure: Regenerated.
18154         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
18156 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
18158         * string/test-strnlen.c: New file.
18159         * string/Makefile (strop-tests): Add strnlen.
18160         * string/tester.c (test_strnlen): Add a few more test cases.
18161         * string/tst-strlen.c: Better error reporting.
18163         * sysdeps/x86_64/strnlen.S: New file.
18165 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
18167         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
18168         lower-latency instructions.
18170 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
18172         * string/test-strcasestr.c: New file.
18173         * string/test-strstr.c: New file.
18174         * string/Makefile (strop-tests): Add strstr and strcasestr.
18175         * string/str-two-way.h: Don't undefine MAX.
18176         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
18178 2010-07-21  Andreas Schwab  <schwab@redhat.com>
18180         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18181         strcasestr-nonascii.
18182         (CFLAGS-strcasestr-nonascii.c): Define.
18183         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
18184         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
18185         Remove unused attribute.
18187 2010-07-20  Roland McGrath  <roland@redhat.com>
18189         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
18190         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
18191         ld.so.cache was broken.  With it, there is no way to disable dsocaps
18192         like LD_HWCAP_MASK can disable hwcaps.
18194 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
18196         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
18198 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
18200         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
18201         call in strcasestr.
18202         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
18203         __strcasestr_sse42_nonascii.
18204         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
18205         strcasestr-nonascii.c.
18206         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
18208 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
18210         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
18211         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
18212         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
18213         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
18215 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
18217         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
18218         fcntl.
18220 2010-07-06  Andreas Schwab  <schwab@redhat.com>
18222         [BZ #11577]
18223         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
18224         dl_signal_cerror.
18226 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
18228         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
18229         _PC_PIPE_BUF using F_GETPIPE_SZ.
18231 2010-07-05  Roland McGrath  <roland@redhat.com>
18233         * manual/arith.texi (Rounding Functions): Fix rint description
18234         implicit in round description.
18236 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
18238         * elf/Makefile: Fix linking for a few tests to make recent linker
18239         happy.
18241 2010-06-30  Andreas Schwab  <schwab@redhat.com>
18243         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18244         $(common-objpfx)libc_nonshared.a.
18246 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
18248         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
18249         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
18250         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
18251         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
18252         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
18253         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
18254         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
18255         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
18256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
18257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
18258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
18259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
18260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
18261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
18262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
18263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
18264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
18265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
18266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
18267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
18268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
18269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
18270         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
18271         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
18272         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
18273         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
18274         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
18275         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
18276         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
18277         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
18278         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
18279         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
18280         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
18281         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
18282         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
18283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
18284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
18285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
18286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
18287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
18288         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
18289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
18290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
18291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
18292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
18293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
18294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
18295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
18297 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
18299         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
18300         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
18301         * string/memmove.c (memmove): Renamed to ...
18302         (MEMMOVE): ...this.  Default to memmove.
18303         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
18304         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
18305         (END_CHK): Define.
18306         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18307         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
18308         mempcpy-ssse3-back memmove-ssse3-back.
18309         * sysdeps/x86_64/multiarch/bcopy.S: New file .
18310         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
18311         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
18312         * sysdeps/x86_64/multiarch/memcpy.S: New file.
18313         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
18314         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
18315         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
18316         * sysdeps/x86_64/multiarch/memmove.c: New file.
18317         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
18318         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
18319         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
18320         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
18321         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
18322         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
18323         Define.
18324         (index_Fast_Copy_Backward): Define.
18325         (HAS_ARCH_FEATURE): Define.
18326         (HAS_FAST_REP_STRING): Define.
18327         (HAS_FAST_COPY_BACKWARD): Define.
18329 2010-06-21  Andreas Schwab  <schwab@redhat.com>
18331         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18332         Restore proper fallback handling.
18334 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
18336         [BZ #11701]
18337         * posix/group_member.c (__group_member): Correct checking loop.
18339         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
18340         OOM in getpwuid_r correctly.  Return error number when the caller
18341         should return, otherwise -1.
18342         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
18343         call returning > 0 value.
18344         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
18346 2010-06-07  Andreas Schwab  <schwab@redhat.com>
18348         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
18349         libc_nonshared.a from targets in modules-names.
18351 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
18353         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
18354         requires it.
18356 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
18358         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
18359         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
18360         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
18361         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
18363 2010-06-02  Andreas Schwab  <schwab@redhat.com>
18365         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
18367 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
18369         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
18370         and F_GETPIPE_SZ.
18371         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18372         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18373         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18374         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18375         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18376         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
18378 2010-06-14  Roland McGrath  <roland@redhat.com>
18380         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
18382 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
18384         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
18385         __REDIRECT followed by __THROW.
18386         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
18387         * posix/getopt.h (getopt): Likewise.
18389 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
18391         * hurd/lookup-at.c (__file_name_lookup_at): Accept
18392         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
18393         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
18394         in AT_FLAGS.
18395         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
18396         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
18398 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
18400         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
18402 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
18404         [BZ #11640]
18405         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18406         Properly check family and model.
18408 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
18410         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
18412 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
18414         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
18416 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
18418         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
18419         symbol reference.
18421 2010-05-19  Andreas Schwab  <schwab@redhat.com>
18423         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
18424         symbol reference.
18426 2010-05-21  Andreas Schwab  <schwab@redhat.com>
18428         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
18429         and internal_recvmmsg.
18430         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
18431         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
18432         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
18433         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
18435         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
18436         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
18437         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
18439 2010-05-20  Andreas Schwab  <schwab@redhat.com>
18441         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
18443 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
18445         POWER7 optimizations.
18446         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
18447         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
18449 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
18451         * version.h: Update for 2.13 development version.
18453 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
18455         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
18456         exceptions.  Return 0.
18458 2010-05-07  Roland McGrath  <roland@redhat.com>
18460         * elf/ldconfig.c (main): Add a const.
18462 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
18464         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
18465         (args_options): Add no-idn option.
18466         (ahosts_keys_int): Add idn_flags to ai_flags.
18467         (parse_option): Handle 'i' option to clear idn_flags.
18469         * malloc/malloc.c (_int_free): Possible race in the most recently
18470         added check.  Only act on the data if no current modification
18471         happened.
18473 See ChangeLog.17 for earlier changes.