Use sysdeps/x86/tininess.h for i386 and x86_64
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * sysdeps/i386/tininess.h: Renamed to ...
4         * sysdeps/x86/tininess.h: This.
5         * sysdeps/x86_64/tininess.h: Removed.
6
7 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8
9         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
10         input.  Use $(build-program-cmd).
11         ($(objpfx)tst-array1-static.out): Likewise.
12         ($(objpfx)tst-array2.out): Likewise.
13         ($(objpfx)tst-array3.out): Likewise.
14         ($(objpfx)tst-array4.out): Likewise.
15         ($(objpfx)tst-array5.out): Likewise.
16         ($(objpfx)tst-array5-static.out): Likewise.
17
18 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
19
20         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
21         if defined.
22
23         * nss/nsswitch.h (nss_interface_function): Provide new
24         macro for use with NSS functions.
25         * grp/initgroups.c: Use new macro.
26         * nss/getXXbyYY.c: Likewise.
27         * nss/getXXbyYY_r.c: Likewise.
28         * nss/getXXent.c: Likewise.
29         * nss/getXXent_r.c: Likewise.
30         * sysdeps/posix/getaddrinfo.c: Likewise.
31
32 2012-10-30  Andreas Jaeger  <aj@suse.de>
33
34         * po/ru.po: Update Russion translation from translation project.
35
36 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
37
38         [BZ #14152]
39         [BZ #14783]
40         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
41         result and shift together with sticky bit instead of replicating
42         round-to-nearest rounding.
43         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
44         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
45         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
46         missing underflow exceptions.
47         (fma_test_towardzero): Add more tests.
48         (fma_test_downward): Likewise.
49         (fma_test_upward): Likewise.
50
51         [BZ #14047]
52         * sysdeps/generic/tininess.h: New file.
53         * sysdeps/i386/tininess.h: Likewise.
54         * sysdeps/sh/tininess.h: Likewise.
55         * sysdeps/x86_64/tininess.h: Likewise.
56         * stdlib/tst-strtod-underflow.c: Likewise.
57         * stdlib/tst-tininess.c: Likewise.
58         * stdlib/strtod_l.c: Include <tininess.h>.
59         (round_and_return): Do not set errno for exact underflow cases.
60         Force an underflow exception when setting errno for underflow.
61         Determine underflow based on rounding to normal precision if
62         TININESS_AFTER_ROUNDING.
63         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
64         ERANGE for exact underflow cases.
65         * stdlib/Makefile (tests): Add tst-tininess and
66         tst-strtod-underflow.
67         ($(objpfx)tst-tininess): Use $(link-libm).
68         ($(objpfx)tst-strtod-underflow): Likewise.
69
70 2012-10-30  Andreas Jaeger  <aj@suse.de>
71
72         [BZ#14767]
73         * elf/Makefile (tests): Remove conditional for have-initfini-array
74         since this is now always required and the variable does not exist
75         anymore.
76         (tests-static): Likewise.
77         (modules-names): Likewise.
78
79         * po/eo.po: Add Esperanto translation from translation project.
80
81         * elf/tst-array1.c (fini_array): Make writeable so that it can be
82         merged with constructor/destructor.
83         (init_array): Likewise.
84         * elf/tst-array2dep.c (fini_array): Likewise.
85         (init_array): Likewise.
86
87 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
88
89         * manual/message.texi: Delete @cartouche tags.
90
91 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
92
93         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
94         EOPNOTSUPP.
95         * sysdeps/mach/hurd/fsync.c: Likewise.
96
97         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
98         [_POSIX_REALTIME_SIGNALS]: Change condition to
99         [_POSIX_REALTIME_SIGNALS > 0].
100
101 2012-10-27  Andreas Jaeger  <aj@suse.de>
102
103         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
104         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
105         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
106         [__WORDSIZE != 64]: Likewise.
107
108 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
109
110         *  iconvdata/tst-table.sh: Remove ${SHELL}.
111         *  iconvdata/tst-tables.sh: Likewise.
112
113 2012-10-25  David S. Miller  <davem@davemloft.net>
114
115         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
116         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
117         of strtoull.
118
119         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
120         ifunc-impl-list.c
121         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
122         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
123         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
124         file.
125
126 2012-10-25  Roland McGrath  <roland@hack.frob.com>
127
128         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
129         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
130         __getdirentries.
131
132 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
133             Jim Blandy  <jimb@codesourcery.com>
134
135         * scripts/cross-test-ssh.sh: New file.
136         * manual/install.texi (Configuring and compiling): Document use of
137         cross-test-ssh.sh.
138         * INSTALL: Regenerated.
139
140 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
141
142         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
143         EOPNOTSUPP.
144
145 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
146
147         * Makeconfig (run-program-prefix): Fix comment.
148
149 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
150             Jim Blandy  <jimb@codesourcery.com>
151
152         * Makeconfig (test-wrapper): New variable,
153         (test-wrapper-env): Likewise.
154         [$(cross-compiling) = yes && $(test-wrapper) != ""]
155         (run-built-tests): Define to yes.
156         (run-program-prefix): Use $(test-wrapper).
157         (built-program-cmd): Likewise.
158         * Rules (make-test-out): Use $(test-wrapper-env) and
159         $(host-built-program-cmd).
160         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
161         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
162         tst-pathopt.sh.
163         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
164         $(test-wrapper-env) to tst-rtld-load-self.sh.
165         ($(objpfx)order2.out): Use $(test-wrapper).
166         ($(objpfx)tst-initorder.out): Likewise.
167         ($(objpfx)tst-initorder2.out): Likewise.
168         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
169         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
170         (test_wrapper_env): New variable.  Use it to run ld.so.
171         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
172         Use it to run ld.so.
173         (test_wrapper_env): Likewise.
174         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
175         $(test-wrapper) to run-iconv-test.sh.
176         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
177         (ICONV): Use $test_wrapper.
178         * posix/Makefile ($(objpfx)globtest.out): Pass
179         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
180         globtest.sh, not $(run-program-prefix).
181         * posix/globtest.sh (run_via_rtld_prefix): New variable.
182         (test_wrapper): Likewise.
183         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
184         set together with run_via_rtld_prefix.
185         (run_program_prefix): Define in terms of test_wrapper and
186         run_via_rtld_prefix.
187
188 2012-10-24  Roland McGrath  <roland@hack.frob.com>
189
190         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
191         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
192         Targets removed.
193
194         [BZ #14743]
195         * include/time.h: Remove librt_hidden_proto (clock_gettime).
196         Declare __clock_getres, __clock_gettime, __clock_settime,
197         __clock_nanosleep, and __clock_getcpuclockid.
198         * rt/clock_gettime.c: Define __clock_gettime as an alias.
199         Remove librt_hidden_def (clock_gettime).
200         * sysdeps/unix/clock_gettime.c: Likewise.
201         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
202         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
203         * rt/clock_getres.c: Define __clock_getres as an alias.
204         * sysdeps/posix/clock_getres.c: Likewise.
205         * rt/clock_settime.c: Define __clock_settime as an alias.
206         * sysdeps/unix/clock_settime.c: Likewise.
207         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
208         * sysdeps/unix/clock_nanosleep.c: Likewise.
209         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
210         * rt/clock-compat.c: New file.
211         * rt/Makefile (librt-routines): Add clock-compat and move
212         $(clock-routines) to ...
213         (routines): ... here, new variable.
214         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
215         Don't add get_clockfreq here.
216         * rt/Versions (libc: GLIBC_2.17): New version set.
217         Add clock_* symbols here.
218         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
219         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
220         (GLIBC_2.17): Add clock_* symbols.
221         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
222         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
223         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
225         Likewise.
226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
227         Likewise.
228         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
229         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
230         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
231         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
232         * NEWS: Mention the move.
233
234         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
235         Use __open, __read, __close rather than their public counterparts.
236         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
237         (__get_clockfreq_via_cpuinfo): Likewise.
238         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
239         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
240
241         * config.h.in (HAVE_IFUNC): New #undef.
242         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
243         was successful.
244         * configure: Regenerated.
245
246 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
247
248         * configure.in: Move READELF check to start of file.
249         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
250         libc_cv_asm_gnu_indirect_function in the process.
251         * configure: Regenerated.
252
253 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
254
255         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
256         send the output to /dev/null.
257         (libc_cv_cc_with_libunwind): Likewise.
258         (libc_cv_as_noexecstack): Likewise.
259         * configure: Regenerate.
260
261 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
262
263         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
264
265         * posix/globtest.sh (TMPDIR): Do not set.
266         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
267         (testout): Likewise.
268
269 2012-10-24  Andreas Jaeger  <aj@suse.de>
270
271         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
272         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
273         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
274         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
275         posix_fadvise64, posix_fallocate64.
276
277         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
278         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
279         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
280         Likewise.
281         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
282         Likewise.
283         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
284
285         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
286         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
287         <bits/fcntl-linux.h>.
288         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
289
290         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
291         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
292         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
293         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
294         [__WORDSIZE != 64]: Likewise.
295
296 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
297
298         * Makeconfig (run-built-tests): New variable.
299         * Rules [$(cross-compiling) = yes]: Change condition to
300         [$(run-built-tests) = no].
301         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
302         to [$(run-built-tests) = yes].
303         * elf/Makefile [$(cross-compiling) = no]: Likewise
304         * grp/Makefile [$(cross-compiling) = no]: Likewise.
305         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
306         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
307         * intl/Makefile [$(cross-compiling) = no]: Likewise.
308         * io/Makefile [$(cross-compiling) = no]: Likewise.
309         * libio/Makefile [$(cross-compiling) = no]: Likewise.
310         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
311         * misc/Makefile [$(cross-compiling) = no]: Likewise.
312         * posix/Makefile [$(cross-compiling) = no]: Likewise.
313         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
314         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
315         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
316         * string/Makefile [$(cross-compiling) = no]: Likewise.
317
318         * posix/Makefile ($(objpfx)globtest.out): Pass
319         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
320         $(rtld-installed-name).
321         * posix/globtest.sh (elf_objpfx): Remove variable.
322         (rtld_installed_name): Likewise.
323         (library_path): Likewise.
324         (run_program_prefix): New variable.  Use for running globtest
325         binary.
326
327 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
328             Joseph Myers  <joseph@codesourcery.com>
329
330         * Makeconfig (host-built-program-cmd): New variable.
331         * elf/Makefile (tst-stackguard1-ARGS): Use
332         $(host-built-program-cmd).
333         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
334         (tst-spawn-ARGS): Likewise.
335         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
336
337 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
338             Jim Blandy  <jimb@codesourcery.com>
339
340         * Makeconfig (run-via-rtld-prefix): New variable.
341         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
342         (built-program-cmd): Likewise.
343
344 2012-10-22  Andreas Jaeger  <aj@suse.de>
345
346         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
347         __O_RSYNC if it exists, otherwise to O_SYNC.
348
349 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
350             Joseph Myers  <joseph@codesourcery.com>
351
352         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
353         /dev/null.
354         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
355         from /dev/null
356         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
357         /dev/null.
358
359 2012-10-22  Andreas Jaeger  <aj@suse.de>
360
361         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
362         Define always.
363         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
364
365         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
366         bits/fcntl-linux.h.
367
368         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
369         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
370
371         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
372         to __O_LARGEFILE.
373         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
374         to __O_LARGEFILE.
375
376 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
377             Joseph Myers  <joseph@codesourcery.com>
378
379         * config.make.in (NM): New variable.
380
381 2012-10-21  Andreas Jaeger  <aj@suse.de>
382
383         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
384         definitions and declarations that are provided by
385         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
386
387 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
388
389         [BZ #14683]
390         * elf/Makefile (tests-static): Add tst-leaks1-static.
391         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
392         ($(objpfx)tst-leaks1-static): New rule.
393         ($(objpfx)tst-leaks1-static-mem): Likewise.
394         (tst-leaks1-static-ENV): New macro.
395         * elf/dl-open.c (dl_open_worker): Check the main application
396         only if SHARED is defined.
397         * elf/tst-leaks1-static.c: New file.
398
399 2012-10-20  Andreas Jaeger  <aj@suse.de>
400
401         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
402         generic values for Linux.
403         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
404         and declarations that are provided by <bits/fcntl-linux.h> and
405         include <bits/fcntl-linux.h>.
406         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
407         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
408
409 2012-10-20  Roland McGrath  <roland@hack.frob.com>
410
411         * io/fcntl.h: Move include of <bits/types.h> to the top and
412         include it unconditionally.
413
414 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
415
416         * wcsmbs/Makefile (tests-ifunc): New variable.
417         (tests): Add $(tests-ifunc).
418         * wcsmbs/test-wcschr-ifunc.c: New file.
419         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
420         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
421         * wcsmbs/test-wcslen-ifunc.c: Likewise.
422         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
423         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
424
425         * string/Makefile (tests-ifunc): New variable.
426         (tests): Add $(tests-ifunc).
427         * string/test-memccpy.c (TEST_NAME): New macro.
428         * string/test-memchr.c (TEST_NAME): Likewise.
429         * string/test-memcmp.c (TEST_NAME): Likewise.
430         * string/test-memcpy.c (TEST_NAME): Likewise.
431         * string/test-memmem.c (TEST_NAME): Likewise.
432         * string/test-memmove.c (TEST_NAME): Likewise.
433         * string/test-memset.c (TEST_NAME): Likewise.
434         * string/test-rawmemchr.c (TEST_NAME): Likewise.
435         * string/test-stpcpy.c (TEST_NAME): Likewise.
436         * string/test-stpncpy.c (TEST_NAME): Likewise.
437         * string/test-strcasecmp.c (TEST_NAME): Likewise.
438         * string/test-strcasestr.c (TEST_NAME): Likewise.
439         * string/test-strcat.c (TEST_NAME): Likewise.
440         * string/test-strchr.c (TEST_NAME): Likewise.
441         * string/test-strcmp.c(TEST_NAME): Likewise.
442         * string/test-strcpy.c (TEST_NAME): Likewise.
443         * string/test-strcspn.c (TEST_NAME): Likewise.
444         * string/test-strlen.c (TEST_NAME): Likewise.
445         * string/test-strncasecmp.c (TEST_NAME): Likewise.
446         * string/test-strncmp.c (TEST_NAME): Likewise.
447         * string/test-strncpy.c (TEST_NAME): Likewise.
448         * string/test-strnlen.c (TEST_NAME): Likewise.
449         * string/test-strpbrk.c (TEST_NAME): Likewise.
450         * string/test-strrchr.c (TEST_NAME): Likewise.
451         * string/test-strspn.c (TEST_NAME): Likewise.
452         * string/test-strstr.c (TEST_NAME): Likewise.
453         * string/test-bcopy-ifunc.c: New file.
454         * string/test-bzero-ifunc.c: Likewise.
455         * string/test-memccpy-ifunc.c: Likewise.
456         * string/test-memchr-ifunc.c: Likewise.
457         * string/test-memcmp-ifunc.c: Likewise.
458         * string/test-memcpy-ifunc.c: Likewise.
459         * string/test-memmem-ifunc.c: Likewise.
460         * string/test-memmove-ifunc.c: Likewise.
461         * string/test-mempcpy-ifunc.c: Likewise.
462         * string/test-memset-ifunc.c: Likewise.
463         * string/test-rawmemchr-ifunc.c: Likewise.
464         * string/test-stpcpy-ifunc.c: Likewise.
465         * string/test-stpncpy-ifunc.c: Likewise.
466         * string/test-strcasecmp-ifunc.c: Likewise.
467         * string/test-strcasestr-ifunc.c: Likewise.
468         * string/test-strcat-ifunc.c: Likewise.
469         * string/test-strchr-ifunc.c: Likewise.
470         * string/test-strchrnul-ifunc.c: Likewise.
471         * string/test-strcmp-ifunc.c: Likewise.
472         * string/test-strcpy-ifunc.c: Likewise.
473         * string/test-strcspn-ifunc.c: Likewise.
474         * string/test-strlen-ifunc.c: Likewise.
475         * string/test-strncasecmp-ifunc.c: Likewise.
476         * string/test-strncat-ifunc.c: Likewise.
477         * string/test-strncmp-ifunc.c: Likewise.
478         * string/test-strncpy-ifunc.c: Likewise.
479         * string/test-strnlen-ifunc.c: Likewise.
480         * string/test-strpbrk-ifunc.c: Likewise.
481         * string/test-strrchr-ifunc.c: Likewise.
482         * string/test-strspn-ifunc.c: Likewise.
483         * string/test-strstr-ifunc.c: Likewise.
484
485         * debug/Makefile (tests-ifunc): New variable.
486         (tests): Add $(tests-ifunc).
487         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
488         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
489         * debug/test-stpcpy_chk-ifunc.c: New file.
490         * debug/test-strcpy_chk-ifunc.c: Likewise.
491
492 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
493
494         [BZ #13601]
495         * elf/dl-load.c (open_verify): Retry read if the entire ELF
496         header is not read in.
497
498 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
499
500         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
501         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
502         directly.  Pass built executable to script as
503         $(built-program-cmd).
504         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
505         $testprogram without using LD_LIBRARY_PATH and $ldso.
506
507         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
508         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
509         $(rtld-installed-name).
510         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
511         (rtld_installed_name): Likewise.
512         (library_path): Likewise.
513         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
514         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
515         $(run-program-prefix) to tst-tables.sh.
516         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
517         it to run tst-table-from and tst-table-to.
518         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
519         Pass it to tst-table.sh.
520         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
521         $(run-program-prefix) to tst-gettext.sh.
522         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
523         tst-translit.sh.
524         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
525         tst-gettext2.sh.
526         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
527         to run tst-gettext.
528         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
529         to run tst-gettext2.
530         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
531         to run tst-translit.
532         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
533         $(run-program-prefix) to tst-mtrace.sh.
534         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
535         to run tst-mtrace.
536         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
537         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
538         $(rtld-installed-name).
539         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
540         (rtld_installed_name): Likewise.
541         (run_program_prefix): New variable.  Use it to run wordexp-test.
542
543         * Makeconfig (ARCH): Remove all definitions.
544         (machine): Likewise.
545         [ARCH]: Remove conditional code.
546         [!objdir]: Give error.
547         [!objdir] (objpfx): Remove.
548         [!objdir] (common-objpfx): Likewise.
549         [!objdir] (common-objdir): Likewise.
550         * configure.in (config_makefile): Remove.  Hardcode Makefile in
551         AC_CONFIG_FILES call.
552         * configure: Regenerated.
553
554         [BZ #13888]
555         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
556         or TMPDIR.
557         (testout): Likewise.
558
559         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
560         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
561         $(rtld-installed-name).
562         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
563         (rtld_installed_name): Likwise.
564         (runit): Remove function.
565         (run_getconf): New variable,  Use it for running getconf binary.
566
567 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
568
569         [BZ #14716]
570         * string/test-memmem.c (check_result): New function.
571         (do_one_test): Use it.
572         (check1): New function.
573         (test_main): Use it.
574
575 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
576
577         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
578
579 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
580
581         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
582         (_G_LSEEK64): Likewise.
583         (_G_MMAP64): Likewise.
584         (_G_FSTAT64): Likewise.
585         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
586         (_G_LSEEK64): Likewise.
587         (_G_MMAP64): Likewise.
588         (_G_FSTAT64): Likewise.
589         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
590         unconditional.  Call __mmap64 directly.
591         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
592         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
593         __lseek64 directly.
594         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
595         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
596         __mmap64 directly.
597         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
598         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
599         __lseek64 directly.
600         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
601         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
602         __lseek64 directly.
603         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
604         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
605         __lseek64 directly.
606         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
607         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
608         __fxstat64 directly.
609         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
610         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
611         unconditional.
612         (freopen64) [!_G_OPEN64]: Remove conditional code.
613         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
614         unconditional.
615         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
616         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
617         unconditional.
618         (ftello64) [!_G_LSEEK64]: Remove conditional code.
619         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
620         unconditional.
621         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
622         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
623         unconditional.
624         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
625         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
626         unconditional.
627         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
628         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
629         unconditional.
630         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
631         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
632         unconditional.
633         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
634
635 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
636
637         [BZ #12140]
638         * manual/memory.texi (Malloc Tunable Parameters): Add note
639         about free list pointers overwriting some perturb bytes.
640         Wording suggested by Roland McGrath.
641
642 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
643
644         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
645         (lgamma_test): Likewise.
646         (tgamma_test): Likewise.
647
648 2012-10-16  Florian Weimer  <fweimer@redhat.com>
649
650         [BZ #14700]
651         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
652         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
653
654 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
655
656         * NEWS: Mention BZ #14716.
657         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
658         when removing AVAILABLE1_USES_J macro.
659
660 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
661
662         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
663         (__bswap_64): __uint64_t for unsigned 64-bit int.
664
665 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
666
667         * include/string.h (memmem): Declare libc hidden alias.
668         * string/memmem.c (memmem): Define libc hidden alias.
669         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
670         __read, __close instead of open, read, close.
671
672 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
673
674         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
675         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
676         global and hidden.
677         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
678         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
679         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
680         Likewise.
681         (__rawmemchr_sse2): Likewise.
682         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
683         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
684         (__strchr_sse2): Likewise.
685         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
686         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
687         (__strcasecmp_sse2): Likewise.
688         (__strncasecmp_sse2): Likewise.
689         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
690         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
691         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
692         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
693         (__strrchr_sse2): Likewise.
694         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
695         ifunc-impl-list.c.
696         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
697         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
698         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
699         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
700         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
701         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
702         * sysdeps/x86_64/multiarch/memset.S: Likewise.
703         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
704         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
705         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
706         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
707         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
708         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
709         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
710         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
711         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
712         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
713         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
714         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
715         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
716         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
717         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
718         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
719         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
720         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
721         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
722         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
723         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
724         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
725         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
726
727         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
728         global and hidden.
729         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
730         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
731         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
732         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
733         Likewise.
734         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
735         Likewise.
736         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
737         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
738         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
739         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
740         ifunc-impl-list.c.
741         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
742         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
743         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
744         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
745         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
746         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
747         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
748         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
749         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
750         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
751         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
752         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
753         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
754         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
755         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
756         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
757         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
758         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
759         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
760         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
761         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
762         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
763         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
764         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
765         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
766         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
767         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
768         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
769         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
770         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
771         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
772         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
773         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
774         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
775         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
776         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
777         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
778         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
779         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
780         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
781         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
782
783         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
784         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
785         * include/ifunc-impl-list.h: New file.
786         * misc/ifunc-impl-list.c: Likewise.
787         * misc/Makefile (routines): Add ifunc-impl-list.
788         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
789         * string/test-string.h: Include <ifunc-impl-list.h>.
790         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
791         impl_array): New variables.
792         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
793         are defined.
794         (test_init): Call __libc_ifunc_impl_list to initialize
795         func_list if TEST_IFUNC and TEST_NAME are defined.
796
797         * string/Makefile (strop-tests): Add bcopy and bzero.
798         * string/test-bcopy.c: New file.
799         * string/test-bzero.c: Likewise.
800         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
801         defined.
802         * string/test-memset.c: Support bzero test if TEST_BZERO is
803         defined.
804         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
805         __libc_memmove.
806         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
807         __libc_memset.
808         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
809         of memset.
810
811 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
812
813         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
814         * configure: Regenerated.
815
816         * Makeconfig (+link-static-before-libc): Don't include
817         $(link-static-libc).
818
819         * libio/libio.h (_IO_pos_t): Remove.
820
821 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
822
823         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
824         McGrath.
825
826 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
827
828         * crypt/crypt-entry.c: Include fips-private.h.
829         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
830         * crypt/md5c-test.c (main): Tolerate disabled MD5.
831         * sysdeps/unix/sysv/linux/fips-private.h: New file.
832         * sysdeps/generic/fips-private.h: New file, dummy fallback.
833
834 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
835
836         * crypt/crypt-private.h: Include stdbool.h.
837         (_ufc_setup_salt_r): Return bool.
838         * crypt/crypt-entry.c: Include errno.h.
839         (__crypt_r): Return NULL with EINVAL for bad salt.
840         * crypt/crypt_util.c (bad_for_salt): New.
841         (_ufc_setup_salt_r): Check that salt is long enough and within
842         the specified alphabet.
843         * crypt/badsalttest.c: New file.
844         * crypt/Makefile (tests): Add it.
845         ($(objpfx)badsalttest): New.
846
847 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
848
849         * NEWS: Add entry for BZ #14602.
850
851 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
852
853         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
854         type-generic.
855         * math/libm-test.inc: Update comment listing what functions and
856         macros are tested.
857         (isgreater_test): New function.
858         (isgreaterequal_test): Likewise.
859         (isless_test): Likewise.
860         (islessequal_test): Likewise.
861         (islessgreater_test): Likewise.
862         (isunordered_test): Likewise.
863         (main): Call the new functions.
864
865 2012-10-09  Roland McGrath  <roland@hack.frob.com>
866
867         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
868         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
869         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
870         * sysdeps/i386/configure: Regenerated.
871         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
872         * sysdeps/mach/configure: Regenerated.
873         * sysdeps/mach/hurd/configure: Regenerated.
874         * sysdeps/powerpc/configure: Regenerated.
875         * sysdeps/powerpc/powerpc32/configure: Regenerated.
876         * sysdeps/powerpc/powerpc64/configure: Regenerated.
877         * sysdeps/s390/s390-32/configure: Regenerated.
878         * sysdeps/s390/s390-64/configure: Regenerated.
879         * sysdeps/sh/configure: Regenerated.
880         * sysdeps/sparc/configure: Regenerated.
881         * sysdeps/unix/sysv/linux/configure: Regenerated.
882         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
883         * sysdeps/x86_64/configure: Regenerated.
884
885         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
886         defined.  Don't check if MAP is NULL.
887
888 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
889
890         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
891         (_G_stat64): Likewise.
892         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
893         (_G_stat64): Likewise.
894         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
895         instead of struct _G_stat64.
896         * libio/fileops.c (mmap_remap_check): Likewise.
897         (decide_maybe_mmap): Likewise.
898         (_IO_new_file_seekoff): Likewise.
899         (_IO_file_stat): Likewise.
900         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
901         _G_off64_t.
902         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
903         instead of struct _G_stat64.
904         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
905
906 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
907
908         [BZ #14602]
909         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
910         Replace with ...
911         (CHECK_EOL): New macro.
912         (two_way_short_needle): Check beginning of haystack for EOL.  Use
913         CHECK_EOL.
914         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
915         Replace with CHECK_EOL.
916         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
917         Replace with CHECK_EOL.
918
919 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
920
921         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
922         type-generic.
923         * math/libm-test.inc: Update comment listing what functions and
924         macros are tested.
925         (finite_test): New function.
926         (isinf_test): Likewise.
927         (isnan_test): Likewise.
928         (fpclassify_test): Test subnormal input.
929         (isfinite_test): Likewise.
930         (isnormal_test): Likewise.
931         (main): Call the new functions.
932
933 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
934
935         [BZ #14660]
936         * Makerules (%.dynsym): Force C locale when running
937         $(OBJDUMP) --dynamic-syms.
938
939 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
940
941         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
942         <stdint.h>.
943
944 2012-10-06  David S. Miller  <davem@davemloft.net>
945
946         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
947         upper 32-bits of the length value in %o2 since we use branch-on-register
948         tests which consider the entire 64-bit register.
949
950 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
951
952         * string/test-strstr.c (check2): Add a test for page boundary.
953
954 2012-10-05  David S. Miller  <davem@davemloft.net>
955
956         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
957         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
958         file.
959         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
960         sysdep_routines.
961         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
962         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
963         and bzero when HWCAP_SPARC_CRYPTO is present.
964
965 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
966
967         [BZ #14602]
968         * string/test-strstr.c (check2): New function.
969         (test_main): Call check2.
970
971         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
972         and bug-strchr1.
973         * string/bug-strcasestr1.c (do_test): Moved to ...
974         * string/test-strcasestr.c (check1): Here.  New function.
975         (do_one_test): Break out result checking code into ...
976         (check_result): This.  New function.
977         (do_one_test): Call check_result.
978         (test_main): Call check1.
979         * string/bug-strchr1.c (do_test): Moved to ...
980         * string/test-strchr.c (check1): Here.  New function.
981         (do_one_test): Break out result checking code into ...
982         (check_result): This.  New function.
983         (do_one_test): Call check_result.
984         (test_main): Call check1.
985         * string/bug-strstr1.c (main): Moved to ...
986         * string/test-strchr.c (check1): Here.  New function.
987         (do_one_test): Break out result checking code into ...
988         (check_result): This.  New function.
989         (do_one_test): Call check_result.
990         (test_main): Call check1.
991         * string/bug-strcasestr1.c: Removed.
992         * string/bug-strchr1.c: Likewise.
993         * string/bug-strstr1.c: Likewise.
994
995         * elf/Makefile (dl-routines): Add hwcaps.
996         * elf/dl-support.c (_dl_important_hwcaps): Removed.
997         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
998         (_dl_important_hwcaps): Moved to ...
999         * elf/dl-hwcaps.c: Here.  New file.
1000         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1001
1002         [BZ #14557]
1003         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1004         if IS_IN_rtld isn't defined.
1005
1006         * elf/dl-support.c (_dl_sysinfo_map): New.
1007         Include "get-dynamic-info.h" and "setup-vdso.h".
1008         (_dl_non_dynamic_init): Call setup_vdso.
1009         * elf/dynamic-link.h: Don't include <assert.h>.
1010         (elf_get_dynamic_info): Moved to ...
1011         * elf/get-dynamic-info.h: Here.  New file.
1012         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1013         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1014         * elf/setup-vdso.h: Here.  New file.
1015         * elf/rtld.c: Include "setup-vdso.h".
1016         (dl_main): Call setup_vdso.
1017
1018 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1019
1020         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1021         creal in comment listing functions tested.  List finite, isinf,
1022         isnan, isless, islessequal, isgreater, isgreaterequal,
1023         islessgreater, isunordered, lgamma_r and pow10 as functions and
1024         macros not tested.  Mention which functions not tested are aliases
1025         for other functions.  Fix typo.  Note that signs of NaNs are not
1026         tested.
1027
1028         * scripts/config.guess: Update from config.git.
1029         * scripts/config.sub: Likewise.
1030
1031 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1032
1033         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1034         * misc/madvise.c (madvise): Renamed to __madvise.
1035         Make madvise a weak alias.
1036         * include/sys/mman.h: Declare __madvise.
1037         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1038         * sysdeps/unix/syscalls.list
1039         (madvise): Make __madvise the strong name, and madvise a weak alias.
1040         * sysdeps/unix/sysv/linux/syscalls.list
1041         (madvise, mmap): Remove redundant entries.
1042         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1043         * malloc/malloc.c (mtrim): Likewise.
1044         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1045
1046 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1047
1048         * sysdeps/mach/hurd/dl-cache.c: File removed.
1049         * config.h.in (USE_LDCONFIG): New #undef.
1050         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1051         * configure: Regenerated.
1052         * elf/Makefile (dl-routines): Add dl-cache only under
1053         [$(use-ldconfig) = yes].
1054         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1055         cache on [USE_LDCONFIG].
1056         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1057         [USE_LDCONFIG].
1058         * elf/rtld.c (dl_main): Likewise.
1059
1060 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1061
1062         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1063         _SC_LEVEL4_CACHE_LINESIZE.
1064
1065 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1066
1067         * sysdeps/unix/bsd/confstr.h: File removed.
1068
1069 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1070
1071         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1072         sys/sdt-config.h.
1073
1074 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1075
1076         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1077         Make 'mapoff' field ElfW(Off) rather than off_t.
1078
1079 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1080
1081         * nscd/Makefile: Remove nscd-cflags and all its users.
1082         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1083         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1084
1085         [BZ #10631]
1086         * malloc.c (malloc_printerr): Clarify error message.
1087
1088 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1089
1090         [BZ #14648]
1091         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1092         Set bit_FMA_Usable if FMA is supported.
1093         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1094         macro.
1095         (bit_FMA4_Usable): Updated.
1096         (index_FMA_Usable): New macro.
1097         (CPUID_FMA): Likewise
1098         (HAS_FMA): Defined with bit_FMA_Usable.
1099
1100 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1101
1102         * bits/types.h (__swblk_t): Type removed.
1103         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1104         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1105         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1106         (__SWBLK_T_TYPE): Likewise.
1107         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1108         (__SWBLK_T_TYPE): Likewise.
1109         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1110         (__SWBLK_T_TYPE): Likewise.
1111         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1112         (__SWBLK_T_TYPE): Likewise.
1113
1114 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1115             Honza Horak <hhorak@redhat.com>
1116
1117         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1118         (xdr_mapname): Use YPMAXMAP as maxsize.
1119         (xdr_peername): Use YPMAXPEER as maxsize.
1120         (xdr_keydat): Use YPAXRECORD as maxsize.
1121         (xdr_valdat): Use YPMAXRECORD as maxsize.
1122
1123 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1124
1125         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1126
1127         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1128         * csu/init-first.c: ... here.
1129         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1130         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1131         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1132         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1133         * sysdeps/i386/init-first.c: File removed.
1134         * sysdeps/sh/init-first.c: File removed.
1135
1136 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1137
1138         [BZ #14645]
1139         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1140         if x * y might underflow to zero and z is zero.
1141         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1142         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1143         * math/libm-test.inc (min_subnorm_value): New variable.
1144         (fma_test): Add more tests.
1145         (fma_test_towardzero): Likewise.
1146         (fma_test_downward): Likewise
1147         (fma_test_upward): Likewise.
1148         (initialize): Set min_subnorm_value.
1149
1150 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1151
1152         [BZ #14638]
1153         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1154         0 + 0.
1155         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1156         mode for addition resulting in exact zero.
1157         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1158         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1159         exact 0 + 0.
1160         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1161         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1162         * math/libm-test.inc (fma_test): Add more tests.
1163         (fma_test_towardzero): New function.
1164         (fma_test_downward): Likewise.
1165         (fma_test_upward): Likewise.
1166         (main): Call the new functions.
1167
1168 2012-09-28  David S. Miller  <davem@davemloft.net>
1169
1170         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1171
1172 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1173
1174         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1175         instead of SIGALRM.
1176
1177         * sysdeps/gnu/_G_config.h: Moved to ...
1178         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1179         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1180         * sysdeps/generic/_G_config.h: ... here.
1181
1182         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1183
1184         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1185
1186         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1187         Conditionalize target on [libnss_test1.so-version].
1188
1189         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1190
1191         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1192         (elfobjdir): Move out of conditionals.
1193
1194         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1195         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1196         (__nss_lookup_function): Conditionalize label remove_from_tree on
1197         [!DO_STATIC_NSS || SHARED], matching its only use.
1198
1199 2012-09-28  David S. Miller  <davem@davemloft.net>
1200
1201         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1202         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1203         file.
1204         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1205         sysdep_routines.
1206         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1207         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1208         when HWCAP_SPARC_CRYPTO is present.
1209
1210 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1211
1212         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1213
1214 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1215
1216         [BZ #6530]
1217         * stdio-common/vfprintf.c (process_string_arg): Revert
1218         2000-07-22 change.
1219
1220 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1221
1222         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1223         for testcase.
1224         * stdio-common/tst-sprintf.c: Include <locale.h>
1225         (main): Test sprintf's handling of incomplete multibyte
1226         characters.
1227
1228 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1229
1230         * elf/dl-runtime.c (VERSYMIDX): Removed.
1231         * elf/dl-version.c (VERSYMIDX): Likewise.
1232         * elf/do-rel.h (VERSYMIDX): Likewise.
1233         (VALIDX): Likewise.
1234         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1235         * elf/rtld.c (VALIDX): Likewise.
1236         (ADDRIDX): Likewise.
1237         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1238         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1239         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1240         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1241         (VALIDX): Likewise.
1242         (ADDRIDX): Likewise.
1243
1244 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1245
1246         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1247
1248 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1249
1250         [BZ #11438]
1251         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1252         to global scope.
1253         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1254         addresses are in the same scope as 192.0.2/24.
1255         * posix/gai.conf: Document new scope table defaults.
1256
1257 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1258
1259         [BZ #5298]
1260         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1261         for ftell.  Compute offsets from write pointers instead.
1262         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1263
1264 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1265
1266         [BZ #14543]
1267         * libio/Makefile (tests): New test case tst-fseek.
1268         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1269         combination works in wide mode.
1270         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1271         state when the external buffer state changes.
1272
1273 2012-09-27  David S. Miller  <davem@davemloft.net>
1274
1275         [BZ #14376]
1276         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1277         pass reloc->r_addend in as the 'high' argument to
1278         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1279
1280         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1281
1282 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1283
1284         * rt/tst-aio2.c: Include <pthread.h>.
1285         * rt/tst-aio3.c: Likewise.
1286
1287 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1288
1289         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1290
1291 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1292
1293         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1294         contents on [SHARED].
1295
1296 2012-09-26  Marek Polacek  <polacek@redhat.com>
1297
1298         [BZ #14530]
1299         [BZ #13741]
1300         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1301         for C++ and GCC <4.3 as well as for non GCC compilers.
1302
1303 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1304
1305         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1306
1307 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1308
1309         * Makefile.in (all, install): Declare with .PHONY.
1310         Reported by Michael Hope <michael.hope@linaro.org>.
1311
1312 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1313
1314         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1315         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1316         system header.
1317         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1318         Likewise.
1319         (sydep_routines): Add the new and the internal functions.
1320         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1321         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1323         (GLIBC_2.17): Add the new function.
1324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1325         (GLIBC_2.17): Likewise.
1326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1327         (GLIBC_2.17): Likewise.
1328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1329         (GLIBC_2.17): Likewise.
1330         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1331
1332 2012-09-25  Alan Modra  <amodra@gmail.com>
1333
1334         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1335         Add release barrier before setting once_control to say
1336         initialisation is done.  Add hints on lwarx.  Use macro in
1337         place of isync.
1338         (clear_once_control): Add release barrier.
1339
1340 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1341
1342         [BZ #13629]
1343         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1344         specially.
1345         * math/s_clog10.c (__clog10): Likewise.
1346         * math/s_clog10f.c (__clog10f): Likewise.
1347         * math/s_clog10l.c (__clog10l): Likewise.
1348         * math/s_clogf.c (__clogf): Likewise.
1349         * math/s_clogl.c (__clogl): Likewise.
1350         * math/Makefile (libm-calls): Add x2y2m1.
1351         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1352         (__x2y2m1): Likewise.
1353         (__x2y2m1l): Likewise.
1354         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1355         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1356         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1357         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1358         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1359         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1360         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1361         * sysdeps/i386/fpu/libm-test-ulps: Update.
1362         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1363
1364         [BZ #14621]
1365         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1366         int as type of variable DEPTH.
1367         (glob): Use size_t instead of int as type of variables NEWCOUNT
1368         and OLD_PATHC.
1369
1370 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1371
1372         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1373         Add s_sincosf-sse2.
1374         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1375         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1376         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1377         macros for using routine as __sincosf_ia32.
1378         Use macro for function declaration and weak_alias.
1379         * sysdeps/i386/fpu/libm-test-ulps: Update.
1380
1381         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1382         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1383
1384         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1385         subnormal argument.
1386         * math/s_cexpf.c (__cexpf): Likewise.
1387         * math/s_csinf.c (__csinf): Likewise.
1388         * math/s_csinhf.c (__csinhf): Likewise.
1389         * math/s_ctanf.c (__ctanf): Likewise.
1390         * math/s_ctanhf.c (__ctanhf): Likewise.
1391         * math/s_ccosh.c (__ccoshf): Likewise.
1392         * math/s_cexp.c (__cexpl): Likewise.
1393         * math/s_csin.c (__csin): Likewise.
1394         * math/s_csinh.c (__csinh): Likewise.
1395         * math/s_ctan.c (__ctan): Likewise.
1396         * math/s_ctanh.c (ctanh): Likewise.
1397         * math/s_ccoshl.c (__ccoshl): Likewise.
1398         * math/s_cexpl.c (__cexpl): Likewise.
1399         * math/s_csinl.c (__csinl): Likewise.
1400         * math/s_csinhl.c (__csinhl): Likewise.
1401         * math/s_ctanl.c (__ctanl): Likewise.
1402         * math/s_ctanhl.c (__ctanhl): Likewise.
1403
1404 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1405
1406         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1407         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1408         (_IO_off_t): Define to __off_t, not _G_off_t.
1409         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1410         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1411         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1412         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1413         type of __dummy and __dummy2 fields.
1414         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1415         (_G_ssize_t): Likewise.
1416         (_G_off_t): Likewise.
1417         (_G_pid_t): Likewise.
1418         (_G_uid_t): Likewise.
1419         (_G_wchar_t): Likewise.
1420         (_G_wint_t): Likewise.
1421         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1422         (_G_ssize_t): Likewise.
1423         (_G_off_t): Likewise.
1424         (_G_pid_t): Likewise.
1425         (_G_uid_t): Likewise.
1426         (_G_wchar_t): Likewise.
1427         (_G_wint_t): Likewise.
1428         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1429         (_G_ssize_t): Likewise.
1430         (_G_off_t): Likewise.
1431         (_G_pid_t): Likewise.
1432         (_G_uid_t): Likewise.
1433         (_G_wchar_t): Likewise.
1434         (_G_wint_t): Likewise.
1435
1436 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1437
1438         * malloc/arena.c: Include malloc-sysdep.h.
1439         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1440         is sufficient to shrink the heap or an unmap is needed.
1441         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1442         new function check_may_shrink_heap.
1443         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1444         new function check_may_shrink_heap.
1445
1446 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1447
1448         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1449         comments.
1450
1451 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1452
1453         * catgets/test-gencat.sh: Add "set -e".
1454         * elf/tst-pathopt.sh: Likewise.
1455         * grp/tst_fgetgrent.sh: Likewise.
1456         * iconvdata/run-iconv-test.sh: Likewise.
1457         * intl/tst-gettext.sh: Likewise.
1458         * intl/tst-gettext2.sh: Likewise.
1459         * intl/tst-gettext4.sh: Likewise.
1460         * intl/tst-gettext6.sh: Likewise.
1461         * intl/tst-translit.sh: Likewise.
1462         * io/ftwtest-sh: Likewise.
1463         * libio/test-freopen.sh: Likewise.
1464         * malloc/tst-mtrace.sh: Likewise.
1465         * posix/globtest.sh: Likewise.
1466         * posix/tst-getconf.sh: Likewise.
1467         * posix/wordexp-tst.sh: Likewise.
1468         * stdio-common/tst-printf.sh: Likewise.
1469         * stdio-common/tst-unbputc.sh: Likewise.
1470         * stdlib/tst-fmtmsg.sh: Likewise.
1471         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1472         * catgets/Makefile: Do not specify -e option when running
1473         testsuite shell scripts.
1474         * elf/Makefile: Likewise.
1475         * grp/Makefile: Likewise.
1476         * iconvdata/Makefile: Likewise.
1477         * intl/Makefile: Likewise.
1478         * io/Makefile: Likewise.
1479         * libio/Makefile: Likewise.
1480         * malloc/Makefile: Likewise.
1481         * posix/Makefile: Likewise.
1482         * stdio-common/Makefile: Likewise.
1483         * stdlib/Makefile: Likewise.
1484         * sysdeps/x86_64/Makefile: Likewise.
1485
1486         * io/ftwtest-sh: Add copyright header.
1487         * posix/globtest.sh: Likewise.
1488         * posix/tst-getconf.sh: Likewise.
1489         * posix/wordexp-tst.sh: Likewise.
1490         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1491
1492 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1493
1494         [BZ #13679]
1495         * Makeconfig (+link): Defined as $(+link-static) if
1496         $(build-shared) isn't yes.
1497         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1498         isn't yes.
1499         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1500
1501         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1502
1503         [BZ #14562]
1504         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1505         new chunk size with MALLOC_ALIGN_MASK.
1506
1507 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1508
1509         [BZ #5044]
1510         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1511         <rounding-mode.h>.
1512         (__printf_fphex): Determine rounding using get_rounding_mode and
1513         round_away.
1514         * stdio-common/tst-printf-round.c (struct hex_test): New
1515         structure.
1516         (hex_tests): New variable.
1517         (test_hex_in_one_mode): New function.
1518         (do_test): Also run tests for hex float output.
1519
1520 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1521
1522         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1523         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1524         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1525         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1526         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1527         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1528         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1529         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1530
1531 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1532
1533         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1534         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1535         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1536         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1537
1538 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1539
1540         [BZ #14579]
1541         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1542         mode only.
1543         * elf/tst-rtld-load-self.sh: New test.
1544         * elf/Makefile: Run it.
1545
1546 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1547
1548         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1549         (tst-writev-ENV): Remove.
1550         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1551
1552 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1553
1554         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1555
1556 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1557
1558         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1559         unconditional.
1560         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1561         Likewise.
1562         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1563         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1564         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1565         Likewise.
1566
1567 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1568
1569         [BZ #14587]
1570         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1571         * config.make.in (have-cpp-asm-debuginfo): Removed.
1572         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1573         * configure: Regenerated.
1574
1575 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1576
1577         [BZ #5044]
1578         * stdio-common/printf_fp.c: Include <stdbool.h> and
1579         <rounding-mode.h>.
1580         (___printf_fp): Determine rounding using get_rounding_mode and
1581         round_away.
1582         * stdio-common/tst-printf-round.c: New file.
1583         * stdio-common/Makefile (tests): Add tst-printf-round.
1584         (link-libm): New variable.
1585         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1586
1587 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1588
1589         [BZ #14576]
1590         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1591         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1592         Likewise.
1593         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1594         Likewise.
1595
1596 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1597
1598         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1599         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1600         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1601         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1602
1603 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1604
1605         [BZ #14518]
1606         * include/rounding-mode.h: New file.
1607         * sysdeps/generic/get-rounding-mode.h: Likewise.
1608         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1609         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1610         (MAX_VALUE): New macro.
1611         (MIN_VALUE): Likewise.
1612         (overflow_value): New function.
1613         (underflow_value): Likewise.
1614         (round_and_return): Use overflow_value and underflow_value to
1615         determine return values in overflow and underflow cases.  Use
1616         round_away to determine rounding depending on rounding mode.
1617         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1618         determine return values in overflow and underflow cases.
1619         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1620         (struct test_results): New structure.
1621         (struct test): Use struct test_results to store expected results
1622         for all rounding modes.
1623         (TEST): Include expected results for all rounding modes.
1624         (test_in_one_mode): New function.
1625         (do_test): Use test_in_one_mode to compute and check results.
1626         Check results for all rounding modes.
1627         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1628         $(link-libm).
1629
1630 2012-12-09  Allan McRae  <allan@archlinux.org>
1631
1632         * sysdeps/i386/fpu/libm-test-ulps: Update
1633
1634 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1635
1636         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1637         (_G_int32_t): Likewise.
1638         (_G_uint16_t): Likewise.
1639         (_G_uint32_t): Likewise.
1640         (_G_HAVE_BOOL): Likewise.
1641         (_G_HAVE_ATEXIT): Likewise.
1642         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1643         (_G_HAVE_IO_FILE_OPEN): Likewise.
1644         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1645         (_G_int32_t): Likewise.
1646         (_G_uint16_t): Likewise.
1647         (_G_uint32_t): Likewise.
1648         (_G_HAVE_BOOL): Likewise.
1649         (_G_HAVE_ATEXIT): Likewise.
1650         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1651         (_G_HAVE_IO_FILE_OPEN): Likewise.
1652         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1653         (_G_int32_t): Likewise.
1654         (_G_uint16_t): Likewise.
1655         (_G_uint32_t): Likewise.
1656         (_G_HAVE_BOOL): Likewise.
1657         (_G_HAVE_ATEXIT): Likewise.
1658         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1659         (_G_HAVE_IO_FILE_OPEN): Likewise.
1660
1661 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1662
1663         * csu/libc-tls.c: Update copyright years.
1664
1665 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1666
1667         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1668         [!_G_USING_THUNKS]: Remove conditional code.
1669         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1670         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1671
1672         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1673         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1674         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1675         (_G_VTABLE_LABEL_PREFIX): Likewise.
1676         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1677         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1678         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1679         (_G_VTABLE_LABEL_PREFIX): Likewise.
1680         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1681         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1682         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1683         (_G_VTABLE_LABEL_PREFIX): Likewise.
1684         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1685
1686 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1687
1688         * libio/Makefile: Include ../Makeconfig before tests.
1689         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1690         only if $(build-shared) is yes.
1691
1692         * iconv/gconv_db.c: Update copyright years.
1693
1694 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1695
1696         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1697         unwind info if defined PIC. Fix special cases description.
1698         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1699
1700         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1701         DP_HI_MASK entry.
1702         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1703
1704 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1705
1706         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1707
1708         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1709         is NULL.
1710
1711         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1712         (LDLIBS-tst-chk4): This.
1713         (LDFLAGS-tst-chk5): Renamed to ...
1714         (LDLIBS-tst-chk5): This.
1715         (LDFLAGS-tst-chk6): Renamed to ...
1716         (LDLIBS-tst-chk6): This.
1717         (LDFLAGS-tst-lfschk4): Renamed to ...
1718         (LDLIBS-tst-lfschk4): This.
1719         (LDFLAGS-tst-lfschk5): Renamed to ...
1720         (LDLIBS-tst-lfschk5): This.
1721         (LDFLAGS-tst-lfschk6): Renamed to ...
1722         (LDLIBS-tst-lfschk6): This.
1723
1724         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1725         on $(common-objpfx)soversions.mk.
1726
1727 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1728
1729         [BZ #10014]
1730         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1731         example host name.
1732
1733 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1734
1735         * malloc/arena.c (arena_get_retry): New function that gets
1736         another arena for the caller to try its request on.
1737         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1738         current arena cannot fulfill the request.
1739         (__libc_memalign): Likewise.
1740         (__libc_memalign): Likewise.
1741         (__libc_pvalloc): Likewise.
1742         (__libc_calloc): Likewise.
1743
1744 2012-09-05  John Tobey  <john.tobey@gmail.com>
1745
1746         [BZ #13542]
1747         * manual/arith.texi (Operations on Complex): Fix description
1748         of carg branch cut.
1749
1750 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1751
1752         [BZ #10014]
1753         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1754         host name.
1755
1756         [BZ #10038]
1757         * manual/memory.texi (Memory): Make order of menu items match
1758         order of sections.
1759
1760 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1761
1762         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1763         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1764         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1765
1766 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1767
1768         * csu/libc-tls.c (static_dtv): Renamed to ...
1769         (_dl_static_dtv): This.  Make it global.
1770         (_dl_initial_dtv): Removed.
1771         (__libc_setup_tls): Updated.
1772         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1773         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1774         DL_INITIAL_DTV.
1775
1776 2012-09-06  Petr Machata  <pmachata@redhat.com>
1777
1778         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1779         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1780         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1781         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1782
1783 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1784
1785         [BZ #14545]
1786         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1787         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1788         freeing dtv[-1].
1789
1790 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1791
1792         [BZ #14544]
1793         * Makeconfig (link-static-before-libc): Replace $(+prector)
1794         with $(+prectorT).
1795         (link-static-after-libc): Replace $(+postctor) with
1796         $(+postctorT).
1797         (link-bounded): Replace $(+prector)/$(+postctor) with
1798         $(+prectorT)/$(+postctorT).
1799         (+prectorT): New macro.
1800         (+postctorT): Likewise.
1801
1802 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1803
1804         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1805         (round_str): Handle values above the maximum for IBM long double
1806         as inexact.
1807         * stdlib/tst-strtod-round.c (tests): Regenerated.
1808
1809 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1810
1811         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1812         assembler flag.
1813         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1814         zarch_nohighgprs around the zarch optimized routines.
1815         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1816         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1817         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1818         for zarch.
1819
1820 2012-09-05  David S. Miller  <davem@davemloft.net>
1821
1822         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1823
1824         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1825         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1826         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1827         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1828         entries.
1829
1830 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1831
1832         * malloc/arena.c: Fold copyright years.
1833         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1834
1835 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1836
1837         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1838
1839 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1840
1841         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1842
1843 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1844
1845         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1846         change internal state upon failure.
1847
1848 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1849
1850         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1851         * malloc/memusage.c (mmap): Likewise.
1852         (mmap64, mremap): Likewise.  Adjust name in comment.
1853
1854 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1855
1856         * libio/fileops.c: Fix typos in comments.
1857         * libio/oldfileops.c: Likewise.
1858         * libio/wfileops.c: Likewise.
1859
1860 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1861
1862         [BZ #1349]
1863         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1864         (tst-malloc-usable-ENV): Set environment for test case.
1865         * malloc/hooks.c (malloc_check_get_size): New function to get
1866         requested size.
1867         * malloc/malloc.c (musable): Use malloc_check_get_size.
1868         * malloc/tst-malloc-usable.c: New test case.
1869
1870 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1871
1872         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1873
1874 2012-09-05  Allan McRae  <allan@archlinux.org>
1875
1876         [BZ #13966]
1877         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1878         determine header location.
1879         * configure: Regenerated.
1880
1881 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1882
1883         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1884         float format.
1885         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1886         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1887         format.
1888         (test): Regenerate.
1889
1890 2012-09-04  David S. Miller  <davem@davemloft.net>
1891
1892         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1893         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1894         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1895
1896 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1897
1898         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1899         failures.
1900
1901         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1902
1903 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1904
1905         [BZ #9914]
1906         * libio/iogetdelim.c: Include <limits.h>.
1907         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1908         + len + 1 would overflow.
1909
1910 2012-09-03  Andreas Jaeger  <aj@suse.de>
1911
1912         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1913         * sysdeps/i386/fpu/libm-test-ulps: Update.
1914
1915 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1916
1917         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1918         Add s_sinf-sse2, s_conf-sse2.
1919
1920         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1921         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1922         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1923         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1924
1925         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1926         for using routine as __sinf_ia32.
1927         Use macro for function declaration and weak_alias.
1928         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1929         for using routine as __cosf_ia32.
1930         Use macro for function declaration and weak_alias.
1931
1932         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1933         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1934
1935         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1936         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1937         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1938
1939         * math/libm-test.inc (cos_test): Add more test cases.
1940         (sin_test): Likewise.
1941         (sincos_test): Likewise.
1942
1943 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1944
1945         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1946         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1947         hidden.
1948         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1949
1950 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1951
1952         [BZ #14538]
1953         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1954         first element of the GOT.
1955         (elf_machine_load_address): Return the difference between
1956         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1957
1958 2012-09-01  Allan McRae  <allan@archlinux.org>
1959
1960         [BZ #13412]
1961         * configure.in (AWK): Require gawk version 3.0 or later.
1962         * configure: Regenerated.
1963
1964 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1965
1966         * sysdeps/unix/sysv/linux/kernel-features.h
1967         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1968         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1969         [__NR_clock_getres]: Make code unconditional.
1970         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1971         (clock_getcpuclockid): Remove code left unreachable by removal of
1972         conditionals.
1973         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1974         code unconditional.
1975         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1976         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1977         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
1978         Make code unconditional.
1979         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1980         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1981         * sysdeps/unix/sysv/linux/clock_settime.c
1982         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
1983         conditional code.
1984         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
1985         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1986
1987 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1988
1989         [BZ #14476]
1990         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
1991         scripts/test-installation.pl.
1992
1993         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
1994         and $ld_so_version if it is set.
1995
1996 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1997
1998         [BZ #14516]
1999         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2000         failure if reading from procfs failed.
2001         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2002
2003 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2004
2005         * sysdeps/unix/sysv/linux/kernel-features.h
2006         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2007         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2008         Remove conditional code.
2009         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2010         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2011         Remove conditional code.
2012         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2013         * sysdeps/unix/sysv/linux/i386/fxstat.c
2014         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2015         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2016         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2017         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2018         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2019         * sysdeps/unix/sysv/linux/i386/lxstat.c
2020         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2021         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2022         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2023         Remove conditional code.
2024         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2025         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2026         Remove conditional code.
2027         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2028         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2029         <kernel-features.h>.
2030         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2031         Remove.
2032         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2033         Remove conditional code.
2034         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2035         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2036         Remove conditional.
2037
2038 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2039
2040         [BZ #5400]
2041         * NEWS: Add fixed bug number.
2042
2043 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2044
2045         [BZ #14519]
2046         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2047         underflowing exponent in case of negative sign.
2048         * stdlib/tst-strtod-round-data: Add more tests.
2049         * stdlib/tst-strtod-round.c (tests): Regenerated.
2050
2051         [BZ #3479]
2052         * stdlib/strtod_l.c (NDIG): Remove.
2053         (HEXNDIG): Likewise.
2054         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2055         smallest representable value.
2056         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2057         lie within an exact representation of 1/2 ulp of the result.
2058         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2059         unconditionally.
2060         (TENS_P9_IDX): Define unconditionally.
2061         (TENS_P9_SIZE): Likewise.
2062         (TENS_P10_IDX): Likewise.
2063         (TENS_P10_SIZE): Likewise.
2064         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2065         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2066         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2067         entries for 10^2^13 and 10^2^14.
2068         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2069         (TENS_P13_IDX): Define.
2070         (TENS_P13_SIZE): Likewise.
2071         (TENS_P14_IDX): Likewise.
2072         (TENS_P14_SIZE): Likewise.
2073         (_fpioconst_pow10): Change array size to
2074         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2075         unconditional.
2076         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2077         1024]: Add entries for 10^2^13 and 10^2^14.
2078         [LAST_POW10 > _LAST_POW10]: Remove #error.
2079         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2080         (_fpioconst_pow10): Change array size to
2081         FPIOCONST_POW10_ARRAY_SIZE.
2082         * stdlib/gen-fpioconst.c: New file.
2083         * stdlib/gen-tst-strtod-round.c: Likewise.
2084         * stdlib/tst-strtod-round-data: Likewise.
2085         * stdlib/tst-strtod-round.c: Likewise.
2086         * stdlib/Makefile (tests): Add tst-strtod-round.
2087
2088         [BZ #14459]
2089         * stdlib/strtod_l.c: Include <stdint.h>.
2090         (NDEBUG): Do not define.
2091         (round_and_return): Change EXPONENT parameter to type intmax_t.
2092         Rearrange calculations to avoid internal overflow possibilities.
2093         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2094         Rearrange calculations to avoid internal overflow possibilities.
2095         Assert that number fits inside MPNSIZE limbs.
2096         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2097         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2098         calculations and add assertions to avoid internal overflow
2099         possibilities.  Add casts to avoid signed/unsigned operations.
2100         * stdlib/tst-strtod-overflow.c: New file.
2101         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2102
2103 2012-08-25  Marek Polacek  <polacek@redhat.com>
2104
2105         * time/time.h: Fix some typos in comments.
2106
2107 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2108
2109         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2110         * posix/tst-rfc3484-2.c: Likewise.
2111         * posix/tst-rfc3484-3.c: Likewise.
2112
2113 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2114
2115         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2116         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2117
2118 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2119
2120         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2121         #include of fxstatat64.c.
2122
2123 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2124
2125         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2126         * shadow/getspent_r.c: Likewise.
2127         * shadow/getspnam.c: Likewise.
2128         * shadow/getspnam_r.c: Likewise.
2129         * gshadow/getsgent.c: Likewise.
2130         * gshadow/getsgent_r.c: Likewise.
2131         * gshadow/getsgnam.c: Likewise.
2132         * gshadow/getsgnam_r.c: Likewise.
2133         * inet/getnetbyad.c: Likewise.
2134         * inet/getnetbyad_r.c: Likewise.
2135         * inet/getnetbynm.c: Likewise.
2136         * inet/getnetbynm_r.c: Likewise.
2137         * inet/getnetent.c: Likewise.
2138         * inet/getnetent_r.c: Likewise.
2139         * inet/getproto.c: Likewise.
2140         * inet/getproto_r.c: Likewise.
2141         * inet/getprtent.c: Likewise.
2142         * inet/getprtent_r.c: Likewise.
2143         * inet/getprtname.c: Likewise.
2144         * inet/getprtname_r.c: Likewise.
2145         * inet/getrpcbyname.c: Likewise.
2146         * inet/getrpcbyname_r.c: Likewise.
2147         * inet/getrpcbynumber.c: Likewise.
2148         * inet/getrpcbynumber_r.c: Likewise.
2149         * inet/getrpcent.c: Likewise.
2150         * inet/getrpcent_r.c: Likewise.
2151         * inet/getaliasent.c: Likewise.
2152         * inet/getaliasent_r.c: Likewise.
2153         * inet/getaliasname.c: Likewise.
2154         * inet/getaliasname_r.c: Likewise.
2155         * nscd/getgrgid_r.c: Likewise.
2156         * nscd/getgrnam_r.c: Likewise.
2157         * nscd/gethstbyad_r.c: Likewise.
2158         * nscd/gethstbynm3_r.c: Likewise.
2159         * nscd/getpwnam_r.c: Likewise.
2160         * nscd/getpwuid_r.c: Likewise.
2161         * nscd/getsrvbynm_r.c: Likewise.
2162         * nscd/getsrvbypt_r.c: Likewise.
2163         * nscd/gai.c: Likewise.
2164
2165         * configure.in (build_nscd): New substituted variable, set
2166         by --disable-build-nscd and defaults to $use_nscd.
2167         * configure: Regenerated.
2168         * config.make.in (build-nscd): New substituted variable.
2169         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2170         Change conditional to require [$(build-nscd) = yes] as well.
2171         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2172
2173         [BZ# 13696]
2174         * configure.in (use_nscd): New substituted variable, set by
2175         --disable-nscd.  If enabled, define USE_NSCD.
2176         * configure: Regenerated.
2177         * config.h.in: Add USE_NSCD.
2178         * config.make.in (use-nscd): New substituted variable.
2179         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2180         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2181         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2182         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2183         (CFLAGS-getgrnam_r.c): Likewise.
2184         (CFLAGS-initgroups.c): Likewise.
2185         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2186         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2187         Variables removed.
2188         * inet/getnetgrent_r.c
2189         (nscd_setnetgrent): New function, broken out of ...
2190         (setnetgrent): ... here.  Call it.
2191         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2192         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2193         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2194         * nscd/Makefile (routines, aux): Move definitions after include of
2195         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2196         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2197         Conditionalize on [USE_NSCD].
2198         (is_nscd, nscd_init_cb): Likewise.
2199         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2200         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2201         * nss/nss_db/db-init.c: Likewise.
2202         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2203         [USE_NSCD].
2204         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2205         (make_request): Use it.
2206         (cache_valid_p): New function.
2207         (__check_pf): Use it.
2208         * NEWS: Add item for --disable-nscd.
2209
2210 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2211
2212         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2213         to support sed >= 4.2.1-20-ga9bf076.
2214         * configure: Regenerated.
2215
2216 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2217
2218         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2219         Conditionalize whole body on [IREL].
2220
2221 2012-08-22  Jeff Law <law@redhat.com>
2222
2223         [BZ #14505]
2224         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2225         if the family is PF_UNSPEC.
2226
2227 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2228
2229         * Makerules (lib-version): Rename from V.
2230         (install-lib-nosubdir): Change V to lib-version.
2231
2232 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2233
2234         [BZ #14252]
2235         * powerpc32/power6/wcschr.c: New file.
2236         * powerpc32/power6/wcscpy.c: New file.
2237         * powerpc32/power6/wcsrchr.c: New file.
2238         * powerpc64/power6/wcschr.c: New file.
2239         * powerpc64/power6/wcscpy.c: New file.
2240         * powerpc64/power6/wcsrchr.c: New file.
2241
2242 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2243
2244         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2245         (two_way_short_needle): Use it.
2246         * string/strstr.c (AVAILABLE1_USES_J): Define.
2247         * string/strcasestr.c: Likewise.
2248
2249         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2250         array references.
2251         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2252
2253         [BZ #11607]
2254         * NEWS: Add an entry.
2255         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2256         define their defaults.
2257         (two_way_short_needle): Detect end-of-string on-the-fly.
2258         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2259         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2260         * string/bug-strcasestr1.c: New test.
2261         * string/Makefile: Run it.
2262
2263 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2264
2265         [BZ #11607]
2266         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2267         the first character.
2268
2269 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2270
2271         * csu/elf-init.c (__libc_csu_irel): Function removed.
2272         * csu/libc-start.c (apply_irel): New function.
2273         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2274
2275 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2276
2277         * sysdeps/unix/sysv/linux/kernel-features.h
2278         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2279         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2280         <kernel-features.h>.
2281         [__NR_fadvise64_64]: Make code unconditional.
2282         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2283         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2284         !__NR_fadvise64_64)]: Likewise.
2285         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2286         !__NR_fadvise64_64))]: Likewise.
2287         [__NR_fadvise64]: Make code unconditional.
2288         [!__NR_fadvise64]: Remove conditional code.
2289         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2290         <kernel-features.h>.
2291         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2292         unconditional.
2293         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2294         conditional code.
2295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2296         not include <kernel-features.h>.
2297         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2298         unconditional.
2299         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2300         conditional code.
2301         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2302         include <kernel-features.h>.
2303         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2304         unconditional.
2305         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2306         conditional code.
2307
2308 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2309
2310         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2311         slight instruction rearrangements per scrollpipe analysis.
2312         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2313
2314 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2315
2316         * manual/syslog.texi (syslog; vsyslog, closelog):
2317         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2318         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2319
2320         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2321         DSOCAPS to match condition on defining it.
2322
2323 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2324
2325         * sysdeps/unix/sysv/linux/kernel-features.h
2326         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2328         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2329         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2331         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2332         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2334         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2335         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2336
2337         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2338         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2339
2340         * sysdeps/unix/sysv/linux/kernel-features.h
2341         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2342         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2343         unconditional.
2344         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2345         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2346         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2347         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2348         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2349         Make code unconditional.
2350         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2351         (__mmap64) [!__NR_mmap2]: Likewise.
2352         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2353         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2354         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2355         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2356         [__NR_mmap2]: Make code unconditional.
2357         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2358         (__mmap64) [!__NR_mmap2]: Likewise.
2359
2360 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2361
2362         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2363
2364 2012-08-18  Andreas Jaeger  <aj@suse.de>
2365
2366         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2367
2368 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2369
2370         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2371         * include/unistd.h (__have_sock_cloexec): Likewise.
2372         (__have_pipe2): Likewise.
2373         (__have_dup3): Likewise.
2374
2375 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2376
2377         [BZ #9685]
2378         * include/unistd.h (__have_pipe2): Change define into an extern int.
2379         (__have_dup3): Likewise.
2380         * socket/have_sock_cloexec.c: Include fcntl.h.
2381         (__have_pipe2): New variable.
2382         (__have_dup3): Likewise.
2383
2384 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2385
2386         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2387
2388 2012-08-17  Marek Polacek  <polacek@redhat.com>
2389
2390         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2391         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2392
2393 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2394
2395         * configure.in: Add AC_SUBST for sysheaders.
2396         * configure: Regenerated.
2397         * config.make.in (sysheaders): New substituted variable.
2398
2399         * sysdeps/unix/mkfifo.c: Moved ...
2400         * sysdeps/posix/mkfifo.c: ... here.
2401         * sysdeps/unix/mkfifoat.c: Moved ...
2402         * sysdeps/posix/mkfifoat.c: ... here.
2403
2404         * sysdeps/unix/utime.c: Moved ...
2405         * sysdeps/posix/utime.c: ... here.
2406
2407         * sysdeps/unix/time.c: Moved ...
2408         * sysdeps/posix/time.c: ... here.
2409         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2410         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2411
2412         * sysdeps/unix/nice.c: Moved ...
2413         * sysdeps/posix/nice.c: ... here.
2414
2415         * sysdeps/unix/alarm.c: Moved ...
2416         * sysdeps/posix/alarm.c: ... here.
2417
2418         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2419
2420 2012-08-17  Jeff Law <law@redhat.com>
2421
2422         * intl/Makefile (codeset_mo): New variable.
2423         ($(codeset_mo)): New target.
2424         (tst-codeset.out): Depend on that.  Remove explicit rule.
2425         (tst-gettext3.out, tst-gettext5.out): Likewise.
2426         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2427         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2428         * intl/tst-codeset.sh: Remove.
2429         * intl/tst-gettext3.sh: Likewise.
2430         * intl/tst-gettext5.sh: Likewise.
2431
2432 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2433
2434         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2435         * sysdeps/unix/syscalls.list: ... here.
2436
2437         * sysdeps/posix/getaddrinfo.c
2438         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2439         (gaiconf_init, gaiconf_reload): Use them.
2440         [!_STATBUF_ST_NSEC]
2441         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2442         Define using time_t rather than struct timespec.
2443
2444         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2445         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2446         Macros removed.
2447         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2448         [!NO_THREADS].
2449         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2450         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2451         Likewise.
2452
2453         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2454         __libc_cleanup_push argument.
2455
2456         * bits/param.h: New file.
2457         * misc/sys/param.h: New file.
2458         * include/sys/param.h: New file.
2459         * misc/Makefile (headers): Add bits/param.h.
2460         * sysdeps/generic/sys/param.h: File removed.
2461         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2462         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2463         * sysdeps/mach/hurd/bits/param.h: New file.
2464         * sysdeps/mach/hurd/sys/param.h: New file.
2465
2466         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2467         last change.
2468
2469         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2470         [_IO_MTSAFE_IO].
2471         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2472         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2473         New macros.
2474
2475         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2476         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2477         rather than -D_IO_MTSAFE_IO conditionally.
2478         * stdio-common/Makefile (CPPFLAGS): Likewise.
2479         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2480         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2481         Use $(libio-mtsafe).
2482         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2483         of -D_IO_MTSAFE_IO.
2484         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2485         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2486         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2487         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2488         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2489         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2490         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2491         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2492         (CFLAGS-fread_u_chk.c): Likewise.
2493         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2494         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2495         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2496         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2497         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2498         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2499         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2500         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2501         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2502
2503         * libio/Makefile: Test [$(libc-reentrant) = yes]
2504         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2505
2506         * Makeconfig
2507         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2508         * sysdeps/pthread/configure: File removed.
2509         * sysdeps/pthread/Makeconfig: New file.
2510         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2511         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2512
2513 2012-08-16  Gary Benson  <gbenson@redhat.com>
2514
2515         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2516         unmapping the first object in a namespace.
2517
2518 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2519
2520         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2521         (__internal_setnetgrent): ... this.  Add internal_function to
2522         definition.  Add libc_hidden_def.
2523         (setnetgrent): Update caller.
2524         (internal_endnetgrent): Renamed to ...
2525         (__internal_endnetgrent): ... this.  Add internal_function to
2526         definition.  Add libc_hidden_def.
2527         (endnetgrent): Update caller.
2528         (internal_getnetgrent_r): Renamed to ...
2529         (__internal_getnetgrent_r): ... this.  Add internal_function to
2530         definition.  Add libc_hidden_def.
2531         (__getnetgrent_r): Update caller.
2532         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2533
2534 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2535
2536         * stdlib/longlong.h: Update from GCC.
2537
2538 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2539
2540         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2541         on _QL, which is set by umul_ppmm but never used.
2542         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2543         variables, which are set by GMP macros but never used.
2544         * stdio-common/_itowa.c (_itowa): Likewise.
2545         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2546         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2547
2548 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2549
2550         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2551         struct La_sh_regs is not constant.
2552         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2553         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2554         and struct La_sparc64_regs are not constant.
2555
2556 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2557
2558         * sysdeps/unix/sysv/linux/kernel-features.h
2559         (__ASSUME_POSIX_TIMERS): Remove.
2560         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2561         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2562         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2563         Make code unconditional.
2564         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2565         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2566         Make code unconditional.
2567         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2568         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2569         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2570         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2571         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2572         Make code unconditional.
2573         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2574         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2575         (__libc_missing_posix_timers): Remove.
2576
2577 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2578
2579         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2580         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2581
2582         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2583
2584         * elf/dl-sym.c: Include <stdlib.h>.
2585
2586         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2587         constants, which avoids warnings in 32-bit builds.
2588
2589         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2590         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2591
2592         * misc/lseek.c: File moved to ...
2593         * io/lseek.c: ... here.
2594
2595         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2596
2597         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2598         shifting LEN more than 31 bits at once.
2599
2600 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2601
2602         [BZ #14195]
2603         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2604         segmentation fault for a case of two empty input strings.
2605         * string/test-strncasecmp.c (check1): Renamed to...
2606         (bz12205): ...this.
2607         (bz14195): Add new testcase for two empty input strings and N > 0.
2608         (test_main): Call new testcase, adapt for renamed function.
2609
2610 2012-08-15  Andreas Jaeger  <aj@suse.de>
2611
2612         [BZ #14090]
2613         * crypt/md5test2.c: New test, based on test supplied by Serge
2614         Belyshev <belyshev@depni.sinp.msu.ru>.
2615         * crypt/Makefile (xtests): Add md5test-giant..
2616         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2617
2618 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2619
2620         [BZ #14090]
2621         * crypt/md5.c (md5_process_block): Don't assume the buffer
2622         length is less than 2**32.
2623         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2624         length is less than 2**64.
2625
2626 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2627
2628         * string/str-two-way.h: Include <sys/param.h>.
2629         (MAX): Macro removed.
2630
2631         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2632         Move #define and #undef of memmove to just before and after
2633         including <string.h>.
2634
2635         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2636         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2637         and after including <string.h>.  Move declarations of
2638         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2639         to before #include "string/memmove.c".
2640
2641         * include/dirent.h: Declare __getdirentries.
2642
2643         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2644         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2645
2646 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2647
2648         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2649         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2650         * sysdeps/i386/configure: Regenerated.
2651         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2652         STABS_CURRENT_FILE, and STABS_FUN.
2653         (END): Remove call to STABS_FUN_END.
2654         (STABS_CURRENT_FILE1): Delete.
2655         (STABS_CURRENT_FILE): Likewise.
2656         (STABS_FUN): Likewise.
2657         (STABS_FUN_END): Likewise.
2658         (STABS_FUN2): Likewise.
2659         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2660         * sysdeps/x86_64/configure: Regenerated.
2661
2662 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2663
2664         * elf/dl-open.c: Include <atomic.h>.
2665         * elf/dl-lookup.c: Likewise.
2666
2667 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2668
2669         * sysdeps/unix/sysv/linux/kernel-features.h
2670         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2671         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2672         unconditionally.
2673         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2674         unconditionally.
2675         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2676         condition on __ASSUME_CLONE_THREAD_FLAGS.
2677
2678 2012-08-14  Andreas Jaeger  <aj@suse.de>
2679
2680         * sysdeps/i386/fpu/libm-test-ulps: Update.
2681
2682 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2683
2684         * include/atomic.h (atomic_exchange_and_add): Split into ...
2685         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2686         New atomic macros.
2687
2688 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2689
2690         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2691
2692 2012-08-13  Jeff Law <law@redhat.com>
2693
2694         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2695         null byte in the output string.
2696
2697 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2698
2699         * sysdeps/unix/sysv/linux/kernel-features.h
2700         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2701         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2702         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2703         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2704         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2705         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2706         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2707
2708 2012-08-09  Jeff Law <law@redhat.com>
2709
2710         [BZ #13939]
2711         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2712         When avoid_arena is set, don't retry in the that arena.  Pick the
2713         next one, whatever it might be.
2714         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2715         (arena_lock): Pass in new parameter to arena_get2.
2716         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2717         arena_get2.
2718         (__libc_malloc): Unify retrying after main arena failure with
2719         __libc_memalign version.
2720         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2721
2722 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2723
2724         [BZ #14166]
2725         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2726         to __redirect_strstr.
2727         (__strstr_sse42): Use typeof __redirect_strstr.
2728         (__strstr_ia32): Likewise.
2729         (__libc_strstr): New prototype.
2730         (strstr): Renamed to ...
2731         (__libc_strstr): This.
2732         (strstr): New strong alias of __libc_strstr.
2733         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2734         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2735         __redirect_time.
2736         Include <time.h>.
2737         (__libc_time): New prototype.
2738         (time_ifunc): Replace time with __libc_time.
2739         (time): New strong alias and hidden definition of __libc_time.
2740         (__GI_time): Remove strong alias.
2741         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2742         Include <stddef.h>.
2743         (memmove): Redefined to __redirect_memmove.
2744         (__memmove_sse2): Use typeof __redirect_memmove.
2745         (__memmove_ssse3): Likewise.
2746         (__memmove_ssse3_back): Likewise.
2747         (__libc_memmove): New prototype.
2748         (memmove): Renamed to ...
2749         (__libc_memmove): This.
2750         (memmove): New strong alias of __libc_memmove.
2751
2752 2012-08-08  Mark Salter  <msalter@redhat.com>
2753
2754         * elf/elf.h
2755         (R_MN10300_TLS_GD): Define.
2756         (R_MN10300_TLS_LD): Likewise.
2757         (R_MN10300_TLS_LDO): Likewise.
2758         (R_MN10300_TLS_GOTIE): Likewise.
2759         (R_MN10300_TLS_IE): Likewise.
2760         (R_MN10300_TLS_LE): Likewise.
2761         (R_MN10300_TLS_DTPMOD): Likewise.
2762         (R_MN10300_TLS_DTPOFF): Likewise.
2763         (R_MN10300_TLS_TPOFF): Likewise.
2764         (R_MN10300_SYM_DIFF): Likewise.
2765         (R_MN10300_ALIGN): Likewise.
2766         (R_MN10300_NUM): Update.
2767
2768 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2769
2770         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2771         Remove.
2772
2773 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2774
2775         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2776
2777         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2778         sysdeps/unix -> sysdeps/posix move.
2779         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2780
2781 2012-08-07      Allan McRae     <allan@archlinux.org>
2782
2783         [BZ #14303]
2784         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2785         (SUNOS_CPP): Likewise.
2786         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2787         not found.
2788         (open_input): Call CPP using execvp.
2789
2790 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2791
2792         * sysdeps/unix/sysv/linux/kernel-features.h
2793         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2794         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2795         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2796         (__ASSUME_WAITID_SYSCALL): Likewise.
2797         * sysdeps/unix/sysv/linux/dl-execstack.c
2798         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2799         code unconditional.
2800         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2801         conditional code.
2802         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2803         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2804         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2805         code.
2806         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2807         unconditional.
2808         [__ASSUME_WAITID_SYSCALL]: Likewise.
2809         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2810
2811 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2812
2813         * sysdeps/unix/closedir.c: Renamed to ...
2814         * sysdeps/posix/closedir.c: ... here.
2815         * sysdeps/unix/dirfd.c: Renamed to ...
2816         * sysdeps/posix/dirfd.c: ... here.
2817         * sysdeps/unix/dirstream.h: Renamed to ...
2818         * sysdeps/posix/dirstream.h: ... here.
2819         * sysdeps/unix/fdopendir.c: Renamed to ...
2820         * sysdeps/posix/fdopendir.c: ... here.
2821         * sysdeps/unix/opendir.c: Renamed to ...
2822         * sysdeps/posix/opendir.c: ... here.
2823         * sysdeps/unix/readdir.c: Renamed to ...
2824         * sysdeps/posix/readdir.c: ... here.
2825         * sysdeps/unix/readdir_r.c: Renamed to ...
2826         * sysdeps/posix/readdir_r.c: ... here.
2827         * sysdeps/unix/rewinddir.c: Renamed to ...
2828         * sysdeps/posix/rewinddir.c: ... here.
2829         * sysdeps/unix/seekdir.c: Renamed to ...
2830         * sysdeps/posix/seekdir.c: ... here.
2831         * sysdeps/unix/telldir.c: Renamed to ...
2832         * sysdeps/posix/telldir.c: ... here.
2833         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2834         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2835         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2836         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2837
2838         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2839         * bits/fcntl.h: ... here.
2840
2841         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2842         not 0.
2843         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2844         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2845         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2846         (struct flock): Move l_start, l_len to the beginning.
2847         Use __pid_t for l_pid.
2848         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2849         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2850         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2851         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2852         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2853         [__USE_LARGEFILE64] (struct flock64): New type.
2854         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2855
2856         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2857         * bits/dirent.h: ... here.
2858
2859         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2860         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2861
2862 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2863
2864         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2865         Change from 2.6.0 to 2.6.16.
2866         * sysdeps/unix/sysv/linux/configure: Regenerated.
2867         * sysdeps/unix/sysv/linux/kernel-features.h
2868         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2869         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2870         version.
2871         (__ASSUME_UTIMES): Likewise.
2872         (__ASSUME_CLONE_STOPPED): Remove.
2873         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2874         architectures, not kernel version.
2875         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2876         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2877         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2878         (__ASSUME_WAITID_SYSCALL): Likewise.
2879         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2880         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2881         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2882         refer to older versions.
2883
2884 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2885
2886         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2887         Define alphasort64 as an alias.
2888         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2889         Define versionsort64 as an alias.
2890         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2891         Define scandir64 as an alias.
2892         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2893         Define scandirat64 as an alias.
2894         * dirent/alphasort64.c (alphasort64):
2895         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2896         * dirent/versionsort64.c: Likewise.
2897         * dirent/scandir64.c: Likewise.
2898         * dirent/scandirat64.c: Likewise.
2899         * sysdeps/wordsize-64/alphasort.c: File removed.
2900         * sysdeps/wordsize-64/alphasort64.c: File removed.
2901         * sysdeps/wordsize-64/scandir.c: File removed.
2902         * sysdeps/wordsize-64/scandir64.c: File removed.
2903         * sysdeps/wordsize-64/scandirat.c: File removed.
2904         * sysdeps/wordsize-64/scandirat64.c: File removed.
2905         * sysdeps/wordsize-64/versionsort.c: File removed.
2906         * sysdeps/wordsize-64/versionsort64.c: File removed.
2907         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2908         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2909         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2910         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2911         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2912         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2913         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2914         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2915
2916         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2917         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2918         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2919         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2920         [defined __arch64__ || defined __sparcv9]
2921         (__INO_T_MATCHES_INO64_T): New macro.
2922         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2923         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2924         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2925         * sysdeps/unix/sysv/linux/bits/dirent.h
2926         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2927         (_DIRENT_MATCHES_DIRENT64): New macro.
2928
2929         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2930         Define lockf64 as an alias.
2931         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2932         Define fseeko64 as an alias.
2933         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2934         Define ftello64 as an alias.
2935         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2936         Define _IO_fgetpos64 and fgetpos64 as aliases.
2937         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2938         Define _IO_fsetpos64 and fsetpos64 as aliases.
2939         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2940         Conditionalize body on this.
2941         * libio/fseeko64.c: Likewise.
2942         * libio/ftello64.c: Likewise.
2943         * libio/iofgetpos64.c: Likewise.
2944         * libio/iofsetpos64.c: Likewise.
2945         * sysdeps/wordsize-64/lockf.c: File removed.
2946         * sysdeps/wordsize-64/lockf64.c: File removed.
2947         * sysdeps/wordsize-64/fseeko.c: File removed.
2948         * sysdeps/wordsize-64/fseeko64.c: File removed.
2949         * sysdeps/wordsize-64/ftello.c: File removed.
2950         * sysdeps/wordsize-64/ftello64.c: File removed.
2951         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2952         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2953         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2954         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2955         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2956         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2957         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2958         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2959         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2960         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2961         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2962         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2963         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2964         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2965
2966         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2967         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2968         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2969         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2970         [defined __arch64__ || defined __sparcv9]
2971         (__OFF_T_MATCHES_OFF64_T): New macro.
2972         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2973         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2974         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2975         (__OFF_T_MATCHES_OFF64_T): New macro.
2976
2977 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2978
2979         * stdlib/secure-getenv.c (__secure_getenv): Replace
2980         GLIBC_2_16 with GLIBC_2_17.
2981
2982 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2983
2984         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
2985         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2986
2987 2012-08-03  David S. Miller  <davem@davemloft.net>
2988
2989         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2990
2991 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2992
2993         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
2994         Remove.
2995         (__ASSUME_CORRECT_SI_PID): Likewise.
2996         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
2997         (__ASSUME_TMPFS_NAME): Likewise.
2998         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2999         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3000         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3001         (HAVE_AUX_SECURE): Make definition unconditional.
3002         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3003         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3004
3005 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3006
3007         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3008         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3009         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3010         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3011         __eloop_threshold instead of SYMLOOP_MAX.
3012
3013         * sysdeps/generic/eloop-threshold.h: New file.
3014         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3015         of MAXSYMLINKS.
3016         * elf/chroot_canon.c (chroot_canon): Likewise.
3017
3018 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3019
3020         [BZ #13717]
3021         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3022         Change to 2.6.0 everywhere.
3023         * sysdeps/unix/sysv/linux/configure: Regenerated.
3024         * sysdeps/unix/sysv/linux/kernel-features.h
3025         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3026         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3027         kernel versions.
3028         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3029         (__ASSUME_FUTEX_REQUEUE): Remove.
3030         (__ASSUME_STATFS64): Define unconditionally.
3031         (__ASSUME_AT_SECURE): Likewise.
3032         (__ASSUME_CORRECT_SI_PID): Likewise.
3033         (__ASSUME_TGKILL): Define without depending on kernel version for
3034         i386.
3035         (__ASSUME_UTIMES): Likewise.
3036         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3037         kernel version.
3038         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3039         (__ASSUME_TMPFS_NAME): Likewise.
3040         * README: Update reference to Linux kernel versions.
3041
3042 2012-08-02  Marek Polacek  <polacek@redhat.com>
3043
3044         [BZ# 14150]
3045         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3046         libc_cv_asm_type_prefix with %.
3047         * configure: Regenerated.
3048         * include/libc-symbols.h: Remove comment about
3049         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3050         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3051         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3052         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3053         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3054         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3055         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3056         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3057         * elf/tst-unique2mod1.c: Likewise.
3058         * elf/tst-unique1mod2.c: Likewise.
3059         * elf/tst-unique1mod1.c: Likewise.
3060         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3061         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3062         Replace ASM_TYPE_DIRECTIVE with .type.
3063         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3064         * sysdeps/i386/sysdep.h: Likewise.
3065         * sysdeps/x86_64/sysdep.h: Likewise.
3066         * sysdeps/sh/sysdep.h: Likewise.
3067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3068         Do not define ASM_TYPE_DIRECTIVE.
3069         * sysdeps/powerpc/sysdep.h: Likewise.
3070         * sysdeps/powerpc/powerpc32/sysdep.h:
3071         Replace ASM_TYPE_DIRECTIVE with .type.
3072         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3073         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3074         * sysdeps/i386/fpu/e_powf.S: Likewise.
3075         * sysdeps/i386/fpu/e_expl.S: Likewise.
3076         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3077         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3078         * sysdeps/i386/fpu/e_pow.S: Likewise.
3079         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3080         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3081         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3082         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3083         * sysdeps/i386/fpu/e_log2.S: Likewise.
3084         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3085         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3086         * sysdeps/i386/fpu/e_powl.S: Likewise.
3087         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3088         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3089         * sysdeps/i386/fpu/e_logl.S: Likewise.
3090         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3091         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3092         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3093         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3094         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3095         * sysdeps/i386/fpu/e_log.S: Likewise.
3096         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3097         * sysdeps/i386/fpu/e_logf.S: Likewise.
3098         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3099         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3100         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3101         * sysdeps/i386/fpu/e_log10.S: Likewise.
3102         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3103         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3104         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3105         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3106         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3107         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3108         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3109         * sysdeps/i386/i686/strtok.S: Likewise.
3110         * sysdeps/i386/i386-mcount.S: Likewise.
3111         * sysdeps/i386/strtok.S: Likewise.
3112         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3113         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3114         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3115         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3116         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3117         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3118         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3119         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3120         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3121         * sysdeps/x86_64/_mcount.S: Likewise.
3122         * sysdeps/x86_64/strtok.S: Likewise.
3123         * sysdeps/sh/_mcount.S: Likewise.
3124
3125 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3126
3127         * libio/iofopen.c: Include <fcntl.h>.
3128         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3129         (_IO_fopen64, fopen64): Define as aliases.
3130         * libio/iofopen64.c: Include <fcntl.h>.
3131         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3132         Conditionalize body on this.
3133         * sysdeps/wordsize-64/iofopen.c: File removed.
3134         * sysdeps/wordsize-64/iofopen64.c: File removed.
3135
3136 2012-08-01  Marek Polacek  <polacek@redhat.com>
3137
3138         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3139         Use dlfcn directly instead of a variable.
3140         (binfmt-subdir): Do not define.
3141         (dlfcn): Likewise.
3142
3143 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3144
3145         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3146         Remove all definitions.
3147         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3148         <kernel-features.h>.
3149         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3150         (miss_F_GETOWN_EX): Remove all definitions.
3151         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3152         macro definition.
3153         [!__ASSUME_FCNTL64]: Remove conditional code.
3154         [__ASSUME_FCNTL64]: Make code unconditional.
3155         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3156         <kernel-features.h>.
3157         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3158         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3159         (lockf64) [__NR_fcntl64]: Make code unconditional.
3160         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3161
3162         * sysdeps/unix/sysv/linux/kernel-features.h
3163         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3164         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3165         Make code unconditional.
3166         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3167         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3169         [__NR_vfork]: Make code unconditional.
3170         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3171         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3173         [__NR_vfork]: Make code unconditional.
3174         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3175         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3176
3177 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3178
3179         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3180         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3181
3182         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3183         Define mkstemp64 as an alias.
3184         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3185         Define mkstemps64 as an alias.
3186         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3187         Define mkostemp64 as an alias.
3188         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3189         Define mkostemps64 as an alias.
3190         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3191         Conditionalize body on this.
3192         * misc/mkostemp64.c: Likewise.
3193         * misc/mkostemps64.c: Likewise.
3194         * misc/mkstemps64.c: Likewise.
3195         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3196         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3197         * sysdeps/wordsize-64/mkostemp.c: File removed.
3198         * sysdeps/wordsize-64/mkstemp.c: File removed.
3199         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3200         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3201         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3202         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3203
3204         [BZ #14138]
3205         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3206         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3207         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3208         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3209
3210         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3211         compat_symbol macros from <shlib-compat.h> rather than the underlying
3212         default_symbol_version and symbol_version macros, so that DEFAULT
3213         lines in shlib-versions are respected.
3214         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3215
3216 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3217
3218         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3219         Declare with warn_unused_result.
3220         (setgid, setregid, setegid, setresgid): Likewise.
3221         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3222         Likewise.
3223         * WUR-REPORT: Remove set*id functions.
3224
3225 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3226
3227         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3228
3229 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3230
3231         * include/sys/socket.h (__libc_accept, __libc_accept4):
3232         Add attribute_hidden.
3233         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3234
3235         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3236         use of PTR_MANGLE.
3237         * inet/getnetgrent_r.c (setup): Likewise.
3238
3239         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3240
3241 2012-07-31  David S. Miller  <davem@davemloft.net>
3242
3243         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3244
3245 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3246
3247         [BZ #13629]
3248         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3249         value between 1.0 and 2.0 and smaller part has absolute value less
3250         than 1.0.
3251         * math/s_clog10.c (__clog10): Likewise.
3252         * math/s_clog10f.c (__clog10f): Likewise.
3253         * math/s_clog10l.c (__clog10l): Likewise.
3254         * math/s_clogf.c (__clogf): Likewise.
3255         * math/s_clogl.c (__clogl): Likewise.
3256         * math/libm-test.inc (clog_test): Add more tests.
3257         (clog10_test): Likewise.
3258         * sysdeps/i386/fpu/libm-test-ulps: Update.
3259         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3260
3261 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3262
3263         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3264         Exit with zero in case no suitable GID is found, and write a
3265         message to standard error.
3266
3267 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3268
3269         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3270         rather than to 1.
3271         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3272         (MAXPATHLEN): Removed.
3273         (NOGROUP, NODEV): New macros.
3274         (setbit, clrbit, isset, isclr): New macros.
3275         (howmany, roundup, powerof2): New macros.
3276         (DEV_BSIZE): New macro.
3277
3278         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3279         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3280
3281         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3282         definition on [!__NO_LONG_DOUBLE_MATH].
3283
3284         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3285         PTR_MANGLE and PTR_DEMANGLE.
3286
3287         * socket/accept4.c (accept4): Rename to __libc_accept4.
3288         Define accept4 as a weak alias.
3289
3290         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3291         on [_DIRENT_HAVE_D_TYPE].
3292         * io/ftw.c (ftw_dir): Likewise.
3293
3294         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3295
3296         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3297
3298         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3299         Use the BSD numbers rather than the arbitrary ones we had.
3300         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3301         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3302         (SIGXCPU, SIGXFSZ): New macros.
3303         (_NSIG): Now 32.
3304
3305         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3306         initializer on [_LIBC_REENTRANT].
3307
3308         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3309         definitions inside [_POSIX_MAPPED_FILES].
3310
3311         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3312
3313         * dirent/opendir.c: Include <fcntl.h>.
3314
3315         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3316         (__libc_getspecific): Likewise.
3317         (__libc_key_create): Likewise.
3318
3319         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3320         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3321         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3322         (tmpfile64): Define as alias.
3323         * sysdeps/wordsize-64/tmpfile.c: File removed.
3324         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3325         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3326         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3327
3328         * stdio-common/vfscanf.c: Include <stdbool.h>.
3329         * nss/makedb.c: Likewise.
3330         * stdio-common/_i18n_number.h: Likewise.
3331         * argp/argp-help.c: Likewise.
3332         * posix/wordexp.c: Likewise.
3333         * sysdeps/posix/spawni.c: Likewise.
3334         * nss/nss_files/files-initgroups.c: Likewise.
3335         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3336         * nss/nss_files/files-initgroups.c: Likewise.
3337         * nss/nss_db/db-netgrp.c: Likewise.
3338         * nss/nss_db/db-initgroups.c: Likewise.
3339         * io/fchmodat.c: Include <sys/stat.h>.
3340
3341         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3342         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3343
3344         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3345         [HAVE_MMAP].
3346
3347         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3348         Add multiple inclusion protection.
3349
3350 2012-07-27  David S. Miller  <davem@davemloft.net>
3351
3352         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3353
3354 2012-07-27  Gary Benson  <gbenson@redhat.com>
3355
3356         [BZ #14298]
3357         * elf/rtld.c: Include <stap-probe.h>.
3358         (dl_main): Added static probes "init_start" and "init_complete".
3359         * elf/dl-load.c: Include <stap-probe.h>.
3360         (lose): Take new parameter "nsid".
3361         Added static probe "map_failed".
3362         (_dl_map_object_from_fd): Pass namespace id to lose.
3363         Added static probe "map_start".
3364         (open_verify): Pass namespace id to lose.
3365         * elf/dl-open.c: Include <stap-probe.h>.
3366         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3367         and "reloc_complete".
3368         * elf/dl-close.c: Include <stap-probe.h>.
3369         (_dl_close_worker): Added static probes "unmap_start" and
3370         "unmap_complete".
3371         * elf/rtld-debugger-interface.txt: New file documenting the above.
3372
3373 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3374
3375         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3376         rather than a string variable.
3377         * sunrpc/rpc_main.c (h_output): Likewise.
3378         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3379
3380 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3381
3382         * inet/check_native.c: New file.
3383
3384 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3385
3386         [BZ #13629]
3387         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3388         if larger part has absolute value 1.0.
3389         * math/s_clog10.c (__clog10): Likewise.
3390         * math/s_clog10f.c (__clog10f): Likewise.
3391         * math/s_clog10l.c (__clog10l): Likewise.
3392         * math/s_clogf.c (__clogf): Likewise.
3393         * math/s_clogl.c (__clogl): Likewise.
3394         * math/libm-test.inc (clog_test): Add more tests.
3395         (clog10_test): Likewise.
3396         * sysdeps/i386/fpu/libm-test-ulps: Update.
3397         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3398
3399         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3400         (pltexit): Likewise.
3401         (La_regs): Likewise.
3402         (La_retval): Likewise.
3403         (int_retval): Likewise.
3404         Update #error for removed macros to refer only to definitions in
3405         tst-audit.h.
3406         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3407         macro.
3408         (pltexit): Likewise.
3409         (La_regs): Likewise.
3410         (La_retval): Likewise.
3411         (int_retval): Likewise.
3412         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3413         macro.
3414         (pltexit): Likewise.
3415         (La_regs): Likewise.
3416         (La_retval): Likewise.
3417         (int_retval): Likewise.
3418         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3419         macro.
3420         (pltexit): Likewise.
3421         (La_regs): Likewise.
3422         (La_retval): Likewise.
3423         (int_retval): Likewise.
3424         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3425         macro.
3426         (pltexit): Likewise.
3427         (La_regs): Likewise.
3428         (La_retval): Likewise.
3429         (int_retval): Likewise.
3430         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3431         macro.
3432         (pltexit): Likewise.
3433         (La_regs): Likewise.
3434         (La_retval): Likewise.
3435         (int_retval): Likewise.
3436         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3437         macro.
3438         (pltexit): Likewise.
3439         (La_regs): Likewise.
3440         (La_retval): Likewise.
3441         (int_retval): Likewise.
3442         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3443         macro definitions in tst-audit.h.
3444         * sysdeps/i386/tst-audit.h: New file.
3445         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3446         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3447         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3448         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3449         * sysdeps/sh/tst-audit.h: Likewise.
3450         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3451         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3452         * sysdeps/x86_64/tst-audit.h: Likewise.
3453
3454 2012-07-26  Andreas Jaeger  <aj@suse.de>
3455
3456         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3457         ptrace.
3458
3459         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3460         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3461         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3462         PTRACE_O_MASK.
3463         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3464         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3465         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3466
3467         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3468         value.
3469
3470         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3471         _sigsys.
3472         (si_call_addr, si_syscall, si_arch): Define new macro.
3473         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3474         _sigsys.
3475         (si_call_addr, si_syscall, si_arch): Define new marcro.
3476         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3477         _sigsys.
3478         (si_call_addr, si_syscall, si_arch): Define new macro.
3479         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3480         _sigsys.
3481         (si_call_addr, si_syscall, si_arch): Define new macro.
3482
3483 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3484
3485         [BZ #13717]
3486         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3487         Change to 2.4.21 where previously 2.4.1.
3488         * sysdeps/unix/sysv/linux/configure: Regenerated.
3489         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3490         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3491         Linux kernel version.
3492         (__ASSUME_STD_AUXV): Remove.
3493         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3494         kernel version.
3495         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3496         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3497         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3498         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3499         (__ASSUME_NETLINK_SUPPORT): Likewise.
3500         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3501         (__no_netlink_support): Remove conditional definition.
3502         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3503         Remove.
3504         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3505         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3506         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3507         (if_nameindex_ioctl): Remove.
3508         (if_nameindex_netlink): Do not handle __no_netlink_support.
3509         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3510         code.
3511         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3512         Remove conditional code.
3513         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3514         code.
3515         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3516         unconditional.
3517         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3518         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3519         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3520         Remove.
3521         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3522         [!__ASSUME_STD_AUXV]: Remove conditional code.
3523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3524         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3525         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3527         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3528         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3529         code.
3530         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3532         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3533         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3534         conditional code.
3535         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3537         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3538         code.
3539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3540         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3541         conditional code.
3542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3543         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3544         code unconditional.
3545         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3546         conditional code.
3547         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3548         unconditional.
3549         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3550         conditional code.
3551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3552         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3553         unconditional.
3554         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3555         conditional code.
3556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3557         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3558         code unconditional.
3559         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3560         conditional code.
3561         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3562         unconditional.
3563         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3564         conditional code.
3565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3566         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3567         code unconditional.
3568         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3569         conditional code.
3570         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3571         unconditional.
3572         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3573         conditional code.
3574
3575 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3576
3577         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3578         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3579         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3580         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3581         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3582         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3583         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3584         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3585         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3586         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3587         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3588         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3589         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3590         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3591         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3592         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3593         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3594         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3595         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3596         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3597         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3598         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3599         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3600
3601 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3602
3603         * Versions.def: Add GLIBC_2.17.
3604         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3605         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3606         Introduce __libc_secure_getenv.
3607         * stdlib/Versions (2.17): Add secure_getenv
3608         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3609         * stdlib/secure-getenv.c: Rename __secure_getenv to
3610         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3611         symbol __secure_getenv for GLIBC_2.0.
3612         * stdlib/tst-secure-getenv.c: New.
3613         * stdlib/Makefile (tests): Add testcase.
3614         * manual/startup.texi (Environment Access): Document
3615         secure_getenv.
3616         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3617         __libc_secure_getenv.
3618         * inet/ruserpass.c (ruserpass): Likewise.
3619         * malloc/mtrace.c (mtrace): Likewise.
3620         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3621         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3622         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3623         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3624         HAVE_SECURE_GETENV.
3625         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3626         __secure_getenv to __libc_secure_getenv.
3627         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3629         Likewise.
3630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3631         Likewise.
3632         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3633         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3634         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3635         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3636         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3637         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3638         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3639
3640 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3641
3642         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3643         (struct La_i86_retval): Likewise.
3644         (struct La_x86_64_regs): Likewise.
3645         (struct La_x86_64_retval): Likewise.
3646         (struct La_x32_regs): Likewise.
3647         (struct La_x32_retval): Likewise.
3648         (struct La_ppc32_regs): Likewise.
3649         (struct La_ppc32_retval): Likewise.
3650         (struct La_ppc64_regs): Likewise.
3651         (struct La_ppc64_retval): Likewise.
3652         (struct La_sh_regs): Likewise.
3653         (struct La_sh_retval): Likewise.
3654         (struct La_s390_32_regs): Likewise.
3655         (struct La_s390_32_retval): Likewise.
3656         (struct La_s390_64_regs): Likewise.
3657         (struct La_s390_64_retval): Likewise.
3658         (struct La_sparc32_regs): Likewise.
3659         (struct La_sparc32_retval): Likewise.
3660         (struct La_sparc64_regs): Likewise.
3661         (struct La_sparc64_retval): Likewise.
3662         (struct audit_ifaces): Remove architecture-specific pltenter and
3663         pltexit members.
3664         * sysdeps/i386/ldsodefs.h: New file.
3665         * sysdeps/powerpc/ldsodefs.h: Likewise.
3666         * sysdeps/s390/ldsodefs.h: Likewise.
3667         * sysdeps/sh/ldsodefs.h: Likewise.
3668         * sysdeps/sparc/ldsodefs.h: Likewise.
3669         * sysdeps/x86_64/ldsodefs.h: Likewise.
3670
3671 2012-07-25  Marek Polacek  <polacek@redhat.com>
3672
3673         [BZ #6808]
3674         * math/libm-test.inc (yn_test): Add another test.
3675         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3676         to ERANGE when the result is +-Inf.
3677         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3678         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3679         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3680         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3681
3682 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3683
3684         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3685         equal to 0.
3686         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3687         clock_t.
3688         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3689
3690 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3691
3692         * configure.in <sysdeps resolving>: Correct printing
3693         Implies_before.
3694         * configure: Regenerate.
3695
3696 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3697
3698         * math/w_ilogb.c: Include <limits.h>.
3699         * math/w_ilogbl.c: Likewise.
3700
3701 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3702
3703         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3704         va_copy.  Document allowing for unavailable va_copy only as
3705         pre-C99 compatibility.
3706         * manual/string.texi (Copying and Concatenation): Use va_copy
3707         instead of __va_copy in concat example.
3708
3709 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3710
3711         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3712         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3713         it if not null.
3714
3715         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3716         with O_NOLINK passed to __file_name_lookup.
3717
3718         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3719         with O_NOLINK passed to __file_name_lookup.
3720
3721         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3722         negative N or less than NGIDS.
3723
3724         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3725         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3726         enough.  Use memcpy instead of strncpy.
3727
3728 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3729
3730         * elf/Makefile (check-data): Remove.
3731         (localplt.data): New vpath directive.
3732         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3733         instead of $(check-data).
3734         * scripts/data/localplt-generic.data: Move to ...
3735         * sysdeps/generic/localplt.data: ... here.
3736         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3737         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3738         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3740         ... here.
3741         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3743         ... here.
3744         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3745         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3746         ... here.
3747         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3748         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3749         ... here.
3750         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3751         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3752         ... here.
3753         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3754         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3755         ... here.
3756
3757 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3758
3759         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3760         PPC32 and PPC64 files.
3761         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3762         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3763
3764 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3765
3766         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3767         __makecontext_ret to ...
3768         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3769         ... here and call exit if uc_link is NULL.  New file.
3770         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3771         __makecontext_ret.S.
3772         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3773         __makecontext_ret to ...
3774         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3775         ... here and call exit if uc_link is NULL.  New file.
3776         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3777         __makecontext_ret.S.
3778
3779 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3780
3781         * elf/elf.h (R_390_IRELATIVE): New definition.
3782         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3783         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3784         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3785         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3786         (elf_machine_lazy_rel): Likewise.
3787         * sysdeps/s390/dl-irel.h: New file.
3788         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3789         * sysdeps/s390/s390-64/memset.S: New asm code.
3790         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3791         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3792         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3793         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3794         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3795         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3796         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3797         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3798         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3799         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3800         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3801         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3802         * sysdeps/s390/s390-32/memset.S: New asm code.
3803         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3804
3805 2012-07-17  Marek Polacek  <polacek@redhat.com>
3806
3807         [BZ #14349]
3808         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3809         * sysdeps/s390/s390-64/configure.in: Likewise.
3810         * sysdeps/sparc/configure.in: Likewise.
3811         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3812         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3813         * sysdeps/i386/configure.in: Likewise.
3814         * sysdeps/x86_64/configure.in: Likewise.
3815         * sysdeps/sh/configure.in: Likewise.
3816         * sysdeps/s390/s390-32/configure: Regenerated.
3817         * sysdeps/s390/s390-64/configure: Likewise.
3818         * sysdeps/x86_64/configure: Likewise.
3819         * sysdeps/sh/configure: Likewise.
3820         * sysdeps/powerpc/powerpc64/configure: Likewise.
3821         * sysdeps/powerpc/powerpc32/configure: Likewise.
3822         * sysdeps/sparc/configure: Likwise.
3823         * sysdeps/i386/configure: Likewise.
3824
3825         * elf/dl-open.c: Comment fixes.
3826
3827 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3828
3829         * Makefile [CXX] (check-data): Remove.
3830         [CXX] (c++-types.data): New vpath directive.
3831         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3832         vpath.  Do not allow for C++ type data being missing.
3833         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3834         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3835         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3836         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3837         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3838         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3839         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3841         ... here.
3842         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3844         ... here.
3845         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3846         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3847         ... here.
3848         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3849         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3850         ... here.
3851         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3852         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3853         ... here.
3854         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3855         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3856         ... here.
3857         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3858         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3859         ... here.
3860         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3861         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3862
3863         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3864         definitions to architecture-specific files.
3865         (TLS_IE): Likewise.
3866         (TLS_LD): Likewise.
3867         (TLS_GD): Likewise.
3868         * sysdeps/i386/tls-macros.h: New file.
3869         * sysdeps/powerpc/tls-macros.h: Likewise.
3870         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3871         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3872         * sysdeps/sh/tls-macros.h: Likewise.
3873         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3874         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3875         * sysdeps/x86_64/tls-macros.h: Likewise.
3876
3877 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3878
3879         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3880         zero value for regular exit case.
3881
3882         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3883         (__start_context): Preserve zero value for regular exit case.
3884
3885 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3886             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3887
3888         * manual/setjmp.texi (setcontext): Clarify normal process
3889         termination when uc_link is the null pointer.
3890         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3891         exit call.
3892
3893 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3894
3895         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3896         preprocessor.  Test for each exception mask separately.
3897
3898 2012-07-16  Andreas Jaeger  <aj@suse.de>
3899
3900         * po/ru.po: Update from translation team.
3901
3902 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3903
3904         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3905         equal to 0.
3906         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3907         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3908         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3909         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3910         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3911
3912 2012-07-13  Andreas Jaeger  <aj@suse.de>
3913
3914         * po/fr.po: Update from translation team.
3915
3916 2012-07-12  Marek Polacek  <polacek@redhat.com>
3917
3918         [BZ #14173]
3919         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3920         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3921         loop condition.
3922
3923 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3924
3925         [BZ #13717]
3926         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3927         Change to 2.4.1 where previously 2.4.0.
3928         * sysdeps/unix/sysv/linux/configure: Regenerated.
3929         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3930         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3931         version.
3932         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3933         (__ASSUME_AT_CLKTCK): Remove.
3934         (__ASSUME_AT_PAGESIZE): Likewise.
3935         (__ASSUME_AT_XID): Likewise.
3936         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3937         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3938         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3939         unconditionally.
3940         (HAVE_AUX_PAGESIZE): Likewise.
3941         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3942         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3943         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3944
3945 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3946
3947         [BZ #14307]
3948         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3949         the temporary buffer used to invoke __gethostbyname2_r,
3950         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3951         host_data / struct gaih_addrtuple.
3952         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3953         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3954         header file nss/nsswitch.h.
3955         * nss/nsswitch.h (global scope): Add definition of implementation
3956         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3957         resolv/nss_dns/dns-host.c).
3958
3959 2012-07-11  Andreas Jaeger  <aj@suse.de>
3960
3961         * po/fr.po: Update from translation team.
3962
3963         * po/sv.po: Update from translation team
3964         * po/fr.po: Another update from translation team.
3965
3966 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3967
3968         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3969         for subnormals or multiply small sinh result by itself.
3970         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3971         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3972
3973 2012-07-11  David S. Miller  <davem@davemloft.net>
3974
3975         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3976
3977 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
3978
3979         [BZ #14347]
3980         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
3981         (INTERNAL_MARK): Shift it here.
3982
3983 2012-07-10  Marek Polacek  <polacek@redhat.com>
3984
3985         [BZ #14151]
3986         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
3987         libc_cv_asm_global_directive with .globl.
3988         * configure: Regenerated.
3989         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
3990         with .globl.
3991         * sysdeps/i386/configure: Regenerated.
3992         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
3993         with .globl.
3994         * sysdeps/x86_64/configure: Regenerated.
3995         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
3996         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
3997         * elf/tst-unique2mod2.c: Likewise.
3998         * elf/tst-unique2mod1.c: Likewise.
3999         * elf/tst-unique1mod2.c: Likewise.
4000         * elf/tst-unique1mod1.c: Likewise.
4001         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4002         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4003         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4004         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4005         * sysdeps/mach/sysdep.h: Likewise.
4006         * sysdeps/i386/sysdep.h: Likewise.
4007         * sysdeps/i386/i386-mcount.S: Likewise.
4008         * sysdeps/x86_64/_mcount.S: Likewise.
4009         * sysdeps/x86_64/sysdep.h: Likewise.
4010         * sysdeps/sh/_mcount.S: Likewise.
4011         * sysdeps/sh/sysdep.h: Likewise.
4012         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4013         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4014         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4015         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4016         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4017         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4018         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4019         * locale/localeinfo.h: Likewise.
4020         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4021         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4022
4023 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4024
4025         [BZ #14336]
4026         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4027         system".
4028         * manual/message.texi (The Uniforum approach): Likewise.
4029         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4030         (glibc iconv Implementation): Likewise.
4031
4032 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4033
4034         [BZ #14337]
4035         * math/s_clog.c (__clog): Avoid scaling a value down where that
4036         could result in underflow.
4037         * math/s_clog10.c (__clog10): Likewise.
4038         * math/s_clog10f.c (__clog10f): Likewise.
4039         * math/s_clog10l.c (__clog10l): Likewise.
4040         * math/s_clogf.c (__clogf): Likewise.
4041         * math/s_clogl.c (__clogl): Likewise.
4042         * math/libm-test.inc (clog_test): Add more tests.
4043         (clog10_test): Likewise.
4044         * sysdeps/i386/fpu/libm-test-ulps: Update.
4045         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4046
4047 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4048
4049         [BZ #14283]
4050         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4051         by 7 not 8 to examine high bit of fractional part.
4052
4053         [BZ #14042]
4054         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4055         for call to __mcount_internal.
4056         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4057         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4058         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4059
4060 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4061
4062         [BZ #14154]
4063         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4064         approximation for values within 0x1p-13f of an odd multiple of
4065         pi/4.
4066         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4067         exception.  Add more tests.
4068         * sysdeps/i386/fpu/libm-test-ulps: Update.
4069
4070         [BZ #6778]
4071         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4072         inputs and return -1 for them.  Do not check for +Inf in case not
4073         reachable for +Inf.
4074         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4075         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4076         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4077         and return -1 for them.  Do not check for +Inf in case not
4078         reachable for +Inf.
4079         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4080         define.
4081         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4082         and return -1 for them.  Do not check for +Inf in case not
4083         reachable for +Inf.
4084         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4085         spurious underflow.
4086         * sysdeps/i386/fpu/libm-test-ulps: Update.
4087         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4088
4089 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4090
4091         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4092
4093 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4094
4095         [BZ #14157]
4096         [BZ #14331]
4097         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4098         could result in spurious underflow.  Scale down values above
4099         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4100         * math/s_csqrtf.c (__csqrtf): Likewise.
4101         * math/s_csqrtl.c (__csqrtl): Likewise.
4102         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4103         spurious underflow.
4104         * sysdeps/i386/fpu/libm-test-ulps: Update.
4105         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4106
4107 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4108
4109         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4110         xopen-msg.sed.
4111         * catgets/xopen-msg.awk: New file.
4112         * catgets/xopen-msg.sed: Removed.
4113
4114         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4115         po2text.sed.
4116         * intl/po2test.awk: New file.
4117         * intl/po2test.sed: Removed.
4118
4119 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4120
4121         [BZ #14328]
4122         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4123         or multiply small sinh result by itself.
4124         * math/s_ctanf.c (__ctanf): Likewise.
4125         * math/s_ctanh.c (__ctanh): Likewise.
4126         * math/s_ctanhf.c (__ctanhf): Likewise.
4127         * math/s_ctanhl.c (__ctanhl): Likewise.
4128         * math/s_ctanl.c (__ctanl): Likewise.
4129         * math/libm-test.inc (ctan_test_tonearest): New function.
4130         (ctan_test_towardzero): Likewise.
4131         (ctan_test_downward): Likewise.
4132         (ctan_test_upward): Likewise.
4133         (ctanh_test_tonearest): Likewise.
4134         (ctanh_test_towardzero): Likewise.
4135         (ctanh_test_downward): Likewise.
4136         (ctanh_test_upward): Likewise.
4137         (main): Call these new functions.
4138         * sysdeps/i386/fpu/libm-test-ulps: Update.
4139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4140
4141 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4142
4143         * .gitignore: Delete /ports entry.
4144
4145 2012-07-03  Andreas Jaeger  <aj@suse.de>
4146
4147         * po/bg.po: Update from translation team.
4148         * po/cs.po: Likewise.
4149         * po/de.po: Likewise.
4150         * po/hr.po: Likewise.
4151         * po/nl.pl: Likewise.
4152         * po/pl.po: Likewise.
4153         * po/vi.po: Likewise.
4154
4155 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4156
4157         * Makeconfig [!+link] (+link-before-libc): New variable.
4158         [!+link] (+link-after-libc): Likewise.
4159         [!+link] (+link-tests): Likewise.
4160         [!+link] (+link): Define in terms of $(+link-before-libc) and
4161         $(+link-after-libc).
4162         [!+link-static] (+link-static-before-libc): New variable.
4163         [!+link-static] (+link-static-after-libc): Likewise.
4164         [!+link-static] (+link-static-tests): Likewise.
4165         [!+link-static] (+link-static): Define in terms of
4166         $(+link-static-before-libc) and $(+link-static-after-libc).
4167         [build-shared] (link-libc-before-gnulib): New variable.
4168         [build-shared] (link-libc-tests): Likewise.
4169         [build-shared] (link-libc): Define in terms of
4170         $(link-libc-before-gnulib).
4171         [!build-shared] (link-libc-tests): New variable.
4172         (link-libc-static-tests): New variable.
4173         [!gnulib] (gnulib-arch): New variable.
4174         [!gnulib] (gnulib-tests): Likewise.
4175         [!gnulib] (static-gnulib-arch): Likewise.
4176         [!gnulib] (static-gnulib-tests): Likewise.
4177         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4178         Define with "=" instead of ":=".
4179         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4180         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4181         * Rules (binaries-all-notests): New variable.
4182         (binaries-all-tests): Likewise.
4183         (binaries-static-notests): Likewise.
4184         (binaries-static-tests): Likewise.
4185         (binaries-all): Define using $(binaries-all-notests) and
4186         $(binaries-all-tests).
4187         (binaries-static): Define using $(binaries-static-notests) and
4188         $(binaries-static-tests).
4189         (binaries-shared-tests): New variable.
4190         (binaries-shared-notests): Likewise.
4191         (binaries-shared): Remove variable.
4192         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4193         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4194         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4195         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4196         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4197         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4198         * elf/Makefile (sln-modules): New variable.
4199         (extra-objs): Add $(sln-modules:=.o).
4200         (ldconfig-modules): Add static-stubs.
4201         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4202         * elf/static-stubs.c: New file.
4203
4204         [BZ #14283]
4205         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4206         by 7 not 8 to examine high bit of fractional part.  Use volatile
4207         variables when splitting into final array of floats if
4208         __FLT_EVAL_METHOD__ != 0.
4209         * math/libm-test.inc (cos_test): Add another test.
4210         (sin_test): Likewise.
4211         * sysdeps/i386/fpu/libm-test-ulps: Update.
4212
4213         [BZ #14273]
4214         * math/libm-test.inc (cosh_test): Add more tests.
4215
4216         * version.h (RELEASE): Set to "development".
4217         (VERSION): Set to "2.16.90".
4218
4219 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4220
4221         * NEWS: Update copyright. Remove last-updated date.
4222         Mention math library bug fixes and timezone data changes.
4223         * README: Mention GNU/Hurd, x32, and HPPA support status.
4224
4225 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4226
4227         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4228
4229 2012-06-27  Andreas Jaeger  <aj@suse.de>
4230
4231         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4232
4233 2012-06-25  Andreas Jaeger  <aj@suse.de>
4234
4235         * sysdeps/s390/fpu/libm-test-ulps: Update.
4236
4237 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4238             Thomas Schwinge  <thomas@codesourcery.com>
4239
4240         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4241         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4242         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4243         fanotify_mark.
4244
4245 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4246
4247         * sysdeps/mach/start.c: Remove file.
4248         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4249         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4250         * sysdeps/sh/init-first.c: Likewise.
4251
4252         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4253         registers for frame unwinding purposes, add CFI directives.
4254         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4255         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4256         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4257         Likewise.
4258
4259         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4260         __fortify_fail returning.
4261         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4262
4263         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4264         sysdeps/sh/____longjmp_chk.S.
4265         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4266         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4267         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4268         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4269
4270         * sysdeps/sh/abort-instr.h: New file.
4271         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4272         process in case exit returns.
4273
4274         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4275         initialize the GOT register before use.
4276
4277         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4278         calculation of ARGC > 4.
4279
4280         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4281         meaningful names to some local labels.
4282
4283 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4284             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4285
4286         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4287         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4288         (__arch_compare_and_exchange_val_16_acq): Likewise.
4289         (__arch_compare_and_exchange_val_32_acq): Likewise.
4290         (atomic_exchange_and_add): Fix gUSA sequence.
4291         (atomic_add): Likewise.
4292         (atomic_add_negative): Likewise.
4293         (atomic_add_zero): Likewise.
4294         (atomic_bit_test_set): Likewise.
4295
4296 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4297
4298         [BZ #13579]
4299         * include/link.h (struct link_map): Add l_free_initfini.
4300         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4301         l_initfini.
4302         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4303         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4304         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4305         set.
4306
4307 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4308
4309         * configure.in: Use AC_LANG_SOURCE.
4310         * configure: Regenerate.
4311
4312 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4313
4314         * configure.in (libc_cv_localstatedir): New substituted variable.
4315         * configure: Regenerated.
4316         * config.make.in (localstatedir): New variable, substituted from
4317         libc_cv_localstatedir.
4318         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4319         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4320         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4321         * sysdeps/gnu/configure: Regenerated.
4322
4323 2012-06-21  Jeff Law  <law@redhat.com>
4324
4325         [BZ #14277]
4326         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4327         free.  Simplify list management for _LIBC case.
4328
4329 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4330
4331         [BZ #14273]
4332         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4333         Clear sign bit of 64-bit integer value before comparing against
4334         overflow value.
4335
4336         * sysdeps/mach/configure: Regenerated.
4337
4338 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4339
4340         [BZ #14278]
4341         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4342
4343 2012-06-21  Jeff Law  <law@redhat.com>
4344
4345         [BZ #13882]
4346         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4347         uint16_t for elements in the "seen" array to avoid char overflows.
4348         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4349         * elf/dl-open.c (dl_open_worker): Likewise.
4350
4351 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4352
4353         * scripts/list-sources.sh: Scan PORTS for translations.
4354         * po/libc.pot: Regenerated.
4355
4356 2012-06-21  Andreas Jaeger  <aj@suse.de>
4357
4358         [BZ #12194]
4359         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4360         warning.
4361         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4362         * bits/byteswap-16.h (__bswap_16): Likewise.
4363         * bits/byteswap.h (__bswap_constant_16): Likewise.
4364
4365 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4366
4367         [BZ #14117]
4368         * sysdeps/i386/fpu_control.h: Removed.
4369         * sysdeps/x86_64/fpu_control.h: Moved to ...
4370         * sysdeps/x86/fpu_control.h: Here.
4371
4372         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4373         (_FPU_SETCW): Likewise.
4374
4375 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4376
4377         [BZ #14117]
4378         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4379         * sysdeps/x86/fpu/bits/mathinline.h: This.
4380         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4381
4382         [BZ #14050]
4383         [BZ #14117]
4384         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4385         functions if __x86_64__ is defined.
4386
4387 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4388
4389         * string/endian.h: Add !__ASSEMBLER__ condition for including
4390         conversion interfaces.
4391
4392 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4393
4394         [BZ #14241]
4395         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4396         of ABS(x) in calculating zero to negative powers other than odd
4397         integers.
4398         * math/libm-test.inc (pow_test): Add more tests.
4399
4400 2012-06-15  Andreas Jaeger  <aj@suse.de>
4401
4402         * manual/contrib.texi (Contributors): Update entry of Liubov
4403         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4404         Machado Filho.
4405
4406 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4407
4408         * string/string.h: Add __wur to GNU version of strerror_r.
4409
4410 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4411
4412         [BZ #14229]
4413         * string/Makefile (tests): Add tst-strtok_r.
4414         * string/tst-strtok_r.c: New file.
4415         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4416         RAX_LP/RDX_LP on SAVE_PTR.
4417
4418 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4419
4420         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4421
4422 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4423
4424         * libm_test.inc (csqrt_test): Allow more spurious underflow
4425         exceptions.
4426         (j0_test): Likewise.
4427         (j1_test): Likewise.
4428         (y0_test): Likewise.
4429         (y1_test): Likewise.
4430
4431 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4432
4433         * po/Makefile (libc.pot): Use UTF-8 charset.
4434
4435 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4436
4437         [BZ #14210]
4438         Suppress sign-conversion warning from FD_SET.
4439         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4440         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4441         not unsigned long int.
4442         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4443
4444 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4445
4446         [BZ #14050]
4447         [BZ #14117]
4448         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4449         __extern_always_inline instead of __extern_inline.
4450         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4451         (__signbit): Likewise.
4452         (__signbitl): Support C++ namespace.
4453         (lrintf): New inline function.
4454         (lrint): Likewise.
4455         (llrintf): Likewise.
4456         (llrint): Likewise.
4457         (fmaxf): Likewise.
4458         (fmax): Likewise.
4459         (fminf): Likewise.
4460         (fmin): Likewise.
4461         (rint): Likewise.
4462         (rintf): Likewise.
4463         (ceil): Likewise.
4464         (ceilf): Likewise.
4465         (floor): Likewise.
4466         (floorf): Likewise.
4467         (nearbyint): Likewise.
4468         (nearbyintf): Likewise.
4469
4470 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4471
4472         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4473         non-default versions.
4474
4475 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4476
4477         [BZ #14218]
4478         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4479
4480 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4481
4482         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4483         (FE_UPWARD, FE_DOWNWARD): Don't define.
4484         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4485         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4486
4487         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4488         reading it.
4489         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4490         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4491
4492 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4493
4494         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4495         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4496         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4497         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4498
4499 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4500
4501         [BZ #14117]
4502         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4503         * sysdeps/i386/fpu/Implies: New file.
4504         * sysdeps/x86_64/fpu/Implies: Likewise.
4505         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4506         * sysdeps/x86/fpu/bits/fenv.h: This.
4507
4508         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4509         __SSE_MATH__.
4510
4511 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4512
4513         [BZ #14134]
4514         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4515         character 0xffff that matches the last element of the
4516         conversion table.
4517
4518 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4519
4520         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4521         fmodl commit.
4522
4523 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4524
4525         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4526         values higher than 25.6283.
4527
4528 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4529
4530         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4531         subnormal exponent extraction and add some __builtin_expect.
4532         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4533         Fix for subnormal mantissa calculation.
4534
4535 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4536
4537         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4538         cpu2 is -1 and errno is not ENOSYS.
4539
4540 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4541
4542         [BZ #14117]
4543         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4544         * sysdeps/x86/bits/string.h: This.
4545         * sysdeps/x86_64/bits/string.h: Removed.
4546
4547         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4548         if not compiling for x86-64, but compiling for >= i486.
4549
4550         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4551         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4552
4553         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4554         New macro from Linux kernel 3.4.0.
4555         (FP_XSTATE_MAGIC2): Likewise.
4556         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4557         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4558         (struct _fpx_sw_bytes): New struct.
4559         (struct _xsave_hdr): Likewise.
4560         (struct _ymmh_state): Likewise.
4561         (struct _xstate): Likewise.
4562
4563         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4564         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4565         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4566         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4567         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4568         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4569
4570         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4571         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4572         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4573         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4574         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4575         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4576
4577 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4578
4579         [BZ #13743]
4580         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4581         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4582         (sysdep_headers): Include sys/platform/ppc.h.
4583         * sysdeps/powerpc/test-gettimebase.c: Test for
4584         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4585         * manual/Makefile (appendices): Include platform.texi.
4586         * manual/contrib.texi (Contributors): Update @node pointers.
4587         * manual/maint.texi (Maintenance): Likewise.
4588         (Platform): New node.
4589         * manual/platform.texi: New file.  Document the new features.
4590
4591 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4592             Jakub Jelinek  <jakub@redhat.com>
4593
4594         [BZ #14188]
4595         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4596         where __builtin_expect is unavailable.
4597
4598 2012-06-03  David S. Miller  <davem@davemloft.net>
4599
4600         * stdlib/longlong.h: Updated from GCC.
4601
4602 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4603
4604         [BZ #14042]
4605         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4606         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4607         __mcount_internal.
4608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4609         (GLIBC_2.16): Likewise.
4610
4611 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4612
4613         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4614
4615 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4616
4617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4618         (default-abi): New variable.
4619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4620         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4621         variable.
4622         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4623         Likewise.
4624         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4625         Likewise.
4626         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4627         Likewise.
4628
4629         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4630         definition.  Document in comment.
4631
4632 2012-06-01  David S. Miller  <davem@davemloft.net>
4633
4634         * stdlib/longlong.h: Updated from GCC.
4635
4636 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4637
4638         [BZ #14117]
4639         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4640         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4641         sys/debugreg.h sys/io.h here.
4642         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4643         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4644         sys/io.h.
4645         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4646         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4647         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4648         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4649         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4650         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4651
4652         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4653         Define only if __x86_64__ is defined.
4654
4655 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4656
4657         [BZ #14048]
4658         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4659         Use int64_t for variable i.
4660         * math/libm-test.inc (fmod_test): Add more tests.
4661
4662         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4663         z computation is not scheduled after fetestexcept.
4664         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4665         Use math_force_eval instead of asm to ensure calculation scheduled
4666         before exception test.
4667         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4668         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4669
4670 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4671
4672         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4673         computation is not scheduled after fetestexcept.
4674
4675 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4676
4677         [BZ #14117]
4678         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4679         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4680
4681 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4682
4683         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4684         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4685
4686 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4687
4688         [BZ #14117]
4689         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4690         <bits/wordsize.h>.
4691         (__WCHAR_MIN): Support __WORDSIZE == 64.
4692         (__WCHAR_MAX): Likewise.
4693
4694         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4695         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4696
4697         [BZ #14183]
4698         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4699         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4700
4701         [BZ #14117]
4702         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4703         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4704
4705         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4706         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4707
4708         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4709         Defined to 1 if __x86_64__ isn't defined.
4710         (_STAT_VER_LINUX_OLD): New.
4711         (st_atime): Remove duplicate.
4712         (st_mtime): Likewise.
4713         (st_ctime): Likewise.
4714
4715 2012-05-31  David S. Miller  <davem@davemloft.net>
4716
4717         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4718         entries.
4719
4720 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4721
4722         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4723         gen-libm-test.pl.
4724
4725         [BZ #14132]
4726         * elf/dl-reloc.c: Include <_itoa.h>.
4727         (_dl_reloc_bad_type): Remove use of INTUSE.
4728         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4729         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4730         * stdio-common/psiginfo.c (psiginfo): Likewise.
4731         * stdio-common/psignal.c (psignal): Likewise.
4732         * string/strsignal.c (strsignal): Likewise.
4733         * include/signal.h (_sys_siglist): Declare hidden proto.
4734         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4735         INTVARDEF with libc_hidden_data_def.
4736         * stdio-common/itoa-udigits.c: Likewise.
4737         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4738         (_itoa_lower_digits_internal): Remove declaration.
4739         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4740         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4741         (_sys_sigabbrev_internal): Remove aliases.
4742         (_sys_siglist): Define hidden alias.
4743
4744 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4745
4746         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4747         bits/sysctl.h.
4748
4749 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4750
4751         [BZ #14117]
4752         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4753         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4754
4755         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4756         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4757         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4758         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4759         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4760         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4761
4762         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4763         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4764         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4765
4766         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4767         with __addr.
4768         (insw): Likewise.
4769         (insl): Likewise.
4770         (outsb): Likewise.
4771         (outsw): Likewise.
4772         (outsl): Likewise.
4773
4774         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4775         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4776         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4777
4778         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4779         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4780         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4781         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4782         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4783         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4784
4785         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4786         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4787
4788         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4789         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4790
4791         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4792         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4793         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4794
4795         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4796         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4797         to ...
4798         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4799
4800         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4801         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4802         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4803
4804         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4805         for x86-64.
4806         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4807
4808 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4809
4810         * math/math.h (M_El): Use two more decimal places.
4811         (M_LOG2El): Likewise.
4812         (M_LOG10El): Likewise.
4813         (M_LN2l): Likewise.
4814         (M_LN10l): Likewise.
4815         (M_PIl): Likewise.
4816         (M_PI_2l): Likewise.
4817         (M_PI_4l): Likewise.
4818         (M_1_PIl): Likewise.
4819         (M_2_PIl): Likewise.
4820         (M_2_SQRTPIl): Likewise.
4821         (M_SQRT2l): Likewise.
4822         (M_SQRT1_2l): Likewise.
4823
4824 2012-05-31  David S. Miller  <davem@davemloft.net>
4825
4826         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4827         values between float registers.
4828         * sysdeps/sparc/sparc64/memset.S: Likewise.
4829         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4830
4831 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4832
4833         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4834         -D_FORTIFY_SOURCE=1.
4835         (CPPFLAGS-tst-longjmp_chk.c): Define.
4836         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4837         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4838         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4839         CFLAGS-tst-wchar-h.c.
4840
4841 2012-05-31  Marek Polacek  <polacek@redhat.com>
4842
4843         [BZ #14132]
4844         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4845         __endmntent_internal): Remove declaration.
4846         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4847         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4848         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4849
4850 2012-05-30  David S. Miller  <davem@davemloft.net>
4851
4852         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4853         (___Q_simulate_exceptions): Use real FP ops rather than writing
4854         into the %fsr.
4855         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4856         Likewise.
4857
4858 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4859
4860         [BZ #14117]
4861         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4862         * sysdeps/x86/bits/xtitypes.h: This.
4863
4864         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4865         * sysdeps/x86/bits/wordsize.h: This.
4866
4867         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4868         * sysdeps/x86/bits/huge_vall.h: This.
4869
4870         * sysdeps/i386/bits/select.h: Removed.
4871         * sysdeps/x86_64/bits/select.h: Renamed to ...
4872         * sysdeps/x86/bits/select.h: This.
4873
4874         * sysdeps/i386/bits/setjmp.h: Removed.
4875         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4876         * sysdeps/x86/bits/setjmp.h: This.
4877
4878         * sysdeps/i386/bits/mathdef.h: Removed.
4879         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4880         * sysdeps/x86/bits/mathdef.h: This.
4881
4882 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4883
4884         [BZ #14132]
4885         * include/sys/socket.h (__connect_internal)
4886         (__libc_sa_len_internal): Remove declaration.
4887         (__connect, __libc_sa_len): Declare hidden_proto.
4888         (SA_LEN): Remove use of INTUSE.
4889         * socket/connect.c: Add libc_hidden_def.
4890         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4891         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4892         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4893         alias.
4894         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4895         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4896         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4897         of adding _internal alias.
4898
4899 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4900
4901         [BZ #14117]
4902         * sysdeps/i386/bits/link.h: Removed.
4903         * sysdeps/i386/bits/linkmap.h: Likewise.
4904         * sysdeps/x86_64/bits/link.h: Renamed to ...
4905         * sysdeps/x86/bits/link.h: This.
4906         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4907         * sysdeps/x86/bits/linkmap.h: This.
4908
4909         * sysdeps/i386/bits/endian.h: Removed.
4910         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4911         * sysdeps/x86/bits/endian.h: This.
4912
4913         * sysdeps/i386/bits/byteswap.h: Removed.
4914         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4915         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4916         * sysdeps/x86/bits/byteswap.h: This.
4917         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4918         * sysdeps/x86/bits/byteswap-16.h: This.
4919         * sysdeps/i386/Implies: Add x86.
4920         * sysdeps/x86_64/Implies: Likewise.
4921
4922 2012-05-30  David S. Miller  <davem@davemloft.net>
4923
4924         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4925         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4926         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4927         (FP_TRAPPING_EXCEPTIONS): Define.
4928         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4929         (FP_TRAPPING_EXCEPTIONS): Define.
4930         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4931         subnormals only when inexact has been signalled or underflow
4932         exceptions are enabled.
4933         (_FP_PACK_CANONICAL): Likewise.
4934
4935 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4936
4937         [BZ #14183]
4938         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4939         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4940
4941 2012-05-30  Richard Henderson  <rth@twiddle.net>
4942
4943         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4944         with #ifndef NOT_IN_libc.
4945
4946         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4947         marked to avoid plt entry.
4948
4949 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4950
4951         [BZ #14112]
4952         * Makeconfig (default-abi): New macro.
4953         (abi-includes): Likewise.
4954         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4955         $(abi-$(default-abi)-lib-soname) for soname if defined.
4956         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4957         abi-variants.
4958         * Makefile (installed-stubs): Likewise.
4959         * include/stubs-biarch.h: Removed.
4960         * scripts/lib-names.awk: Only handle one library at a time.
4961         * scripts/soversions.awk: Remove WORDSIZE support.
4962         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4963         entries.
4964         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4965         Removed.
4966         (syscall-list-default-condition): Likewise.
4967         (syscall-list-default-condition): Likewise.
4968         (syscall-list-includes): Likewise.
4969         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4970         syscall-list-* with abi-*.  Handle undefined abi-variants.
4971         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4972         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4973         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4974         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
4975         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
4976         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
4977         Removed.
4978         (syscall-list-32-options): Likewise.
4979         (syscall-list-32-condition): Likewise.
4980         (syscall-list-64-options): Likewise.
4981         (syscall-list-64-condition): Likewise.
4982         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
4983         macro.
4984         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
4985         Renamed to ...
4986         (abi-*): This.
4987         (abi-64-ld-soname): New macro.
4988         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
4989         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
4990         Renamed to ...
4991         (abi-*): This.
4992         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
4993         * sysdeps/x86_64/x32/shlib-versions: Likewise.
4994
4995 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
4996
4997         * sysdeps/unix/sysv/linux/kernel-features.h
4998         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
4999         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5000         include <kernel-features.h>.
5001         [!__NR_ftruncate64]: Remove conditional code.
5002         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5003         [__NR_ftruncate64]: Make code unconditional.
5004         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5005         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5006         include <kernel-features.h>.
5007         [!__NR_ftruncate64]: Remove conditional code.
5008         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5009         [__NR_ftruncate64]: Make code unconditional.
5010         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5012         include <kernel-features.h>.
5013         [!__NR_ftruncate64]: Remove conditional code.
5014         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5015         [__NR_ftruncate64]: Make code unconditional.
5016         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5018         include <kernel-features.h>.
5019         [!__NR_ftruncate64]: Remove conditional code.
5020         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5021         [__NR_ftruncate64]: Make code unconditional.
5022         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5023
5024         * configure.in (libc_cv_fpie): Weaken to a compile test using
5025         LIBC_TRY_CC_OPTION.
5026         * configure: Regenerated.
5027
5028 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5029
5030         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5031         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5032         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5033         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5034         Refreshed.
5035         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5036         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5037         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5038         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5039         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5040         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5041         Refreshed.
5042
5043 2012-05-27  David S. Miller  <davem@davemloft.net>
5044
5045         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5046         (___Q_zero): New.
5047         (__Q_simulate_exceptions): Return void.  Change to simulate
5048         exceptions by writing into the %fsr.
5049         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5050         (__Qp_handle_exceptions): Likewise.
5051         (numbers): Delete.
5052         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5053         __Qp_handle_exceptions.
5054         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5055         __Qp_handle_exceptions.
5056         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5057         as unused and give dummy FP_RND_NEAREST initializer.
5058         (FP_INHIBIT_RESULTS): Define.
5059         (___Q_simulate_exceptions): Update declaration.
5060         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5061         formatting.
5062         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5063         as unused and give dummy FP_RND_NEAREST initializer.
5064         (__Qp_handle_exceptions): Update declaration.
5065         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5066         formatting.
5067
5068 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5069
5070         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5071         the temporary FPU control word.
5072         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5073         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5074         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5075         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5076         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5077         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5078         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5079         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5080         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5081         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5082         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5083
5084 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5085
5086         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5087         fields.
5088
5089 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5090
5091         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5092         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5093         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5094         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5095         Likewise.
5096         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5097         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5098         Likewise.
5099
5100 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5101
5102         * po/h.po: Update from translation team.
5103
5104 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5105
5106         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5107
5108         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5109         handling of denormals.
5110         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5111         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5112         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5113         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5114         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5115         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5116         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5117         Likewise.
5118
5119 2012-05-26  Marek Polacek  <polacek@redhat.com>
5120
5121         [BZ #14152]
5122         * math/libm-test.inc (fma_test): Don't always expect underflow
5123         exception.
5124
5125 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5126
5127         [BZ #12416]
5128         * elf/tst-execstack.c: Include stackinfo.h.
5129         (do_test): Adjust test case to ensure that pthread_getattr_np
5130         behaviour remains the same after marking stack executable.
5131
5132 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5133
5134         * sysdeps/unix/sysv/linux/kernel-features.h
5135         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5136         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5137         kernel-features.h.
5138         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5139         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5140         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5141         kernel-features.h.
5142         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5143         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5144
5145 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5146
5147         * configure.in: Define the default includes to being none.
5148         * configure: Regenerated.
5149
5150 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5151
5152         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5153         * sysdeps/x86_64/setjmp.S: Likewise.
5154         * sysdeps/i386/bsd-setjmp.S: Likewise.
5155         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5156         * sysdeps/i386/setjmp.S: Likewise.
5157         * sysdeps/i386/__longjmp.S: Likewise.
5158         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5159         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5160
5161         * include/stap-probe.h: New file.
5162         * configure.in: Handle --enable-systemtap.
5163         * configure: Regenerated.
5164         * config.h.in (USE_STAP_PROBE): New #undef.
5165         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5166         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5167         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5168
5169 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5170
5171         [BZ #13717]
5172         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5173         to 2.4.0 where earlier.
5174         * sysdeps/unix/sysv/linux/configure: Regenerated.
5175         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5176         <kernel-features.h>.
5177         [__ASSUME_32BITUIDS]: Make code unconditional.
5178         [!__ASSUME_32BITUIDS]: Remove conditional code.
5179         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5180         <kernel-features.h>.
5181         [__ASSUME_32BITUIDS]: Make code unconditional.
5182         [!__ASSUME_32BITUIDS]: Remove conditional code.
5183         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5184         [__ASSUME_32BITUIDS]: Make code unconditional.
5185         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5186         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5187         <kernel-features.h>.
5188         [__ASSUME_32BITUIDS]: Make code unconditional.
5189         [!__ASSUME_32BITUIDS]: Remove conditional code.
5190         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5191         <kernel-features.h>.
5192         [__ASSUME_32BITUIDS]: Make code unconditional.
5193         [!__ASSUME_32BITUIDS]: Remove conditional code.
5194         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5195         <kernel-features.h>.
5196         [__ASSUME_32BITUIDS]: Make code unconditional.
5197         [!__ASSUME_32BITUIDS]: Remove conditional code.
5198         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5199         <kernel-features.h>.
5200         [__ASSUME_32BITUIDS]: Make code unconditional.
5201         [!__ASSUME_32BITUIDS]: Remove conditional code.
5202         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5203         <kernel-features.h>.
5204         [__ASSUME_32BITUIDS]: Make code unconditional.
5205         [!__ASSUME_32BITUIDS]: Remove conditional code.
5206         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5207         <kernel-features.h>.
5208         [__ASSUME_32BITUIDS]: Make code unconditional.
5209         [!__ASSUME_32BITUIDS]: Remove conditional code.
5210         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5211         <kernel-features.h>.
5212         [__ASSUME_32BITUIDS]: Make code unconditional.
5213         [!__ASSUME_32BITUIDS]: Remove conditional code.
5214         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5215         <kernel-features.h>.
5216         [__ASSUME_32BITUIDS]: Make code unconditional.
5217         [!__ASSUME_32BITUIDS]: Remove conditional code.
5218         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5219         <kernel-features.h>.
5220         [__ASSUME_32BITUIDS]: Make code unconditional.
5221         [!__ASSUME_32BITUIDS]: Remove conditional code.
5222         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5223         <kernel-features.h>.
5224         [__ASSUME_32BITUIDS]: Make code unconditional.
5225         [!__ASSUME_32BITUIDS]: Remove conditional code.
5226         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5227         <kernel-features.h>.
5228         [__NR_setresgid] (__setresgid): Do not declare.
5229         [__ASSUME_32BITUIDS]: Make code unconditional.
5230         [!__ASSUME_32BITUIDS]: Remove conditional code.
5231         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5232         <kernel-features.h>.
5233         [__NR_setresuid] (__setresuid): Do not declare.
5234         [__ASSUME_32BITUIDS]: Make code unconditional.
5235         [!__ASSUME_32BITUIDS]: Remove conditional code.
5236         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5237         <kernel-features.h>.
5238         [__ASSUME_32BITUIDS]: Make code unconditional.
5239         [!__ASSUME_32BITUIDS]: Remove conditional code.
5240         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
5241         <kernel-features.h>.
5242         [__ASSUME_32BITUIDS]: Make code unconditional.
5243         [!__ASSUME_32BITUIDS]: Remove conditional code.
5244         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5245         <kernel-features.h>.
5246         [__ASSUME_32BITUIDS]: Make code unconditional.
5247         [!__ASSUME_32BITUIDS]: Remove conditional code.
5248         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5249         <kernel-features.h>.
5250         [__ASSUME_32BITUIDS]: Make code unconditional.
5251         [!__ASSUME_32BITUIDS]: Remove conditional code.
5252         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5253         <kernel-features.h>.
5254         [__ASSUME_32BITUIDS]: Make code unconditional.
5255         [!__ASSUME_32BITUIDS]: Remove conditional code.
5256         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5257         <kernel-features.h>.
5258         [__ASSUME_32BITUIDS]: Make code unconditional.
5259         [!__ASSUME_32BITUIDS]: Remove conditional code.
5260         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5261         <kernel-features.h>.
5262         [__ASSUME_32BITUIDS]: Make code unconditional.
5263         [!__ASSUME_32BITUIDS]: Remove conditional code.
5264         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5265         <kernel-features.h>.
5266         [__ASSUME_32BITUIDS]: Make code unconditional.
5267         [!__ASSUME_32BITUIDS]: Remove conditional code.
5268         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5269         <kernel-features.h>.
5270         [__ASSUME_32BITUIDS]: Make code unconditional.
5271         [!__ASSUME_32BITUIDS]: Remove conditional code.
5272         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5273         <kernel-features.h>.
5274         [__ASSUME_32BITUIDS]: Make code unconditional.
5275         [!__ASSUME_32BITUIDS]: Remove conditional code.
5276         * sysdeps/unix/sysv/linux/kernel-features.h
5277         (__ASSUME_SETRESUID_SYSCALL): Remove.
5278         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5279         (__ASSUME_32BITUIDS): Likewise.
5280         (__ASSUME_LDT_WORKS): Likewise.
5281         (__ASSUME_O_DIRECTORY): Likewise.
5282         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5283         architecture but not kernel version.
5284         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5285         (__ASSUME_MMAP2_SYSCALL): Likewise.
5286         (__ASSUME_STAT64_SYSCALL): Likewise.
5287         (__ASSUME_IPC64): Likewise.
5288         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5289         <kernel-features.h>.
5290         [__ASSUME_32BITUIDS]: Make code unconditional.
5291         [!__ASSUME_32BITUIDS]: Remove conditional code.
5292         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5293         <kernel-features.h>.
5294         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5295         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5296         132096]: Remove conditional code.
5297         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5298         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5299         <kernel-features.h>.
5300         [__ASSUME_32BITUIDS]: Make code unconditional.
5301         [!__ASSUME_32BITUIDS]: Remove conditional code.
5302         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5303         <kernel-features.h>.
5304         [__ASSUME_32BITUIDS]: Make code unconditional.
5305         [!__ASSUME_32BITUIDS]: Remove conditional code.
5306         * sysdeps/unix/sysv/linux/setegid.c: Do not include
5307         <kernel-features.h>.
5308         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5309         unconditional.
5310         (__setresgid): Do not declare.
5311         [__ASSUME_32BITUIDS]: Make code unconditional.
5312         [!__ASSUME_32BITUIDS]: Remove conditional code.
5313         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5314         <kernel-features.h>.
5315         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5316         unconditional.
5317         (__setresuid): Do not declare.
5318         [__ASSUME_32BITUIDS]: Make code unconditional.
5319         [!__ASSUME_32BITUIDS]: Remove conditional code.
5320         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5321         <kernel-features.h>.
5322         [__ASSUME_32BITUIDS]: Make code unconditional.
5323         [!__ASSUME_32BITUIDS]: Remove conditional code.
5324         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5325         <kernel-features.h>.
5326         [__ASSUME_32BITUIDS]: Make code unconditional.
5327         [!__ASSUME_32BITUIDS]: Remove conditional code.
5328
5329 2012-05-25  Richard Henderson  <rth@twiddle.net>
5330
5331         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5332         dl_hwcap to ifunc resolver.
5333         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5334         elf_ifunc_invoke.
5335         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5336         dl_hwcap to ifunc resolver.
5337         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5338
5339 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5340
5341         [BZ #14153]
5342         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5343         for |x| <= 2**-26, not 2**-57.
5344         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5345         exception.
5346
5347 2012-05-24  Jeff Law  <law@redhat.com>
5348
5349         * stdio-common/Makefile (tests): Add bug25.
5350         * stdio-common/bug25.c: New test.
5351
5352 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5353
5354         [BZ #13576]
5355         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5356         multiple of MALLOC_ALIGNMENT in size.
5357         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5358
5359 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5360
5361         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5362         Require >= 256.
5363         (FILENAME_MAX): Use macro-int-constant.
5364         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5365         (_IOFBF): Use macro-int-constant.
5366         (_IOLBF): Likewise.
5367         (_IONBF): Likewise.
5368         (SEEK_CUR): Likewise.
5369         (SEEK_END): Likewise.
5370         (SEEK_SET): Likewise.
5371         (TMP_MAX): Likewise.
5372         (EOF): Use macro-int-constant.  Require < 0.
5373         (NULL): Use macro-constant.  Require == 0.
5374         (stdin): Require type to be FILE *.
5375         (stdout): Likewise.
5376         (stderr): Likewise.
5377         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5378         macro-int-constant.
5379         (EXIT_SUCCESS): Likewise.
5380         (NULL): Use macro-constant.  Require == 0.
5381         (RAND_MAX): Use macro-int-constant.
5382         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5383         [C99-based standards] (strtof): Require function.
5384         [C99-based standards] (strtold): Likewise.
5385         [C99-based standards] (strtoll): Likewise.
5386         [C99-based standards] (strtoull): Likewise.
5387         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5388         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5389         [ISO || ISO99 || ISO11] (math.h): Likewise.
5390         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5391         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5392         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5393
5394 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5395
5396         [BZ #14132]
5397         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5398         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5399         * intl/dgettext.c (DCGETTEXT): Likewise.
5400         * intl/gettext.c (DCGETTEXT): Likewise.
5401         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5402         * posix/regex_internal.h (gettext): Likewise.
5403         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5404         Remove declaration.
5405         * include/argz.h (__argz_count_internal)
5406         (__argz_stringify_internal): Remove declaration.
5407         (__argz_count, __argz_stringify): Declare hidden proto.
5408         * intl/dcgettext.c: Remove use of INTDEF.
5409         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5410         * string/argz-stringify.c: Likewise.
5411         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5412         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5413         Declare hidden proto.
5414         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5415         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5416         Declare hidden proto.
5417         * include/stdio.h (__asprintf_internal): Don't declare.
5418         (__asprintf): Don't define as macro.  Declare hidden proto.
5419         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5420         (__fsetlocking): Declare hidden proto.
5421         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5422         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5423         hidden proto.
5424         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5425         (_IO_setlinebuf): Remove use of INTUSE.
5426         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5427         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5428         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5429         Remove declaration.
5430         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5431         (_IO_do_flush): Remove use of INTUSE.
5432         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5433         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5434         (_IO_adjust_column, _IO_least_wmarker)
5435         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5436         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5437         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5438         (_IO_default_doallocate, _IO_wdefault_doallocate)
5439         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5440         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5441         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5442         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5443         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5444         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5445         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5446         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5447         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5448         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5449         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5450         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5451         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5452         proto.
5453         (_IO_flush_all_internal, _IO_adjust_column_internal)
5454         (_IO_default_uflow_internal, _IO_default_finish_internal)
5455         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5456         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5457         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5458         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5459         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5460         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5461         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5462         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5463         (_IO_file_close_internal, _IO_file_close_it_internal)
5464         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5465         (_IO_file_init_internal, _IO_file_attach_internal)
5466         (_IO_file_fopen_internal, _IO_file_read_internal)
5467         (_IO_file_sync_internal, _IO_file_seek_internal)
5468         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5469         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5470         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5471         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5472         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5473         (_IO_list_all_internal, _IO_link_in_internal)
5474         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5475         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5476         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5477         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5478         (_IO_do_write_internal, _IO_padn_internal)
5479         (_IO_getline_info_internal, _IO_getline_internal)
5480         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5481         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5482         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5483         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5484         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5485         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5486         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5487         with libc_hidden_ver, remove use of INTUSE.
5488         * libio/genops.c: Likewise.
5489         * libio/freopen.c: Likewise.
5490         * libio/freopen64.c: Likewise.
5491         * libio/iofclose.c: Likewise.
5492         * libio/iofdopen.c: Likewise.
5493         * libio/iofflush.c: Likewise.
5494         * libio/iofflush_u.c: Likewise.
5495         * libio/iofgets.c: Likewise.
5496         * libio/iofgets_u.c: Likewise.
5497         * libio/iofopen.c: Likewise.
5498         * libio/iofopncook.c: Likewise.
5499         * libio/iofread.c: Likewise.
5500         * libio/iofread_u.c: Likewise.
5501         * libio/ioftell.c: Likewise.
5502         * libio/iofwrite.c: Likewise.
5503         * libio/iogetline.c: Likewise.
5504         * libio/iogets.c: Likewise.
5505         * libio/iogetwline.c: Likewise.
5506         * libio/iopadn.c: Likewise.
5507         * libio/iopopen.c: Likewise.
5508         * libio/ioseekoff.c: Likewise.
5509         * libio/ioseekpos.c: Likewise.
5510         * libio/iosetbuffer.c: Likewise.
5511         * libio/iosetvbuf.c: Likewise.
5512         * libio/ioungetc.c: Likewise.
5513         * libio/ioungetwc.c: Likewise.
5514         * libio/iovdprintf.c: Likewise.
5515         * libio/iovsprintf.c: Likewise.
5516         * libio/iovsscanf.c: Likewise.
5517         * libio/memstream.c: Likewise.
5518         * libio/obprintf.c: Likewise.
5519         * libio/oldfileops.c: Likewise.
5520         * libio/oldiofclose.c: Likewise.
5521         * libio/oldiofdopen.c: Likewise.
5522         * libio/oldiofopen.c: Likewise.
5523         * libio/oldiopopen.c: Likewise.
5524         * libio/oldstdfiles.c: Likewise.
5525         * libio/putc.c: Likewise.
5526         * libio/setbuf.c: Likewise.
5527         * libio/setlinebuf.c: Likewise.
5528         * libio/stdfiles.c: Likewise.
5529         * libio/strops.c: Likewise.
5530         * libio/vasprintf.c: Likewise.
5531         * libio/vscanf.c: Likewise.
5532         * libio/vsnprintf.c: Likewise.
5533         * libio/vswprintf.c: Likewise.
5534         * libio/wfiledoalloc.c: Likewise.
5535         * libio/wfileops.c: Likewise.
5536         * libio/wgenops.c: Likewise.
5537         * libio/wmemstream.c: Likewise.
5538         * libio/wstrops.c: Likewise.
5539         * libio/__fpurge.c: Likewise.
5540         * libio/__fsetlocking.c: Likewise.
5541         * assert/assert.c: Likewise.
5542         * debug/fgets_chk.c: Likewise.
5543         * debug/fgets_u_chk.c: Likewise.
5544         * debug/fread_chk.c: Likewise.
5545         * debug/fread_u_chk.c: Likewise.
5546         * debug/gets_chk.c: Likewise.
5547         * debug/obprintf_chk.c: Likewise.
5548         * debug/vasprintf_chk.c: Likewise.
5549         * debug/vdprintf_chk.c: Likewise.
5550         * debug/vsnprintf_chk.c: Likewise.
5551         * debug/vsprintf_chk.c: Likewise.
5552         * malloc/mtrace.c: Likewise.
5553         * misc/error.c: Likewise.
5554         * misc/syslog.c: Likewise.
5555         * stdio-common/asprintf.c: Likewise.
5556         * stdio-common/fxprintf.c: Likewise.
5557         * stdio-common/getw.c: Likewise.
5558         * stdio-common/isoc99_fscanf.c: Likewise.
5559         * stdio-common/isoc99_scanf.c: Likewise.
5560         * stdio-common/isoc99_vfscanf.c: Likewise.
5561         * stdio-common/isoc99_vscanf.c: Likewise.
5562         * stdio-common/isoc99_vsscanf.c: Likewise.
5563         * stdio-common/printf-prs.c: Likewise.
5564         * stdio-common/printf_fp.c: Likewise.
5565         * stdio-common/printf_fphex.c: Likewise.
5566         * stdio-common/printf_size.c: Likewise.
5567         * stdio-common/putw.c: Likewise.
5568         * stdio-common/scanf.c: Likewise.
5569         * stdio-common/sprintf.c: Likewise.
5570         * stdio-common/tmpfile.c: Likewise.
5571         * stdio-common/vfprintf.c: Likewise.
5572         * stdio-common/vfscanf.c: Likewise.
5573         * stdlib/strfmon_l.c: Likewise.
5574         * sunrpc/openchild.c: Likewise.
5575         * sunrpc/xdr_stdio.c: Likewise.
5576         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5577         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5578
5579 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5580
5581         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5582
5583         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5584         in the third column, to generate for the shared library an IFUNC
5585         that uses _dl_vdso_vsym.
5586         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5587         * Makeconfig (object-suffixes-noshared): New variable.
5588
5589         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5590         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5591         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5592         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5593
5594         [BZ #14132]
5595         * include/sys/time.h (__gettimeofday): Remove macro.
5596         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5597         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5598         Remove INTDEF.
5599         (__gettimeofday): Add libc_hidden_def.
5600         (gettimeofday): Add libc_hidden_weak.
5601         * sysdeps/mach/gettimeofday.c: Likewise.
5602         * sysdeps/posix/gettimeofday.c: Likewise.
5603         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5604         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5605         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5606         (__gettimeofday_internal): Remove strong_alias.
5607         (__gettimeofday): Add libc_hidden_def.
5608         (gettimeofday): Add libc_hidden_weak.
5609         * sysdeps/unix/syscalls.list (gettimeofday):
5610         Remove __gettimeofday_internal alias.
5611
5612 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5613             H.J. Lu  <hongjiu.lu@intel.com>
5614
5615         [BZ #12495]
5616         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5617         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5618         (largebin_index_32_big): New.
5619         (largebin_index): Use it for 16-byte alignment.
5620         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5621         correction with front_misalign.
5622
5623 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5624
5625         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5626         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5627         Likewise.
5628         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5629         Likewise.
5630         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5631         Likewise.
5632         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5633         Likewise.
5634         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5635         Likewise.
5636         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5637         Likewise.
5638         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5639         Likewise.
5640         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5641         Likewise.
5642         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5643         Likewise.
5644         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5645         Likewise.
5646         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5647         Likewise.
5648         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5649         Likewise.
5650
5651         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5652         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5653
5654 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5655
5656         [BZ #10846]
5657         [BZ #14036]
5658         * math/libm-test.inc (exp_test): Add test from bug 14036.
5659         (pow_test): Add test from bug 10846.
5660
5661         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5662         and other flags.
5663         (special_function): Do not include flags in test name.
5664         (parse_args): Likewise.
5665         * sysdeps/i386/fpu/libm-test-ulps: Update.
5666         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5667         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5668         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5669         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5670
5671         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5672         exceptions.
5673         * math/libm-test.inc ("Philosophy"): Update comment about
5674         exception testing.
5675         (UNDERFLOW_EXCEPTION): New macro.
5676         (UNDERFLOW_EXCEPTION_OK): Likewise.
5677         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5678         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5679         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5680         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5681         (INVALID_EXCEPTION_OK): Update value.
5682         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5683         (OVERFLOW_EXCEPTION_OK): Likewise.
5684         (IGNORE_ZERO_INF_SIGN): Likewise.
5685         (test_exceptions): Handle underflow exceptions.
5686         (acos_test): Update for underflow exception expectations.
5687         (cexp_test): Likewise.
5688         (clog_test): Likewise.
5689         (clog10_test): Likewise.
5690         (csqrt_test): Likewise.
5691         (ctan_test): Likewise.
5692         (ctanh_test): Likewise.
5693         (exp_test): Likewise.
5694         (exp10_test): Likewise.
5695         (exp2_test): Likewise.
5696         (expm1_test): Likewise.
5697         (fma_test): Likewise.
5698         (j0_test): Likewise.
5699         (jn_test): Likewise.
5700         (nexttoward_test): Likewise.
5701         (pow_test): Likewise.
5702         (scalbn_test): Likewise.
5703         (scalbln_test): Likewise.
5704         (tan_test): Likewise.
5705         (y1_test): Likewise.
5706         * sysdeps/i386/fpu/libm-test-ulps: Update.
5707         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5708
5709 2012-05-23  David S. Miller  <davem@davemloft.net>
5710
5711         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5712         (__libc_sigaction): Remove unused local variables.
5713
5714 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5715
5716         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5717
5718 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5719
5720         mktime: avoid signed integer overflow
5721         * time/mktime.c (__mktime_internal): Do not mishandle the case
5722         where diff == INT_MIN.
5723
5724         mktime: simplify computation of average
5725         * time/mktime.c (ranged_convert): Use new time_t_avg function
5726         instead of rolling our own (probably-slower) code.
5727
5728         mktime: do not assume signed right shift propagates sign bit
5729         * time/mktime.c (isdst_differ): New static function.
5730         (__mktime_internal): No need to normalize tm_isdst now.
5731         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5732         tm_isdst values.
5733
5734         mktime: merge another wrapv change from gnulib
5735         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5736         from some compilers.
5737
5738         mktime: remove incorrect attempt at unusual arithmetics
5739         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5740         The code didn't really work on such machines anyway.
5741         (TYPE_MINIMUM): Assume two's complement.
5742         (twos_complement_arithmetic): Verify that long_int and time_t
5743         are two's complement (or unsigned, in the latter case).
5744
5745         mktime: check signed shifts on long_int and time_t, too
5746         * time/mktime.c (SHR): Check that shifts work as desired
5747         on the types long_int and time_t too, as SHR is used on
5748         such types.
5749
5750         mktime: do not assume 'long' is wide enough
5751         * time/mktime.c (verify): Move decl up.
5752         (long_int): New type.
5753         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5754         to remove assumption in the code that 'long' is wide enough to
5755         store year values.  This assumption is not true on x32 and on
5756         some non-glibc platforms.
5757
5758         mktime: merge wrapv change from gnulib
5759         * time/mktime.c (WRAPV): New macro.
5760         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5761         (guess_time_tm, __mktime_internal): Do not assume that signed
5762         integer overflow wraps around; modern compilers generate code
5763         where this assumption is no longer valid.
5764
5765 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5766
5767         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5768         Replace "jmp L(pseudo_end)" with "ret".
5769         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5770         Likewise.
5771
5772 2012-05-23  Andreas Jaeger  <aj@suse.de>
5773
5774         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5775         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5776
5777 2012-05-23  Andreas Jaeger  <aj@suse.de>
5778             Maximilian Attems  <max@stro.at>
5779
5780         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5781         New macros.
5782
5783 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5784
5785         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5786         code so that pseudo_end is just ret and the stack pointer is
5787         correct also for static library in error case.
5788
5789 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5790
5791         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5792         move to syscalls.list.
5793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5797
5798         * manual/install.texi (Running make install): Do not mention Linux
5799         kernel version for which pt_chown is not needed.
5800         (Linux): Do not mention problems with nscd with 2.0 kernels.
5801         * INSTALL: Regenerated.
5802
5803 2012-05-23  Andreas Jaeger  <aj@suse.de>
5804
5805         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5806         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5807         macro.
5808         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5809         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5810         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5811         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5812         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5813         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5814         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5815         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5816         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5817         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5818         * sysdeps/unix/sysv/linux/bits/in.h
5819         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5820
5821 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5822
5823         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5824         (PREPARE_VERSION): Just use assert instead, it will be elided
5825         under [NDEBUG] anyway.
5826
5827 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5828
5829         * sysdeps/unix/sysv/linux/Makefile: Include
5830         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5831         (sysdep_routines): Remove sysctl.
5832         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5833         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5834         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5835         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5836         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5837
5838 2012-05-22  Andreas Jaeger  <aj@suse.de>
5839
5840         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5841         that pseudo_end is just ret and the stack pointer is correct also
5842         for static library in error case.
5843
5844 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5845
5846         [BZ #14122]
5847         * nss/nsswitch.c (defconfig_entries): New variable.
5848         (__nss_database_lookup): Don't leak defconfig entries.
5849         (nss_parse_service_list): Don't leak on error paths.
5850         (free_database_entries): New function.
5851         (free_defconfig): New function.
5852         (free_mem): Move common code to free_database_entries.
5853
5854 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5855
5856         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5857         Add arch_prctl.
5858         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5859
5860         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5861         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5862         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5863         New macro.
5864         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5865         (INTERNAL_SYSCALL_TYPES): Likewise.
5866         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5867         (LOAD_REGS_TYPES_[1-6]): Likewise.
5868         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5869         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5870
5871 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5872
5873         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5874         copysignl for GLIBC_2_0.
5875         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5876         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5877         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5878         logbl for GLIBC_2_0.
5879         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5880         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5881
5882 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5883
5884         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5885         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5886
5887         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5888         Use "neg %eax".
5889
5890         * time/mktime.c: Update copyright years.
5891
5892 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5893
5894         mktime: merge comment-quoting-style change from gnulib
5895         * time/mktime.c: Quote 'like this' in comments.
5896         The GNU coding standards suggest that we no longer quote `like this',
5897         as "`" and "'" are typically rendered asymmetrically nowadays.
5898         The typical gnulib style is to quote 'like this' when quoting
5899         code, and "like this" when quoting English.
5900
5901         * time/mktime.c (compile-command): Add "-I.".
5902
5903         mktime: merge mktime-internal.h change from gnulib
5904         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5905
5906         mktime: merge time_r change from gnulib
5907         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5908
5909         mktime: merge DEBUG change from gnulib
5910         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5911         case system <time.h> has a #define.
5912
5913         mktime: merge <sys/types.h> change from gnulib
5914         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5915         since <time.t> is now guaranteed to define time_t.
5916
5917         mktime: merge HAVE_CONFIG_H change from gnulib
5918         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5919
5920 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5921
5922         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5923         Use "neg %eax".
5924
5925         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5926         __rlim_t cast.
5927         (struct rusage): Use anonymous union to pad each field to
5928         __syscall_slong_t.
5929
5930 2012-05-21  David S. Miller  <davem@davemloft.net>
5931
5932         * Makefules (o-iterator): Remove .s cases.
5933         (compile-command.s): Delete.
5934         (COMPILE.s): Delete.
5935         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5936
5937 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5938
5939         * configure.in (libc_cv_predef_stack_protector): Only consider
5940         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5941         * configure: Regenerated.
5942
5943 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5944
5945         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5946         New macro.  Use R*LP on int and pointer.
5947         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5948         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5949         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5950         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5951
5952         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5953         [__WORDSIZE_TIME64_COMPAT32] instead of
5954         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5955         (struct utmp): Likewise.
5956         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5957         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5958         Renamed to ...
5959         (__WORDSIZE_TIME64_COMPAT32): This.
5960         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5961         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5962         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5963         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5964         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5965         (__WORDSIZE_TIME64_COMPAT32): New macro.
5966
5967 2012-05-21  Andreas Jaeger  <aj@suse.de>
5968
5969         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5970         only if [SHARED]. Add prototype for __wcschr_ia32.
5971
5972 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5973
5974         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
5975         of %rbp unmolested in the jmp_buf while mangling the low bits.
5976         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
5977         unmolested high bits of %rbp while demangling the low bits.
5978         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5979
5980 2012-05-21  Andreas Jaeger  <aj@suse.de>
5981
5982         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
5983         * sunrpc/svc_simple.c: Use it for registerrpc.
5984         * sunrpc/xcrypt.c: Use it for passwd2des.
5985
5986         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
5987
5988 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5989
5990         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
5991         Don't define if [__SYSCALL_WORDSIZE != 32].
5992         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
5993         New macro.
5994
5995 2012-05-21  Bruno Haible  <bruno@clisp.org>
5996             Andreas Jaeger  <aj@suse.de>
5997
5998         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
5999         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6000         inptr and inend for must_buffer_ch.
6001         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6002         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6003         * stdio-common/Makefile (tests): Remove bug15.
6004         (bug15-ENV): Remove macro.
6005         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6006         anymore.
6007
6008 2012-05-19  Andreas Jaeger  <aj@suse.de>
6009             Roland McGrath  <roland@hack.frob.com>
6010
6011         * manual/contrib.texi: Completely rewritten. It contains now an
6012         alphabetical list of contributors and their contributions.
6013
6014 2012-05-21  Richard Henderson  <rth@twiddle.net>
6015
6016         * misc/getauxval.c (__getauxval): Use unsigned long int.
6017         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6018         (getauxval): Use unsigned long int.
6019
6020 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6021
6022         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6023
6024 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6025
6026         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6027         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6028         __alignof__ (long double).
6029
6030 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6031
6032         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6033
6034 2012-05-20  Richard Henderson  <rth@twiddle.net>
6035
6036         * misc/getauxval.c: New file.
6037         * misc/sys/auxv.h: New file.
6038         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6039         (routines): Add getauxval.
6040         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6041         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6042         * elf/dl-sysdep.c (_dl_auxv): Remove.
6043         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6044         * elf/dl-support.c (_dl_auxv): New variable.
6045         (_dl_aux_init): Initialize it.
6046         * manual/startup.texi (Auxiliary Vector): New node.
6047         * sysdeps/generic/bits/hwcap.h: New file.
6048         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6049         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6050         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6051         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6052         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6053         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6055         Update.
6056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6057         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6058         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6059         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6060         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6061         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6062         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6063         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6064
6065 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6066
6067         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6068
6069 2012-05-19  David S. Miller  <davem@davemloft.net>
6070
6071         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6072
6073 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6074
6075         [BZ #14123]
6076         * math/s_ccosh.c: Include <float.h>
6077         (__ccosh): Avoid internal overflow calculating sinh and cosh
6078         values before multiplying by sin and cos values.
6079         * math/s_ccoshf.c: Likewise.
6080         * math/s_ccoshl.c: Likewise.
6081         * math/s_csin.c: Likewise.
6082         * math/s_csinf.c: Likewise.
6083         * math/s_csinl.c: Likewise.
6084         * math/s_csinh.c: Likewise.
6085         * math/s_csinhf.c: Likewise.
6086         * math/s_csinhl.c: Likewise.
6087         * math/libm-test.inc (ccos_test): Add more tests.
6088         (ccosh_test): Likewise.
6089         (csin_test): Likewise.
6090         (csinh_test): Likewise.
6091         * sysdeps/i386/fpu/libm-test-ulps: Update.
6092         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6093
6094 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6095
6096         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6097         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6098
6099         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6100
6101 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6102
6103         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6104         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6105         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6106         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6107         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6108         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6109         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6110         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6111         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6112         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6113         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6114         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6115         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6116         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6117         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6118         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6119         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6120         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6121         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6122         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6123         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6124         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6125         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6126         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6127         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6128         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6129         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6130         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6131         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6132         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6133         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6134
6135 2012-05-18  Andreas Jaeger  <aj@suse.de>
6136
6137         * csu/.gitignore: Delete.
6138
6139 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6140
6141         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6142         (timex): Use __syscall_slong_t.
6143
6144 2012-05-18  Andreas Jaeger  <aj@suse.de>
6145             Carlos O'Donell  <carlos_odonell@mentor.com>
6146
6147         * manual/install.texi (Configuring and compiling): Update
6148         description about files modified in the source directory.
6149         * INSTALL: Regenerated.
6150
6151 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6152
6153         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6154         value.  Use "or" to set return value to -1.
6155         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6156         negate return value.
6157
6158 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6159
6160         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6161         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6162         failure if the compiler has Graphite support disabled.
6163         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6164         Likewise.
6165         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6166         CFLAGS-memmove.c): Likewise.
6167         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6168         Likewise.
6169
6170 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6171
6172         * sysdeps/x86_64/x32/_itoa.h: New file.
6173
6174         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6175         getdents system call only if kernel and user dirents have the
6176         same d_ino and d_off.
6177
6178         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6179         LLONG_MAX != LONG_MAX.
6180         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6181         (_fitoa_word): Likewise.
6182
6183         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6184         years.
6185         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6186         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6187         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6188
6189         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6190         include <bits/wordsize.h>.  Check __x86_64__ instead of
6191         __WORDSIZE.
6192         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6193         if __x86_64__ is defined.  Use anonymous union on fpstate.
6194
6195         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6196         anonymous union.
6197
6198 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6199
6200         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6201         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6202         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6203         Refer to _rtld_local_ro instead of _rtld_global_ro.
6204         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6205         Likewise.
6206         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6207         Likewise.
6208         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6209         Likewise.
6210         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6211         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6212         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6213
6214         * sysdeps/powerpc/powerpc32/dl-machine.c
6215         (__elf_machine_runtime_setup) [PROF]: Don't reference
6216         _dl_prof_resolve.
6217
6218 2012-05-18  Andreas Jaeger  <aj@suse.de>
6219
6220         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6221         function only available for GCCs before 3.4 since GCC 3.4
6222         introduced a builtin.
6223         (lrint): Likewise.
6224         (llrintf): Likewise.
6225         (llrint): Likewise.
6226         (fmaxf): Likewise.
6227         (fmax): Likewise.
6228         (fminf): Likewise.
6229         (fmin): Likewise.
6230         (rint): Likewise.
6231         (rintf): Likewise.
6232         (nearbyint): Likewise.
6233         (nearbyintf): Likewise.
6234         (ceil): Likewise.
6235         (ceilf): Likewise.
6236         (floor): Likewise.
6237         (floorf): Likewise.
6238
6239 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6240
6241         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6242         on both fields and cast pointer to __syscall_ulong_t.
6243
6244         * bits/types.h (__fsword_t): New type.
6245         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6246         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6247         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6248         (__FSWORD_T_TYPE): Likewise.
6249         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6250         (__FSWORD_T_TYPE): Likewise.
6251         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6252         (__FSWORD_T_TYPE): Likewise.
6253         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6254         (__FSWORD_T_TYPE): Likewise.
6255         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6256         __SWORD_TYPE with __fsword_t.
6257         (statfs64): Likewise.
6258
6259 2012-05-17  David S. Miller  <davem@davemloft.net>
6260
6261         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6262
6263 2012-05-17  Andreas Jaeger  <aj@suse.de>
6264
6265         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6266         warning.
6267
6268 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6269
6270         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6271
6272 2012-05-17  Andreas Jaeger  <aj@suse.de>
6273
6274         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6275         when it is used.
6276
6277 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6278
6279         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6280
6281 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6282
6283         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6284         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6285
6286 2012-05-17  Andreas Jaeger  <aj@suse.de>
6287             Carlos O'Donell  <carlos_odonell@mentor.com>
6288
6289         [BZ #14059]
6290         * sysdeps/x86_64/multiarch/init-arch.h
6291         (bit_YMM_Usable): Rename to...
6292         (bit_AVX_Usable): ... this.
6293         (bit_FMA4_Usable): New macro.
6294         (bit_XMM_state): New macro.
6295         (bit_YMM_state): New macro.
6296         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6297         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6298         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6299         (CPUID_OSXSAVE): New macro.
6300         (CPUID_AVX): New macro.
6301         (CPUID_FMA4): New macro.
6302         (index_YMM_Usable): Rename to...
6303         (index_AVX_Usable): ... this.
6304         (HAS_AVX): Use HAS_ARCH_FEATURE.
6305         (HAS_FMA4): Likewise.
6306         (HAS_YMM_USABLE): Remove.
6307         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6308         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6309         are present.
6310         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6311         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6312         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6313         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6314         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6315
6316 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6317
6318         * math/libm-test.c: Support platforms without multiple rounding modes.
6319         * math/bug-nextafter.c: Support platforms without FP exceptions.
6320         * math/bug-nexttoward.c: Likewise.
6321         * math/test-fenv.c: Likewise.
6322         * math/test-misc.c: Likewise.
6323         * stdlib/bug-getcontext.c: Likewise.
6324
6325 2012-05-17  Andreas Jaeger  <aj@suse.de>
6326
6327         * manual/examples/search.c (critter_cmp): Change signature to
6328         avoid warnings.
6329         * manual/string.texi (Collation Functions): Likewise.
6330
6331 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6332
6333         * bits/types.h: Fold copyright years.
6334         * bits/typesizes.h: Likewise.
6335         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6336         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6337         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6338         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6339         * time/time.h: Likewise.
6340
6341 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6342
6343         [BZ #208]
6344         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6345         in instead of returning them.  Return void.
6346         (__libc_mallinfo): Accumulate over all arenas.
6347         (__malloc_stats): Adjust for change in int_mallinfo interface.
6348
6349 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6350
6351         [BZ #10375]
6352         * configure.in (NM): Add AC_CHECK_TOOL for it.
6353         (libc_extra_cflags): New substituted variable.
6354         Check for -fstack-protector being used implicitly.
6355         * configure: Regenerated.
6356         * config.make.in (config-extra-cflags): New variable,
6357         gets @libc_extra_cflags@.
6358         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6359
6360         [BZ #10375]
6361         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6362         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6363         * configure: Regenerated.
6364         * config.make.in (CPPUNDEFS): New substituted variable.
6365         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6366         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6367         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6368
6369 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6370
6371         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6372         (mq_attr): Use __syscall_slong_t.
6373
6374 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6375
6376         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6377         Check __x86_64__ instead of __WORDSIZE.
6378         (_STAT_VER_LINUX): Likewise.
6379         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6380         __syscall_ulong_t and __syscall_slong_t.
6381         (stat64): Likewise.
6382
6383 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6384
6385         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6386
6387 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6388
6389         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6390
6391 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6392
6393         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6394         __syscall_ulong_t.
6395
6396         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6397         include <bits/wordsize.h>.  Check __x86_64__ instead of
6398         __WORDSIZE.
6399         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6400         defined.
6401         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6402
6403         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6404         include <bits/wordsize.h>.  Check __x86_64__ instead of
6405         __WORDSIZE.
6406         (user_regs_struct): Use "__extension__ unsigned long long"
6407         instead of "unsigned long" if __x86_64__ is defined.
6408         (user): Likewise.  Pad after pointer field if __ILP32__ is
6409         defined.
6410
6411 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6412
6413         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6414         versions 5 to 9.
6415         * configure: Regenerated.
6416         * manual/install.texi (texinfo): Increase version requirement to
6417         4.5 or later.
6418         * INSTALL: Regenerated.
6419
6420         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6421
6422 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6423
6424         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6425
6426         * sysdeps/x86_64/x32/ffs.c: New file.
6427
6428         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6429         __syscall_ulong_t.
6430         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6431         defined.  Use __syscall_ulong_t.
6432         (shminfo): Use __syscall_ulong_t.
6433         (shm_info): Likewise.
6434
6435         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6436         __syscall_ulong_t.
6437
6438         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6439         <bits/wordsize.h>.
6440         (msgqnum_t): Use __syscall_ulong_t.
6441         (msglen_t): Likewise.
6442         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6443         __syscall_ulong_t.
6444
6445         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6446         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6447
6448         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6449
6450         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6451         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6452
6453         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6454         __syscall_slong_t.
6455
6456         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6457         include <bits/wordsize.h>.  Check __x86_64__ instead of
6458         __WORDSIZE.
6459
6460         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6461         "unsigned long long int" if __x86_64__ is defined.
6462         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6463
6464         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6465         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6466         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6467
6468         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6469         <stdint.h>.
6470         (GET_PC): Cast to uintptr_t first.
6471         (GET_FRAME): Likewise.
6472         (GET_STACK): Likewise.
6473
6474         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6475         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6476         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6477         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6478         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6479         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6480         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6481         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6482         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6483         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6484         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6485         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6486         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6487         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6488         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6489         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6490         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6491         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6492         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6493         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6494         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6495         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6496         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6497         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6498         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6499         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6500         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6501         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6502         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6503
6504 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6505
6506         * Makerules (+depfiles): Also collect depfiles from .oS in
6507         $(extra-objs).
6508         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6509         .oS, $(libnldbl-routines)).
6510
6511         * Makerules (native-compile-mkdep-flags): Define.
6512         * sunrpc/Makefile (extra-objs): Add $(addprefix
6513         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6514         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6515         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6516         calling $(make-target-directory).
6517
6518 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6519
6520         * bits/types.h (__snseconds_t): Removed.
6521         * time/time.h (struct timespec): Replace __snseconds_t with
6522         __syscall_slong_t.
6523         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6524         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6525         Likewise.
6526         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6527         (__SNSECONDS_T_TYPE): Likewise.
6528         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6529         (__SNSECONDS_T_TYPE): Likewise.
6530         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6531         (__SNSECONDS_T_TYPE): Likewise.
6532
6533 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6534
6535         * sysdeps/mach/hurd/bits/typesizes.h
6536         (__SYSCALL_SLONG_TYPE): New macro.
6537         (__SYSCALL_ULONG_TYPE): Likewise.
6538
6539 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6540
6541         * bits/types.h (__syscall_slong_t): New type.
6542         (__syscall_ulong_t): Likewise.
6543
6544         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6545         (__SYSCALL_ULONG_TYPE): Likewise.
6546         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6547         (__SYSCALL_SLONG_TYPE): Likewise.
6548         (__SYSCALL_ULONG_TYPE): Likewise.
6549         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6550         (__SYSCALL_SLONG_TYPE): Likewise.
6551         (__SYSCALL_ULONG_TYPE): Likewise.
6552         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6553         (__SYSCALL_SLONG_TYPE): Likewise.
6554         (__SYSCALL_ULONG_TYPE): Likewise.
6555
6556 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6557
6558         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6559         Add sigaltstack-offsets.sym.
6560         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6561         <sigaltstack-offsets.h>.
6562         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6563         longjmp_msg pointer.
6564         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6565         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6566         signal stack.
6567         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6568
6569 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6570
6571         * elf/stackguard-macros.h: Remove file.
6572         * sysdeps/generic/stackguard-macros.h: New file.
6573         * sysdeps/i386/stackguard-macros.h: Likewise.
6574         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6575         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6576         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6577         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6578         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6579         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6580         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6581         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6582         <elf/stackguard-macros.h>.
6583
6584         [BZ #14109]
6585         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6586         __aligned__ in attribute.
6587         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6588         (gregset_t): Likewise.
6589
6590 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6591
6592         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6593         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6594         * sysdeps/x86_64/x32/Implies-after: New file.
6595
6596 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6597
6598         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6599         and access return value for _dl_profile_fixup.  Use R10_LP to
6600         load frame size.
6601
6602 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6603
6604         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6605
6606 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6607
6608         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6609         * sysdeps/x86_64/x32/sysdep.h: New file.
6610
6611 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6612
6613         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6614         * sysdeps/x86_64/setjmp.S: Likewise.
6615
6616 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6617
6618         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6619         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6620         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6621         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6622         remove unused global constant.
6623
6624 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6625
6626         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6627         include of <not-cancel.h>.
6628
6629 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6630
6631         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6632
6633 2012-05-15  Jeff Law  <law@redhat.com>
6634             Andreas Jaeger  <aj@suse.de>
6635
6636         [BZ #13594]
6637         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6638         out from...
6639         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6640         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6641         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6642         code changing __hst_map_handle.map.
6643
6644 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6645
6646         * configure.in (sysnames): Look for Implies-before and Implies-after
6647         files.
6648         * configure: Regenerated.
6649
6650 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6651
6652         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6653         8-byte data alignment with LP_SIZE alignment.
6654
6655 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6656
6657         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6658         into R10_LP.
6659
6660 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6661
6662         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6663
6664 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6665
6666         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6667         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6668         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6669         Likewise.
6670         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6671
6672 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6673
6674         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6675         (stackinfo_sub_sp): Likewise.
6676
6677 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6678
6679         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6680         RAX_LP.
6681
6682 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6683
6684         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6685         into R*_LP.
6686
6687 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6688
6689         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6690         sizes into R*_LP.
6691
6692 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6693
6694         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6695
6696 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6697
6698         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6699         into R11_LP and load __x86_64_shared_cache_size_half into
6700         R8_LP.
6701
6702 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6703
6704         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6705         R8_LP.
6706
6707 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6708
6709         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6710         logb for POWER7.
6711         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6712         logbf for POWER7.
6713         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6714         logbl for POWER7.
6715         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6716         powerpc32/power7/fpu/s_logb.c via #include.
6717         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6718         powerpc32/power7/fpu/s_logbf.c via #include.
6719         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6720         powerpc32/power7/fpu/s_logbl.c via #include.
6721
6722 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6723
6724         * README.libm: Remove file.
6725
6726 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6727
6728         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6729         count for x32.  Use R*_LP and omit operand-size suffix.
6730
6731 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6732
6733         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6734         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6735         * sysdeps/x86_64/x32/shlib-versions: New file.
6736
6737 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6738
6739         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6740         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6741         Use _dl_fatal_printf instead.
6742
6743 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6744
6745         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6746         set if not set by the user.  Do not allow for being unset.
6747         * sysdeps/unix/sysv/linux/configure: Regenerated.
6748
6749 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6750
6751         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6752         the `q' suffix from lea and replace .quad with ASM_ADDR.
6753
6754 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6755
6756         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6757         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6758         instead of $17.
6759         (PTR_DEMANGLE): Likewise.
6760
6761 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6762
6763         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6764         (LP_OP): Likewise.
6765         (ASM_ADDR): Likewise.
6766         (RAX_LP): Likewise.
6767         (RBP_LP): Likewise.
6768         (RBX_LP): Likewise.
6769         (RCX_LP): Likewise.
6770         (RDI_LP): Likewise.
6771         (RSI_LP): Likewise.
6772         (RSP_LP): Likewise.
6773         (R8_LP): Likewise.
6774         (R9_LP): Likewise.
6775         (R10_LP): Likewise.
6776         (R10_LP): Likewise.
6777         (R11_LP): Likewise.
6778         (R12_LP): Likewise.
6779         (R13_LP): Likewise.
6780         (R14_LP): Likewise.
6781         (R15_LP): Likewise.
6782
6783 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6784
6785         * sysdeps/x86_64/x32/dl-machine.h: New file.
6786
6787 2012-05-14  Andreas Jaeger  <aj@suse.de>
6788
6789         * manual/Makefile (subdir): Remove export of subdir.
6790         (all): Remove target.
6791         (.PHONY): Remove all from list.
6792         (mkinstalldirs): Remove.
6793         (.PHONY): Remove installdirs from list.
6794         ($(inst_infodir)/libc.info): Use make-target-directory.
6795         (installdirs): Remove.
6796         (subdir_%): Remove.
6797         (glibc-targets): Remove.
6798         (lib): Remove.
6799         (stubs): Remove.
6800         ($(objpfx)stubs ../po/manual.pot): Remove.
6801         ($(objpfx)stamp%): Remove.
6802         (make-target-directory): Remove.
6803         (subdir_install): Remove.
6804         (routines): Remove.
6805         (aux): Remove.
6806         (sources): Remove.
6807         (objects): Remove.
6808         (headers): Remove.
6809
6810         [BZ #13750]
6811         * manual/.gitignore: Remove, it's not needed anymore.
6812         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6813         all files in it.
6814         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6815         directory.
6816         (texis): Renamed to $(objpfx)texis.
6817         (texis-path): New, contains path to generated files.
6818         (chapters.%): Use texis-path for complete path, add extra argument
6819         libc-texinfo.sh.
6820         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6821         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6822         (summary,texi, stamp-summary): Use complete path of
6823         files. Generate files in build dir.
6824         (dir-add.texi): Build in build dir.
6825         (libm-err.texi,stamp-libm-err): Likewise.
6826         (version.texi, stamp-version): Likewise.
6827         (.%c.texi): Likewise.
6828         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6829         (mostlyclean): Remove target.
6830         (realclean): Remove target.
6831         (generated): Add new variable with contents from mostlyclean and
6832         realclean, remove entries duplicated in common-mostlyclean, add
6833         stamp-libm-err and stamp-version.
6834         (generated-dirs): Add libc directory.
6835         ($(inst_infodir)/libc.info): Install files from build dir.
6836
6837         * manual/install.texi (Configuring and compiling): Adjust since
6838         the info files are not part of the tar ball anymore.
6839
6840 2012-05-14  Andreas Jaeger  <aj@suse.de>
6841
6842         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6843         variable.
6844
6845 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6846
6847         [BZ #13717]
6848         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6849         to 2.2.0 where earlier.
6850         * sysdeps/unix/sysv/linux/configure: Regenerated.
6851         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6852         Remove conditional code.
6853         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6854         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6855         Remove conditional code.
6856         [!__NR_lchown]: Likewise.
6857         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6858         [__NR_lchown]: Likewise.
6859         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6860         comment referencing __ASSUME_LCHOWN_SYSCALL.
6861         * sysdeps/unix/sysv/linux/i386/sigaction.c
6862         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6863         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6864         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6865         Remove conditional code.
6866         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6867         (__protocol_available): Remove #if 0 code.
6868         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6869         conditional code.
6870         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6871         * sysdeps/unix/sysv/linux/kernel-features.h
6872         (__ASSUME_GETCWD_SYSCALL): Don't define.
6873         (__ASSUME_REALTIME_SIGNALS): Likewise.
6874         (__ASSUME_PREAD_SYSCALL): Likewise.
6875         (__ASSUME_PWRITE_SYSCALL): Likewise.
6876         (__ASSUME_POLL_SYSCALL): Likewise.
6877         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6878         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6879         non-SPARC.
6880         (__ASSUME_SIOCGIFNAME): Don't define.
6881         (__ASSUME_MSG_NOSIGNAL): Likewise.
6882         (__ASSUME_SENDFILE): Define unconditionally.
6883         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6884         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6885         conditional code.
6886         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6887         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6888         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6889         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6890         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6891         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6892         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6894         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6895         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6897         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6898         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6900         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6901         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6903         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6904         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6906         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6907         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6909         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6910         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6912         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6913         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6915         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6916         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6917         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6918         Remove conditional code.
6919         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6920         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6921         Remove conditional code.
6922         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6923         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6924         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6925         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6926         Remove conditional code.
6927         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6928         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6929         Remove conditional code.
6930         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6931         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6932         Remove conditional code.
6933         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6934         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6935         Remove conditional code.
6936         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6937         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6938         Remove conditional code.
6939         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6940         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6941         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6942         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6943         * sysdeps/unix/sysv/linux/sigaction.c
6944         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6945         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6946         * sysdeps/unix/sysv/linux/sigpending.c
6947         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6948         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6949         * sysdeps/unix/sysv/linux/sigprocmask.c
6950         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6951         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6952         * sysdeps/unix/sysv/linux/sigsuspend.c
6953         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6954         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6955         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6956         (__libc_missing_rt_sigs): Remove.
6957         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6958         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6959         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6960         Remove conditional code.
6961         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6962         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6963         return 1.
6964         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6965         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6966         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6967         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6968
6969 2012-05-14  Andreas Jaeger  <aj@suse.de>
6970
6971         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6972         it's not used in glibc.
6973         (__coshm1): Likewise.
6974         (__acosh1p): Likewise.
6975         (__sgn): Likewise.
6976
6977         * manual/string.texi (Copying and Concatenation): Add missing
6978         variable in concat example.
6979         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
6980
6981 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6982
6983         [BZ #14103]
6984         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
6985         __builtin_clzl with __builtin_clzll.
6986
6987 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6988
6989         [BZ #14104]
6990         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
6991         libc_freeres_ptr.
6992
6993 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6994
6995         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
6996         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
6997         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
6998         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
6999
7000 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7001
7002         * NEWS: Update ia64 info.
7003
7004 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7005
7006         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7007         used as bcopy.
7008
7009 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7010
7011         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7012         * sysdeps/unix/syscalls.list (dup3): Likewise.
7013         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7014         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7015
7016 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7017
7018         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7019         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7020
7021 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7022
7023         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7024         thread pointer.
7025         (TLS_IE): Use mov/add instead of movq/addq to load thread
7026         pointer.
7027         (TLS_GD_PREFIX): New.
7028         (TLS_GD): Use it.
7029
7030 2012-05-11  David S. Miller  <davem@davemloft.net>
7031
7032         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7033         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7034         (_FPU_SETCW): Likewise.
7035
7036 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7037
7038         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7039         is 32-byte aligned.
7040
7041 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7042
7043         [BZ #11837]
7044         * iconvdata/gb18030.c: Update tables.
7045         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7046         characters specially.
7047         (BODY for TO_LOOP): Add encoding of missing ranges.
7048
7049 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7050
7051         [BZ #13673]
7052         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7053         * sysdeps/mach/hurd/dup3.c: Likewise.
7054         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7055         * sysdeps/powerpc/memmove.c:: Likewise.
7056
7057 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7058
7059         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7060         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7061
7062 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7063
7064         * elf/elf.h (R_X86_64_RELATIVE64): New.
7065         (R_X86_64_NUM): Updated.
7066         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7067         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7068         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7069         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7070         tst-quad1pie tst-quad2pie
7071         (modules-names): Add tst-quadmod1 tst-quadmod2.
7072         ($(objpfx)tst-quad1): New dependency.
7073         ($(objpfx)tst-quad2): Likewise.
7074         ($(objpfx)tst-quad1pie): Likewise.
7075         ($(objpfx)tst-quad2pie): Likewise.
7076         * sysdeps/x86_64/tst-quad1.c: New file.
7077         * sysdeps/x86_64/tst-quad1pie.c: New file.
7078         * sysdeps/x86_64/tst-quad2.c: Likewise.
7079         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7080         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7081         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7082         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7083         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7084
7085 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7086
7087         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7088         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7089         * streams/stropts.h (t_scalar_t): Define type.
7090
7091         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7092         (_PATH_PRESERVE): Set to "/var/lib".
7093         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7094
7095         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7096         instead of int.
7097
7098         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7099         if __dir_mkfile succeeded.
7100
7101         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7102         checking for _hurd_dtablesize.  Unlock it right after having
7103         finished _hurd_dtable allocation.
7104
7105 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7106
7107         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7108         * sysdeps/mach/hurd/configure: Regenerated.
7109         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7110         special-casing to...
7111         * sysdeps/gnu/configure.in: ... this new file.
7112         * sysdeps/unix/sysv/linux/configure: Regenerated.
7113         * sysdeps/gnu/configure: New generated file.
7114
7115         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7116         for Linux: use nsec instead of usec, as well as:
7117         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7118         members of type struct timespec.
7119         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7120         New macros.
7121         (struct stat64): Likewise.
7122         (_STATBUF_ST_NSEC): New macro.
7123         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7124
7125         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7126         __strtoul_internal rather than strtoul.
7127
7128 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7129
7130         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7131         and reject them.
7132
7133 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7134
7135         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7136         which preserves existing values.
7137         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7138
7139 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7140
7141         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7142         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7143         greater than FD_SETSIZE.
7144
7145 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7146
7147         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7148         allocated, call __vm_protect to finish enabling the existing space, and
7149         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7150         allocate the remainder.
7151
7152 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7153
7154         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7155         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7156
7157 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7158
7159         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7160         sysdeps/mach/hurd/readlink.c.
7161
7162         * posix/tst-sysconf.c (posix_options): Only use
7163         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7164         _POSIX_SYNCHRONIZED_IO when they are defined
7165         * sysdeps/mach/hurd/bits/posix_opt.h:
7166         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7167         (_XOPEN_REALTIME): Undefine macro.
7168         (_XOPEN_REALTIME_THREADS): Undefine macro.
7169         (_XOPEN_SHM): Undefine macro.
7170         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7171         macro to -1.
7172         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7173         macro to -1.
7174         (_POSIX_ASYNC_IO): Undefine macro.
7175         (_POSIX_PRIORITIZED_IO): Undefine macro.
7176         (_POSIX_SPIN_LOCKS): Define macro to -1.
7177
7178         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7179         SA_NODEFER, SA_RESETHAND.
7180         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7181         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7182         F_DUPFD_CLOEXEC.
7183
7184 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7185
7186         * elf/Makefile (pldd-modules): Define unconditionally.
7187
7188 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7189
7190         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7191
7192 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7193
7194         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7195         Return ENOENT when name is empty.
7196         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7197
7198 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7199
7200         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7201
7202         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7203
7204 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7205
7206         Fix mlock in all cases except non-readable pages.
7207         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7208         instead of VM_PROT_ALL as parameter to __vm_wire function.
7209
7210         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7211         (__mkdir): When path is `/', just fail with EEXIST.
7212         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7213
7214 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7215
7216         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7217         <sys/uio.h> (for writev).
7218         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7219         and <sys/param.h> (for MIN).
7220
7221 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7222
7223         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7224         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7225         if interrupted.
7226
7227 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7228
7229         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7230         Depend on against $(link-rpcuserlibs).
7231
7232 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7233
7234         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7235         (__libc_stack_end): Do not use attribute_relro.
7236         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7237         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7238         to libthread-provided value.
7239         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7240         attribute_relro.
7241
7242 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7243
7244         [BZ #3748]
7245         * bits/libc-lock.h (__libc_once_get): New macro.
7246         * sysdeps/mach/bits/libc-lock.h: Likewise.
7247         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7248         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7249         instead of using implementation details.
7250
7251         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7252         * libio/freopen.c: Likewise.
7253         * libio/freopen64.c: Likewise.
7254         * misc/syslog.c: Likewise.
7255         * nscd/connections.c: Likewise.
7256         * nscd/netgroupcache.c: Likewise.
7257         * sysdeps/posix/getcwd.c: Likewise.
7258
7259 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7260
7261         * math/w_ilogbf.c: Add #include <limits.h>.
7262
7263 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7264
7265         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7266         path instead of returning without unlocking.
7267
7268         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7269         immediate-write ioctls.
7270         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7271
7272 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7273
7274         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7275         __builtin_frame_address instead of making assumptions about the
7276         location of the return address relative to DATA.  Force early load of
7277         the return address.
7278         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7279         __builtin_frame_address.
7280
7281         dup3 for GNU Hurd.
7282         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7283         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7284         implement dup3 and do some further code clean-ups.
7285         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7286         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7287
7288 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7289
7290         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7291
7292         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7293         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7294         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7295         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7296         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7297         d->port.lock.
7298
7299         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7300         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7301         when handler == SIG_ERR, not when handler != SIG_ERR.
7302
7303 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7304
7305         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7306         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7307         definitions.
7308
7309         accept4 for GNU Hurd.
7310         * include/sys/socket.h (__libc_accept4): New prototype.
7311         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7312         to implement __libc_accept4.
7313         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7314         __libc_accept4.
7315         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7316
7317         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7318         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7319         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7320         signal-defines.sym.
7321
7322 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7323
7324         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7325
7326 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7327
7328         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7329         assertion on O_CLOEXEC flag.
7330         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7331         * hurd/intern-fd.c: Likewise.
7332         * hurd/port2fd.c: Likewise.
7333
7334 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7335
7336         [BZ #3906]
7337         * bits/in.h (IPV6_PKTINFO): Define new macro.
7338         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7339
7340 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7341
7342         [BZ #13954]
7343         [BZ #13955]
7344         [BZ #13956]
7345         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7346         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7347         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7348         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7349         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7350         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7351         * math/libm-test.inc (logb_test) : Additional logb tests.
7352
7353 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7354             Andreas Jaeger  <aj@suse.de>
7355
7356         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7357         * configure: Regenerated.
7358         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7359         * config.make.in (link-obsolete-rpc): New substituted variable.
7360         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7361         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7362         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7363         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7364         so that libc.a contains the symbols.
7365         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7366         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7367         * sunrpc/auth_none.c: Likewise.
7368         * sunrpc/auth_unix.c: Likewise.
7369         * sunrpc/authdes_prot.c: Likewise.
7370         * sunrpc/authuxprot.c: Likewise.
7371         * sunrpc/clnt_gen.c: Likewise.
7372         * sunrpc/clnt_perr.c: Likewise.
7373         * sunrpc/clnt_raw.c: Likewise.
7374         * sunrpc/clnt_simp.c: Likewise.
7375         * sunrpc/clnt_tcp.c: Likewise.
7376         * sunrpc/clnt_udp.c: Likewise.
7377         * sunrpc/clnt_unix.c: Likewise.
7378         * sunrpc/des_crypt.c: Likewise.
7379         * sunrpc/des_soft.c: Likewise.
7380         * sunrpc/get_myaddr.c: Likewise.
7381         * sunrpc/key_call.c: Likewise.
7382         * sunrpc/key_prot.c: Likewise.
7383         * sunrpc/netname.c: Likewise.
7384         * sunrpc/pm_getmaps.c: Likewise.
7385         * sunrpc/pm_getport.c: Likewise.
7386         * sunrpc/pmap_clnt.c: Likewise.
7387         * sunrpc/pmap_prot.c: Likewise.
7388         * sunrpc/pmap_prot2.c: Likewise.
7389         * sunrpc/pmap_rmt.c: Likewise.
7390         * sunrpc/publickey.c: Likewise.
7391         * sunrpc/rpc_cmsg.c: Likewise.
7392         * sunrpc/rpc_common.c: Likewise.
7393         * sunrpc/rpc_dtable.c: Likewise.
7394         * sunrpc/rpc_prot.c: Likewise.
7395         * sunrpc/rpc_thread.c: Likewise.
7396         * sunrpc/rtime.c: Likewise.
7397         * sunrpc/svc.c: Likewise.
7398         * sunrpc/svc_auth.c: Likewise.
7399         * sunrpc/svc_raw.c: Likewise.
7400         * sunrpc/svc_run.c: Likewise.
7401         * sunrpc/svc_tcp.c: Likewise.
7402         * sunrpc/svc_udp.c: Likewise.
7403         * sunrpc/svc_unix.c: Likewise.
7404         * sunrpc/svcauth_des.c: Likewise.
7405         * sunrpc/xcrypt.c: Likewise.
7406         * sunrpc/xdr.c: Likewise.
7407         * sunrpc/xdr_array.c: Likewise.
7408         * sunrpc/xdr_float.c: Likewise.
7409         * sunrpc/xdr_intXX_t.c: Likewise.
7410         * sunrpc/xdr_mem.c: Likewise.
7411         * sunrpc/xdr_rec.c: Likewise.
7412         * sunrpc/xdr_ref.c: Likewise.
7413         * sunrpc/xdr_sizeof.c: Likewise.
7414         * sunrpc/xdr_stdio.c: Likewise.
7415
7416 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7417
7418         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7419         change.  Update copyright years.
7420
7421 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7422
7423         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7424
7425 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7426             Joseph Myers  <joseph@codesourcery.com>
7427             Paul Pluzhnikov  <ppluzhnikov@google.com>
7428
7429         [BZ #14012]
7430         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7431         requiring rpcgen.
7432         [cross-compiling] (extra-libs): Likewise.
7433         [cross-compiling] (extra-libs-others): Likewise.
7434         [cross-compiling] (librpcsvc-routines): Likewise.
7435         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7436         [cross-compiling] (omit-deps): Likewise.
7437         (sunrpc-CPPFLAGS): New variable.
7438         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7439         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7440         (cross-rpcgen-objs): New variable.
7441         (extra-objs): Append $(cross-rpcgen-objs).
7442         ($(cross-rpcgen-objs)): New rule.
7443         ($(objpfx)cross-rpcgen): Likewise.
7444         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7445         comment.
7446         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7447         ($(objpfx)x%.stmp): Likewise.
7448         * sunrpc/proto.h [IS_IN_build] (_): Define.
7449         [IS_IN_build] (_libc_intl_domainname): Likewise.
7450
7451 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7452
7453         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7454         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7455         and R_X86_64_TPOFF64.
7456
7457 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7458
7459         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7460         sysdeps/unix/sysv/syscalls.list.
7461         (stime): Likewise.
7462         (utime): Likewise.
7463         * sysdeps/unix/sysv/syscalls.list: Remove file.
7464
7465 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7466
7467         [BZ #3440]
7468         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7469         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7470         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7471         (__LC_IDENTIFICATION): Make these macros useful in #if
7472         expressions, as required by C99.
7473
7474 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7475
7476         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7477         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7478         after this.
7479
7480 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7481
7482         * stdlib/longlong.h: Updated from GCC.
7483
7484 2012-05-09  Andreas Jaeger  <aj@suse.de>
7485
7486         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7487         default is first entry.
7488         (run_mode): Set type.
7489         (main): Remove informal message about syslog.
7490         (options): Fix typo.
7491
7492         [BZ #14053]
7493         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7494         to asm.
7495         (lrint): Likewise.
7496         (llrintf): Likewise.
7497         (llrint): Likewise.
7498         (rint): Likewise.
7499         (rintf): Likewise.
7500         (nearbyint): Likewise.
7501         (nearbyintf): Likewise.
7502
7503 2012-05-09  Andreas Jaeger  <aj@suse.de>
7504             Pedro Alves  <palves@redhat.com>
7505
7506         * nscd/nscd.c (run_mode): Use enum.
7507         (main): Cleanup coding style issue.
7508
7509 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7510             Andreas Jaeger  <aj@suse.de>
7511
7512         * nscd/nscd.c (go_background): Replaced with...
7513         (run_mode): ... this.
7514         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7515         (options): Add -F --foreground.
7516         (main): Implement it.
7517         (parse_opt): Parse it.
7518
7519 2012-05-09  Andreas Jaeger  <aj@suse.de>
7520
7521         [BZ #14083]
7522         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7523         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7524         -Wconversion warning.
7525         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7526         Likewise.
7527
7528 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7529
7530         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7531         == 0.
7532         (LC_ALL): Use macro-int-constant.
7533         (LC_COLLATE): Likewise.
7534         (LC_CTYPE): Likewise.
7535         (LC_MESSAGES): Likewise.
7536         (LC_MONETARY): Likewise.
7537         (LC_NUMERIC): Likewise.
7538         (LC_TIME): Likewise.
7539         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7540         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7541         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7542         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7543         Specify type.
7544         [C99-based standards] (float_t): Expect type.
7545         [C99-based standards] (double_t): Expect type.
7546         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7547         type.
7548         [C99-based standards] (HUGE_VALL): Likewise.
7549         [C99-based standards] (INFINITY): Likewise.
7550         [C99-based standards] (NAN): Likewise.
7551         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7552         [C99-based standards] (FP_NAN): Likewise.
7553         [C99-based standards] (FP_NORMAL): Likewise.
7554         [C99-based standards] (FP_SUBNORMAL): Likewise.
7555         [C99-based standards] (FP_ZERO): Likewise.
7556         [C99-based standards] (FP_FAST_FMA): Use
7557         optional-macro-int-constant.  Specify type.  Require == 1.
7558         [C99-based standards] (FP_FAST_FMAF): Likewise.
7559         [C99-based standards] (FP_FAST_FMAL): Likewise.
7560         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7561         [C99-based standards] (FP_ILOGBNAN): Likewise.
7562         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7563         Specify type.
7564         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7565         [C99-based standards] (math_errhandling): Specify type.
7566         [ISO99 || ISO11] (signgam): Do not allow.
7567         [non-C99-based standards] (copysignf): Do not allow.
7568         [non-C99-based standards] (exp2f): Likewise.
7569         [non-C99-based standards] (log2f): Likewise.
7570         [non-C99-based standards] (modff): Allow.
7571         [non-C99-based standards] (erff): Do not allow.
7572         [non-C99-based standards] (erfcf): Likewise.
7573         [non-C99-based standards] (gammaf): Likewise.
7574         [non-C99-based standards] (hypotf): Likewise.
7575         [non-C99-based standards] (j0f): Likewise.
7576         [non-C99-based standards] (j1f): Likewise.
7577         [non-C99-based standards] (jnf): Likewise.
7578         [non-C99-based standards] (lgammaf): Likewise.
7579         [non-C99-based standards] (tgammaf): Likewise.
7580         [non-C99-based standards] (y0f): Likewise.
7581         [non-C99-based standards] (y1f): Likewise.
7582         [non-C99-based standards] (ynf): Likewise.
7583         [non-C99-based standards] (isnanf): Likewise.
7584         [non-C99-based standards] (acoshf): Likewise.
7585         [non-C99-based standards] (asinhf): Likewise.
7586         [non-C99-based standards] (atanhf): Likewise.
7587         [non-C99-based standards] (cbrtf): Likewise.
7588         [non-C99-based standards] (expm1f): Likewise.
7589         [non-C99-based standards] (ilogbf): Likewise.
7590         [non-C99-based standards] (log1pf): Likewise.
7591         [non-C99-based standards] (logbf): Likewise.
7592         [non-C99-based standards] (nextafterf): Likewise.
7593         [non-C99-based standards] (remainderf): Likewise.
7594         [non-C99-based standards] (rintf): Likewise.
7595         [non-C99-based standards] (scalbf): Likewise.
7596         [non-C99-based standards] (copysignl): Likewise.
7597         [non-C99-based standards] (exp2l): Likewise.
7598         [non-C99-based standards] (log2l): Likewise.
7599         [non-C99-based standards] (modfl): Allow.
7600         [non-C99-based standards] (erfl): Do not allow.
7601         [non-C99-based standards] (erfcl): Likewise.
7602         [non-C99-based standards] (gammal): Likewise.
7603         [non-C99-based standards] (hypotl): Likewise.
7604         [non-C99-based standards] (j0l): Likewise.
7605         [non-C99-based standards] (j1l): Likewise.
7606         [non-C99-based standards] (jnl): Likewise.
7607         [non-C99-based standards] (lgammal): Likewise.
7608         [non-C99-based standards] (tgammal): Likewise.
7609         [non-C99-based standards] (y0l): Likewise.
7610         [non-C99-based standards] (y1l): Likewise.
7611         [non-C99-based standards] (ynl): Likewise.
7612         [non-C99-based standards] (isnanl): Likewise.
7613         [non-C99-based standards] (acoshl): Likewise.
7614         [non-C99-based standards] (asinhl): Likewise.
7615         [non-C99-based standards] (atanhl): Likewise.
7616         [non-C99-based standards] (cbrtl): Likewise.
7617         [non-C99-based standards] (expm1l): Likewise.
7618         [non-C99-based standards] (ilogbl): Likewise.
7619         [non-C99-based standards] (log1pl): Likewise.
7620         [non-C99-based standards] (logbl): Likewise.
7621         [non-C99-based standards] (nextafterl): Likewise.
7622         [non-C99-based standards] (remainderl): Likewise.
7623         [non-C99-based standards] (rintl): Likewise.
7624         [non-C99-based standards] (scalbl): Likewise.
7625         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7626         [non-C99-based standards] (FP_*): Do not allow.
7627         [C99-based standards] (FP_*): Change to
7628         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7629         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7630         allow.
7631         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7632         (SIG_ERR): Likewise.
7633         [X/Open-based standards] (SIG_HOLD): Likewise.
7634         (SIG_IGN): Likewise.
7635         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7636         positive value.
7637         (SIGFPE): Likewise.
7638         (SIGILL): Likewise.
7639         (SIGINT): Likewise.
7640         (SIGSEGV): Likewise.
7641         (SIGTER): Likewise.
7642         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7643         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7644         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7645         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7646         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7647         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7648         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7649         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7650         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7651         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7652         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7653         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7654         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7655         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7656         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7657         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7658         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7659         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7660         [X/Open-based standards] (SIGTRAP): Likewise.
7661         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7662         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7663         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7664         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7665         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7666         allow.
7667
7668 2012-05-08  Ian Wienand  <ianw@vmware.com>
7669
7670         [BZ #14080]
7671         * time/tzset.c (__tzset_parse_tz): Update default rules for
7672         daylight time changes in the Energy Policy Act of 2005.
7673
7674 2012-05-09  Andreas Jaeger  <aj@suse.de>
7675
7676         [BZ #13983]
7677         * elf/ldconfig.c (parse_conf): Change string to make clear that
7678         ldconfig only issued a warning if ld.so.conf does not exist.
7679
7680 2012-05-08  David S. Miller  <davem@davemloft.net>
7681
7682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7683         movxtod instead of popping the value on the stack.
7684
7685         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7686
7687 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7688
7689         * config.h.in: Add HAVE_ARM_PCS_VFP.
7690
7691 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7692
7693         [BZ #13979]
7694         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7695         checking but the checks are disabled for any reason.
7696
7697 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7698
7699         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7700         and ELF64_R_TYPE with ELFW(R_TYPE).
7701
7702 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7703
7704         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7705         (ulimit): Likewise.
7706
7707         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7708         (settimeofday): Likewise.
7709
7710 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7711
7712         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7713         a struct th_u2 inside the union, and move tu_block/tu_code into
7714         a new th_u3 union of tu_block/tu_code inside of that.  Move
7715         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7716         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7717         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7718         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7719         (th_stuff): Change to th_u1.tu_stuff.
7720         (th_data): Define.
7721         (th_msg): Change to th_u1.th_u2.tu_data.
7722
7723 2012-05-07  David S. Miller  <davem@davemloft.net>
7724
7725         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7726
7727         [BZ #14074]
7728         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7729         (SETUP_PIC_REG): Use it.
7730         (SETUP_PIC_REG_LEAF): Use it.
7731
7732 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7733
7734         [BZ #13885]
7735         [BZ #13923]
7736         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7737         USE_AS_EXPM1L.
7738         (EXPL_FINITE): Likewise.
7739         (FLDLOG): Likewise.
7740         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7741         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7742         e_expl.S.
7743         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7744         USE_AS_EXPM1L.
7745         (EXPL_FINITE): Likewise.
7746         (FLDLOG): Likewise.
7747         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7748         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7749         e_expl.S.
7750         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7751         test of -max_value argument for long double.
7752         * sysdeps/i386/fpu/libm-test-ulps: Update.
7753         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7754
7755 2012-05-06  David S. Miller  <davem@davemloft.net>
7756
7757         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7758         quad soft-float symbols whose references which are compiler
7759         generated.
7760         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7761
7762 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7763
7764         [BZ #13884]
7765         [BZ #13914]
7766         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7767         USE_AS_EXP10L.
7768         (EXPL_FINITE): Likewise.
7769         (FLDLOG): Likewise.
7770         (c0): Likewise.
7771         (c1): Likewise.
7772         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7773         Adjust comments for base varying.
7774         (__expl_finite): Change alias to EXPL_FINITE.
7775         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7776         e_expl.S.
7777         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7778         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7779         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7780         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7781         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7782         USE_AS_EXP10L.
7783         (EXPL_FINITE): Likewise.
7784         (FLDLOG): Likewise.
7785         (c0): Likewise.
7786         (c1): Likewise.
7787         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7788         Adjust comments for base varying.
7789         (__expl_finite): Change alias to EXPL_FINITE.
7790         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7791         tests for bugs.
7792         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7793
7794         [BZ #14064]
7795         * math/libm-test.inc (check_float_internal): Correct ulp
7796         calculation for subnormal expected results.
7797
7798 2012-05-06  Andreas Jaeger  <aj@suse.de>
7799
7800         * Makeconfig (+math-flags): New, set to -frounding-math.
7801         (+cflags): Add +math-flags so that all of glibc gets compiled with
7802         it.
7803
7804         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7805
7806 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7807
7808         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7809         Disable one test.
7810
7811         [BZ #13787]
7812         [BZ #13922]
7813         [BZ #14036]
7814         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7815         (__ieee754_expl): Allow for and saturate large arguments.
7816         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7817         (u_threshold): Likewise.
7818         (__exp): Call __ieee754_exp before checking for overflow and
7819         underflow.
7820         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7821         (u_threshold): Likewise.
7822         (__expf): Call __ieee754_expf before checking for overflow and
7823         underflow.
7824         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7825         (u_threshold): Likewise.
7826         (__expl): Call __ieee754_expl before checking for overflow and
7827         underflow.
7828         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7829         (__ieee754_expl): Allow for and saturate large arguments.
7830         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7831         missing overflow exception on overflow.
7832         (expm1_test): Do not allow missing overflow exception on overflow.
7833
7834         * sysdeps/i386/fpu/e_expl.c: Move to ...
7835         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7836         rather than using inline asm.
7837         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7838         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7839         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7840
7841         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7842         (nice): Likewise.
7843         (poll): Likewise.
7844         (signal): Likewise.
7845         (time): Likewise.
7846         (times): Likewise.
7847
7848 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7849
7850         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7851         sysdeps/unix/common/syscalls.list.
7852         (fchmod): Likewise.
7853         (fchown): Likewise.
7854         (ftruncate): Likewise.
7855         (getrusage): Likewise.
7856         (gettimeofday): Likewise.
7857         (setpgid): Likewise.
7858         (setregid): Likewise.
7859         (setreuid): Likewise.
7860         (sigaction): Likewise.
7861         (truncate): Likewise.
7862         (vhangup): Likewise.
7863         * sysdeps/unix/common/syscalls.list: Remove file.
7864         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7865         * sysdeps/unix/sysv/linux/Implies: Likewise.
7866
7867 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7868
7869         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7870         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7871         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7872         Moved to ...
7873         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7874         Here.
7875         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7876         to ...
7877         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7878         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7879         to ...
7880         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7881         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7882         to ...
7883         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7884         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7885         to ...
7886         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7887         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7888         to ...
7889         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7890         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7891         to ...
7892         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7893         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7894         to ...
7895         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7896         Here.
7897         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7898         to ...
7899         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7900         Here.
7901         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7902         to ...
7903         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7904         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7905         Moved to ...
7906         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7907         Here.
7908         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7909         to ...
7910         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7911
7912 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7913
7914         * sysdeps/unix/common/bits/dirent.h: Remove file.
7915         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7916
7917         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7918         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7919         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7920         * sysdeps/unix/bsd/isatty.c: Likewise.
7921         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7922         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7923         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7924
7925 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7926
7927         [BZ #13563]
7928         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7929         long double comparison inaccuracies.
7930         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7931         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7932
7933 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7934
7935         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7936         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7937
7938 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7939
7940         [BZ #14049]
7941         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7942         nonzero digits before rounding a hex value.
7943         * stdlib/tst-strtod.c (tests): Add another test.
7944
7945 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7946
7947         * sysdeps/s390/fpu/libm-test-ulps: Update.
7948
7949 2012-05-03  Andreas Jaeger  <aj@suse.de>
7950
7951         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7952         does not get optimized out.
7953         (malloc_opt_barrier): New.
7954
7955 2012-05-03  Andreas Jaeger  <aj@suse.de>
7956             Roland McGrath  <roland@hack.frob.com>
7957
7958         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7959         intermediate file deletion.
7960         (generated): Add .symlist files.
7961
7962 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7963
7964         [BZ #13775]
7965         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7966         Redirect under this condition.
7967         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7968         [__USE_GNU] (__dprintf_chk): Not under this condition.
7969         [__USE_GNU] (__vdprintf_chk): Likewise.
7970         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7971         under this condition.
7972         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7973         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7974         [__USE_XOPEN2K8] (vdprintf): Likewise.
7975         [__USE_GNU] (__dprintf_chk): Not under this condition.
7976         [__USE_GNU] (__vdprintf_chk): Likewise.
7977         [__USE_GNU] (dprintf): Likewise.
7978         [__USE_GNU] (vdprintf): Likewise.
7979
7980 2012-05-03  Roland McGrath  <roland@hack.frob.com>
7981
7982         * elf/Makefile (common-generated): Set this instead of generated for
7983         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
7984         $(all-built-dso)-derived lists.
7985
7986 2012-05-03  Andreas Jaeger  <aj@suse.de>
7987
7988         * sysdeps/i386/fpu/libm-test-ulps: Update.
7989
7990         * FAQ: Removed.
7991         * FAQ.in: Likewise.
7992         * scripts/gen-FAQ.pl: Likewise.
7993         * manual/install.texi (Installation): Point to online location of
7994         FAQ.
7995         * Makefile (files-for-dist): Remove FAQ.
7996         (FAQ): Remove.
7997
7998 2012-05-02  Allan McRae  <allan@archlinux.org>
7999
8000         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8001         (LDFLAGS-reldepmod5.so): Likewise.
8002         (LDFLAGS-reldep6mod1.so): Likewise.
8003         (LDFLAGS-reldep6mod4.so): Likewise.
8004         (LDFLAGS-reldep8mod3.so): Likewise.
8005         (LDFLAGS-unload4mod1.so): Likewise.
8006         (LDFLAGS-unload4mod2.so): Likewise.
8007         (LDFLAGS-tst-initorder): Likewise.
8008         (LDFLAGS-tst-initordera2.so): Likewise.
8009         (LDFLAGS-tst-initordera3.so): Likewise.
8010         (LDFLAGS-tst-initordera4.so): Likewise.
8011         (LDFLAGS-tst-initorderb2.so): Likewise.
8012         (LDFLAGS-noload): Likewise.
8013         (LDFLAGS-next): Likewise.
8014         (LDFLAGS-order2mod1.so): Likewise.
8015         (LDFLAGS-order2mod2.so): Likewise.
8016         (LDFLAGS-tst-initorder2): Likewise.
8017         (LDFLAGS-tst-initorder2a.so): Likewise.
8018         (LDFLAGS-tst-initorder2b.so): Likewise.
8019         (LDFLAGS-tst-initorder2c.so): Likewise.
8020         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8021
8022 2012-05-02  David S. Miller  <davem@davemloft.net>
8023
8024         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8025
8026 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8027
8028         [BZ #14055]
8029         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8030
8031 2012-05-02  Andreas Jaeger  <aj@suse.de>
8032
8033         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8034         since we manipulate rounding mode.
8035         (CPPFLAGS-test-idouble.c): Likewise.
8036         (CPPFLAGS-test-ifloat.c): Likewise.
8037         (CFLAGS-test-ldouble.c): Likewise.
8038         (CFLAGS-test-double.c): Likewise.
8039         (CFLAGS-test-float.c): Likewise.
8040         (CFLAGS-test-misc.c): Likewise.
8041         (CFLAGS-test-test-fenv.c): Likewise.
8042
8043 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8044
8045         [BZ #2550]
8046         [BZ #2570]
8047         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8048         comparisons to determine direction to adjust input.
8049
8050 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8051
8052         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8053         output to the target.
8054
8055         * scripts/localplt.awk: New file.
8056         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8057         (check-localplt-CFLAGS): Variable removed.
8058         ($(all-built-dso:=.jmprel)): New static pattern rule.
8059         (generated): Add those targets.
8060         (localplt-built-dso): New variable.
8061         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8062
8063         * elf/check-localplt.c: File removed.
8064
8065         * scripts/check-execstack.awk: New file.
8066         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8067         (check-execstack-CFLAGS): Variable removed.
8068         ($(objpfx)check-execstack.h): Target removed.
8069         ($(objpfx)execstack-default): New target.
8070         (generated): Add that instead of check-execstack.h.
8071         ($(all-built-dso:=.phdr)): New static pattern rule.
8072         (generated): Add those targets.
8073         * elf/check-execstack.c: File removed.
8074
8075         * scripts/check-textrel.awk: New file.
8076         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8077         (check-textrel-CFLAGS): Variable removed.
8078         (all-built-dso): Use := to define.o
8079         ($(all-built-dso:=.dyn)): New static pattern rule.
8080         (generated): Add those targets.
8081         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8082         * config.make.in (READELF): New substituted variable.
8083         * elf/check-textrel.c: File removed.
8084
8085 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8086
8087         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8088         allow.
8089         * conform/data/ctype.h-data [C99-based standards] (isblank):
8090         Expect function.
8091         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8092         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8093         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8094         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8095         Specify type.  Require positive value.
8096         (EILSEQ): Likewise.
8097         (ERANGE): Likewise.
8098         [ISO || POSIX] (EILSEQ): Do not expect.
8099         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8100         Specify type.  Require positive value.
8101         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8102         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8103         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8104         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8105         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8106         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8107         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8108         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8109         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8110         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8111         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8112         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8113         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8114         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8115         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8116         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8117         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8118         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8119         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8120         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8121         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8122         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8123         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8124         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8125         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8126         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8127         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8128         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8129         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8130         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8131         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8132         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8133         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8134         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8135         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8136         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8137         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8138         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8139         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8140         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8141         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8142         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8143         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8144         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8145         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8146         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8147         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8148         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8149         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8150         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8151         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8152         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8153         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8154         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8155         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8156         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8157         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8158         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8159         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8160         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8161         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8162         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8163         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8164         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8165         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8166         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8167         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8168         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8169         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8170         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8171         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8172         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8173         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8174         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8175         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8176         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8177         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8178         Require >= 2.
8179         (FLT_ROUNDS): Expect as macro, not constant.
8180         (FLT_MANT_DIG): Use macro-int-constant.
8181         (DBL_MANT_DIG): Likewise.
8182         (LDBL_MANT_DIG): Likewise.
8183         (FLT_DIG): Likewise.
8184         (DBL_DIG): Likewise.
8185         (LDBL_DIG): Likewise.
8186         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8187         (DBL_MIN_EXP): Likewise.
8188         (LDBL_MIN_EXP): Likewise.
8189         (FLT_MAX_EXP): Use macro-int-constant.
8190         (DBL_MAX_EXP): Likewise.
8191         (LDBL_MAX_EXP): Likewise.
8192         (FLT_MAX_10_EXP): Likewise.
8193         (DBL_MAX_10_EXP): Likewise.
8194         (LDBL_MAX_10_EXP): Likewise.
8195         (FLT_MAX): Use macro-constant.
8196         (DBL_MAX): Likewise.
8197         (LDBL_MAX): Likewise.
8198         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8199         (DBL_EPSILON): Likewise.
8200         (LDBL_EPSILON): Likewise.
8201         (FLT_MIN): Likewise.
8202         (DBL_MIN): Likewise.
8203         (LDBL_MIN): Likewise.
8204         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8205         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8206         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8207         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8208         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8209         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8210         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8211         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8212         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8213         [ISO11] (FLT_TRUE_MIN): Likewise.
8214         [ISO11] (LDBL_TRUE_MIN): Likewise.
8215         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8216         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8217         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8218         (SCHAR_MAX): Likewise.
8219         (UCHAR_MAX): Likewise.
8220         (CHAR_MIN): Likewise.
8221         (CHAR_MAX): Likewise.
8222         (MB_LEN_MAX): Use macro-int-constant.
8223         (SHRT_MIN): Use macro-int-constant.  Specify type.
8224         (SHRT_MAX): Likewise.
8225         (USHRT_MAX): Likewise.
8226         (INT_MAX): Likewise.
8227         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8228         bound negative.
8229         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8230         bound with "U".
8231         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8232         bound with "L".
8233         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8234         bound negative.  Suffix upper bound with "L".
8235         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8236         bound with "UL".
8237         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8238         Specify type.
8239         [C99-based standards] (LLONG_MAX): Likewise.
8240         [C99-based standards] (ULLONG_MAX): Likewise.
8241         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8242         == 0.
8243         [ISO11] (max_align_t): Require type.
8244         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8245
8246         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8247         from $CFLAGS, without defining away __attribute__ calls.
8248         (checknamespace): Use $CFLAGS_namespace.
8249
8250         * conform/conformtest.pl (@keywords): Only include C99 keywords
8251         for standards based on C99 or C11.
8252
8253         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8254         Disable tests.
8255         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8256         UNIX98]: Likewise.
8257
8258         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8259         usability of symbols in #if.
8260
8261         * conform/conformtest.pl: If macro or constant types start
8262         "promoted:", expect the symbol to be of the following type
8263         promoted by the integer promotions.
8264
8265         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8266         in one place.  Also handle "macro-constant".
8267
8268         * conform/conformtest.pl: Only accept expected macro values with
8269         "==".  Parse all "macro" lines in one place.
8270         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8271
8272         * conform/conformtest.pl: Handle braced types on "constant" lines
8273         instead of handling "typed-constant".
8274         * conform/data/signal.h-data: Use "constant" instead of
8275         "typed-constant".
8276
8277         * conform/conformtest.pl: Handle "optional-" at start of lines in
8278         one place rather than duplicating several cases.  Handle each
8279         format of "macro" line with initial "optional-".
8280
8281         * conform/conformtest.pl: Only accept expected constant or
8282         optional-constant values with "==".  Parse all "constant" lines in
8283         one place.  Parse all "optional-constant" lines in one place.
8284         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8285         * conform/data/fmtmsg.h-data: Likewise.
8286         * conform/data/netinet/in.h-data: Likewise.
8287         * conform/data/tar.h-data: Likewise.
8288         * conform/data/limits.h-data: Use "==" form on "constant" and
8289         "optional-constant" lines.
8290
8291         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8292         Use -std=c99 for XOPEN2K.
8293         (@knownproblems): Remove.
8294         (newtoken): Don't check %isknown.
8295
8296         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8297         Do not expect macro.
8298         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8299         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8300         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8301         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8302         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8303         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8304         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8305         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8306         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8307         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8308         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8309         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8310         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8311         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8312         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8313         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8314         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8315         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8316         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8317         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8318         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8319         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8320         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8321         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8322         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8323         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8324         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8325         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8326         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8327         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8328         [XPG3] (acosh): Likewise.
8329         [XPG3] (asinh): Likewise.
8330         [XPG3] (atanh): Likewise.
8331         [XPG3] (cbrt): Likewise.
8332         [XPG3] (expm1): Likewise.
8333         [XPG3] (ilogb): Likewise.
8334         [XPG3] (log1p): Likewise.
8335         [XPG3] (logb): Likewise.
8336         [XPG3] (nextafter): Likewise.
8337         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8338         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8339         [XPG3] (remainder): Likewise.
8340         [XPG3] (rint): Likewise.
8341         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8342         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8343         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8344         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8345         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8346         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8347         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8348         [UNIX98 || XOPEN2K] (scalb): Expect.
8349         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8350         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8351         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8352         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8353         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8354         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8355         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8356         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8357         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8358         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8359         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8360         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8361         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8362         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8363         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8364         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8365         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8366         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8367         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8368         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8369         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8370         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8371         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8372         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8373         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8374         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8375         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8376         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8377         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8378         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8379         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8380         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8381         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8382         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8383         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8384         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8385         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8386         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8387         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8388         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8389         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8390         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8391         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8392         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8393         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8394         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8395         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8396         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8397         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8398         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8399         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8400         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8401         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8402         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8403         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8404         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8405         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8406         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8407         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8408         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8409         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8410         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8411         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8412         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8413         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8414         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8415         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8416         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8417         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8418         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8419         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8420         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8421         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8422         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8423         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8424         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8425         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8426         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8427         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8428         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8429         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8430         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8431         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8432         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8433         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8434         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8435         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8436         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8437         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8438         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8439         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8440         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8441         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8442         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8443         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8444         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8445         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8446         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8447         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8448         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8449         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8450         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8451         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8452         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8453         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8454         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8455         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8456         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8457         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8458         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8459         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8460         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8461         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8462         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8463         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8464         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8465         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8466         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8467         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8468         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8469         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8470         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8471         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8472         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8473         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8474         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8475         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8476         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8477         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8478         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8479         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8480         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8481         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8482         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8483         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8484         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8485         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8486
8487         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8488         _XOPEN_SOURCE_EXTENDED for XPG4.
8489
8490         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8491
8492         * Makeconfig (localtime): Remove variable.
8493         (inst_localtime-file): Likewise.
8494
8495 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8496
8497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8498         Update.
8499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8500         Update.
8501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8502         Update.
8503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8504         Update.
8505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8506         Update.
8507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8508         Update.
8509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8510         Update.
8511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8512         Update.
8513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8514         Update.
8515
8516 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8517
8518         [BZ #2550]
8519         [BZ #2570]
8520         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8521         comparisons to determine direction to adjust input.
8522         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8523         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8524         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8525         Likewise.
8526         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8527         Likewise.
8528         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8529         Likewise.
8530         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8531         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8532         Likewise.
8533         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8534         Likewise.
8535         * math/libm-test.inc (nexttoward_test): Add more tests.
8536
8537 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8538
8539         [BZ #14040]
8540         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8541         in version GLIBC_2.1, not GLIBC_2.0.
8542         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8543         Likewise.
8544
8545 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8546
8547         [BZ #13942]
8548         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8549         (1 - x) * (1 + x).
8550         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8551         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8552         * math/libm-test.inc (acos_test): Add more tests.
8553         (asin_test): Likewise.
8554         * sysdeps/i386/fpu/libm-test-ulps: Update.
8555         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8556
8557         [BZ #14034]
8558         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8559         of square root.
8560         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8561         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8562         * math/libm-test.inc (acos_test_tonearest): New function.
8563         (acos_test_towardzero): Likewise.
8564         (acos_test_downward): Likewise.
8565         (acos_test_upward): Likewise.
8566         (asin_test_tonearest): Likewise.
8567         (asin_test_towardzero): Likewise.
8568         (asin_test_downward): Likewise.
8569         (asin_test_upward): Likewise.
8570         (main): Call the new functions.
8571         * sysdeps/i386/fpu/libm-test-ulps: Update.
8572         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8573
8574         [BZ #13884]
8575         [BZ #13924]
8576         * math/e_exp10.c: Include <float.h>.
8577         (__ieee754_exp10): Handle underflow here rather than multiplying
8578         large negative argument by M_LN10.
8579         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8580         of __ieee754_expf.
8581         * math/e_exp10l.c: Include <float.h>.
8582         (__ieee754_exp10l): Handle underflow here rather than multiplying
8583         large negative argument by M_LN10l.
8584         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8585         spurious overflow exception on underflow.
8586
8587 2012-04-29  Marek Polacek  <polacek@redhat.com>
8588
8589         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8590         (__fortify_function): New macro.
8591         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8592         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8593         __extern_always_inline.
8594         * libio/bits/stdio2.h: Likewise.
8595         * libio/bits/stdio.h: Likewise.
8596         * string/string.h: Likewise.
8597         * string/bits/string3.h: Likewise.
8598         * include/stdio.h: Likewise.
8599         * stdlib/bits/stdlib.h: Likewise.
8600         * stdlib/stdlib.h: Likewise.
8601         * rt/bits/mqueue2.h: Likewise.
8602         * rt/mqueue.h: Likewise.
8603         * posix/bits/unistd.h: Likewise.
8604         * posix/unistd.h: Likewise.
8605         * io/bits/poll2.h: Likewise.
8606         * io/bits/fcntl2.h: Likewise.
8607         * io/fcntl.h: Likewise.
8608         * io/sys/poll.h: Likewise.
8609         * misc/bits/syslog.h: Likewise.
8610         * misc/bits/syslog-ldbl.h: Likewise.
8611         * misc/sys/syslog.h: Likewise.
8612         * socket/bits/socket2.h: Likewise.
8613         * socket/sys/socket.h: Likewise.
8614         * debug/tst-chk1.c: Likewise.
8615         * wcsmbs/bits/wchar2.h: Likewise.
8616         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8617         * wcsmbs/wchar.h: Likewise.
8618
8619 2012-04-29  Andreas Jaeger  <aj@suse.de>
8620
8621         * Makerules (tests): Remove enable-check-abi protection.
8622         (check-abi-warn): Remove.
8623         (check-abi-%): Remove check-abi-warn usage.
8624
8625         * configure.in: Remove check-abi configure option.
8626         * configure: Regenerated.
8627         * config.make.in (enable-check-abi): Remove.
8628
8629 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8630
8631         [BZ #14033]
8632         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8633         double functions to double *_finite functions.
8634
8635         [BZ #13941]
8636         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8637         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8638         LDBL_MIN_EXP.
8639         * stdio-common/Makefile (tests): Add tst-sprintf3.
8640         * stdio-common/tst-sprintf3.c: New file.
8641
8642         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8643         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8644
8645 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8646
8647         * conform/conformtest.pl: Remove duplicate typed-constant
8648         handling.
8649
8650 2012-04-28  David S. Miller  <davem@davemloft.net>
8651
8652         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8653         (check-abi-%): Remove AWK script prerequisite and explicit
8654         abilist directory.
8655         (check-abi): Rewrite to just diff the symlist with the abilist.
8656         (config-tls, config-abi-config): Delete, no longer used.
8657         (update-abi-%): Remove AWK script and explicit abilist directory.
8658         (update-abi): Rewrite to simply compare and conditionally copy the
8659         symlist and the sysdep abilist file.  Remove update-abi-config
8660         checks.
8661         * abilist/ld.abilist: Remove.
8662         * abilist/libBrokenLocale.abilist: Remove.
8663         * abilist/libanl.abilist: Remove.
8664         * abilist/libcrypt.abilist: Remove.
8665         * abilist/libdl.abilist: Remove.
8666         * abilist/librt.abilist: Remove.
8667         * abilist/libthread_db.abilist: Remove.
8668         * abilist/libutil.abilist: Remove.
8669         * scripts/extract-abilist.awk: Remove.
8670         * scripts/merge-abilist.awk: Remove.
8671         * sysdeps/generic/libcidn.abilist: New file.
8672         * sysdeps/generic/libnss_compat.abilist: New file.
8673         * sysdeps/generic/libnss_db.abilist: New file.
8674         * sysdeps/generic/libnss_dns.abilist: New file.
8675         * sysdeps/generic/libnss_files.abilist: New file.
8676         * sysdeps/generic/libnss_hesiod.abilist: New file.
8677         * sysdeps/generic/libnss_nis.abilist: New file.
8678         * sysdeps/generic/libnss_nisplus.abilist: New file.
8679         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8680         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8681         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8682         file.
8683         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8684         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8685         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8686         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8687         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8688         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8689         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8690         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8691         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8692         file.
8693         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8694         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8695         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8696         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8697         file.
8698         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8699         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8700         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8701         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8702         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8703         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8704         file.
8705         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8706         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8707         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8708         file.
8709         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8710         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8711         New file.
8712         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8713         New file.
8714         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8715         New file.
8716         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8717         New file.
8718         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8719         New file.
8720         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8721         New file.
8722         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8723         New file.
8724         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8725         New file.
8726         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8727         New file.
8728         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8729         New file.
8730         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8731         New file.
8732         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8733         New file.
8734         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8735         New file.
8736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8737         file.
8738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8739         New file.
8740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8741         New file.
8742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8743         file.
8744         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8745         New file.
8746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8747         New file.
8748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8749         file.
8750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8751         New file.
8752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8753         New file.
8754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8755         New file.
8756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8757         New file.
8758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8759         New file.
8760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8761         New file.
8762         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8763         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8764         file.
8765         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8766         New file.
8767         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8768         file.
8769         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8770         file.
8771         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8772         file.
8773         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8774         file.
8775         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8776         file.
8777         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8778         New file.
8779         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8780         file.
8781         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8782         file.
8783         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8784         New file.
8785         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8786         file.
8787         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8788         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8789         file.
8790         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8791         New file.
8792         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8793         file.
8794         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8795         file.
8796         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8797         file.
8798         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8799         file.
8800         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8801         file.
8802         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8803         New file.
8804         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8805         file.
8806         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8807         file.
8808         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8809         New file.
8810         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8811         file.
8812         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8813         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8814         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8815         file.
8816         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8817         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8818         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8819         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8820         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8821         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8822         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8823         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8824         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8825         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8826         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8827         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8828         file.
8829         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8830         New file.
8831         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8832         file.
8833         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8834         file.
8835         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8836         file.
8837         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8838         file.
8839         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8840         file.
8841         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8842         New file.
8843         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8844         New file.
8845         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8846         file.
8847         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8848         New file.
8849         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8850         file.
8851         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8852         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8853         file.
8854         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8855         New file.
8856         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8857         file.
8858         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8859         file.
8860         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8861         file.
8862         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8863         file.
8864         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8865         file.
8866         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8867         New file.
8868         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8869         New file.
8870         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8871         file.
8872         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8873         New file.
8874         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8875         file.
8876
8877 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8878
8879         * conform/conformtest.pl: Fix typo in handling typed-constant from
8880         allow-header.
8881
8882 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8883
8884         * README: Cut down references to pre-2.6 Linux kernels and
8885         Linuxthreads.  Update lists of configurations in libc and ports
8886         and sort alphabetically.  Say "or newer" with Linux kernel version
8887         requirements.
8888
8889         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8890
8891 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8892
8893         [BZ #887]
8894         * math/libm-test.inc (logb_test_downward): New test to expose
8895         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8896         rounding mode.
8897
8898 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8899
8900         [BZ #14027]
8901         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8902         to be done.
8903         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8904         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8905
8906 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8907
8908         * sysdeps/unix/i386/brk.S: Remove file.
8909         * sysdeps/unix/i386/dl-brk.S: Likewise.
8910         * sysdeps/unix/i386/pipe.S: Likewise.
8911         * sysdeps/unix/i386/sigreturn.S: Likewise.
8912         * sysdeps/unix/i386/syscall.S: Likewise.
8913         * sysdeps/unix/i386/vfork.S: Likewise.
8914         * sysdeps/unix/i386/wait.S: Likewise.
8915
8916         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8917         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8918
8919         * configure.in (arm*-none*): Do not allow without
8920         --enable-hacker-mode.
8921         (netbsd*): Remove case setting base_os.
8922         (386bsd*): Likewise.
8923         (freebsd*): Likewise.
8924         (bsdi*): Likewise.
8925         (osf*): Likewise.
8926         (sunos*): Likewise.
8927         (ultrix*): Likewise.
8928         (newsos*): Likewise.
8929         (dynix*): Likewise.
8930         (*bsd*): Likewise.
8931         (sysv*): Likewise.
8932         (isc*): Likewise.
8933         (esix*): Likewise.
8934         (sco*): Likewise.
8935         (minix*): Likewise.
8936         (irix4*): Likewise.
8937         (irix6*): Likewise.
8938         (solaris[2-9]*): Likewise.
8939         (none): Likewise.
8940         * configure: Regenerated.
8941
8942 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8943
8944         [BZ #11521]
8945         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8946         overflow or cancellation in calculating denominator.
8947         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8948         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8949         down expression to avoid unexpected rounding in newer GCCs.
8950         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8951
8952 2012-04-26  David S. Miller  <davem@davemloft.net>
8953
8954         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8955         long-double compat symbols.
8956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8957         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8959         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8961         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8962         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8963         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8964         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8965         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8966         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8967         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8968         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8969
8970 2012-04-25  David S. Miller  <davem@davemloft.net>
8971
8972         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8973         HWCAP_* values only after the memory barriers have been defined.
8974         (atomic_full_barrier): Define.
8975         (atomic_read_barrier): Define.
8976         (atomic_write_barrier): Define.
8977
8978 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8979
8980         * shlib-versions: Add libgcc_s version information.
8981         * sysdeps/generic/libgcc_s.h: Remove.
8982         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
8983         libgcc_s.h.
8984         * sysdeps/gnu/unwind-resume.c: Likewise.
8985         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
8986
8987 2012-04-25  David S. Miller  <davem@davemloft.net>
8988
8989         * sysdeps/unix/sparc/brk.S: Delete.
8990         * sysdeps/unix/sparc/dl-brk.S: Delete.
8991         * sysdeps/unix/sparc/pipe.S: Delete.
8992         * sysdeps/unix/sparc/sysdep.S: Delete.
8993         * sysdeps/unix/sparc/sysdep.h: Delete.
8994         * sysdeps/unix/sparc/vfork.S: Delete.
8995         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
8996         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
8997         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
8998         ret_ERRVAL, r0, r1, MOVE): Define.
8999         (JUMPTARGET): Remove.
9000         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9001         sysdeps/unix/sparc/sysdep.h
9002         (ENTRY, END): Remove.
9003         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9004
9005 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9006
9007         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9008         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9009         -DIS_IN_build.
9010
9011         * timezone/README: Update upstream location and email address for
9012         tzcode and tzdata.
9013         * timezone/zdump.c: Update from tzcode 2012b.
9014         * timezone/zic.c: Likewise.
9015
9016         * configure.in (libc_cv_as_needed): Remove test.
9017         * configure: Regenerated.
9018         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9019         conditional definition.
9020         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9021         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9022         * config.make.in (have-as-needed): Remove variable.
9023
9024 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9025             Paul Pluzhnikov  <ppluzhnikov@google.com>
9026
9027         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9028         strings correctly.
9029
9030 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9031
9032         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9033         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9034         * sysdeps/sh/strlen.S: Likewise.
9035
9036 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9037
9038         * sysdeps/unix/fork.S: Remove file.
9039         * sysdeps/unix/i386/fork.S: Likewise.
9040         * sysdeps/unix/sparc/fork.S: Likewise.
9041
9042         * sysdeps/unix/system.c: Remove file.
9043         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9044
9045         * sysdeps/unix/getegid.S: Remove file.
9046         * sysdeps/unix/geteuid.S: Likewise.
9047
9048 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9049
9050         * scripts/check-localplt.awk: New file.
9051         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9052         of diff.
9053         * scripts/data/localplt-generic.data: Add a comment.
9054
9055         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9056         NODE when __dir_mkfile failed.
9057         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9058         Reported by Ludovic Courtès <ludo@gnu.org>.
9059
9060 2012-04-24  Andreas Jaeger  <aj@suse.de>
9061
9062         * Makerules (common-clean): Also remove gen-as-const-headers
9063         files.
9064
9065 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9066
9067         * Makerules (native-compile): Do not change working directory for
9068         build.  Use $(OUTPUT_OPTION) in command.
9069         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9070
9071 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9072
9073         [BZ #13886]
9074         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9075         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9076         * math/libm-test.inc (floor_test): Add more tests.
9077         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9078
9079 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9080
9081         * sysdeps/unix/getdents.c: Remove file.
9082         * sysdeps/unix/sysv/getdents.c: Likewise.
9083         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9084
9085         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9086         sysdeps/unix/mman/syscalls.list.
9087         (mmap): Likewise.
9088         (mprotect): Likewise.
9089         (msync): Likewise.
9090         (munmap): Likewise.
9091         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9092         * sysdeps/unix/mman/syscalls.list: Remove.
9093         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9094
9095         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9096         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9097         * configure: Regenerated.
9098         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9099         $(libgcc_s_suffix).
9100         * config.make.in (libgcc_s_suffix): Remove variable.
9101
9102 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9103
9104         * sysdeps/unix/sysv/gethostname.c: Move to ...
9105         * sysdeps/posix/gethostname.c: ... here.
9106
9107         * sysdeps/unix/execve.S: Remove file.
9108
9109         * sysdeps/unix/_exit.S: Remove file.
9110
9111 2012-04-23  Andreas Jaeger  <aj@suse.de>
9112
9113         [BZ #13739]
9114         * manual/Makefile: Remove make dist support, there's no
9115         need for a stand-alone documentation tar ball.
9116         (TEXI2DVI): Define always, it's not in Makeconfig.
9117         (dist): Removed.
9118         (tar-it): Removed.
9119         (edition): Removed.
9120         (glibc-doc-$(edition).tar): Removed
9121         (%.Z): Removed.
9122         (%.gz): Removed.
9123         (%.uu): Removed.
9124         (ETAGS): Remove, it's in Makeconfig.
9125         (move-if-change): Remove, it's in Makeconfig.
9126
9127 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9128
9129         [BZ #13970]
9130         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9131         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9132         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9133         (strtod_l, strtof_l, strtold_l): Remove __wur.
9134         It is not necessarily an error to ignore strtol's return value.
9135         One can reliably look at the stored endptr to decide whether
9136         the number had valid syntax.
9137
9138 2012-04-21  Andreas Jaeger  <aj@suse.de>
9139
9140         [BZ #13739]
9141         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9142
9143 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9144
9145         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9146         * sysdeps/unix/sysv/Versions: Remove file.
9147
9148 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9149
9150         [BZ #13927]
9151         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9152
9153 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9154
9155         [BZ #7064]
9156         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9157         version from __vm86.
9158
9159 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9160
9161         * sysdeps/unix/common/lxstat.c: Remove file.
9162         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9163
9164         * sysdeps/unix/sysv/Makefile: Remove file.
9165
9166         * sysdeps/unix/sysv/direct.h: Remove file.
9167
9168         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9169         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9170         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9171         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9172         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9173         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9174         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9175
9176         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9177
9178         * sysdeps/unix/xmknod.c: Remove file.
9179         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9180
9181         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9182
9183         * sysdeps/unix/sysv/i386/time.S: Remove file.
9184
9185         * sysdeps/unix/fxstat.c: Remove file.
9186         * sysdeps/unix/xstat.c: Likewise.
9187         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9188
9189         * sysdeps/unix/sysv/sigaction.c: Remove file.
9190
9191         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9192         (sysdep_headers): Remove variable.
9193         [termio.h not in sysdep_headers] (generated): Likewise.
9194         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9195         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9196         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9197         * sysdeps/unix/sysv/tcflow.c: Likewise.
9198         * sysdeps/unix/sysv/tcflush.c: Likewise.
9199         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9200         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9201         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9202         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9203         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9204
9205         * sysdeps/unix/siglist.c: Remove file.
9206
9207         * sysdeps/unix/getppid.S: Remove file.
9208
9209         * sysdeps/unix/mkdir.c: Remove file.
9210         * sysdeps/unix/rmdir.c: Likewise.
9211
9212 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9213
9214         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9215         ERR_MAX value.
9216         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9217         errlist-compat value.
9218
9219 2012-04-18  David S. Miller  <davem@davemloft.net>
9220
9221         * sysdeps/generic/memcopy.h (reg_char): Delete.
9222         * debug/strcat_chk.c: Use char, not reg_char.
9223         * debug/strcpy_chk.c: Likewise.
9224         * debug/strncat_chk.c: Likewise.
9225         * debug/strncpy_chk.c: Likewise.
9226         * string/memchr.c: Likewise.
9227         * string/memrchr.c: Likewise.
9228         * string/rawmemchr.c: Likewise.
9229         * string/strcat.c: Likewise.
9230         * string/strchr.c: Likewise.
9231         * string/strchrnul.c: Likewise.
9232         * string/strcmp.c: Likewise.
9233         * string/strcpy.c: Likewise.
9234         * string/strncat.c: Likewise.
9235         * string/strncmp.c: Likewise.
9236         * string/strncpy.c: Likewise.
9237
9238 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9239
9240         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9241         __builtin_memcopy is called when src and dest ranges are known to not
9242         overlap.
9243
9244 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9245
9246         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9247         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9248         fwd_align_merge macro call.
9249         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9250         bwd_align_merge macro call.
9251         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9252
9253 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9254
9255         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9256         bwd_align_merge macros.
9257         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9258         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9259         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9260
9261 2012-04-18  David S. Miller  <davem@davemloft.net>
9262
9263         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9264
9265 2012-04-18  Andreas Jaeger  <aj@suse.de>
9266
9267         [BZ# 6794]
9268         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9269         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9270         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9271
9272         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9273         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9274         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9275
9276         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9277         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9278         Adjust for changed ldbl-128 files.
9279
9280         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9281         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9282         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9283
9284 2012-04-17  David S. Miller  <davem@davemloft.net>
9285
9286         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9287
9288 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9289
9290         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9291         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9292         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9293         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9294         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9295         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9296
9297 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9298
9299         [BZ #6794]
9300         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9301         * math/libm-test.inc: Add ilogb errno and exception tests.
9302         * math/w_ilogb.c: New file: ilogb wrapper.
9303         * math/w_ilogbf.c: New file: ilogbf wrapper.
9304         * math/w_ilogbl.c: New file: ilogbl wrapper.
9305         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9306         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9307         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9308         exception being thrown with 0.0 as argument.
9309         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9310         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9311         exception being thrown with 0.0 as argument.
9312         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9313         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9314         exception being thrown with 0.0 as argument.
9315         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9316         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9317         exception being thrown with 0.0 as argument.
9318         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9319         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9320         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9321         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9322         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9323         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9324         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9325         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9326         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9327
9328 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9329
9330         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9331         with altivec.
9332
9333 2012-04-16  Marek Polacek  <polacek@redhat.com>
9334
9335         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9336
9337 2012-04-16  Marek Polacek  <polacek@redhat.com>
9338
9339         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9340         operands of fdivp instruction.
9341
9342 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9343
9344         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9345         * elf/tst-auditmod3b.c: Likewise.
9346         * elf/tst-auditmod4b.c: Likewise.
9347         * elf/tst-auditmod5b.c: Likewise.
9348         * elf/tst-auditmod6b.c: Likewise.
9349         * elf/tst-auditmod6c.c: Likewise.
9350         * elf/tst-auditmod7b.c: Likewise.
9351         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9352         * sysdeps/x86_64/preconfigure.in: Likewise.
9353         * sysdeps/x86_64/preconfigure: Regenerated.
9354
9355 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9356
9357         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9358         __ILP32__.
9359
9360 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9361
9362         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9363         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9364
9365 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9366
9367         [BZ #13973]
9368         * locale/iso-639.def: Fix gl language name. Spotted by
9369         Yaron Shahrabani.
9370
9371 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9372
9373         [BZ #2074]
9374         * libio/libio.h (__io_write_fn): Update comment.
9375
9376 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9377
9378         [BZ #2074]
9379         * stdio.texi (Hook Functions): The user provided writer function
9380         is not allowed to return -1.
9381
9382 2012-04-11  David S. Miller  <davem@davemloft.net>
9383
9384         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9385
9386 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9387
9388         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9389         Add a leading slash to rtkaio.
9390
9391 2012-04-11  Jim Meyering  <meyering@redhat.com>
9392
9393         [BZ #11959]
9394         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9395         It is not necessarily an error to ignore fwrite's return
9396         value.  One can reliably use ferror to test for errors after
9397         the fact.
9398
9399 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9400
9401         * bits/types.h (__snseconds_t): New type.
9402         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9403
9404         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9405         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9406         (__SNSECONDS_T_TYPE): Likewise.
9407         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9408         (__SNSECONDS_T_TYPE): Likewise.
9409         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9410         (__SNSECONDS_T_TYPE): Likewise.
9411
9412 2012-04-10  Andreas Jaeger  <aj@suse.de>
9413
9414         [BZ #2636]
9415         * manual/time.texi (Processor Time): Return type of times is
9416         elapsed real time since an arbitrary point in the past.
9417         (CPU Time): Move CLK_TCK from here...
9418         (Processor Time): ...to here.  Correct description.
9419         * manual/conf.texi (Constants for Sysconf): Correct description of
9420         _SC_CLK_TCK.
9421
9422 2012-04-10  David S. Miller  <davem@davemloft.net>
9423
9424         [BZ #13967]
9425         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9426         where the is a gap between DT_REL(A) and DT_JMPREL.
9427
9428 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9429
9430         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9431         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9432         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9433
9434 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9435
9436         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9437         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9438         (dl_main): Handle --inhibit-cache.
9439         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9440         _dl_inhibit_cache.
9441         * elf/dl-load.c (_dl_map_object): Use it.
9442         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9443
9444 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9445
9446         [BZ #13872]
9447         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9448         (__ieee754_powl): Saturate large exponents rather than testing for
9449         overflow of y*log2(x).
9450         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9451         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9452         exceptions.
9453
9454         [BZ #11521]
9455         * math/s_ctan.c: Include <float.h>.
9456         (__ctan): Avoid internal overflow or cancellation in calculating
9457         denominator.
9458         * math/s_ctanf.c: Likewise.
9459         * math/s_ctanl.c: Likewise.
9460         * math/s_ctanh.c: Likewise.
9461         * math/s_ctanhf.c: Likewise.
9462         * math/s_ctanhl.c: Likewise.
9463         * math/libm-test.inc (ctan_test): Add more tests.
9464         (ctanh_test): Likewise.
9465         * sysdeps/i386/fpu/libm-test-ulps: Update.
9466         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9467
9468 2012-04-09  Andreas Jaeger  <aj@suse.de>
9469
9470         [BZ #6894]
9471         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9472         is an optional BSD extension.
9473
9474         [BZ #10254]
9475         * manual/stdio.texi (Opening Streams): Document additional fopen
9476         parameters.
9477
9478 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9479
9480         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9481         %eax without telling the compiler.
9482
9483 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9484
9485         [BZ # 13963]
9486         * manual/install.texi: Use sourceware.org.
9487
9488 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9489
9490         [BZ #13873]
9491         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9492         (__ieee754_pow): Generate overflow and underflow using huge*huge
9493         and tiny*tiny rather than just returning constant infinity or zero
9494         for large exponents.
9495         * math/libm-test.inc (pow_test): Require overflow exceptions for
9496         applicable cases of large exponents.
9497
9498         [BZ #706]
9499         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9500         (__ieee754_pow): Use iterative multiplication algorithm only for
9501         integer exponents with absolute value below 1024.  Check for odd
9502         integer exponents when using algorithm for real exponents.
9503         * math/libm-test.inc (pow_test): Add more tests.
9504         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9505
9506 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9507
9508         [BZ #13705]
9509         * math/libm-test.inc (exp_test): Do not allow overflow exception
9510         on underflow test.
9511
9512 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9513
9514         [BZ #13705]
9515         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9516         instead of __kernel_standard_f.
9517
9518 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9519
9520         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9521         * sysdeps/x86_64/memset_chk.S: Likewise.
9522
9523 2012-04-08  Andreas Jaeger  <aj@suse.de>
9524
9525         [BZ #10153]
9526         * manual/startup.texi (Environment Access): Describe return value
9527         for putenv and setenv.
9528
9529         [BZ #6895]
9530         * manual/filesys.texi (Directory Entries): Add description for
9531         DT_LNK.
9532
9533         [BZ #6890]
9534         * manual/filesys.texi (Directory Entries): Clarify that it's file
9535         system not operating system in the description of DT_UNKNOWN.
9536
9537         [BZ #6578]
9538         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9539
9540 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9541
9542         [BZ #6649]
9543         * manual/llio.texi (Opening and Closing Files): Add cross
9544         reference to explain mode argument.
9545
9546 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9547
9548         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9549         * sysdeps/x86_64/memset_chk.S: Likewise.
9550
9551 2012-04-07  David S. Miller  <davem@davemloft.net>
9552
9553         * elf/elf.h (R_SPARC_WDISP10): Define.
9554         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9555         R_SPARC_SIZE32.
9556         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9557         R_SPARC_SIZE64 and R_SPARC_H34.
9558
9559 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9560
9561         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9562         conditions and remove no longer applicable assertion.
9563
9564 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9565
9566         * bits/byteswap.h: Include <features.h>.
9567         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9568         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9569
9570 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9571
9572         * bits/byteswap.h (__bswap_16): Removed.
9573         Include <bits/byteswap-16.h> to get __bswap_16.
9574         * sysdeps/i386/bits/byteswap.h: Likewise.
9575         * sysdeps/s390/bits/byteswap.h: Likewise.
9576         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9577         * bits/byteswap-16.h: New file.
9578         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9579         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9580         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9581         * string/Makefile (headers): Add bits/byteswap-16.h.
9582
9583 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9584
9585         [BZ #13895]
9586         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9587         extra indirection.
9588         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9589         * nss/tst-nss-static.c: New.
9590
9591 2012-04-06  Robert Millan  <rmh@gnu.org>
9592
9593         [BZ #6486]
9594         * manual/llio.texi (File Position Primitive): lseek
9595         refers to WHENCE when it really means OFFSET.
9596
9597 2012-04-06  Andreas Jaeger  <aj@suse.de>
9598
9599         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9600         strncmp declarations.
9601
9602         * abilist/libc.abilist: Add __poll and __ppoll.
9603
9604 2012-04-05  David S. Miller  <davem@davemloft.net>
9605
9606         * scripts/check-local-headers.sh: Accept a host triplet in the
9607         path matched by the exclude regexp.
9608
9609         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9610         definition.
9611         * sysdeps/powerpc/powerpc32/dl-machine.h
9612         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9613         * sysdeps/s390/s390-32/dl-machine.h
9614         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9615         * sysdeps/sparc/sparc32/dl-machine.h
9616         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9617         * sysdeps/sparc/sparc64/dl-machine.h
9618         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9619
9620         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9621         lazy binding.
9622         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9623         undefined symbol errors.
9624
9625         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9626         DT_NEEDED entries.
9627
9628 2012-04-05  Michael Matz  <matz@suse.de>
9629
9630         [BZ #13592]
9631         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9632
9633 2012-04-05  Andreas Jaeger  <aj@suse.de>
9634
9635         [BZ #13908]
9636         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9637         comment.
9638
9639 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9640
9641         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9642         which ROUND is no valid rounding mode.
9643
9644 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9645
9646         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9647         read again.
9648         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9649
9650 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9651
9652         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9653         an exception using FPU order intentionally.
9654
9655 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9656
9657         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9658         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9659         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9660         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9661
9662 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9663
9664         [BZ #12340]
9665         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9666         EINVAL when BUFLEN is too smal.
9667
9668 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9669
9670         [BZ #13553]
9671         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9672         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9673
9674 2012-04-03  Andreas Jaeger  <aj@suse.de>
9675
9676         [BZ #13938]
9677         * manual/setjmp.texi (System V contexts): Fix sentence.
9678
9679         [BZ #13926]
9680         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9681         New macro for this case.
9682         [!__GNUC__] (__bswap_64): New inline function for this case.
9683         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9684         * bits/byteswap.h: Likewise.
9685         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9686         ull, guard with __GLIBC_HAVE_LONG_LONG.
9687
9688         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9689         __GLIBC_HAVE_LONG_LONG.
9690
9691         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9692         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9693
9694 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9695
9696         [BZ #13691]
9697         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9698         inptr and inend, rather than using last_ch.
9699
9700 2012-04-02  David S. Miller  <davem@davemloft.net>
9701
9702         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9703         * stdio-common/printf-parse.h (read_int): Change return type to
9704         'int', return -1 on INT_MAX overflow.
9705         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9706         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9707         overflows INT_MAX.  Check for overflow of in-format-string precision
9708         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9709         SIZE_MAX not INT_MAX for integer overflow test.
9710         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9711         skip the construct in the format string but do not record anything.
9712         * stdio-common/bug22.c: Adjust to test both width/prevision
9713         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9714         explicitly for proper errno values.
9715
9716 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9717
9718         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9719         CHAR_MAX.
9720         * string/test-strcmp.c [! WIDE]: Likewise.
9721         * time/tst-mktime2.c: Likewise for INT_MAX.
9722         * string/test-string.h: #include <sys/param.h> for MIN.
9723
9724         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9725         * sysdeps/i386/init-first.c (init): Likewise.
9726         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9727         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9728         * sysdeps/sh/init-first.c (init): Likewise.
9729
9730 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9731
9732         * po/ru.po: Update from translation team.
9733         * po/vi.po: Likewise.
9734
9735 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9736
9737         * resolv/nss_dns/dns-host.c: Merge copyright years.
9738
9739 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9740
9741         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9742         Optimize memcpy with prefetch if
9743         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9744         src, dst pointers have unequal 16 byte alignments.
9745
9746 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9747
9748         [BZ #13928]
9749         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9750         from a CNAME entry and return the minimum ttl for the query.
9751         (gaih_getanswer_slice): Likewise.
9752
9753 2012-03-30  Jeff Law  <law@redhat.com>
9754
9755         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9756         due to long keys.
9757         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9758         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9759
9760         * resolv/nss_dns/dns-host.c: Update copyright year.
9761
9762 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9763
9764         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9765         requests to save a system call.  Fix check that all bytes are sent.
9766
9767         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9768         comments for sendmmsg.
9769
9770 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9771
9772         [BZ #13691]
9773         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9774         with only 1 character between 0x0041 and 0x01b0.
9775         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9776         * wcsmbs/tst-mbsnrtowcs.c: New file.
9777
9778 2012-03-29  David S. Miller  <davem@davemloft.net>
9779
9780         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9781         small copies by hand.
9782
9783 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9784
9785         [BZ #13761]
9786         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9787         _nss_compat_initgroups_dyn): Fall back to malloc/free
9788         for large group memberships.
9789
9790 2012-03-28  David S. Miller  <davem@davemloft.net>
9791
9792         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9793         that branches into memcpy.
9794         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9795         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9796         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9797         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9798         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9799         bits.
9800         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9801         implementation too.
9802         * sysdeps/sparc/mempcpy.S: New file.
9803
9804         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9805         the IFUNC routine in the libc case.
9806         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9807
9808         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9809         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9810         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9811         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9812         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9813         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9814         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9815         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9816
9817         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9818         loop to 256 bytes instead of 64 bytes and fix test signedness.
9819
9820         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9821         * sysdeps/sparc/sparc32/Makefile: rather than here...
9822         * sysdeps/sparc/sparc64/Makefile: and here.
9823
9824 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9825
9826         * malloc/mallocbug.c: Avoid warnings about unused variables.
9827
9828 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9829
9830         [BZ #13760]
9831         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9832         in the right place. Discard and retry query if response is
9833         larger than input buffer size.
9834
9835 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9836
9837         [BZ #369]
9838         [BZ #2678]
9839         [BZ #3866]
9840         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9841         x for large integer exponent.
9842         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9843         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9844         sign of result as needed afterwards.
9845         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9846         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9847         result for underflowing pow the same as for overflow.
9848         (__kernel_standard_l): Handle powl overflow and underflow here
9849         rather than calling __kernel_standard.
9850         * math/libm-test.inc (pow_test): Add more tests.
9851
9852         [BZ #3868]
9853         [BZ #13879]
9854         [BZ #13910]
9855         [BZ #13911]
9856         [BZ #13912]
9857         [BZ #13913]
9858         [BZ #13915]
9859         [BZ #13916]
9860         [BZ #13917]
9861         [BZ #13918]
9862         [BZ #13919]
9863         [BZ #13920]
9864         [BZ #13921]
9865         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9866         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9867         (__kernel_standard_l): New function.
9868         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9869         __kernel_standard.
9870         * math/w_acosl.c (__acosl): Likewise.
9871         * math/w_asinl.c (__asinl): Likewise.
9872         * math/w_atan2l.c (__atan2l): Likewise.
9873         * math/w_atanhl.c (__atanhl): Likewise.
9874         * math/w_coshl.c (__coshl): Likewise.
9875         * math/w_exp10l.c (__exp10l): Likewise.
9876         * math/w_exp2l.c (__exp2l): Likewise.
9877         * math/w_fmodl.c (__fmodl): Likewise.
9878         * math/w_hypotl.c (__hypotl): Likewise.
9879         * math/w_j0l.c (__j0l, __y0l): Likewise.
9880         * math/w_j1l.c (__j1l, __y1l): Likewise.
9881         * math/w_jnl.c (__jnl, __ynl): Likewise.
9882         * math/w_lgammal.c (__lgammal): Likewise.
9883         * math/w_log10l.c (__log10l): Likewise.
9884         * math/w_log2l.c (__log2l): Likewise.
9885         * math/w_logl.c (__logl): Likewise.
9886         * math/w_powl.c (__powl): Likewise.
9887         * math/w_remainderl.c (__remainderl): Likewise.
9888         * math/w_scalbl.c (sysv_scalbl): Likewise.
9889         * math/w_sinhl.c (__sinhl): Likewise.
9890         * math/w_sqrtl.c (__sqrtl): Likewise.
9891         * math/w_tgammal.c (__tgammal): Likewise.
9892         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9893         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9894         * math/libm-test.inc (acos_test): Add more tests.
9895         (acosh_test): Likewise.
9896         (asin_test): Likewise.
9897         (atanh_test): Likewise.
9898         (exp_test): Likewise.
9899         (exp10_test): Likewise.
9900         (exp2_test): Likewise.
9901         (expm1_test): Likewise.
9902         (lgamma_test): Likewise.
9903         (log_test): Likewise.
9904         (log10_test): Likewise.
9905         (log1p_test): Likewise.
9906         (log2_test): Likewise.
9907         (pow_test): Do not allow some spurious overflow exceptions.
9908         (sqrt_test): Add more tests.
9909         (tgamma_test): Likewise.
9910         (y0_test): Likewise.
9911         (y1_test): Likewise.
9912         (yn_test): Likewise.
9913
9914 2012-03-27  Anton Blanchard  <anton@samba.org>
9915
9916         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9917         MAP_HUGETLB.
9918         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9919         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9920         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9921
9922 2012-03-27  David S. Miller  <davem@davemloft.net>
9923
9924         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9925
9926         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9927         have-as-vis3 check.
9928
9929 2012-03-27  Andreas Jaeger  <aj@suse.de>
9930
9931         * sysdeps/x86_64/elf/configure.in: Moved to ...
9932         * sysdeps/x86_64/configure.in: ... here.
9933         * sysdeps/x86_64/elf/start.S: Moved to ...
9934         * sysdeps/x86_64/start.S: ... here.
9935         * sysdeps/x86_64/elf/configure: Delete.
9936
9937         * sysdeps/x86_64/configure.in: Merge contents from
9938         sysdeps/i386/configure.in (without i686 check).
9939
9940         * sysdeps/i386/elf/Versions: Merge into ...
9941         * sysdeps/i386/Versions: ... this.
9942         * sysdeps/i386/elf/Versions: Delete file.
9943         * sysdeps/i386/elf/start.S: Moved to ...
9944         * sysdeps/i386/start.S: ...here.
9945         * sysdeps/i386/elf/configure.in: Merge into...
9946         * sysdeps/i386/configure.in: ...here.
9947         * sysdeps/i386/elf/configure.in: Delete file.
9948         * sysdeps/i386/elf/configure: Delete file.
9949
9950         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9951         * debug/backtracesyms.c: ... here.
9952         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9953         * debug/backtracesymsfd.c: ... here.
9954         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9955         * sysdeps/generic/ifunc-sel.h: ... here.
9956
9957         * sysdeps/unix/i386/start.c: Delete file.
9958         * sysdeps/unix/sparc/start.c: Delete file.
9959         * sysdeps/unix/start.c: Delete file.
9960
9961         * sysdeps/sh/elf/configure.in: Moved to ...
9962         * sysdeps/sh/configure.in: ... here.
9963         * sysdeps/sh/elf/start.S: Moved to ...
9964         * sysdeps/sh/start.S: ... here.
9965         * sysdeps/sh/elf/configure: Delete file.
9966
9967         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9968         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9969         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9970         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9971         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9972         * sysdeps/powerpc/powerpc64/start.S: here.
9973         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9974         * sysdeps/powerpc/powerpc64/Makefile: ... this.
9975         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
9976         * sysdeps/powerpc/powerpc64/configure.in: ... this.
9977         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
9978
9979         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
9980         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
9981         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
9982         * sysdeps/powerpc/powerpc32/start.S: ... here.
9983         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
9984         * sysdeps/powerpc/powerpc32/configure.in: ... this.
9985         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
9986
9987         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
9988         * sysdeps/powerpc/ifunc-sel.h: ... here.
9989         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
9990         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
9991
9992         * sysdeps/sparc/elf/configure.in: Moved to ...
9993         * sysdeps/sparc/configure.in: ... here.
9994         * sysdeps/sparc/elf/configure: Delete file.
9995         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
9996         * sysdeps/sparc/sparc32/start.S: ... here.
9997         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
9998         * sysdeps/sparc/sparc64/start.S: ... here.
9999         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10000         * sysdeps/sparc/sparc32/Makefile: ... this.
10001         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10002         * sysdeps/sparc/sparc64/Makefile: ... this.
10003
10004         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10005         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10006         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10007         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10008         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10009         * sysdeps/s390/s390-32/setjmp.S: ... here.
10010         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10011         * sysdeps/s390/s390-32/configure.in: ... here.
10012         * sysdeps/s390/s390-32/elf/configure: Delete file.
10013         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10014         * sysdeps/s390/s390-32/start.S: ... here.
10015
10016         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10017         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10018         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10019         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10020         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10021         * sysdeps/s390/s390-64/setjmp.S: ... here.
10022         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10023         * sysdeps/s390/s390-64/configure.in: ... here
10024         * sysdeps/s390/s390-64/elf/configure: Delete file.
10025         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10026         * sysdeps/s390/s390-64/start.S: ... here.
10027         * sysdeps/s390/s390-64/elf/configure: Delete.
10028
10029         * configure.in: Remove support for elf directories in sysdeps.
10030
10031         * configure: Regenerated.
10032         * sysdeps/i386/configure: Regenerated.
10033         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10034         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10035         * sysdeps/s390/s390-32/configure: Regenerated.
10036         * sysdeps/s390/s390-64/configure: Regenerated.
10037         * sysdeps/sh/configure: Regenerated.
10038         * sysdeps/sparc/configure: Regenerated.
10039         * sysdeps/x86_64/configure: Regenerated.
10040
10041 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10042
10043         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10044
10045         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10046         denormal result into account.
10047
10048 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10049
10050         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10051         Reported by Allan McRae <allan@archlinux.org>.
10052
10053 2012-03-23  Jeff Law  <law@redhat.com>
10054
10055         * nss/getnssent.c (__nss_getent): Fix typo.
10056
10057 2012-03-23  David S. Miller  <davem@davemloft.net>
10058
10059         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10060
10061 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10062
10063         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10064         to pad to uint64_t for each field.
10065         (dl_tls_index): Replace unsigned long with uint64_t.
10066
10067 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10068         Paul Pluzhnikov  <ppluzhnikov@google.com>
10069
10070         [BZ #6528]
10071         * grp/Makefile (otherlibs): Don't set it.
10072         * inet/Makefile (otherlibs): Likewise.
10073         * login/Makefile (otherlibs): Likewise.
10074         * nscd/Makefile (otherlibs): Likewise.
10075         * posix/Makefile (otherlibs): Likewise.
10076         * pwd/Makefile (otherlibs): Likewise.
10077         * rt/Makefile (otherlibs): Likewise.
10078         * sunrpc/Makefile (otherlibs): Likewise.
10079         * nss/Makefile (otherlibs): Likewise.
10080         Add libnss_files to routines and static-only-routines.
10081         ($(objpfx)getent): Remove rule.
10082         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10083         static-only-routines.
10084
10085 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10086
10087         [BZ #13892]
10088         * math/s_cexp.c: Include <float.h>.
10089         (__cexp): Handle exp result overflowing not necessarily
10090         overflowing both real and imaginary parts of result.
10091         * math/s_cexpf.c: Likewise.
10092         * math/s_cexpl.c: Likewise.
10093         * math/libm-test.inc (cexp_test): Add more tests.
10094         * sysdeps/i386/fpu/libm-test-ulps: Update.
10095         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10096
10097 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10098
10099         * include/link.h (ELFW): New macro.
10100         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10101         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10102
10103 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10104
10105         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10106         with uint64_t.
10107
10108 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10109
10110         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10111         declaration.
10112         (struct La_x32_retval): Likewise.
10113
10114 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10115
10116         * sysdeps/x86_64/preconfigure.in: New file.
10117         * sysdeps/x86_64/preconfigure: New generated file.
10118
10119 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10120
10121         [BZ #13824]
10122         * math/e_exp2l.c: Include <float.h>.
10123         (__ieee754_exp2l): Handle overflow and underflow cases
10124         separately.  Only pass fractional part of argument to
10125         __ieee754_expl.
10126         * math/libm-test.inc (exp2_test): Add more tests.
10127
10128         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10129         negating x to take absolute value.
10130         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10131         Likewise.
10132         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10133         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10134         Likewise.
10135         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10136         computing low part if x was negated.
10137         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10138
10139 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10140
10141         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10142         la_x32_gnu_pltexit.
10143         (pltexit): Cast int_retval to ptrdiff_t.
10144         * elf/tst-auditmod3b.c: Likewise.
10145         * elf/tst-auditmod4b.c: Likewise.
10146         * elf/tst-auditmod5b.c: Likewise.
10147         * elf/tst-auditmod6b.c: Likewise.
10148         * elf/tst-auditmod6c.c: Likewise.
10149         * elf/tst-auditmod7b.c: Likewise.
10150
10151         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10152         and x32_gnu_pltexit.
10153
10154         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10155         __ELF_NATIVE_CLASS.
10156         (La_x32_regs): New macro.
10157         (La_x32_retval): Likewise.
10158         (la_x32_gnu_pltenter): New function prototype.
10159         (la_x32_gnu_pltexit): Likewise.
10160
10161 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10162
10163         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10164         exponent.
10165
10166         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10167
10168         * configure.in (libc_cv_cc_nofma): Check for option to disable
10169         generation of FMA instructions.
10170         * configure: Regenerate.
10171         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10172         * sysdeps/ieee754/dbl-64/Makefile: New file.
10173         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10174         Remove brandred-fma4.
10175         (CFLAGS-brandred-fma4.c): Remove.
10176         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10177         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10178         define.
10179         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10180         define.
10181
10182 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10183
10184         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10185         LLONG_MAX != LONG_MAX.
10186         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10187         (_fitoa_word): Likewise.
10188         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10189         LLONG_MAX != LONG_MAX.
10190         * stdio-common/_itowa.h: Include <_itoa.h>.
10191         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10192         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10193         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10194         only if not defined.
10195         (_ITOA_WORD_TYPE): Likewise.
10196         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10197         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10198
10199 2012-03-21  David S. Miller  <davem@davemloft.net>
10200
10201         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10202
10203 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10204
10205         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10206         of x86_64 when setting libc_cv_slibdir, libdir and
10207         libc_cv_localedir.
10208         * sysdeps/unix/sysv/linux/configure: Regenerated.
10209
10210 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10211
10212         * manual/lang.texi (Old Varargs): Remove section.
10213         (How Variadic): Update menu.
10214         (va_start): Do not mention varargs.h.
10215
10216 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10217             Joseph Myers  <joseph@codesourcery.com>
10218
10219         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10220         link test.
10221         * configure: Regenerated.
10222
10223 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10224
10225         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10226         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10227         conformtest.pl
10228
10229 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10230
10231         * NOTES: Remove.
10232         * Makefile (files-for-dist): Remove NOTES.
10233         (NOTES): Remove rule.
10234         * README: Don't refer to NOTES.
10235         * manual/creature.texi: Don't include macros.texi.
10236         * manual/intro.texi (creature.texi): Remove comment referring to
10237         NOTES.
10238
10239         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10240         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10241         * configure: Regenerated.
10242         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10243         LIBC_TRY_CC_OPTION.
10244         (libc_cv_as_i686): Likewise.
10245         (libc_cv_cc_avx): Likewise.
10246         (libc_cv_cc_sse2avx): Likewise.
10247         (libc_cv_cc_fma4): Likewise.
10248         (libc_cv_cc_novzeroupper): Likewise.
10249         * sysdeps/i386/configure: Regenerated.
10250
10251         [BZ #13883]
10252         * sysdeps/i386/fpu/s_cexp.S: Remove.
10253         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10254         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10255         * math/libm-test.inc (cexp_test): Add more tests.
10256         * sysdeps/i386/fpu/libm-test-ulps: Update.
10257         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10258
10259 2012-03-21  Allan McRae  <allan@archlinux.org>
10260
10261         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10262
10263 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10264
10265         [BZ #13871]
10266         * math/w_exp2.c: Do not include <float.h>.
10267         (o_threshold, u_threshold): Remove.
10268         (__exp2): Calculate result before checking finiteness and calling
10269         __kernel_standard.
10270         * math/w_exp2f.c: Likewise.
10271         * math/w_exp2l.c: Likewise.
10272         * math/libm-test.inc (exp2_test): Require overflow exception for
10273         1e6 input.
10274
10275         [BZ #3866]
10276         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10277         range of signed 64-bit integers before using fistpll.  Remove
10278         checks for whether integers fit in mantissa bits.
10279         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10280         the range of signed 32-bit integers before using fistpl.  Remove
10281         checks for whether integers fit in mantissa bits.
10282         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10283         (__ieee754_powl): Test for y outside the range of signed 64-bit
10284         integers before using fistpll.  Reduce 64-bit values to 63-bit
10285         ones as needed.
10286         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10287         divide-by-zero is raised for zero to large negative powers.
10288         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10289         (__ieee754_powl): Test for y outside the range of signed 64-bit
10290         integers before using fistpll.  Reduce 64-bit values to 63-bit
10291         ones as needed.
10292         * math/libm-test.inc (pow_test): Add more tests.
10293
10294 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10295
10296         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10297         <stdio-common/_itoa.h>.
10298         * debug/segfault.c: Likewise.
10299         * elf/dl-cache.c: Likewise.
10300         * elf/dl-minimal.c: Likewise.
10301         * elf/dl-misc.c: Likewise.
10302         * elf/dl-sysdep.c: Likewise.
10303         * elf/dl-version.c: Likewise.
10304         * elf/rtld.c: Likewise.
10305         * hurd/hurdsock.c: Likewise.
10306         * hurd/lookup-retry.c: Likewise.
10307         * malloc/malloc.c: Likewise.
10308         * malloc/mtrace.c: Likewise.
10309         * nscd/nscd_getgr_r.c: Likewise.
10310         * nscd/nscd_getpw_r.c: Likewise.
10311         * nscd/nscd_getserv_r.c: Likewise.
10312         * posix/getopt_init.c: Likewise.
10313         * posix/wordexp.c: Likewise.
10314         * stdio-common/_itoa.c: Likewise.
10315         * stdio-common/printf_fphex.c: Likewise.
10316         * stdio-common/vfprintf.c: Likewise.
10317         * string/_strerror.c: Likewise.
10318         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10319         * sysdeps/i386/i686/hp-timing.h: Likewise.
10320         * sysdeps/mach/_strerror.c: Likewise.
10321         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10322         * sysdeps/mach/hurd/sethostid.c: Likewise.
10323         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10324         * sysdeps/mach/xpg-strerror.c: Likewise.
10325         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10326         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10327         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10328         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10329         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10330         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10331         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10332         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10333         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10334         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10335         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10336         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10337         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10338         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10339         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10340         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10341         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10342         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10343         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10344         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10345         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10346
10347         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10348
10349         * stdio-common/_itoa.h: Moved to ...
10350         * sysdeps/generic/_itoa.h: Here.
10351
10352         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10353
10354         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10355         instead of "_itoa.h" and "_itowa.h".
10356         * stdio-common/vfprintf.: Likewise.
10357
10358 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10359
10360         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10361         <bits/wordsize.h>.
10362         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10363         (__signbit): Likwise.
10364         (llrintf): Likwise.
10365         (llrint): Likwise.
10366
10367 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10368
10369         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10370         __WORDSIZE != 64.
10371
10372 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10373
10374         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10375         OVERFLOW_EXCEPTION_OK.
10376         * math/libm-test.inc ("Philosophy"): Update comment about
10377         exception testing.
10378         (OVERFLOW_EXCEPTION): Define.
10379         (OVERFLOW_EXCEPTION_OK): Likewise.
10380         (INVALID_EXCEPTION_OK): Renumber.
10381         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10382         (IGNORE_ZERO_INF_SIGN): Likewise.
10383         (test_exceptions): Handle FE_OVERFLOW.
10384         (exp10_test): Expect overflow exceptions.
10385         (exp2_test): Likewise.
10386         (expm1_test): Likewise.
10387         (nextafter_test): Likewise.
10388         (pow_test): Likewise.
10389         (scalbn_test): Likewise.
10390         (scalbln_test): Likewise.
10391
10392 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10393
10394         * sysdeps/x86_64/bits/atomic.h
10395         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10396         64bit integer.
10397         (atomic_exchange_acq): Likewise.
10398         (__arch_exchange_and_add_body): Likewise.
10399         (__arch_add_body): Likewise.
10400         (atomic_add_negative): Likewise.
10401         (atomic_add_zero): Likewise.
10402
10403 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10404
10405         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10406         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10407
10408 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10409
10410         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10411         Check __x86_64__ instead of __WORDSIZE.
10412
10413 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10414
10415         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10416
10417 2012-03-19  David S. Miller  <davem@davemloft.net>
10418
10419         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10420
10421         * sysdeps/sparc/fpu/fenv_private.h: New file.
10422         * sysdeps/sparc/fpu/math_private.h: Use it.
10423         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10424         Remove.
10425         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10426         (libc_feholdexcept_setroundl): Remove.
10427         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10428         Remove.
10429         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10430         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10431
10432 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10433
10434         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10435         int64_t instead of long int.
10436         (INSERT_WORDS64): Likwise.
10437
10438 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10439
10440         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10441         _Unwind_GetCFA return to _Unwind_Ptr first.
10442
10443 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10444
10445         [BZ #13629]
10446         * math/s_clog.c: Include <float.h>.
10447         (__clog): Scale large or subnormal inputs.
10448         * math/s_clogf.c: Likewise.
10449         * math/s_clogl.c: Likewise.
10450         * math/s_clog10.c: Include <float.h>.
10451         (M_LOG10_2): Define.
10452         (__clog10): Scale large or subnormal inputs.
10453         * math/s_clog10f.c: Likewise.
10454         * math/s_clog10l.c: Likewise.
10455         * math/libm-test.inc (clog_test): Add more tests.
10456         (clog10_test): Likewise.
10457         * sysdeps/i386/fpu/libm-test-ulps: Update.
10458         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10459
10460         [BZ #11451]
10461         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10462         x and y.
10463         * math/libm-test.inc (atan2_test): Add another test.
10464
10465         * Makerules (common-objdir-compile): Remove.
10466         * sysdeps/unix/Makefile (config-generated): Do not add
10467         $(unix-generated) to variable.
10468         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10469         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10470         Remove rule.
10471         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10472         Likewise.
10473         [generic bits/local_lim.h] (before-compile): Do not append to
10474         variable.
10475         [generic bits/local_lim.h] (common-generated): Likewise.
10476         [generic sys/param.h] (before-compile): Do not append to variable.
10477         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10478         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10479         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10480         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10481         include.
10482         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10483         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10484         [generic sys/param.h] ($(addprefix
10485         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10486         [generic sys/param.h] (common-generated): Do not append to
10487         variable.
10488         [generic sys/param.h] (sysdep_headers): Likewise.
10489         [generic bits/errno.h] (before-compile): Do not append to
10490         variable.
10491         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10492         rule.
10493         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10494         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10495         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10496         [generic bits/errno.h] (common-generated): Do not append to
10497         variable.
10498         [generic bits/ioctls.h] (before-compile): Do not append to
10499         variable.
10500         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10501         rule.
10502         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10503         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10504         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10505         rule.
10506         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10507         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10508         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10509         [generic bits/ioctls.h] (common-generated): Do not append to
10510         variable.
10511         [generic sys/syscall.h] (syscall.h): Remove variable.
10512         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10513         rule.
10514         [generic sys/syscall.h] (before-compile): Do not append to
10515         variable.
10516         [generic sys/syscall.h] (common-generated): Likewise.
10517         * sysdeps/unix/errnos-tmpl.c: Remove file.
10518         * sysdeps/unix/errnos.awk: Likewise.
10519         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10520         * sysdeps/unix/ioctls.awk: Likewise.
10521         * sysdeps/unix/mk-local_lim.c: Likewise.
10522         * sysdeps/unix/snarf-ioctls: Likewise.
10523
10524 2012-03-19  Richard Henderson  <rth@twiddle.net>
10525
10526         * sysdeps/i386/fpu/fenv_private.h: New file.
10527         * sysdeps/i386/fpu/math_private.h: Use it.
10528         (math_opt_barrier, math_force_eval): Remove.
10529         (libc_feholdexcept_setround_53bit): Remove.
10530         (libc_feupdateenv_53bit): Remove.
10531         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10532         (math_opt_barrier, math_force_eval): Remove.
10533         (libc_feholdexcept): Remove.
10534         (libc_feholdexcept_setround): Remove.
10535         (libc_fetestexcept, libc_fesetenv): Remove.
10536         (libc_feupdateenv_test): Remove.
10537         (libc_feupdateenv, libc_feholdsetround): Remove.
10538         (libc_feresetround): Remove.
10539
10540         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10541         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10542
10543         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10544         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10545         (libc_feupdateenv_testl): New.
10546         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10547         (libc_feupdateenv_testf): New.
10548         (libc_feupdateenv): Use libc_feupdateenv_test.
10549         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10550         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10551
10552         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10553         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10554         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10555         (libc_feresetround_noex): New.
10556         (libc_feresetround_noexf): New.
10557         (libc_feresetround_noexl): New.
10558         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10559         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10560         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10561         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10562         SET_RESTORE_ROUND.
10563         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10564         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10565         (__cos): Likewise.
10566         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10567         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10568         SET_RESTORE_ROUND_NOEX.
10569         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10570         SET_RESTORE_ROUND_NOEXF.
10571         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10572         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10573         (libc_feholdsetroundf): New.
10574         (libc_feresetround, libc_feresetroundf): New.
10575
10576         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10577         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10578         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10579
10580         * sysdeps/generic/math_private.h: Include <fenv.h>.
10581         (default_libc_feholdexcept): New.
10582         (default_libc_feholdexcept_setround): New.
10583         (default_libc_fesetenv, default_libc_feupdateenv): New.
10584         (libc_feholdexcept): Only define if undefined.
10585         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10586         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10587         (libc_feholdexcept_setroundl): Likewise.
10588         (libc_feholdexcept_setround_53bit): Likewise.
10589         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10590         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10591         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10592         (libc_feupdateenv_53bit): Likewise.
10593         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10594         (libc_feholdexcept): Convert from macro to inline function.
10595         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10596         (libc_fesetenv, libc_feupdateenv): Likewise.
10597
10598         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10599         not previously defined.
10600         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10601         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10602         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10603         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10604         * sysdeps/ieee754/flt-32/math_private.h: New file.
10605         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10606         math_private.h below SET_FLOAT_WORD.
10607         (__isnan, __isinf_ns, __finite): Remove.
10608         (__isnanf, __isinf_nsf, __finitef): Remove.
10609
10610 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10611
10612         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10613
10614 2012-03-17  David S. Miller  <davem@davemloft.net>
10615
10616         [BZ #6471]
10617         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10618         for 2.16.
10619
10620 2012-03-16  David S. Miller  <davem@davemloft.net>
10621
10622         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10623         warnings.
10624
10625         [BZ #6471]
10626         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10627         properly.
10628         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10629         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10630         sysdep_routines when subdir is sysvipc.
10631         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10632         __getshmlba helper.
10633
10634         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10635
10636 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10637
10638         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10639         [__LP64__].
10640
10641 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10642
10643         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10644         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10645         (__lround): Renamed to ...
10646         (__llround): This.  Replace long int with long long int.
10647         Define lround functions as aliases of llround functions.
10648         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10649
10650 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10651
10652         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10653         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10654         adresses to uintptr_t.  Replace "long int" and "unsigned long
10655         int" with "greg_t" on va_arg.
10656
10657 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10658
10659         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10660         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10661
10662         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10663         Move e_machine check before EI_CLASS check.  Handle x32
10664         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10665         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10666         SKIP_EM_IA_64 and include
10667         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10668
10669         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10670         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10671         (add_system_dir): New macro.
10672
10673         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10674         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10675
10676 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10677
10678         [BZ #2551]
10679         [BZ #2552]
10680         [BZ #2553]
10681         [BZ #2554]
10682         [BZ #2562]
10683         [BZ #2563]
10684         [BZ #2565]
10685         [BZ #2566]
10686         [BZ #2576]
10687         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10688         (y0): Likewise.
10689         * math/w_j0f.c (j0f): Likewise.
10690         (y0f): Likewise.
10691         * math/w_j0l.c (__j0l): Likewise.
10692         (__y0l): Likewise.
10693         * math/w_j1.c (j1): Likewise.
10694         (y1): Likewise.
10695         * math/w_j1f.c (j1f): Likewise.
10696         (y1f): Likewise.
10697         * math/w_j1l.c (__j1l): Likewise.
10698         (__y1l): Likewise.
10699         * math/w_jn.c (jn): Likewise.
10700         (yn): Likewise.
10701         * math/w_jnf.c (jnf): Likewise.
10702         (ynf): Likewise.
10703         * math/w_jnl.c (__jnl): Likewise.
10704         (__ynl): Likewise.
10705         * math/libm-test.inc (j0_test): Add more tests.
10706         (j1_test): Likewise.
10707         (jn_test): Likewise.  Add trailing semicolon to existing test.
10708         (y0_test): Likewise.
10709         (y1_test): Likewise.
10710         * sysdeps/i386/fpu/libm-test-ulps: Update.
10711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10712
10713         [BZ #13851]
10714         [BZ #13854]
10715         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10716         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10717         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10718         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10719         (__tanl): Set errno for infinite argument.
10720         * sysdeps/i386/fpu/mptan.c: Remove.
10721         * sysdeps/i386/fpu/s_tan.S: Likewise.
10722         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10723         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10724         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10725         * math/libm-test.inc (tan_test): Add more tests and enable more
10726         tests for double and long double.
10727         * sysdeps/i386/fpu/libm-test-ulps: Update.
10728         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10729
10730 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10731
10732         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10733         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10734
10735 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10736
10737         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10738         * configure.in: Use it for both main tree and add-ons.
10739         * configure: Regenerated.
10740
10741 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10742
10743         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10744
10745 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10746
10747         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10748         in comment.
10749
10750         [BZ #13851]
10751         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10752         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10753         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10754         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10755         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10756         infinite argument.
10757         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10758         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10759         != 0 for prec == 2.
10760         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10761         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10762         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10763         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10764         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10765         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10766         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10767         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10768         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10769         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10770         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10771         * math/libm-test.inc (cos_test): Add more tests and enable more
10772         tests for long double.
10773         (sin_test): Likewise.
10774         (sincos_test): Likewise.
10775         * sysdeps/i386/fpu/libm-test-ulps: Update.
10776         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10777
10778 2012-03-16  David S. Miller  <davem@davemloft.net>
10779
10780         * sysdeps/sparc/fpu/math_private.h: New file.
10781
10782 2012-03-15  David S. Miller  <davem@davemloft.net>
10783
10784         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10785         file.
10786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10788         file.
10789         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10790         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10791         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10792         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10793         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10794         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10795         sysdep routines.
10796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10797
10798         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10799         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10800
10801         * sysdeps/sparc/sparc-ifunc.h: New file.
10802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10803         sparc-ifunc.h
10804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10806         Likewise.
10807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10808         Likewise.
10809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10812         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10813         Likewise.
10814         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10819         Likewise.
10820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10821         Likewise.
10822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10826         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10827         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10828         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10829         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10830         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10831         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10832         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10833         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10834         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10835         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10836         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10837         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10838         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10839         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10840         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10841         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10842         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10843         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10844         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10845         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10846
10847 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10848
10849         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10850         scaling.
10851         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10852
10853 2012-03-15  Andreas Jaeger  <aj@suse.de>
10854
10855         [BZ #13852]
10856         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10857         ieee754/flt-32 implementation for sin, cos and sincos.
10858         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10859         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10860         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10861         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10862         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10863         ieee754/flt-32 implementation for tan.
10864
10865         * math/libm-test.inc (cos_test): Enable some large input tests for
10866         float as well
10867         (sin_test): Likewise.
10868         (sincos_test): Likewise.
10869         (tan_test): Add tests for large input.
10870
10871         * sysdeps/i386/fpu/libm-test-ulps: Update.
10872
10873 2012-03-15  Andreas Jaeger  <aj@suse.de>
10874
10875         [BZ #13658]
10876         * math/libm-test.inc (cos_test): Add more test cases.
10877         (sin_test): Likewise.
10878         (sincos_test): Likewise.
10879
10880 2012-03-15  Andreas Jaeger  <aj@suse.de>
10881
10882         [BZ #13837]
10883         * math/libm-test.inc (cos_test): Add a test case for large input
10884         value.
10885         (sin_test): Likewise.
10886         (sincos_test): Likewise.
10887
10888 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10889         Joseph Myers  <joseph@codesourcery.com>
10890
10891         [BZ #13658]
10892         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10893         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10894         * sysdeps/i386/fpu/branred.c: Likewise.
10895         * sysdeps/i386/fpu/dosincos.c: Likewise.
10896         * sysdeps/i386/fpu/mpa.c: Likewise.
10897         * sysdeps/i386/fpu/s_cos.S: Likewise.
10898         * sysdeps/i386/fpu/s_sin.S: Likewise.
10899         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10900         * sysdeps/i386/fpu/sincos32.c: Likewise.
10901
10902         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10903         Define.
10904         (libc_feupdateenv_53bit): Define.
10905         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10906         Define.
10907         (libc_feupdateenv_53bit): Define.
10908
10909         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10910         53 bit (without extend i386 double precision).
10911
10912         * math/libm-test.inc (sincos_test): Add tests for large input.
10913         (sin): Likewise.
10914         (cos): Likewise.
10915
10916         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10917
10918 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10919
10920         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10921
10922 2012-03-15  David S. Miller  <davem@davemloft.net>
10923
10924         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10925         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10926         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10927         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10928         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10929         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10930         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10931         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10932         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10933         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10934         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10935         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10936         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10937         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10938         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10940         file.
10941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10943         file.
10944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10946         file.
10947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10949         file.
10950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10951         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10952         fmin/fmax sysdep routines.
10953         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10954
10955 2012-03-14  David S. Miller  <davem@davemloft.net>
10956
10957         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10958         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10959         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10960         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10961         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10962         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10963         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10964         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10965         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10966         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10967         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10968         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10969         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10970         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10971         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10972         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10973         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10974         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
10975         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
10976         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
10977         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
10978         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
10979         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
10980         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
10981         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
10982         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
10983         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
10984         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
10985         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
10986         routines.
10987         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
10988         file.
10989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
10990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
10991         file.
10992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
10993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
10994         file.
10995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
10996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
10997         file.
10998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
10999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11000         file.
11001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11003         file.
11004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11005         file.
11006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11007         file.
11008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11009         file.
11010         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11011         New file.
11012         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11013         file.
11014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11015         file.
11016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11018         file.
11019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11021         file.
11022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11024         file.
11025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11027         VIS3 routines.
11028
11029         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11030         New file.
11031
11032         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11033
11034         * sysdeps/sparc/configure.in: New file.
11035         * sysdeps/sparc/configure: Generate.
11036         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11037         * configure: Regenerate.
11038         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11039         * config.make.in (have-as-vis3): New.
11040         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11041         available use -Av9d instead of -Av9a.
11042         * sysdeps/sparc/sparc64/Makefile: Likewise.
11043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11045         New file.
11046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11047         file.
11048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11049         New file.
11050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11051         file.
11052         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11053         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11054         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11055         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11056         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11057
11058         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11059         fzeros/fnegs to load 0x80000000 into a float register instead of
11060         using the stack.
11061         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11062
11063 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11064
11065         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11066         bits/syscall.h.
11067         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11068         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11069         ($(inst_includedir)/bits/syscall.h): Remove rule.
11070         ($(objpfx)bits/syscall.d): Include instead of
11071         $(objpfx)syscall-list.d.
11072         (generated): Change syscall-list.h and syscall-list.d to
11073         bits/syscall.h and bits/syscall.d.
11074
11075 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11076
11077         [BZ #13846]
11078         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11079
11080 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11081
11082         [BZ #13841]
11083         * math/s_csqrt.c: Include <float.h>.
11084         (__csqrt): Scale large or subnormal inputs.
11085         * math/s_csqrtf.c: Likewise.
11086         * math/s_csqrtl.c: Likewise.
11087         * math/libm-test.inc (csqrt_test): Add more tests.
11088         * sysdeps/i386/fpu/libm-test-ulps: Update.
11089         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11090
11091         [BZ #13840]
11092         * math/libm-test.inc (hypot_test): Add more tests.
11093
11094 2012-03-13  David S. Miller  <davem@davemloft.net>
11095
11096         [BZ #13840]
11097         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11098         double-precision for the calculation instead of scaling.
11099
11100 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11101
11102         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11103         manipulate bits before adding and subtracting TWO52[sx].
11104         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11105         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11106         Likewise.
11107         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11108
11109 2012-03-13  David S. Miller  <davem@davemloft.net>
11110
11111         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11112         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11113         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11114         rtld-global-offsets.h
11115         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11116
11117         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11118         large parameters.
11119
11120         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11121
11122         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11123         'err' in the ifdef scope in which it is actually used.
11124
11125         * nss/nss_db/db-init.c: Include string.h
11126
11127 2012-03-12  David S. Miller  <davem@davemloft.net>
11128
11129         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11130         masking out of the most significant byte of random value used.
11131         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11132         Fix coding style in previous change.
11133
11134         * sysdeps/unix/sysv/linux/kernel-features.h
11135         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11136         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11137         expression.
11138         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11139         later.
11140
11141 2012-03-11  David S. Miller  <davem@davemloft.net>
11142
11143         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11144         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11145         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11146         for 'resultvar' otherwise things get truncated on 64-bit.
11147
11148         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11149         Fix masking out of the most significant byte of random value used.
11150
11151         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11152
11153 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11154
11155         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11156
11157 2012-03-09  David S. Miller  <davem@davemloft.net>
11158
11159         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11160         variables with appropriate CPP guards.
11161         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11162         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11163         on resulting framesize and the management of the outregs buffer for pltexit.
11164         Preserve floating point return values across _dl_call_pltexit call.
11165         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11166         framesize and the management of the outregs buffer for pltexit.
11167         Preserve floating point return values across _dl_call_pltexit
11168         call.
11169         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11170         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11171         (print_exit): Fix format string for return register value.
11172
11173 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11174
11175         * sunrpc/Makefile (others): Add rpcgen.
11176         ($(objpfx)rpcgen): Remove special build rule and dependency on
11177         libc.
11178         * sunrpc/rpcgen.c: New file.
11179
11180 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11181
11182         [BZ #13673]
11183         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11184         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11185         * sysdeps/i386/crti.S: Likewise.
11186         * sysdeps/i386/crtn.S: Likewise.
11187         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11188         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11189         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11190         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11191         * sysdeps/sh/crti.S: Likewise.
11192         * sysdeps/sh/crtn.S: Likewise.
11193         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11194
11195         [BZ #13673]
11196         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11197         with URL.
11198         * locale/programs/locfile-kw.gperf: Likewise.
11199         * locale/programs/charmap-kw.h: Regenerated.
11200         * locale/programs/locfile-kw.h: Likewise.
11201
11202         [BZ #13673]
11203         * intl/plural.y: Replace FSF snail mail address with URL.
11204         * intl/plural.c: Regenerated.
11205
11206 2012-03-09  Richard Henderson  <rth@twiddle.net>
11207
11208         * include/math_private.h: Remove file.
11209         * math/math_private.h: Move file ...
11210         * sysdeps/generic/math_private.h: ... here.
11211
11212         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11213         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11214         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11215
11216         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11217         and <math_private.h>.
11218         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11219         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11220         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11221         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11222         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11223         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11224         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11225         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11226         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11227         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11228         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11229         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11230         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11231         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11232         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11233         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11234         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11235         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11236         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11237         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11238         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11239         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11240         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11241         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11242         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11243         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11244         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11245         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11246         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11247         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11248         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11249         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11250         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11251         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11252         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11253         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11254         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11255         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11256         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11257         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11258         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11259         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11260         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11261         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11262         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11263         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11264         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11265         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11266         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11267         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11268         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11269         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11270         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11271         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11272         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11273         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11274         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11275         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11276         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11277         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11278         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11279         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11280         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11281         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11282         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11283         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11284         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11285         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11286         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11287         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11288         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11289         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11290         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11291         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11292         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11293         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11294         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11295         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11296         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11297         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11298         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11299         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11300         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11301         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11302         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11303         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11304         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11305         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11306         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11307         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11308         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11309         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11310         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11311         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11312         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11313         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11314         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11315         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11316         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11317         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11318         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11319         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11320         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11321         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11322         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11323         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11324         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11325         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11326         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11327         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11328         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11329         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11330         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11331         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11332         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11333         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11334         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11335         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11336         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11337         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11338         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11339         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11340         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11341         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11342         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11343         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11344         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11345         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11346         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11347         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11348         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11349         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11350         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11351         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11352         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11353         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11354         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11355         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11356         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11357         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11358         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11359         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11360         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11361         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11362         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11363         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11364         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11365         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11366         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11367         * sysdeps/ieee754/k_standard.c: Likewise.
11368         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11369         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11370         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11371         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11372         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11373         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11374         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11375         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11376         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11377         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11378         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11379         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11380         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11381         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11382         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11383         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11384         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11385         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11386         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11387         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11388         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11389         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11390         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11391         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11392         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11393         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11394         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11395         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11396         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11397         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11398         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11399         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11400         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11401         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11402         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11403         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11404         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11405         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11406         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11407         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11408         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11409         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11410         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11411         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11412         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11413         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11414         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11415         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11416         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11417         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11418         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11419         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11420         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11421         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11422         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11423         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11424         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11425         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11426         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11427         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11428         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11429         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11430         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11431         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11432         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11433         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11434         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11435         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11436         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11437         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11438         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11439         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11440         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11441         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11442         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11443         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11444         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11445         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11446         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11447         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11448         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11449         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11450         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11451         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11452         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11453         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11454         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11455         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11456         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11457         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11458         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11459         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11460         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11461         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11462         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11463         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11464         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11465         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11466         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11467         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11468         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11469         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11470         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11471         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11472         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11473         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11474         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11475         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11476         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11477         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11478         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11479         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11480         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11481         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11482         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11483         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11484         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11485         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11486         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11487         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11488         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11489         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11490         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11491         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11492         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11493         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11494         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11495         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11496         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11497         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11498         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11499         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11500         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11501         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11502         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11503         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11504         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11505         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11506         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11507         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11508         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11509         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11510         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11511         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11512         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11513         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11514         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11515         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11516         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11517         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11518         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11519         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11520         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11521         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11522         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11523         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11524         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11525         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11526         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11527         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11528         * sysdeps/ieee754/s_lib_version.c: Likewise.
11529         * sysdeps/ieee754/s_matherr.c: Likewise.
11530         * sysdeps/ieee754/s_signgam.c: Likewise.
11531         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11532         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11533         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11534         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11535         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11536         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11537         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11538         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11539         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11540         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11541         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11542         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11543         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11544         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11545         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11546         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11547         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11548         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11549         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11550         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11551         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11552
11553 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11554
11555         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11556         * sunrpc/rpc_main.c: Likewise.
11557         * sunrpc/rpc_svcout.c: Likewise.
11558
11559 2012-03-09  David S. Miller  <davem@davemloft.net>
11560
11561         * include/math_private.h: New file.
11562
11563 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11564
11565         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11566         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11567         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11568         from <bits/socket_type.h>.
11569         (enum __socket_type): Don't define here.
11570         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11571         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11572         bits/socket_type.h.
11573
11574         [BZ #13566]
11575         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11576         checking __USE_GNU.
11577
11578         * Makerules ($(inst_includedir)/%.h): New rule.
11579         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11580         (install-others): Remove variable setting.
11581         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11582
11583 2012-03-08  Richard Henderson  <rth@twiddle.net>
11584
11585         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11586         from macro to inline function; merge with the
11587         !__LIBC_INTERNAL_MATH_INLINES version.
11588         (__ieee754_sqrtf): Likewise.
11589
11590         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11591         to inline function.
11592         (__rintf, __floor, __floorf): Likewise.
11593
11594         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11595         macro to inline function.
11596         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11597
11598         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11599         not <math/math_private.h>.
11600
11601 2012-03-08  David S. Miller  <davem@davemloft.net>
11602
11603         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11604         copyright year.
11605         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11606
11607 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11608
11609         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11610         normalization.
11611         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11612         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11613
11614 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11615
11616         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11617         be defined individually, they must be defined as a block.  Define
11618         S for printing a string instead of hidint the different by using a
11619         macro for adding the 'l'.
11620         * stdio-common/tst-fphex-wide.c: Adjust.
11621
11622 2012-03-07  Marek Polacek  <polacek@redhat.com>
11623
11624         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11625
11626 2012-03-08  Marek Polacek  <polacek@redhat.com>
11627
11628         [BZ #13806]
11629         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11630         * stdio-common/tst-fphex.c: Define a few macros to make the
11631         test reusable.  Use them.
11632         * stdio-common/tst-fphex-wide.c: New file.
11633
11634 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11635
11636         [BZ #6911]
11637         * manual/macros.texi (gnusystems): New macro.
11638         (nongnusystems): Likewise.
11639         (gnulinuxhurdsystems): Likewise.
11640         (gnuhurdsystems): Likewise..
11641         (gnulinuxsystems): Likewise.
11642         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11643         variants of the GNU system, not "GNU system".
11644         * manual/conf.texi: Likewise.
11645         * manual/errno.texi: Likewise.  Update example of errno macro
11646         expansion.
11647         * manual/filesys.texi: Likewise.
11648         (getumask): Document as specific to GNU/Hurd.
11649         * manual/install.texi: Likewise.  Reword some references to
11650         GNU/Linux.
11651         * manual/intro.texi: Likewise.
11652         * manual/io.texi: Likewise.
11653         (File Name Portability): Detail which constraints are inapplicable
11654         to all GNU systems and which are only inapplicable to GNU/Hurd.
11655         * manual/job.texi: Likewise.
11656         * manual/llio.texi: Likewise.
11657         (O_NOCTTY): Document as present on GNU/Linux.
11658         * manual/maint.texi: Likewise.
11659         * manual/memory.texi: Likewise.
11660         * manual/pattern.texi: Likewise.
11661         * manual/pipe.texi: Likewise.
11662         * manual/process.texi: Likewise.
11663         * manual/resource.texi: Likewise.
11664         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11665         child on GNU/Hurd.
11666         * manual/setjmp.texi: Likewise.
11667         * manual/signal.texi: Likewise.
11668         * manual/startup.texi: Likewise.
11669         * manual/stdio.texi: Likewise.
11670         * manual/terminal.texi: Likewise.
11671         (ONLCR): Document as POSIX.
11672         (OXTABS): Document availability on GNU/Linux as XTABS.
11673         (ONOEOT): Document availability separately from other bits.
11674         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11675         * manual/time.texi: Likewise.
11676         * manual/users.texi: Likewise.
11677         * INSTALL: Regenerated.
11678         * sysdeps/gnu/errlist.c: Regenerated.
11679
11680         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11681         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11682         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11683         puts.
11684         * configure: Regenerated.
11685
11686 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11687
11688         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11689         default includes instead of AC_HEADER_CHECK.
11690         * sysdeps/i386/configure: Regenerated.
11691
11692         [BZ #10716]
11693         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11694         * math/s_cacoshf.c (__cacoshf): Likewise.
11695         * math/s_cacoshl.c (__cacoshl): Likewise.
11696         * math/s_casinh.c (__casinh): Set signs of result from argument.
11697         * math/s_casinhf.c (__casinhf): Likewise.
11698         * math/s_casinhl.c (__casinhl): Likewise.
11699         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11700         (casinh_test): Add more tests.
11701         * sysdeps/i386/fpu/libm-test-ulps: Update.
11702         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11703
11704 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11705
11706         * po/zh_TW.po: Update from translation team.
11707
11708         * login/Makefile (distribute): Remove variable.
11709         * catgets/Makefile: Likewise.
11710         * mach/Makefile: Likewise.
11711         * malloc/Makefile: Likewise.
11712         * misc/Makefile: Likewise.
11713         * iconv/Makefile: Likewise.
11714         * nscd/Makefile: Likewise.
11715         * hurd/Makefile: Likewise.
11716         * manual/Makefile: Likewise.
11717         * locale/Makefile: Likewise.
11718         * intl/Makefile: Likewise.
11719         * conform/Makefile: Likewise.
11720         * nss/Makefile: Likewise.
11721         * time/Makefile: Likewise.
11722         * soft-fp/Makefile: Likewise.
11723         * dirent/Makefile: Likewise.
11724         * gmon/Makefile: Likewise.
11725         * po/Makefile: Likewise.
11726         * rt/Makefile: Likewise.
11727         * socket/Makefile: Likewise.
11728         * math/Makefile: Likewise.
11729         * signal/Makefile: Likewise.
11730         * debug/Makefile: Likewise.
11731         * elf/Makefile: Likewise.
11732         * timezone/Makefile: Likewise.
11733         * stdlib/Makefile: Likewise.
11734         * iconvdata/Makefile: Likewise.
11735         * sunrpc/Makefile: Likewise.
11736         * io/Makefile: Likewise.
11737         * argp/Makefile: Likewise.
11738         * inet/Makefile: Likewise.
11739         * hesiod/Makefile: Likewise.
11740         * grp/Makefile: Likewise.
11741         * csu/Makefile: Likewise.
11742         * wctype/Makefile: Likewise.
11743         * crypt/Makefile: Likewise.
11744         * libio/Makefile: Likewise.
11745         * string/Makefile: Likewise.
11746         * nis/Makefile: Likewise.
11747         * resolv/Makefile: Likewise.
11748         * stdio-common/Makefile: Likewise.
11749         * wcsmbs/Makefile: Likewise.
11750         * dlfcn/Makefile: Likewise.
11751         * posix/Makefile: Likewise.
11752
11753         [BZ #6959]
11754         * timezone/Makefile: Don't install timezone files, just the programs
11755         and scripts.
11756
11757 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11758
11759         * nss/databases.def: Add missing gshadow entry.
11760
11761         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11762
11763 2012-03-06  Marek Polacek  <polacek@redhat.com>
11764
11765         [BZ #13726]
11766         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11767         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11768         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11769         * stdio-common/tst-long-dbl-fphex.c: New file.
11770
11771 2012-03-06  David S. Miller  <davem@davemloft.net>
11772
11773         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11774         (set_obp_int): New function.
11775         (get_obp_int): New function.
11776         (__get_clockfreq_via_dev_openprom): Likewise.
11777         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11778         Avoid unused variable warnings on 'val' and use builtin_expect.
11779         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11780         __builtin_expect.
11781         (INLINE_CLONE_SYSCALL): Likewise.
11782
11783 2012-03-05  David S. Miller  <davem@davemloft.net>
11784
11785         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11786
11787 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11788
11789         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11790
11791         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11792         only for |x| >= 40.
11793         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11794
11795 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11796
11797         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11798         Replace gettimeofday with __vdso_gettimeofday.
11799
11800         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11801         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11802         __vdso_clock_gettime and __vdso_getcpu.
11803
11804         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11805         time with __vdso_time.
11806
11807 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11808
11809         * manual/lang.texi (size_t): Note types to which size_t may be
11810         equivalent with the GNU C Library, but do not describe when
11811         differences between them are significant.
11812
11813 2012-03-05  Andreas Jaeger  <aj@suse.de>
11814
11815         * sysdeps/i386/fpu/libm-test-ulps: Update.
11816
11817 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11818
11819         [BZ #3976]
11820         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11821         (__ieee754_pow): Save and restore rounding mode and use
11822         round-to-nearest for main computations.
11823         * math/libm-test.inc (pow_test_tonearest): New function.
11824         (pow_test_towardzero): Likewise.
11825         (pow_test_downward): Likewise.
11826         (pow_test_upward): Likewise.
11827         (main): Call the new functions.
11828         * sysdeps/i386/fpu/libm-test-ulps: Update.
11829         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11830
11831         [BZ #3976]
11832         * math/libm-test.inc (cosh_test_tonearest): New function.
11833         (cosh_test_towardzero): Likewise.
11834         (cosh_test_downward): Likewise.
11835         (cosh_test_upward): Likewise.
11836         (sinh_test_tonearest): Likewise.
11837         (sinh_test_towardzero): Likewise.
11838         (sinh_test_downward): Likewise.
11839         (sinh_test_upward): Likewise.
11840         (main): Call the new functions.
11841         * sysdeps/i386/fpu/libm-test-ulps: Update.
11842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11843
11844 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11845
11846         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11847         default stack guard is set in last bytes.
11848         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11849
11850 2012-03-05  Kees Cook  <keescook@chromium.org>
11851
11852         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11853
11854         [BZ #13656]
11855         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11856         possibly allocate from heap instead of stack.
11857         * stdio-common/bug-vfprintf-nargs.c: New file.
11858         * stdio-common/Makefile (tests): Add nargs overflow test.
11859
11860 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11861
11862         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11863
11864 2012-03-03  Marek Polacek  <polacek@redhat.com>
11865
11866         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11867         * math/math_private.h: Likewise.
11868         * stdlib/tst-strtod.c: Likewise.
11869         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11870         * sysdeps/x86_64/bits/atomic.h: Likewise.
11871
11872 2012-03-02  David S. Miller  <davem@davemloft.net>
11873
11874         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11875         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11876         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11877         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11878         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11879         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11880         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11881         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11882
11883 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11884
11885         [BZ #13792]
11886         * manual/examples/README: New file, says the example source files
11887         can be used under GPL>=2.
11888         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11889         line containing just "*/".
11890         * manual/examples/add.c: Add copyright header (GPL>=2).
11891         * manual/examples/argp-ex1.c: Likewise.
11892         * manual/examples/argp-ex2.c: Likewise.
11893         * manual/examples/argp-ex3.c: Likewise.
11894         * manual/examples/argp-ex4.c: Likewise.
11895         * manual/examples/atexit.c: Likewise.
11896         * manual/examples/db.c: Likewise.
11897         * manual/examples/dir.c: Likewise.
11898         * manual/examples/dir2.c: Likewise.
11899         * manual/examples/execinfo.c: Likewise.
11900         * manual/examples/filecli.c: Likewise.
11901         * manual/examples/filesrv.c: Likewise.
11902         * manual/examples/fmtmsgexpl.c: Likewise.
11903         * manual/examples/genpass.c: Likewise.
11904         * manual/examples/inetcli.c: Likewise.
11905         * manual/examples/inetsrv.c: Likewise.
11906         * manual/examples/isockad.c: Likewise.
11907         * manual/examples/longopt.c: Likewise.
11908         * manual/examples/memopen.c: Likewise.
11909         * manual/examples/memstrm.c: Likewise.
11910         * manual/examples/mkfsock.c: Likewise.
11911         * manual/examples/mkisock.c: Likewise.
11912         * manual/examples/mygetpass.c: Likewise.
11913         * manual/examples/pipe.c: Likewise.
11914         * manual/examples/popen.c: Likewise.
11915         * manual/examples/rprintf.c: Likewise.
11916         * manual/examples/search.c: Likewise.
11917         * manual/examples/select.c: Likewise.
11918         * manual/examples/setjmp.c: Likewise.
11919         * manual/examples/sigh1.c: Likewise.
11920         * manual/examples/sigusr.c: Likewise.
11921         * manual/examples/stpcpy.c: Likewise.
11922         * manual/examples/strdupa.c: Likewise.
11923         * manual/examples/strftim.c: Likewise.
11924         * manual/examples/strncat.c: Likewise.
11925         * manual/examples/subopt.c: Likewise.
11926         * manual/examples/swapcontext.c: Likewise.
11927         * manual/examples/termios.c: Likewise.
11928         * manual/examples/testopt.c: Likewise.
11929         * manual/examples/testpass.c: Likewise.
11930         * manual/examples/timeval_subtract.c: Likewise.
11931
11932         [BZ #13792]
11933         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11934         function to ...
11935         * manual/timeval_subtract.c.texi: ... here, new file.
11936
11937 2012-03-02  David S. Miller  <davem@davemloft.net>
11938
11939         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11940
11941 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11942
11943         [BZ #3976]
11944         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11945         (__sin): Save and restore rounding mode and use round-to-nearest
11946         for all computations.
11947         (__cos): Save and restore rounding mode and use round-to-nearest
11948         for all computations.
11949         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11950         <fenv.h>.
11951         (tan): Save and restore rounding mode and use round-to-nearest for
11952         all computations.
11953         * math/libm-test.inc (cos_test_tonearest): New function.
11954         (cos_test_towardzero): Likewise.
11955         (cos_test_downward): Likewise.
11956         (cos_test_upward): Likewise.
11957         (sin_test_tonearest): Likewise.
11958         (sin_test_towardzero): Likewise.
11959         (sin_test_downward): Likewise.
11960         (sin_test_upward): Likewise.
11961         (tan_test_tonearest): Likewise.
11962         (tan_test_towardzero): Likewise.
11963         (tan_test_downward): Likewise.
11964         (tan_test_upward): Likewise.
11965         (main): Call the new functions.
11966         * sysdeps/i386/fpu/libm-test-ulps: Update.
11967         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11968
11969         [BZ #10135]
11970         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11971         small n, then large n, before computing and testing k+n.
11972         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11973         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11974         Likewise.
11975         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11976         Likewise.
11977         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
11978         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11979         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11980         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11981         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11982         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11983         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11984         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
11985         * math/libm-test.inc (scalbn_test): Add more tests.
11986         (scalbln_test): Likewise.
11987
11988         * manual/filesys.texi (mode_t): Describe constraints on size and
11989         signedness, not exact equivalence to a particular type.
11990         (ino_t): Likewise.
11991         (ino64_t): Likewise.
11992         (dev_t): Likewise.
11993         (nlink_t): Likewise.
11994         (blkcnt_t): Likewise.
11995         (blkcnt64_t): Likewise.
11996         * manual/llio.texi (off_t): Likewise.
11997
11998         [BZ #3976]
11999         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12000         (__ieee754_exp): Save and restore rounding mode and use
12001         round-to-nearest for all computations.
12002         * math/libm-test.inc (exp_test_tonearest): New function.
12003         (exp_test_towardzero): Likewise.
12004         (exp_test_downward): Likewise.
12005         (exp_test_upward): Likewise.
12006         (main): Call the new functions.
12007         * sysdeps/i386/fpu/libm-test-ulps: Update.
12008         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12009
12010 2012-03-01  Chris Demetriou  <cgd@google.com>
12011
12012         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12013         have predictable order.
12014
12015 2012-03-01  David S. Miller  <davem@davemloft.net>
12016
12017         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12018
12019         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12020         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12021         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12022         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12023
12024         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12025         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12026         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12027         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12028         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12029         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12030         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12031         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12032         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12033
12034         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12035
12036         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12037         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12038         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12039
12040         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12041         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12042         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12043         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12044         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12045         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12046         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12047         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12048         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12049         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12050         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12051         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12052         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12053         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12054         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12055         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12056         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12057         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12058         * sysdeps/sparc/elf/configure: Regenerated.
12059
12060 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12061
12062         * configure.in (AS, LD): Require binutils 2.20 or later.
12063         * configure: Regenerated.
12064         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12065         as required minimum version.
12066         * INSTALL: Regenerated.
12067
12068         [BZ #2541]
12069         [BZ #4108]
12070         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12071         before squaring exponent.
12072         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12073         bottom long double and 27 bits of top long double before squaring
12074         exponent.
12075         * math/libm-test.inc (erfc_test): Add more tests.
12076         * sysdeps/i386/fpu/libm-test-ulps: Update.
12077         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12078         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12079
12080 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12081
12082         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12083         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12084         containing bit-fields.
12085         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12086         * soft-fp/single.h (_FP_UNION_S): Likewise.
12087         * soft-fp/double.h (_FP_UNION_D): Likewise.
12088
12089 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12090
12091         [BZ #13786]
12092         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12093         not include ../strcmp.S.
12094         [USE_AS_STRNCASECMP_L]: Likewise.
12095         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12096         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12097         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12098         (__strncasecmp_l_ia32): Define as alias to
12099         __strncasecmp_l_nonascii.
12100
12101         [BZ #5794]
12102         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12103         * sysdeps/i386/fpu/libm-test-ulps: Update.
12104         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12105
12106         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12107         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12108
12109 2012-02-29  Jeff Law  <law@redhat.com>
12110
12111         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12112         out of bounds read.
12113
12114 2012-02-29  Marek Polacek  <polacek@redhat.com>
12115
12116         [BZ #13706]
12117         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12118         * elf/Makefile: Add rules to run tst-unused-dep.out.
12119
12120 2012-02-28  David S. Miller  <davem@davemloft.net>
12121
12122         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12123         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12124         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12125         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12126         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12127         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12128
12129 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12130
12131         * math/libm-test.inc (llround_test): Move one test from
12132         lround_test.  Use TEST_f_L in moved test.
12133         (lround_test): Move misplaced test to llround_test.  Add testcase
12134         from bug 2561.
12135
12136 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12137
12138         * sysdeps/x86_64/fpu/e_expf.S: New file.
12139         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12140
12141 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12142
12143         [BZ #13637]
12144         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12145         of remain_len that may cause incomplete multi-byte character and
12146         false match.
12147         * posix/bug-regex33.c: New file.
12148         * posix/Makefile (tests): Add bug-regex33.
12149
12150 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12151
12152         * manual/macros.texi: New file.
12153         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12154         * manual/libc.texinfo: Include macros.texi.
12155         * manual/creatute.texi: Likewise.
12156         * manual/install.texi: Likewise.
12157         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12158         @glibcadj{} in references to the GNU C Library.
12159         * manual/charset.texi: Likewise.
12160         * manual/conf.texi: Likewise.
12161         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12162         when not using those macros.
12163         * manual/creature.texi: Likewise.
12164         * manual/crypt.texi: Likewise.
12165         * manual/errno.texi: Likewise.
12166         * manual/filesys.texi: Likewise.
12167         * manual/header.texi: Likewise.
12168         * manual/install.texi: Likewise.
12169         * manual/intro.texi: Likewise.
12170         * manual/io.texi: Likewise.
12171         * manual/job.texi: Likewise.
12172         * manual/lang.texi: Likewise.
12173         * manual/libc.texiinfo: Likewise.
12174         * manual/llio.texi: Likewise.
12175         * manual/locale.texi: Likewise.
12176         * manual/maint.texi: Likewise.
12177         * manual/math.texi: Likewise.
12178         * manual/memory.texi: Likewise.
12179         * manual/message.texi: Likewise.
12180         * manual/nss.texi: Likewise.
12181         * manual/pattern.texi: Likewise.
12182         * manual/process.texi: Likewise.
12183         * manual/resource.texi: Likewise.
12184         * manual/search.texi: Likewise.
12185         * manual/setjmp.texi: Likewise.
12186         * manual/signal.texi: Likewise.
12187         * manual/socket.texi: Likewise.
12188         * manual/startup.texi: Likewise.
12189         * manual/stdio.texi: Likewise.
12190         * manual/string.texi: Likewise.
12191         * manual/sysinfo.texi: Likewise.
12192         * manual/syslog.texi: Likewise.
12193         * manual/terminal.texi: Likewise.
12194         * manual/time.texi: Likewise.
12195         * manual/users.texi: Likewise.
12196         * INSTALL: Regenerated.
12197         * NOTES: Regenerated.
12198         * sysdeps/gnu/errlist.c: Regenerated.
12199
12200 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12201
12202         * include/dirent.h: Include <dirstream.h> before
12203         <dirent/dirent.h>.
12204
12205 2012-02-28  David S. Miller  <davem@davemloft.net>
12206
12207         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12208         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12209         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12210         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12211
12212 2012-02-27  David S. Miller  <davem@davemloft.net>
12213
12214         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12215         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12216         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12217         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12218
12219         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12220         frame pointer instead of stack pointer relative arg slot.
12221         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12222         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12223         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12224
12225 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12226
12227         [BZ #3992]
12228         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12229
12230 2012-02-27  David S. Miller  <davem@davemloft.net>
12231
12232         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12233         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12234         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12235         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12236         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12237         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12238         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12239         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12240
12241 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12242
12243         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12244         later.  Allow versions 5-9.
12245         * configure: Regenerated.
12246         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12247         required minimum version and 4.6 as recommended version.  Do not
12248         mention bugs in GCC 2.7 and 2.8.
12249         * INSTALL: Regenerated.
12250
12251 2012-02-27  David S. Miller  <davem@davemloft.net>
12252
12253         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12254         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12255         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12256         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12257         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12258         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12259         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12260         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12261
12262         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12263         manipulate bits before adding and subtracting TWO112[sx].
12264         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12265
12266 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12267
12268         [BZ #13775]
12269         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12270         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12271         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12272         being in POSIX, because they are in 1003.1-2008.
12273
12274         * rt/tst-aio.c: Include <fcntl.h>.
12275         * rt/tst-aio7.c: Likewise.
12276         * rt/tst-aio64.c: Likewise.
12277
12278         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12279
12280 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12281
12282         * manual/install.texi (--with-headers): Describe headers as
12283         interface headers, not private headers.
12284         (Specific advice for GNU/Linux systems): Describe use of headers
12285         from "make headers_install", not private headers from older
12286         kernels.
12287         * INSTALL: Regenerated.
12288         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12289         Change to 2.6.19.
12290         * sysdeps/unix/sysv/linux/configure: Regenerated.
12291
12292         * manual/llio.texi (fclean): Remove documentation.
12293
12294         * manual/Makefile (libc-texi-generated): New variable.  Include
12295         version.texi.
12296         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12297         $(libc-texi-generated), not duplicated list of files.
12298         (version.texi, stamp-version): New rules.
12299         (realclean): Remove $(libc-texi-generated), not individual files
12300         from that list.  Do not remove dir-add.texinfo.
12301         * manual/libc.texinfo: Comment out uses of edition numbers and
12302         references to printed manual.  Remove last-updated dates.
12303         (EDITION): Comment out.
12304         (ISBN): Likewise.
12305         (VERSION, UPDATED): Remove.
12306         (version.texi): Include.
12307
12308 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12309
12310         * sysdeps/posix/spawni.c: Include <signal.h>.
12311         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12312         * sysdeps/pthread/aio_fsync.c: Likewise.
12313
12314 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12315
12316         * conform/Makefile (tests): Run only when not cross-compiling and
12317         when fast-check is not defined.
12318
12319         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12320         * conform/data/limits.h-data: Fixes for POSIX2008.
12321         * conform/run-conformtest.sh: Run all tests.
12322         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12323         headers.
12324         * include/bits/dlfcn.h: Likewise.
12325         * include/langinfo.h: Likewise.
12326         * include/monetary.h: Likewise.
12327         * include/sys/poll.h: Likewise.
12328
12329         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12330         for __USE_GNU.
12331         * posix/spawn.h: Define __need_sigset_t.
12332         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12333         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12334         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12335         to get sigevent_t only.
12336         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12337         only for __USE_GNU.
12338         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12339         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12340         process_vm_writev only for __USE_GNU.
12341         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12342
12343         * conform/Makefile: For now ignore errors from run-conformtest.
12344         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12345         POSIX to avoid namespace pollution.  Don't prepend headers.
12346         * conform/data/aio.h-data: Fixes for POSIX testing.
12347         * conform/data/fcntl.h-data: Likewise.
12348         * conform/data/glob.h-data: Likewise.
12349         * conform/data/grp.h-data: Likewise.
12350         * conform/data/pthread.h-data: Likewise.
12351         * conform/data/pwd.h-data: Likewise.
12352         * conform/data/signal.h-data: Likewise.
12353         * conform/data/spawn.h-data: Likewise.
12354         * conform/data/stdio.h-data: Likewise.
12355         * conform/data/stdlib.h-data: Likewise.
12356         * conform/data/stropts.h-data: Likewise.
12357         * conform/data/sys/mman.h-data: Likewise.
12358         * conform/data/sys/stat.h-data: Likewise.
12359         * conform/data/sys/types.h-data: Likewise.
12360         * conform/data/sys/wait.h-data: Likewise.
12361         * conform/data/time.h-data: Likewise.
12362         * conform/data/unistd.h-data: Likewise.
12363         * conform/data/utime.h-data: Likewise.
12364
12365         * io/sys/stat.h: fchmod was always in POSIX.
12366         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12367         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12368         * rt/aio.h: Define __need_timespec before including <time.h>.
12369         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12370         struct.  Add forward declaration of pthread_attr_t and use it in
12371         sigevent.
12372         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12373         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12374         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12375         always remove CLK_TCK definition.
12376
12377 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12378
12379         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12380
12381 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12382
12383         * conform/run-conformtest.sh: New file.
12384         * conform/Makefile: Run run-conformtest for tests.
12385         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12386         support.
12387
12388         * conform/data/uchar.h-data: New file.
12389         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12390         * conform/data/arpa/inet.h-data: Likewise.
12391         * conform/data/assert.h-data: Likewise.
12392         * conform/data/complex.h-data: Likewise.
12393         * conform/data/cpio.h-data: Likewise.
12394         * conform/data/ctype.h-data: Likewise.
12395         * conform/data/dirent.h-data: Likewise.
12396         * conform/data/dlfcn.h-data: Likewise.
12397         * conform/data/errno.h-data: Likewise.
12398         * conform/data/fcntl.h-data: Likewise.
12399         * conform/data/float.h-data: Likewise.
12400         * conform/data/fmtmsg.h-data: Likewise.
12401         * conform/data/fnmatch.h-data: Likewise.
12402         * conform/data/ftw.h-data: Likewise.
12403         * conform/data/glob.h-data: Likewise.
12404         * conform/data/grp.h-data: Likewise.
12405         * conform/data/iconv.h-data: Likewise.
12406         * conform/data/inttypes.h-data: Likewise.
12407         * conform/data/langinfo.h-data: Likewise.
12408         * conform/data/libgen.h-data: Likewise.
12409         * conform/data/limits.h-data: Likewise.
12410         * conform/data/locale.h-data: Likewise.
12411         * conform/data/math.h-data: Likewise.
12412         * conform/data/monetary.h-data: Likewise.
12413         * conform/data/mqueue.h-data: Likewise.
12414         * conform/data/ndbm.h-data: Likewise.
12415         * conform/data/net/if.h-data: Likewise.
12416         * conform/data/netdb.h-data: Likewise.
12417         * conform/data/netinet/in.h-data: Likewise.
12418         * conform/data/nl_types.h-data: Likewise.
12419         * conform/data/poll.h-data: Likewise.
12420         * conform/data/pthread.h-data: Likewise.
12421         * conform/data/pwd.h-data: Likewise.
12422         * conform/data/regex.h-data: Likewise.
12423         * conform/data/sched.h-data: Likewise.
12424         * conform/data/search.h-data: Likewise.
12425         * conform/data/semaphore.h-data: Likewise.
12426         * conform/data/setjmp.h-data: Likewise.
12427         * conform/data/signal.h-data: Likewise.
12428         * conform/data/spawn.h-data: Likewise.
12429         * conform/data/stdarg.h-data: Likewise.
12430         * conform/data/stdio.h-data: Likewise.
12431         * conform/data/stdlib.h-data: Likewise.
12432         * conform/data/string.h-data: Likewise.
12433         * conform/data/strings.h-data: Likewise.
12434         * conform/data/stropts.h-data: Likewise.
12435         * conform/data/sys/ipc.h-data: Likewise.
12436         * conform/data/sys/mman.h-data: Likewise.
12437         * conform/data/sys/msg.h-data: Likewise.
12438         * conform/data/sys/resource.h-data: Likewise.
12439         * conform/data/sys/select.h-data: Likewise.
12440         * conform/data/sys/sem.h-data: Likewise.
12441         * conform/data/sys/shm.h-data: Likewise.
12442         * conform/data/sys/socket.h-data: Likewise.
12443         * conform/data/sys/stat.h-data: Likewise.
12444         * conform/data/sys/statvfs.h-data: Likewise.
12445         * conform/data/sys/time.h-data: Likewise.
12446         * conform/data/sys/timeb.h-data: Likewise.
12447         * conform/data/sys/times.h-data: Likewise.
12448         * conform/data/sys/types.h-data: Likewise.
12449         * conform/data/sys/uio.h-data: Likewise.
12450         * conform/data/sys/un.h-data: Likewise.
12451         * conform/data/sys/utsname.h-data: Likewise.
12452         * conform/data/sys/wait.h-data: Likewise.
12453         * conform/data/syslog.h-data: Likewise.
12454         * conform/data/tar.h-data: Likewise.
12455         * conform/data/termios.h-data: Likewise.
12456         * conform/data/utime.h-data: Likewise.
12457         * conform/data/utmpx.h-data: Likewise.
12458         * conform/data/varargs.h-data: Likewise.
12459         * conform/data/wchar.h-data: Likewise.
12460         * conform/data/wctype.h-data: Likewise.
12461         * conform/data/wordexp.h-data: Likewise.
12462
12463         * include/stropts.h: New file.
12464         * include/uchar.h: New file.
12465         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12466         * include/assert.h: Likewise.
12467         * include/ctype.h: Likewise.
12468         * include/dirent.h: Likewise.
12469         * include/dlfcn.h: Likewise.
12470         * include/fcntl.h: Likewise.
12471         * include/fnmatch.h: Likewise.
12472         * include/glob.h: Likewise.
12473         * include/grp.h: Likewise.
12474         * include/libio.h: Likewise.
12475         * include/locale.h: Likewise.
12476         * include/math.h: Likewise.
12477         * include/net/if.h: Likewise.
12478         * include/netdb.h: Likewise.
12479         * include/netinet/in.h: Likewise.
12480         * include/pthread.h: Likewise.
12481         * include/pwd.h: Likewise.
12482         * include/regex.h: Likewise.
12483         * include/sched.h: Likewise.
12484         * include/search.h: Likewise.
12485         * include/setjmp.h: Likewise.
12486         * include/signal.h: Likewise.
12487         * include/stdio.h: Likewise.
12488         * include/stdlib.h: Likewise.
12489         * include/string.h: Likewise.
12490         * include/sys/cdefs.h: Likewise.
12491         * include/sys/mman.h: Likewise.
12492         * include/sys/msg.h: Likewise.
12493         * include/sys/resource.h: Likewise.
12494         * include/sys/select.h: Likewise.
12495         * include/sys/socket.h: Likewise.
12496         * include/sys/stat.h: Likewise.
12497         * include/sys/statvfs.h: Likewise.
12498         * include/sys/time.h: Likewise.
12499         * include/sys/times.h: Likewise.
12500         * include/sys/uio.h: Likewise.
12501         * include/sys/utsname.h: Likewise.
12502         * include/sys/wait.h: Likewise.
12503         * include/termios.h: Likewise.
12504         * include/time.h: Likewise.
12505         * include/ulimit.h: Likewise.
12506         * include/unistd.h: Likewise.
12507         * include/utime.h: Likewise.
12508         * include/wchar.h: Likewise.
12509         * include/wctype.h: Likewise.
12510         * include/wordexp.h: Likewise.
12511
12512         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12513
12514         * time/time.h: TIME_UTC must be a macro.
12515         Make timespec_get available for ISO C11 only as well.
12516
12517 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12518
12519         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12520         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12521
12522 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12523
12524         * configure.in: Use -o not -a in test for unsupported multi-arch.
12525
12526 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12527
12528         * manual/texinfo.tex: Update to version 2012-01-19.16.
12529
12530 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12531
12532         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12533
12534 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12535
12536         [BZ #13738]
12537         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12538         * manual/fdl-1.3.texi: New file.
12539         * manual/fdl-1.1.texi: File removed.
12540
12541         [BZ #13738]
12542         * manual/libc.texinfo (FDL_VERSION): New @set.
12543         Use it for mention of FDL in cover text.
12544         (Documentation License): Use it in @include file name.
12545
12546 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12547             Roland McGrath  <roland@hack.frob.com>
12548
12549         [BZ #5461]
12550         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12551         not LONG_LONG_MAX and LONG_LONG_MIN.
12552         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12553         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12554         name.
12555         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12556
12557 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12558
12559         [BZ #2547]
12560         [BZ #11365]
12561         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12562         manipulate bits before adding and subtracting TWO23[sx].
12563         * math/libm-test.inc (nearbyint_test): Add more tests.
12564
12565 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12566
12567         [BZ #2548]
12568         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12569         bits before adding and subtracting TWO23[sx].
12570         * math/libm-test.inc (rint_test): Add more tests.
12571         (rint_test_tonearest): Likewise.
12572         (rint_test_towardzero): Likewise.
12573         (rint_test_downward): Likewise.
12574         (rint_test_upward: Likewise.
12575
12576 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12577
12578         [BZ #10110]
12579         * include/stdc-predef.h: New file.  Extracted from features.h.
12580         * include/features.h: Include stdc-predef.h.
12581         * Makefile (headers): Add stdc-predef.h.
12582         * CONFORMANCE (Compiler limitations): Update.
12583
12584 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12585
12586         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12587
12588 2012-02-21  David S. Miller  <davem@davemloft.net>
12589
12590         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12591         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12592
12593 2012-02-20  David S. Miller  <davem@davemloft.net>
12594
12595         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12596         using a normal save/restore sequence, rather than allocating a
12597         dummy stack frame just to store a frame pointer and restore.
12598         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12599
12600 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12601
12602         * manual/install.texi: Fix stray word in line-wrapped comment.
12603
12604 2012-02-20  David S. Miller  <davem@davemloft.net>
12605
12606         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12607         both binutils and gcc support GOTDATA.
12608
12609         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12610         "rd %pc" in the PIC register setup sequences.
12611
12612         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12613         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12614         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12615         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12616         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12617         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12618         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12619         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12620         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12621         (SYSCALL_ERROR_HANDLER): Likewise.
12622         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12623         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12624         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12625         (SYSCALL_ERROR_HANDLER): Likewise.
12626
12627         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12628         (HAVE_GCC_GOTDATA): New.
12629         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12630         relocation support in both binutils and gcc.
12631         * sysdeps/sparc/elf/configure: Regenerate.
12632
12633         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12634         * sysdeps/sparc/sparc32/elf/configure: Delete.
12635         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12636         * sysdeps/sparc/sparc64/elf/configure: Delete.
12637         * sysdeps/sparc/elf/configure.in: New file.
12638         * sysdeps/sparc/elf/configure: Generate.
12639
12640         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12641         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12642         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12643         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12644         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12645
12646 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12647
12648         * manual/install.texi: Do not mention specific glibc version
12649         numbers.
12650         * manual/libc.texinfo (VERSION, UPDATED): Update.
12651         (@copying): Use @copyright{} and range of years.
12652
12653 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12654
12655         [BZ #13695]
12656         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12657         [crti.S not in sysdirs] (generated): Do not append.
12658         [crti.S not in sysdirs] (omit-deps): Likewise.
12659         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12660         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12661         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12662         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12663         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12664         Likewise.
12665         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12666         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12667         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12668         * csu/defs.awk: Remove file.
12669         * sysdeps/generic/initfini.c: Likewise.
12670         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12671         variable.
12672         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12673         Likewise.
12674
12675 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12676
12677         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12678         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12679         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12680         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12681         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12682         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12683         <bits/epoll.h>.
12684         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12685         (__EPOLL_PACKED): Define to empty if not defined by
12686         <bits/epoll.h>.
12687         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12688         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12689         bits/epoll.h.
12690
12691 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12692
12693         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12694         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12695         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12696         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12697         <bits/timerfd.h>.
12698         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12699         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12700         bits/timerfd.h.
12701
12702 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12703
12704         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12705         in C locale.
12706         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12707         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12708         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12709         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12710
12711 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12712
12713         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12714         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12715
12716 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12717
12718         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12719         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12720         defined.
12721         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12722         Likewise.
12723         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12724         entry for 2.16.
12725
12726 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12727
12728         * math/w_acos.c: Use non-signaling floating-point comparisons.
12729         * math/w_acosf.c: Likewise.
12730         * math/w_acosh.c: Likewise.
12731         * math/w_acoshf.c: Likewise.
12732         * math/w_acoshl.c: Likewise.
12733         * math/w_acosl.c: Likewise.
12734         * math/w_asin.c: Likewise.
12735         * math/w_asinf.c: Likewise.
12736         * math/w_asinl.c: Likewise.
12737         * math/w_atanh.c: Likewise.
12738         * math/w_atanhf.c: Likewise.
12739         * math/w_atanhl.c: Likewise.
12740         * math/w_exp2.c: Likewise.
12741         * math/w_exp2f.c: Likewise.
12742         * math/w_exp2l.c: Likewise.
12743         * math/w_j0.c: Likewise.
12744         * math/w_j0f.c: Likewise.
12745         * math/w_j0l.c: Likewise.
12746         * math/w_j1.c: Likewise.
12747         * math/w_j1f.c: Likewise.
12748         * math/w_j1l.c: Likewise.
12749         * math/w_jn.c: Likewise.
12750         * math/w_jnf.c: Likewise.
12751         * math/w_log.c: Likewise.
12752         * math/w_log10.c: Likewise.
12753         * math/w_log10f.c: Likewise.
12754         * math/w_log10l.c: Likewise.
12755         * math/w_log2.c: Likewise.
12756         * math/w_log2f.c: Likewise.
12757         * math/w_log2l.c: Likewise.
12758         * math/w_logf.c: Likewise.
12759         * math/w_logl.c: Likewise.
12760         * math/w_sqrt.c: Likewise.
12761         * math/w_sqrtf.c: Likewise.
12762         * math/w_sqrtl.c: Likewise.
12763         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12764         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12765         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12766         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12767         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12768
12769 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12770
12771         [BZ #9739]
12772         * manual/string.texi (strnlen): Use correct parameter name in
12773         equivalent expression.
12774
12775 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12776
12777         [BZ #11174]
12778         * manual/users.texi (seteuid): Consistently use neweuid for
12779         argument name.
12780
12781 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12782
12783         [BZ #13704]
12784         * manual/nss.texi (Services in the NSS configuration): Correct
12785         list of services in example configuration file.
12786
12787 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12788
12789         [BZ #11322]
12790         * manual/arith.texi: Remove statements about negative zero
12791         behaving identically to zero.
12792
12793 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12794
12795         [BZ #5993]
12796         * manual/install.texi: Do not document upgrading from libc5.
12797
12798 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12799
12800         [BZ #4596]
12801         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12802
12803 2012-02-18  David S. Miller  <davem@davemloft.net>
12804
12805         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12806         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12807         %o7 across the call.
12808         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12809         instead.
12810         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12811         SETUP_PIC_REG_LEAF.
12812         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12813         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12814         * sysdeps/sparc/crtn.S: Likewise.
12815
12816 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12817
12818         * aout/Makefile: Remove.
12819
12820 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12821
12822         [BZ #13058]
12823         * manual/examples/argp-ex1.c (main): Format definition in GNU
12824         style.
12825         * manual/examples/argp-ex2.c (main): Likewise.
12826         * manual/examples/argp-ex3.c (main): Likewise.
12827         * manual/examples/argp-ex4.c (main): Likewise.
12828         * manual/examples/longopt.c (main): Use new-style prototype
12829         definition.
12830         * manual/examples/strncat.c (main): Specify return type and use
12831         (void) for arguments.
12832         * manual/examples/subopt.c (main): Use char **argv argument.
12833
12834 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12835
12836         [BZ #5077]
12837         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12838         rounding modes.
12839
12840 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12841
12842         [BZ #6907]
12843         * manual/string.texi (strchr): Change when strchrnul is
12844         recommended.
12845
12846 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12847
12848         [BZ #174]
12849         * manual/locale.texi (setlocale): Document LOCPATH.
12850
12851 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12852
12853         [BZ #10210]
12854         * manual/process.texi (execle): Move @dots{} before last argument.
12855
12856 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12857
12858         [BZ #12047]
12859         * manual/charset.texi (Generic Charset Conversion): Fix typo
12860         (LC_TYPE -> LC_CTYPE).
12861
12862 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12863
12864         [BZ #5805]
12865         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12866         (scalbnf): Likewise.
12867         (scalbnl): Likewise.
12868         (scalbln): Likewise.
12869         (scalblnf): Likewise.
12870         (scalblnl): Likewise.
12871         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12872         (vwarnx): Likewise.
12873         (verr): Likewise.
12874         (verrx): Likewise.
12875         * manual/filesys.texi (telldir): Use braces around return type.
12876         * manual/llio.texi (mmap): Add space after comma.
12877         (mmap64): Likewise.
12878         * manual/math.texi (jn): Use @var{} on parameter names.
12879         (jnf): Likewise.
12880         (jnl): Likewise.
12881         (yn): Likewise.
12882         (ynf): Likewise.
12883         (ynl): Likewise.
12884         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12885         line.
12886         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12887         "...".
12888         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12889         (sched_get_priority_max): Likewise.
12890         * manual/signal.texi (sigvec): Add space after comma.
12891         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12892         names.
12893         (if_indextoname): Likewise.
12894         (if_freenameindex): Likewise.
12895         (sendto): Use ',' instead of '.' in prototype.
12896         * manual/startup.texi (syscall): Use @dots{} instead of literal
12897         "...".
12898         * manual/stdio.texi (__fpending): Separate initial words of
12899         paragraph from @deftypefun line.
12900         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12901         "...".
12902         (vsyslog): Use @var{} on parameter names.
12903         * manual/terminal.texi (stty): Use @var{} on parameter names.
12904         * manual/users.texi (getutmp): Use @var{} on parameter names.
12905         (getutmpx): Likewise.
12906
12907 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12908
12909         [BZ #6884]
12910         * manual/stdio.texi (fopen): Fix typos in description of
12911         ",ccs=STRING".
12912
12913 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12914
12915         [BZ #4026]
12916         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12917         get clock_id definition.
12918
12919 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12920
12921         [BZ #4822]
12922         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12923         (madvise): Cast every argument to void on its own.
12924
12925 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12926
12927         [BZ #9902]
12928         * manual/startup.texi (Exit Status): Fix typo.
12929
12930 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12931
12932         [BZ #10140]
12933         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12934         * manual/examples/argp-ex2.c: Likewise.
12935         * manual/examples/argp-ex3.c: Likewise.
12936
12937 2012-02-16  Richard Henderson  <rth@redhat.com>
12938
12939         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12940         * sysdeps/s390/s390-32/initfini.c: Remove.
12941         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12942         * sysdeps/s390/s390-64/initfini.c: Remove.
12943
12944 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12945
12946         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12947         compiler output for sysdeps/generic/initfini.c.
12948         * sysdeps/sh/elf/initfini.c: Remove file.
12949
12950 2012-02-16  David S. Miller  <davem@davemloft.net>
12951
12952         [BZ #11494]
12953         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12954
12955         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12956         * sysdeps/sparc/crti.S: New file.
12957         * sysdeps/sparc/crtn.S: New file.
12958         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12959         * sysdeps/sparc/sparc64/Makefile: Likewise.
12960
12961 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12962
12963         [BZ #3335]
12964         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12965
12966 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12967
12968         [BZ #4822]
12969         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12970
12971         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12972         (write, read, close): Likewise.
12973         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12974
12975 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
12976
12977         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
12978         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
12979         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
12980         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
12981         <bits/signalfd.h>.
12982         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
12983         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12984         bits/signalfd.h.
12985
12986 2012-02-14  Marek Polacek  <polacek@redhat.com>
12987
12988         * sysdeps/x86_64/crti.S: New file.
12989         * sysdeps/x86_64/crtn.S: New file.
12990         * sysdeps/x86_64/elf/initfini.c: Remove file.
12991
12992 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12993
12994         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
12995         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
12996         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
12997         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
12998         <bits/inotify.h>.
12999         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13000         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13001         bits/inotify.h.
13002
13003 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13004
13005         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13006         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13007         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13008         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13009         <bits/eventfd.h>.
13010         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13011         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13012         bits/eventfd.h.
13013
13014 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13015
13016         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13017         __feraiseexcept instead of feraiseexcept.
13018
13019         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13020         nanosleep invocations.
13021         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13022         strings, and add error checking for a nanosleep invocations.
13023
13024 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13025
13026         Replace FSF snail mail address with URLs, as per GNU coding standards.
13027         Most of the snail mail addresses were wrong anyway, and omitting
13028         them makes the source code easier to maintain.  Almost all of the
13029         changes are to license notices and to locale LC_IDENTIFICATION
13030         addresses, except for this one:
13031         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13032         not its snail mail address.
13033
13034 2012-02-09  Richard Henderson  <rth@twiddle.net>
13035
13036         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13037         of kernel-features.h.
13038
13039         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13040
13041 2012-02-08  Marek Polacek  <polacek@redhat.com>
13042
13043         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13044         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13045         * sysdeps/gnu/_G_config.h: Likewise.
13046         * sysdeps/generic/_G_config.h: Likewise.
13047
13048 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13049
13050         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13051         tests.
13052         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13053
13054         * sysdeps/powerpc/powerpc32/crti.S: New file.
13055         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13056         * sysdeps/powerpc/powerpc64/crti.S: New file.
13057         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13058
13059         * Makeconfig (have-initfini): Don't set.
13060         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13061         * configure.in (nopic_initfini): Don't substitute.
13062         * config.h.in (HAVE_INITFINI): Don't #undef.
13063         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13064         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13065
13066 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13067
13068         Support crti.S and crtn.S provided directly by architectures.
13069         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13070         [crti.S in sysdirs] (omit-deps): Likewise.
13071         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13072         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13073         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13074         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13075         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13076         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13077         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13078         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13079         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13080         compiler output for sysdeps/generic/initfini.c.
13081         * sysdeps/i386/elf/Makefile: Remove file.
13082         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13083
13084 2012-02-07  Marek Polacek  <polacek@redhat.com>
13085
13086         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13087         * sysdeps/gnu/_G_config.h: Likewise.
13088         * sysdeps/mach/hurd/_G_config.h: Likewise.
13089
13090 2012-02-07  Marek Polacek  <polacek@redhat.com>
13091
13092         * math/Makefile (tests): Add tst-CMPLX2.
13093         * math/tst-CMPLX2.c: New file.
13094
13095 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13096
13097         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13098
13099         * math/libm-test.inc (jn_test): Add missing L suffix.
13100
13101 2012-02-06  Marek Polacek  <polacek@redhat.com>
13102
13103         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13104         * sysdeps/i386/fpu/e_powf.S: Likewise.
13105         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13106         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13107         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13108         * sysdeps/i386/fpu/e_pow.S: Likewise.
13109         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13110         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13111         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13112         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13113         * sysdeps/i386/fpu/e_log2.S: Likewise.
13114         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13115         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13116         * sysdeps/i386/fpu/e_powl.S: Likewise.
13117         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13118         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13119         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13120         * sysdeps/i386/fpu/e_logl.S: Likewise.
13121         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13122         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13123         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13124         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13125         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13126         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13127         * sysdeps/i386/fpu/e_log.S: Likewise.
13128         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13129         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13130         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13131         * sysdeps/i386/fpu/e_logf.S: Likewise.
13132         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13133         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13134         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13135         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13136         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13137         * sysdeps/i386/fpu/e_log10.S: Likewise.
13138         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13139         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13140         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13141         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13142         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13143         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13144         * sysdeps/i386/asm-syntax.h: Likewise.
13145         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13146         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13147         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13148         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13149         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13150         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13151         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13152         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13153         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13154         * sysdeps/powerpc/sysdep.h: Likewise.
13155         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13156         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13157
13158 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13159
13160         [BZ #411]
13161         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13162
13163 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13164
13165         * sysdeps/i386/sysdep.h: Include <features.h>.
13166         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13167         version.
13168
13169 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13170
13171         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13172         Define.
13173         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13174         LOAD_PIC_REG_STR.
13175
13176 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13177
13178         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13179         (SETUP_PIC_REG): Use GET_PC_THUNK.
13180         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13181         macro.
13182
13183 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13184
13185         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13186         for non-PIC compilation.
13187         (SETUP_PIC_REG): Add .p2align directive.
13188         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13189         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13190         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13191         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13192         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13193         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13194         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13195         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13196         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13197         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13198         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13199         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13200         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13201         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13202         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13203         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13204         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13205         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13206         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13207         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13208         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13209         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13210         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13211         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13212         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13213         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13214         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13215         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13216         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13217         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13218         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13219         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13220         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13221         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13222         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13223         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13224         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13225         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13226         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13227         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13228         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13229
13230 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13231
13232         * math/tst-CMPLX.c: Include <stdio.h>.
13233
13234 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13235
13236         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13237         float.
13238         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13239         * sysdeps/sparc/bits/mathdef.h: Likewise.
13240
13241 2012-01-31  Marek Polacek  <polacek@redhat.com>
13242
13243         * libio/libio.h: Don't define _PARAMS.
13244         * locale/programs/config.h: Don't define PARAMS.
13245         * stdlib/strtol_l.c: Likewise.
13246         (__strtol_l): Remove PARAMS from the prototype.
13247
13248 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13249
13250         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13251         names.  Just use the correct names.  Remove unnecessary wrapper
13252         functions.
13253         * malloc/arena.c: Likewise.
13254         * malloc/hooks.c: Likewise.
13255
13256         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13257         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13258         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13259
13260 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13261
13262         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13263         into tail calls.
13264         (update_get_addr): New function.
13265         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13266         GET_ADDR_MODULE parameter.
13267
13268 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13269
13270         * crypt/cert.c: Remove __STDC__ conditionals.
13271         * crypt/crypt-entry.c: Likewise.
13272         * crypt/crypt_util.c: Likewise.
13273         * libio/filedoalloc.c: Likewise.
13274         * libio/fileops.c: Likewise.
13275         * libio/genops.c: Likewise.
13276         * libio/iofclose.c: Likewise.
13277         * libio/iofdopen.c: Likewise.
13278         * libio/iofopen.c: Likewise.
13279         * libio/iofopen64.c: Likewise.
13280         * libio/iogetdelim.c: Likewise.
13281         * libio/iopopen.c: Likewise.
13282         * libio/obprintf.c: Likewise.
13283         * libio/oldfileops.c: Likewise.
13284         * libio/oldiofclose.c: Likewise.
13285         * libio/oldiofdopen.c: Likewise.
13286         * libio/oldiofopen.c: Likewise.
13287         * libio/oldiopopen.c: Likewise.
13288         * libio/wfiledoalloc.c: Likewise.
13289         * libio/wgenops.c: Likewise.
13290         * locale/programs/xmalloc.c: Likewise.
13291         * misc/syslog.c: Likewise.
13292         * stdio-common/xbug.c: Likewise.
13293         * string/memchr.c: Likewise.
13294         * string/memcmp.c: Likewise.
13295         * string/memrchr.c: Likewise.
13296         * string/rawmemchr.c: Likewise.
13297         * sysdeps/posix/getcwd.c: Likewise.
13298         * time/strftime_l.c: Likewise.
13299
13300 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13301
13302         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13303         * config.make.in (config-cflags-sse2avx): Define.
13304         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13305         Fix typo.
13306
13307 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13308
13309         * scripts/config.guess: Update from upstream config git repository.
13310         * scripts/config.sub: Likewise.
13311
13312 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13313
13314         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13315         (EM_NUM): Update.
13316         (R_TILEPRO_*, R_TILEGX_*): New macros.
13317
13318         * scripts/firstversions.awk: Fix bug in version range handling.
13319
13320         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13321
13322         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13323
13324         * include/sys/epoll.h: New file.
13325         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13326         libc_hidden_def.
13327
13328 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13329
13330         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13331         Avoid unnecessary __WORDSIZE == 64 test.
13332         (fmaxf): Use VEX format if possible.
13333         (fmax): Likewise.
13334         (fminf): Likewise.
13335         (fmin): Likewise.
13336
13337         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13338         * math/math_private.h: Remove libc_fegetround* and
13339         libc_fesetround*.
13340         * sysdeps/i386/configure.in: Check for -msse2avx.
13341         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13342         also if SSE2AVX is defined.
13343         Remove libc_fegetround* and libc_fesetround*.
13344         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13345         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13346         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13347         of HAS_YMM_USABLE.
13348         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13349         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13350         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13351         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13352         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13353
13354         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13355
13356 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13357
13358         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13359         size is not set.
13360         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13361
13362 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13363
13364         [BZ #13618]
13365         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13366         relocation.
13367         * Makeconfig (libm): Define.
13368         * elf/Makefile: Add rules to build and run tst-relsort1.
13369         * elf/tst-relsort1.c: New file.
13370         * elf/tst-relsort1mod1.c: New file.
13371         * elf/tst-relsort1mod2.c: New file.
13372
13373 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13374
13375         * math/s_ldexp.c: Remove __STDC__ conditionals.
13376         * math/s_ldexpf.c: Likewise.
13377         * math/s_ldexpl.c: Likewise.
13378         * math/s_nextafter.c: Likewise.
13379         * math/s_nexttowardf.c: Likewise.
13380         * math/s_significand.c: Likewise.
13381         * math/s_significandf.c: Likewise.
13382         * math/s_significandl.c: Likewise.
13383         * math/w_jnl.c: Likewise.
13384         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13385         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13386         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13387         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13388         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13389         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13390         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13391         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13392         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13393         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13394         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13395         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13396         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13397         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13398         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13399         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13400         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13401         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13402         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13403         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13404         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13405         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13406         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13407         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13408         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13409         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13410         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13411         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13412         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13413         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13414         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13415         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13416         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13417         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13418         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13419         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13420         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13421         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13422         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13423         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13424         * sysdeps/ieee754/k_standard.c: Likewise.
13425         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13426         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13427         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13428         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13429         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13430         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13431         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13432         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13433         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13434         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13435         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13436         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13437         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13438         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13439         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13440         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13441         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13442         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13443         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13444         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13445         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13446         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13447         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13448         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13449         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13450         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13451         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13452         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13453         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13454         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13455         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13456         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13457         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13458         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13459         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13460         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13461         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13462         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13463         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13464         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13465         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13466         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13467         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13468         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13469         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13470         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13471         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13472         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13473         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13474         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13475         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13476         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13477         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13478         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13479         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13480         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13481         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13482         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13483         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13484         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13485         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13486         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13487         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13488         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13489         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13490         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13491         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13492         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13493         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13494         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13495         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13496         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13497         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13498         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13499         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13500         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13501         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13502         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13503         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13504         * sysdeps/ieee754/s_matherr.c: Likewise.
13505         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13506         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13507         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13508         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13509
13510 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13511
13512         * crypt/md5.h: Remove __STDC__ conditionals.
13513         * libio/libioP.h: Likewise.
13514         * locale/programs/config.h: Likewise.
13515         * sysdeps/generic/sysdep.h: Likewise.
13516         * sysdeps/i386/asm-syntax.h: Likewise.
13517         * sysdeps/s390/asm-syntax.h: Likewise.
13518         * sysdeps/unix/sysdep.h: Likewise.
13519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13521
13522 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13523
13524         * libio/libio.h: Remove __STDC__ conditionals.
13525         * malloc/obstack.h: Likewise.
13526         * math/complex.h: Likewise.
13527         * math/math.h: Likewise.
13528         * sysdeps/generic/_G_config.h: Likewise.
13529         * sysdeps/gnu/_G_config.h: Likewise.
13530         * sysdeps/mach/hurd/_G_config.h: Likewise.
13531         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13532         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13533         * sysdeps/sparc/bits/mathdef.h: Likewise.
13534
13535 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13536
13537         [BZ #13583]
13538         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13539         Clean up HAS_* macros.
13540         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13541         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13542         possible.
13543         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13544         HAS_AVX.
13545         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13546         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13547         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13548         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13549         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13550
13551 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13552
13553         * elf/tst-unique3.cc (gets): Remove declaration.
13554         * elf/tst-unique3lib.cc (gets): Likewise.
13555         * elf/tst-unique3lib2.cc (gets): Likewise.
13556         * elf/tst-unique4.cc (gets): Likewise.
13557
13558 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13559
13560         * include/stdio.h: Add C++ protection.  Add gets declarations and
13561         definitions.
13562         * debug/tst-chk1.c: Don't declare gets here.
13563         * stdio-common/tst-gets.c: Likewise.
13564
13565 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13566
13567         * posix/glob: Remove directory.
13568
13569 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13570
13571         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13572
13573 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13574
13575         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13576         of the non-standard EPFNOSUPPORT.
13577
13578 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13579
13580         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13581         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13582         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13583
13584 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13585
13586         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13587
13588 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13589
13590         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13591         transient errors.
13592         * nscd/grpcache.c (cache_addgr): Likewise.
13593         * nscd/hstcache.c (cache_addhst): Likewise.
13594         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13595         * nscd/pwdcache.c (cache_addpw): Likewise.
13596         * nscd/servicescache.c (cache_addserv): Likewise.
13597
13598 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13599
13600         * malloc/malloc.c: Various cleanups.
13601         * malloc/hooks.c: Likewise.
13602
13603         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13604         * stdlib/bug-fmtmsg1.c: New file.
13605
13606         * stdlib/fmtmsg.c (init): Add missing unlock.
13607         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13608
13609 2012-01-12  Marek Polacek  <polacek@redhat.com>
13610
13611         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13612         and _GNU_SOURCE.
13613
13614 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13615
13616         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13617         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13618         macro to ensure uniqueness of label name.
13619         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13620         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13621
13622 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13623
13624         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13625
13626         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13627         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13628         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13629         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13630
13631 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13632
13633         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13634
13635         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13636         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13637         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13638
13639         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13640
13641         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13642         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13643         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13644         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13645
13646         * math/bits/math-finite.h: Add ldexp support.
13647
13648 2012-01-10  Marek Polacek  <polacek@redhat.com>
13649
13650         * locale/programs/localedef.h (show_archive_content): Add noreturn
13651         attribute.
13652
13653 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13654
13655         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13656
13657 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13658
13659         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13660
13661         * io/Makefile (headers): Add bits/poll2.h.
13662
13663 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13664
13665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13666         typo #include statement.
13667
13668 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13669
13670         * include/sys/cdefs.h: Define __attribute_alloc_size.
13671         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13672         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13673         * elf/pldd.c: Likewise.
13674         * iconv/iconv_charmap.c: Likewise.
13675         * iconv/iconvconfig.c: Likewise.
13676         * iconv/strtab.c: Likewise.
13677         * locale/programs/locale.c: Likewise.
13678         * locale/programs/localedef.h: Likewise.
13679         * locale/programs/simple-hash.c: Likewise.
13680         * nscd/nscd.h: Likewise.
13681         * nss/makedb.c: Likewise.
13682         * sysdeps/generic/ldconfig.h: Likewise.
13683         * locale/programs/localedef.c: Remove xmalloc prototype.
13684         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13685
13686 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13687
13688         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13689         appropriate.
13690
13691 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13692
13693         * math/Makefile (tests): Add tst-CMPLX.
13694         * math/tst-CMPLX.c: New file.
13695
13696         * math/complex.h (CMPLXL): Fix typo.
13697
13698         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13699         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13700         GLIBC_2.16.
13701         * debug/tst-chk1.c: Add poll and ppoll tests.
13702         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13703         * include/sys/poll.h: Add hidden proto for ppoll.
13704         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13705         * sysdeps/mach/hurd/ppoll.c: Likewise.
13706         * io/ppoll.c: Likewise.
13707         * debug/poll_chk.c: New file.
13708         * debug/ppoll_chk.c: New file.
13709         * include/bits/poll2.h: New file.
13710         * io/bits/poll2.h: New file.
13711
13712         [BZ #1350]
13713         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13714
13715         * configure.in: static is always set to yes.  Remove.
13716         * config.make.in: Don't set build-static.
13717         * Makeconfig: Remove use of build-static.
13718         * dlfcn/Makefile: Likewise.
13719         * elf/Makefile: Likewise.
13720         * math/Makefile: Likewise.
13721         * misc/Makefile: Likewise.
13722         * nptl/Makefile: Likewise.
13723         * sysdeps/mach/hurd/Makefile: Likewise.
13724
13725         * configure.in: PWD_P is not used anymore.
13726         * config.make.in: Remove PWD_P entry.
13727
13728         * configure.in: Remove last remnants of RANLIB.
13729         No need to check for signed size_t anymore.
13730         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13731         and IA-64.
13732         Remove __builtin_expect test because we require at least gcc 3.4.
13733         * aclocal.m4: Likewise.
13734
13735         * wcsmbs/mbrtoc16.c: Implement using towc function.
13736         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13737         * wcsmbs/wcsmbsload.c: Likewise.
13738         * iconv/gconv_simple.c: Likewise.
13739         * iconv/gconv_int.h: Likewise.
13740         * iconv/gconv_builtin.h: Likewise.
13741         * iconv/iconv_prog.c: Remove CHAR16 handling.
13742
13743         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13744
13745         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13746
13747         * configure.in: Remove --with-elf and --enable-bounded options.
13748         Dont set base_machine for ia64.  More non-ELF conditions removed.
13749         Remove testing and setting of leading underscore information.
13750         * config.make.in (build-bounded): Set to no.
13751         * config.h.in: Remove NO_UNDERSCORES entry.
13752         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13753         them.
13754         * csu/start.c: Remove !NO_UNDERSCORE code.
13755         * locale/localeinfo.h: Likewise.
13756         * sysdeps/generic/machine-gmon.h: Likewise.
13757         * sysdeps/generic/sysdep.h: Likewise.
13758         * sysdeps/i386/sysdep.h: Likewise.
13759         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13760         * sysdeps/mach/sysdep.h: Likewise.
13761         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13762         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13763         * sysdeps/sh/sysdep.h: Likewise.
13764         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13765         * sysdeps/unix/i386/sysdep.S: Likewise.
13766         * sysdeps/unix/sparc/start.c: Likewise.
13767         * sysdeps/unix/sparc/sysdep.S: Likewise.
13768         * sysdeps/unix/sparc/sysdep.h: Likewise.
13769         * sysdeps/unix/start.c: Likewise.
13770         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13771         * sysdeps/x86_64/sysdep.h: Likewise.
13772
13773 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13774
13775         [BZ #13553]
13776         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13777         for non-gcc.
13778         * argp/argp-fmtstream.h: Use const instead __const.
13779         * argp/argp.h: Likewise.
13780         * assert/assert.h: Likewise.
13781         * bits/fenv.h: Likewise.
13782         * bits/sched.h: Likewise.
13783         * bits/sigset.h: Likewise.
13784         * bits/sigthread.h: Likewise.
13785         * catgets/nl_types.h: Likewise.
13786         * conform/data/pthread.h-data: Likewise.
13787         * crypt/crypt-private.h: Likewise.
13788         * crypt/crypt.h: Likewise.
13789         * crypt/crypt_util.c: Likewise.
13790         * ctype/ctype.h: Likewise.
13791         * debug/execinfo.h: Likewise.
13792         * debug/mbsnrtowcs_chk.c: Likewise.
13793         * debug/mbsrtowcs_chk.c: Likewise.
13794         * debug/wcsnrtombs_chk.c: Likewise.
13795         * debug/wcsrtombs_chk.c: Likewise.
13796         * debug/wcstombs_chk.c: Likewise.
13797         * dirent/dirent.h: Likewise.
13798         * dlfcn/dlfcn.h: Likewise.
13799         * elf/neededtest4.c: Likewise.
13800         * grp/grp.h: Likewise.
13801         * gshadow/gshadow.h: Likewise.
13802         * iconv/gconv.h: Likewise.
13803         * iconv/gconv_int.h: Likewise.
13804         * iconv/gconv_simple.c: Likewise.
13805         * iconv/iconv.h: Likewise.
13806         * iconv/loop.c: Likewise.
13807         * iconv/skeleton.c: Likewise.
13808         * include/aio.h: Likewise.
13809         * include/aliases.h: Likewise.
13810         * include/argz.h: Likewise.
13811         * include/arpa/inet.h: Likewise.
13812         * include/assert.h: Likewise.
13813         * include/dirent.h: Likewise.
13814         * include/dlfcn.h: Likewise.
13815         * include/execinfo.h: Likewise.
13816         * include/fcntl.h: Likewise.
13817         * include/fenv.h: Likewise.
13818         * include/glob.h: Likewise.
13819         * include/grp.h: Likewise.
13820         * include/libintl.h: Likewise.
13821         * include/mntent.h: Likewise.
13822         * include/netdb.h: Likewise.
13823         * include/pwd.h: Likewise.
13824         * include/rpc/netdb.h: Likewise.
13825         * include/sched.h: Likewise.
13826         * include/search.h: Likewise.
13827         * include/shadow.h: Likewise.
13828         * include/signal.h: Likewise.
13829         * include/stdio.h: Likewise.
13830         * include/stdlib.h: Likewise.
13831         * include/string.h: Likewise.
13832         * include/sys/socket.h: Likewise.
13833         * include/sys/stat.h: Likewise.
13834         * include/sys/statfs.h: Likewise.
13835         * include/sys/statvfs.h: Likewise.
13836         * include/sys/syslog.h: Likewise.
13837         * include/sys/time.h: Likewise.
13838         * include/sys/uio.h: Likewise.
13839         * include/time.h: Likewise.
13840         * include/unistd.h: Likewise.
13841         * include/utmp.h: Likewise.
13842         * include/wchar.h: Likewise.
13843         * include/wctype.h: Likewise.
13844         * inet/aliases.h: Likewise.
13845         * inet/arpa/inet.h: Likewise.
13846         * inet/netinet/ether.h: Likewise.
13847         * inet/netinet/in.h: Likewise.
13848         * intl/libintl.h: Likewise.
13849         * io/bits/fcntl2.h: Likewise.
13850         * io/fcntl.h: Likewise.
13851         * io/ftw.h: Likewise.
13852         * io/sys/poll.h: Likewise.
13853         * io/sys/stat.h: Likewise.
13854         * io/sys/statfs.h: Likewise.
13855         * io/sys/statvfs.h: Likewise.
13856         * io/utime.h: Likewise.
13857         * libio/bits/stdio.h: Likewise.
13858         * libio/bits/stdio2.h: Likewise.
13859         * libio/libio.h: Likewise.
13860         * libio/libioP.h: Likewise.
13861         * libio/stdio.h: Likewise.
13862         * locale/lc-ctype.c: Likewise.
13863         * locale/locale.h: Likewise.
13864         * login/utmp.h: Likewise.
13865         * malloc/arena.c: Likewise.
13866         * malloc/malloc.c: Likewise.
13867         * malloc/malloc.h: Likewise.
13868         * malloc/mcheck.c: Likewise.
13869         * malloc/mtrace.c: Likewise.
13870         * math/bits/mathcalls.h: Likewise.
13871         * math/fenv.h: Likewise.
13872         * math/math_private.h: Likewise.
13873         * misc/bits/error.h: Likewise.
13874         * misc/bits/syslog.h: Likewise.
13875         * misc/err.h: Likewise.
13876         * misc/error.h: Likewise.
13877         * misc/fstab.h: Likewise.
13878         * misc/mntent.h: Likewise.
13879         * misc/regexp.h: Likewise.
13880         * misc/search.h: Likewise.
13881         * misc/sgtty.h: Likewise.
13882         * misc/sys/mman.h: Likewise.
13883         * misc/sys/syslog.h: Likewise.
13884         * misc/sys/uio.h: Likewise.
13885         * misc/sys/xattr.h: Likewise.
13886         * misc/ttyent.h: Likewise.
13887         * nis/rpcsvc/ypclnt.h: Likewise.
13888         * nss/nss.h: Likewise.
13889         * posix/bits/unistd.h: Likewise.
13890         * posix/fnmatch.h: Likewise.
13891         * posix/glob.h: Likewise.
13892         * posix/sched.h: Likewise.
13893         * posix/spawn.h: Likewise.
13894         * posix/sys/wait.h: Likewise.
13895         * posix/unistd.h: Likewise.
13896         * posix/wordexp.h: Likewise.
13897         * pwd/pwd.h: Likewise.
13898         * resolv/netdb.h: Likewise.
13899         * resource/sys/resource.h: Likewise.
13900         * rt/aio.h: Likewise.
13901         * rt/bits/mqueue2.h: Likewise.
13902         * rt/mqueue.h: Likewise.
13903         * shadow/shadow.h: Likewise.
13904         * signal/signal.h: Likewise.
13905         * socket/send.c: Likewise.
13906         * socket/sendto.c: Likewise.
13907         * socket/sys/socket.h: Likewise.
13908         * stdio-common/printf.h: Likewise.
13909         * stdlib/bits/stdlib.h: Likewise.
13910         * stdlib/fmtmsg.h: Likewise.
13911         * stdlib/monetary.h: Likewise.
13912         * stdlib/stdlib.h: Likewise.
13913         * stdlib/ucontext.h: Likewise.
13914         * streams/stropts.h: Likewise.
13915         * string/argz.h: Likewise.
13916         * string/bits/string2.h: Likewise.
13917         * string/string.h: Likewise.
13918         * string/strings.h: Likewise.
13919         * sunrpc/rpc/auth.h: Likewise.
13920         * sunrpc/rpc/auth_des.h: Likewise.
13921         * sunrpc/rpc/clnt.h: Likewise.
13922         * sunrpc/rpc/netdb.h: Likewise.
13923         * sunrpc/rpc/pmap_clnt.h: Likewise.
13924         * sunrpc/rpc/xdr.h: Likewise.
13925         * sysdeps/generic/inttypes.h: Likewise.
13926         * sysdeps/generic/net/if.h: Likewise.
13927         * sysdeps/generic/sys/swap.h: Likewise.
13928         * sysdeps/gnu/net/if.h: Likewise.
13929         * sysdeps/gnu/utmpx.h: Likewise.
13930         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13931         * sysdeps/i386/i486/bits/string.h: Likewise.
13932         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13933         * sysdeps/s390/bits/string.h: Likewise.
13934         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13935         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13936         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13937         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13938         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13939         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13940         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13941         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13942         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13943         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13944         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13945         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13946         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13947         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13948         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13949         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13950         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13951         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13952         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13953         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13954         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13955         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13956         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13957         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13958         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13959         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13960         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13961         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13962         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13963         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13964         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13965         * sysvipc/sys/ipc.h: Likewise.
13966         * sysvipc/sys/msg.h: Likewise.
13967         * sysvipc/sys/sem.h: Likewise.
13968         * sysvipc/sys/shm.h: Likewise.
13969         * termios/termios.h: Likewise.
13970         * time/sys/time.h: Likewise.
13971         * time/time.h: Likewise.
13972         * wcsmbs/bits/wchar2.h: Likewise.
13973         * wcsmbs/uchar.h: Likewise.
13974         * wcsmbs/wchar.h: Likewise.
13975         * wctype/wctype.h: Likewise.
13976
13977         [BZ #13551]
13978         * Makeconfig: Remove all but ELF support including AIX support.
13979         * Makerules: Likewise.
13980         * config.h.in: Likewise.
13981         * config.make.in: Likewise.
13982         * configure: Likewise.
13983         * configure.in: Likewise.
13984         * csu/Makefile: Likewise.
13985         * csu/version.c: Likewise.
13986         * debug/Makefile: Likewise.
13987         * dlfcn/Makefile: Likewise.
13988         * elf/Makefile: Likewise.
13989         * extra-lib.mk: Likewise.
13990         * iconv/Makefile: Likewise.
13991         * include/libc-symbols.h: Likewise.
13992         * include/shlib-compat.h: Likewise.
13993         * resolv/Makefile: Likewise.
13994         * resolv/res_libc.c: Likewise.
13995         * rt/Makefile: Likewise.
13996         * sysdeps/i386/asm-syntax.h: Likewise.
13997         * sysdeps/i386/sysdep.h: Likewise.
13998         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13999         * sysdeps/mach/sysdep.h: Likewise.
14000         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14001         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14002         * sysdeps/s390/asm-syntax.h: Likewise.
14003         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14004         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14005         * sysdeps/sh/sysdep.h: Likewise.
14006         * sysdeps/unix/sparc/sysdep.h: Likewise.
14007         * sysdeps/wordsize-32/divdi3.c: Likewise.
14008         * sysdeps/x86_64/sysdep.h: Likewise.
14009
14010         * argp/Versions: Remove _argp_unlock_xxx.
14011
14012         [BZ #13559]
14013         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14014         * abilist/libBrokenLocale.abilist: Likewise.
14015         * abilist/libanl.abilist: Likewise.
14016         * abilist/libc.abilist: Likewise.
14017         * abilist/libcrypt.abilist: Likewise.
14018         * abilist/libdl.abilist: Likewise.
14019         * abilist/libm.abilist: Likewise.
14020         * abilist/libnsl.abilist: Likewise.
14021         * abilist/libpthread.abilist: Likewise.
14022         * abilist/libresolv.abilist: Likewise.
14023         * abilist/librt.abilist: Likewise.
14024         * abilist/libthread_db.abilist: Likewise.
14025         * abilist/libutil.abilist: Likewise.
14026         * abilist/libnss_db.abilist: New file.
14027
14028         * scripts/abilist.awk: Add support for indirect functions.
14029
14030         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14031
14032         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14033
14034         * shlib-versions: Remove entries for ports architectures.
14035
14036         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14037         files in ports.
14038         * elf/stackguard-macros.h: Remove support for IA-64.
14039         * elf/tst-auditmod1.c: Likewise.
14040         * sysdeps/generic/ldsodefs.h: Likewise.
14041
14042         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14043         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14044         configure files.
14045
14046         [BZ #13552]
14047         * configure.in: Remove --enable-omitfp support.
14048         * FAQ.in: Adjust.
14049         * config.make.in: Likewise.
14050         * Makeconfig: Likewise.
14051         * manual/install.texi: Likewise.
14052
14053         In case anyone cares, the IA-64 architecture could move to ports.
14054         * sysdeps/ia64/*: Removed.
14055         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14056         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14057
14058         [BZ #13555]
14059         * configure.in: Remove entries for unsupported architectures.
14060
14061         [BZ #13533]
14062         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14063         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14064         routines.
14065         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14066         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14067         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14068         fall back to using wcrtomb.
14069         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14070         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14071         renaming.
14072         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14073         * wcsmbs/tst-c16c32-1.c: New file.
14074
14075         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14076         local variable.
14077
14078         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14079
14080         * elf/tst-unique3.cc: Add explicit declaration of gets.
14081         * elf/tst-unique3lib.cc: Likewise.
14082         * elf/tst-unique3lib2.cc: Likewise.
14083         * elf/tst-unique4.cc: Likewise.
14084
14085         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14086
14087 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14088
14089         [BZ #13566]
14090         * assert/assert.h (static_assert): Don't define for C++.
14091         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14092         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14093
14094 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14095
14096         * iconv/loop.c (single loop): Fix assertion in storing of
14097         remaining bytes.
14098
14099         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14100
14101 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14102
14103         * posix/getconf.c: Update copyright year.
14104         * nss/getent.c: Likewise.
14105         * nss/makedb.c: Likewise.
14106         * iconv/iconvconfig.c: Likewise.
14107         * iconv/iconv_prog.c: Likewise.
14108         * elf/ldconfig.c: Likewise.
14109         * elf/pldd.c: Likewise.
14110         * elf/sotruss.ksh: Likewise.
14111         * catgets/gencat.c: Likewise.
14112         * csu/version.c: Likewise.
14113         * elf/ldd.bash.in: Likewise.
14114         * elf/sprof.c (print_version): Likewise.
14115         * locale/programs/locale.c: Likewise.
14116         * locale/programs/localedef.c: Likewise.
14117         * login/programs/pt_chown.c: Likewise.
14118         * nscd/nscd.c (print_version): Likewise.
14119         * debug/xtrace.sh: Likewise.
14120         * malloc/memusage.sh: Likewise.
14121         * malloc/mtrace.pl: Likewise.
14122         * debug/catchsegv.sh: Likewise.
14123
14124 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14125
14126         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14127         pure attribute.
14128
14129 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14130
14131         [BZ #13533]
14132         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14133         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14134         transformations.
14135         * iconv/gconv_int.h: Likewise.
14136         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14137         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14138         from libc for GLIBC_2.16.
14139         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14140         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14141         * wcsmbs/uchar.h: Really define mbstate_t.
14142         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14143         * wcsmbs/c16rtomb.c: New file.
14144         * wcsmbs/mbrtoc16.c: New file.
14145         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14146         for C/POSIX locale.
14147         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14148         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14149
14150         * wcsmbs/wchar.h: Add missing __restrict.
14151
14152 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14153
14154         [BZ #13532]
14155         * time/Makefile (routines): Add timespec_get.
14156         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14157         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14158         timespec for ISO C11.
14159         * time/timespec_get.c: New file.
14160         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14161         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14162
14163         [BZ #13531]
14164         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14165         * stdlib/stdlib.h: Declare aligned_alloc.
14166         * Versions.def: Add GLIBC_2.16 for libc.
14167         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14168
14169         [BZ 13527]
14170         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14171         ISO C11.
14172
14173         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14174         code.
14175
14176         [BZ #13528]
14177         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14178
14179         [BZ #13529]
14180         * assert/assert.h (static_assert): Define.
14181
14182         * version.h: Update for 2.16 development version.
14183
14184         [BZ #13526]
14185         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14186         _ISOC11_SOURCE.
14187
14188         * version.h (RELEASE): Bump for 2.15 release.
14189         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14190
14191         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14192         Patch by Marek Polacek <mpolacek@redhat.com>.
14193
14194         * bits/byteswap.h: Protect long long constants with __extension__.
14195         * sysdeps/i386/bits/byteswap.h: Likewise.
14196         * sysdeps/ia64/bits/byteswap.h: Likewise.
14197         * sysdeps/s390/bits/byteswap.h: Likewise.
14198         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14199
14200 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14201
14202         [BZ #13540]
14203         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14204         destination buffer.
14205         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14206
14207 2011-12-23  Marek Polacek  <polacek@redhat.com>
14208
14209         * elf/dl-addr.c (determine_info): Add inline keyword.
14210         * elf/tst-auditmod4b.c (check_avx): Likewise.
14211         * elf/tst-auditmod6b.c (check_avx): Likewise.
14212         * elf/tst-auditmod6c.c (check_avx): Likewise.
14213         * elf/tst-auditmod7b.c (check_avx): Likewise.
14214
14215 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14216
14217         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14218         !__SSE_MATH__.
14219
14220 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14221
14222         [BZ #13540]
14223         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14224         processing for last bytes.
14225
14226 2011-08-06  Bruno Haible  <bruno@clisp.org>
14227
14228         [BZ #13061]
14229         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14230         U+0385, not to U+1FEE.
14231
14232         [BZ #13062]
14233         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14234         entry for U+00A5 U+0301.
14235
14236 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14237
14238         [BZ #13166]
14239         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14240         buffer for the output is too small.
14241
14242         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14243         optimization.
14244
14245         [BZ #13185]
14246         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14247         SSE flags if possible.
14248
14249 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14250
14251         [BZ #13540]
14252         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14253         processing for last bytes.
14254
14255 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14256
14257         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14258         (syscall-list-default-options, syscall-list-default-condition)
14259         (syscall-list-includes): Define.
14260         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14261         list of ABIs and options and #if conditions for each ABI.  Do not
14262         handle common syscalls between ABIs specially.
14263         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14264         Remove.
14265         (syscall-list-variants, syscall-list-32bit-options)
14266         (syscall-list-32bit-condition, syscall-list-64bit-options)
14267         (syscall-list-64bit-condition): Define.
14268         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14269         (syscall-list-variants, syscall-list-32bit-options)
14270         (syscall-list-32bit-condition, syscall-list-64bit-options)
14271         (syscall-list-64bit-condition): Define.
14272         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14273         Remove.
14274         (syscall-list-variants, syscall-list-32bit-options)
14275         (syscall-list-32bit-condition, syscall-list-64bit-options)
14276         (syscall-list-64bit-condition): Define.
14277         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14278         Remove.
14279         (syscall-list-variants, syscall-list-32bit-options)
14280         (syscall-list-32bit-condition, syscall-list-64bit-options)
14281         (syscall-list-64bit-condition): Define.
14282
14283 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14284
14285         * locale/iso-639.def: Add brx entry.
14286
14287         [BZ #13328]
14288         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14289         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14290
14291         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14292         __feraiseexcept_renamed.
14293
14294 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14295
14296         [BZ #13538]
14297         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14298         EPOLLET with unsigned values.
14299         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14300         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14301
14302         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14303         to large cancellation.
14304         * math/s_cacoshf.c: Likewise.
14305         * math/s_cacoshl.c: Likewise.
14306
14307 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14308
14309         [BZ #13305]
14310         [BZ #12786]
14311         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14312         * math/s_cacoshf.c: Likewise.
14313         * math/s_cacoshl.c: Likewise.
14314
14315 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14316
14317         [BZ #13439]
14318         * iconv/gconv.h: Define __GCONV_SWAP.
14319         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14320         * iconvdata/utf-16.c: Likewise.
14321         * iconvdata/utf-32.c: Likewise.
14322
14323 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14324
14325         [BZ #13524]
14326         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14327         numerator after shifting it by one limb.
14328
14329 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14330
14331         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14332         under [__USE_EXTERN_INLINES].
14333
14334 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14335
14336         [BZ #13446]
14337         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14338
14339 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14340
14341         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14342         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14343         optimized code.
14344         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14345         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14346         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14347         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14348         for strncasecmp/strncasecmp_l compilation.
14349         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14350         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14351
14352 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14353
14354         [BZ #13484]
14355         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14356         of __asm__.
14357
14358 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14359
14360         [BZ #13506]
14361         * time/tzfile.c (__tzfile_read): Check values from file header.
14362
14363 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14364
14365         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14366         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14367         * powerpc/powerpc32/dl-start.S: Likewise.
14368         * powerpc/powerpc32/elf/start.S: Likewise.
14369         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14370         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14371         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14372         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14373         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14374         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14375         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14376         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14377         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14378         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14379         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14380         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14381         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14382         * powerpc/powerpc32/memset.S: Likewise.
14383         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14384         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14385         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14386         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14387         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14388         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14389         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14390         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14391         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14392         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14393         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14394         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14395         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14396
14397 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14398
14399         * math/libm-test.inc: Added more nearbyint tests.
14400         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14401         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14402         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14403         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14404
14405 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14406
14407         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14408         FD_CLOEXEC.
14409
14410 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14411
14412         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14413         Add wcscpy-ssse3 wcscpy-c.
14414         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14415         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14416         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14417         * sysdeps/x86_64/wcschr.S: New file.
14418         * sysdeps/x86_64/wcsrchr.S: New file.
14419         * string/test-strcmp.c: Remove checking of wcscmp function for
14420         wrong alignments.
14421         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14422         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14423         wcsrchr-sse2 wcsrchr-c.
14424         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14425         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14426         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14427         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14428         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14429         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14430         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14431         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14432         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14433         * wcsmbc/wcschr.c (WCSCHR): New macro.
14434
14435 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14436
14437         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14438         * wcsmbs/test-wcsrchr.c: New file.
14439         * string/test-strrchr.c: Add wcsrchr support.
14440         (WIDE): New macro.
14441         * wcsmbs/test-wcscpy.c: New file.
14442         * string/test-strcpy.c: Add wcscpy support.
14443         (WIDE): New macro.
14444
14445 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14446
14447         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14448         the inner loop.
14449
14450 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14451
14452         [BZ #13472]
14453         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14454
14455 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14456
14457         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14458         Minor optimizations.
14459
14460         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14461         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14462         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14463
14464 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14465
14466         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14467         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14468         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14469         for gcc to avoid warnings.
14470         * inet/Makefile (tests): Add tst-checks.
14471         * inet/tst-checks.c: New file.
14472
14473         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14474         warning.
14475
14476         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14477         __wmemcmp_sse2.
14478
14479         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14480         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14481
14482         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14483
14484 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14485
14486         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14487         problem.
14488
14489         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14490
14491 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14492
14493         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14494         conditional on GCC version.
14495         (__arch_compare_and_exchange_val_8_acq)
14496         (__arch_compare_and_exchange_val_16_acq)
14497         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14498         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14499         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14500
14501 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14502
14503         * sysdeps/sh/backtrace.c: New file.
14504
14505 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14506
14507         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14508         parenthesis.
14509
14510 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14511
14512         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14513         falling back to utime.
14514
14515 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14516
14517         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14518         expectations for float.
14519
14520 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14521
14522         * locale/weight.h (findidx): Add parameter len.
14523         * locale/weightwc.h (findidx): Likewise.
14524         * posix/fnmatch_loop.c (FCT): Adjust caller.
14525         * posix/regcomp.c (build_equiv_class): Likewise.
14526         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14527         * posix/regexec.c (check_node_accept_bytes): Likewise.
14528         * string/strcoll_l.c (STRCOLL): Likewise.
14529         * string/strxfrm_l.c (STRXFRM): Likewise.
14530
14531 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14532
14533         * Makefile.in: Remove CVSOPT handling.
14534         * configure.in: Remove use of AC_REVISION.
14535         * iconvdata/Makefile (distribute): No need to filter out CVS.
14536         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14537         handling.
14538
14539 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14540
14541         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14542         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14543         [USE_AS_STRNCASECMP_L]: Likewise.
14544         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14545         NO_TLS_DIRECT_SEG_REFS.
14546         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14547         Fix argument offsets for non-PIC.
14548         [USE_AS_STRNCASECMP_L]: Likewise.
14549         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14550         NO_TLS_DIRECT_SEG_REFS.
14551
14552 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14553
14554         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14555         O_CLOEXEC.
14556         * locale/loadlocale.c (_nl_load_locale): Likewise.
14557
14558 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14559
14560         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14561         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14562         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14563         (SYSCALL_GETTIME): Set errno on error.
14564
14565         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14566         count references to noai6ai_cached.
14567
14568 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14569
14570         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14571
14572         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14573         FD_CLOEXEC for /proc/self/maps.
14574
14575         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14576         FD_CLOEXEC for /proc/meminfo.
14577
14578         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14579         gai.conf.
14580
14581         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14582         FD_CLOEXEC for given file.
14583
14584         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14585
14586         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14587         FD_CLOEXEC for /etc/hosts.
14588         (_gethtent): Likewise.
14589
14590         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14591
14592         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14593         cancellation and set FD_CLOEXEC for /etc/netgroup.
14594
14595         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14596         reading /etc/publickey.
14597
14598         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14599         allow cancellation when reading /etc/group.
14600
14601         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14602         cancellation.
14603         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14604
14605         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14606         when using data file.
14607
14608         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14609
14610         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14611         (write_nis_obj): Use "c" and "e" in fopen.
14612
14613         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14614
14615         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14616
14617         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14618
14619         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14620
14621         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14622         locale.alias.
14623
14624         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14625
14626         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14627
14628         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14629
14630         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14631         file parsing and set FD_CLOEXEC.
14632
14633 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14634
14635         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14636
14637 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14638
14639         * malloc/arena.c (arena_get2): Don't call reused_arena when
14640         _int_new_arena failed.
14641
14642 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14643
14644         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14645         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14646         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14647         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14648         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14649         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14650         to compile strcasecmp and strncasecmp.
14651         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14652         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14653
14654         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14655
14656 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14657
14658         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14659         locale-defines.sym to gen-as-const-headers.
14660         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14661         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14662         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14663         to compile strcasecmp and strncasecmp.
14664         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14665         strcasecmp_l and strncasecmp_l.
14666         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14667         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14668         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14669         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14670         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14671         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14672         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14673         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14674         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14675         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14676         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14677
14678 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14679
14680         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14681         result of SYSDEP_GETTIME_CPU to retval.
14682         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14683         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14684
14685         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14686         variable.
14687
14688         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14689         mantissa words.
14690         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14691
14692         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14693         from unused variable.
14694
14695         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14696         DWARF definitions.
14697         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14698         for assembling.
14699
14700         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14701         over namespaces.
14702
14703         * sunrpc/rpc_prot.c (rejected): Fix case value.
14704
14705         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14706         unsigned long long int to avoid warnings in shift.
14707
14708         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14709         of use of trans.
14710         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14711         variable tmp.
14712
14713         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14714         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14715         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14716
14717         * nis/nis_table.c (nis_list): Use variable of correct type for
14718         result of __follow_path call.
14719
14720 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14721
14722         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14723         of math functions ceil, trunc, floor, round, and sqrt, when
14724         avaliable on the platform.
14725         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14726         name clash.
14727         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14728         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14729         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14730
14731 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14732
14733         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14734         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14735
14736 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14737
14738         * include/unistd.h: Fix __readlink return type.
14739         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14740
14741 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14742
14743         * stdlib/ucontext.h: Undo last change for makecontext.
14744
14745 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14746
14747         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14748
14749         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14750         * setjmp/setjmp.h: Mark functions as non-leaf.
14751         * setjmp/bits/setjmp2.h: Likewise.
14752         * stdlib/ucontext.h: Likewise.
14753
14754 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14755
14756         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14757         (reused_arena): Don't check arena limit.
14758         (arena_get2): Atomically check arena limit.
14759
14760 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14761
14762         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14763         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14764
14765         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14766         instructions.
14767
14768 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14769
14770         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14771         handler when locking.
14772
14773         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14774         Fix size of allocated buffer.
14775
14776 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14777
14778         [BZ #10103]
14779         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14780         declarations for long double functions.
14781         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14782
14783         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14784
14785 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14786
14787         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14788         installed.
14789
14790         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14791         is disabled.
14792
14793 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14794
14795         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14796
14797 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14798
14799         * include/alloca.h (stackinfo_alloca_round): Define.
14800         (extend_alloca): Use it.
14801         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14802         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14803         here.
14804
14805         * scripts/check-local-headers.sh: Ignore libaudit.h.
14806
14807         * nscd/Makefile (extra-objs): Make recursively expanded.
14808
14809 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14810
14811         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14812         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14813
14814         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14815         * posix/tst-rfc3484-2.c: Likewise.
14816         * posix/tst-rfc3484-3.c: Likewise.
14817
14818         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14819         process_vm_writev.
14820         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14821         process_vm_writev.
14822         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14823         process_vm_writev from libc using GLIBC_2.15 version.
14824
14825         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14826
14827 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14828
14829         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14830         stack usage.
14831
14832 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14833
14834         [BZ #13367]
14835         * nss/getent.c (initgroups_keys): Show error message in case no group
14836         names are given.
14837
14838         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14839         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14840         __bump_nl_timestamp.
14841         * nscd/connections (nscd_init): When host database is served open
14842         netlink socket and request notification about configuration changes.
14843         (main_loop_poll): Track netlink file descriptor and bump timestamp
14844         in case data becomes available.
14845         (main_loop_epoll): Likewise.
14846         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14847         (database_pers_head): Add extra_data fileds.
14848         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14849         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14850         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14851         Adjust caller.
14852         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14853         in6ai data, call __free_in6ai.
14854         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14855         Add -DHAVE_NETLINK.
14856         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14857         interface information.  Reuse previous data if netlink timestamp
14858         is not changed.
14859         (__bump_nl_timestamp): New function.
14860         (__free_in6ai): New function.
14861
14862 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14863
14864         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14865         close_not_cancel_no_status here.
14866         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14867
14868 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14869
14870         [BZ #13276]
14871         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14872         return value.
14873
14874         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14875         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14876         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14877
14878 2011-07-03  Andreas Jaeger  <aj@suse.de>
14879
14880         [BZ #10709]
14881         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14882         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14883         * math/libm-test.inc (sin_test): Add test case.
14884
14885 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14886
14887         [BZ #13337]
14888         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14889         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14890
14891         * elf/chroot_canon.c (chroot_canon): Cleanups.
14892
14893         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14894
14895         [BZ #13335]
14896         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14897         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14898
14899         * string/test-strchr.c: Make usable for strchrnul testing.
14900         * string/test-strchrnul.c: New file.
14901         * string/Makefile (strop-tests): Add strchrnul.
14902
14903         * po/it.po: Update from translation team.
14904         * po/es.po: Likewise.
14905
14906 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14907
14908         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14909         the three constants needed as parameters.  Drop the others.
14910         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14911         __m128i_strloadu_tolower.
14912         Create and initialize variable zero and use it in all the places
14913         where _mm_setzero_si128 was used.
14914
14915         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14916         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14917         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14918         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14919         anymore.
14920         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14921         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14922         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14923         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14924         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14925         __mpranred, __mptan.
14926         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14927         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14928         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14929         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14930         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14931         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14932         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14933         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14934         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14935
14936 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14937
14938         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14939         redefine if SHARED.
14940         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14941
14942         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14943         wide char related routines to wcsmbs subdir.
14944
14945 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14946
14947         [BZ #13344]
14948         * misc/sys/cdefs.h (__THROWNL): Define.
14949         * posix/unistd.h: Use __THREADNL instead of __THREAD
14950         for memory synchronization functions.
14951
14952 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14953
14954         [BZ #13349]
14955         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14956         doesn't exist.
14957         * manual/stdio.texi (Obstack Streams): Node removed.
14958
14959 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14960
14961         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14962         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14963         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14964
14965         * math/math_private.h (math_force_eval): Allow non-addressable
14966         arguments.
14967         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14968
14969 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14970
14971         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14972         file is not needed.
14973
14974         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
14975         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14976         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14977         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14978         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14979         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14980         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14981         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
14982         Add AVX variants.
14983         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
14984         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
14985         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
14986         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
14987         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
14988         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
14989         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
14990         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
14991         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
14992         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
14993         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
14994         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
14995         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
14996         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
14997         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
14998         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
14999         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15000         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15001         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15002
15003         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15004         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15005
15006         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15007         place.  Use VEX encoding when compiling for AVX.
15008
15009 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15010
15011         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15012         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15013
15014         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15015
15016 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15017
15018         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15019         useless if() expression.
15020         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15021         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15022         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15023         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15024         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15025         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15026         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15027         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15028         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15029         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15030         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15031         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15032         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15033         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15034         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15035         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15036         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15037         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15038         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15039
15040         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15041
15042 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15043
15044         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15045         condition.
15046         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15047
15048 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15049
15050         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15051         .text section.  Avoid duplicate constants.
15052         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15053         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15054         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15055         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15056         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15057         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15058         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15059         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15060         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15061         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15062         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15063         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15064         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15065         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15066         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15067         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15068         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15069         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15070         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15071         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15072         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15073         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15074         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15075         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15076         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15077         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15078         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15079         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15080         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15081         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15082         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15083         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15084         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15085         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15086         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15087         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15088         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15089         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15090         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15091         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15092         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15093         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15094         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15095         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15096         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15097
15098 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15099
15100         * sysdeps/x86_64/dla.h: Move to ...
15101         * sysdeps/x86_64/fpu/dla.h: ...here.
15102         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15103         situations.  Use __builtin_fma only for gcc 4.6 and up.
15104
15105         * config.make.in: Add have-mfma4 entry.
15106         * configure.in: Substitute libc_cv_cc_fma4.
15107         * math/Makefile (dbl-only-routines): Add sincostab.
15108         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15109         Use __sincostab not sincos.
15110         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15111         name is a macro.
15112         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15113         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15114         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15115         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15116         using __copysign.
15117         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15118         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15119         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15120         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15121         and __inv.
15122         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15123         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15124         __copysign.
15125         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15126         define aliases when function name is a macro.
15127         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15128         sysdeps/ieee754/dbl-64/sincos.tbl.
15129         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15130         fma4-enabled routines.
15131         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15132         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15133         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15134         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15135         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15136         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15137         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15138         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15139         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15140         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15141         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15142         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15143         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15144         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15145         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15146         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15147         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15148         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15149         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15150         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15151         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15152         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15153         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15154         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15155         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15156         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15157         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15158         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15159         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15160         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15161
15162         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15163         rename.
15164         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15165         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15166         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15167         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15168         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15169         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15170         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15171         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15172
15173 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15174
15175         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15176
15177 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15178
15179         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15180
15181         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15182         prediction.
15183         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15184
15185         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15186         Remove unused variable magic_bits.
15187         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15188
15189         * string/strnlen.c: Define and use STRNLEN macro.
15190         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15191         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15192         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15193         * wcsmbs/wcslen.c: Define and use WCSLEN.
15194         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15195         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15196         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15197         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15198         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15199         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15200         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15201
15202 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15203
15204         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15205         strnlen-sse2-no-bsf.
15206         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15207         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15208         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15209         Add strnlen support.
15210         (USE_AS_STRNLEN): New macro.
15211         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15212         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15213         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15214         * sysdeps/x86_64/wcslen.S: New file.
15215
15216 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15217
15218         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15219         XMM-moves are used for copying on small sizes.
15220
15221 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15222
15223         * wcsmbs/Makefile (strop-tests): Add wcschr.
15224         * wcsmbs/test-wcschr.c: New file.
15225         * string/test-strchr.c: Update.
15226         Add wcschr support.
15227         (WIDE): New macro.
15228
15229 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15230
15231         * wcsmbs/Makefile (strop-tests): Add wcslen.
15232         * wcsmbs/test-wcslen.c: New file.
15233         * string/test-strlen.c: Update.
15234         Add wcslen support.
15235         (WIDE): New macro.
15236
15237 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15238
15239         * po/it.po: Update from translation team.
15240
15241 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15242
15243         * sysdeps/x86_64/wcscmp.S: Update.
15244         Fix wrong comparison semantics.
15245         wcscmp shall use signed comparison not unsigned.
15246         Don't use substraction to avoid overflow bug.
15247         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15248         * wcsmbc/wcscmp.c: Likewise.
15249         * string/test-strcmp.c: Likewise.
15250         Add new tests to check cases with negative values.
15251
15252 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15253
15254         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15255         * sysdeps/x86_64/dla.h: ...here.  New file.
15256         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15257         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15258         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15259         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15260         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15261         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15262         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15263         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15264         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15265
15266 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15267
15268         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15269         __ynl_finite aliases.
15270
15271 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15272
15273         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15274
15275         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15276         define DLA_FMA.
15277         [DLA_FMA] (EMULV): Use DLA_FMA.
15278         [DLA_FMA] (MUL12): Use EMULV.
15279         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15280         that are not needed.
15281         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15282         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15283         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15284         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15285         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15286         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15287         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15288
15289 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15290
15291         * math/s_nan.c: Undef __nan.
15292         * math/s_nanf.c: Undef __nanf.
15293         * math/s_nanl.c: Undef __nanl.
15294         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15295         "math_private.h".
15296
15297 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15298
15299         * math/s_catan.c: Add branch predictions.
15300         * math/s_catanf.c: Likewise.
15301         * math/s_catanh.c: Likewise.
15302         * math/s_catanhf.c: Likewise.
15303         * math/s_catanhl.c: Likewise.
15304         * math/s_catanl.c: Likewise.
15305         * math/s_cexp.c: Likewise.
15306         * math/s_cexpf.c: Likewise.
15307         * math/s_cexpl.c: Likewise.
15308         * math/s_clog.c: Likewise.
15309         * math/s_clog10.c: Likewise.
15310         * math/s_clog10f.c: Likewise.
15311         * math/s_clog10l.c: Likewise.
15312         * math/s_clogf.c: Likewise.
15313         * math/s_clogl.c: Likewise.
15314         * math/s_csqrt.c: Likewise.
15315         * math/s_csqrtf.c: Likewise.
15316         * math/s_csqrtl.c: Likewise.
15317         * math/s_ctanf.c: Likewise.
15318         * math/s_ctanh.c: Likewise.
15319         * math/s_ctanhf.c: Likewise.
15320         * math/s_ctanhl.c: Likewise.
15321         * math/s_ctanl.c: Likewise.
15322
15323         * math/math_private.h: Define __nan, __nanf, __nanl.
15324         * math/s_cacosh.c: Include <math_private.h>.
15325         * math/s_cacoshl.c: Likewise.
15326         * math/s_casinh.c: Likewise.
15327         * math/s_casinhf.c: Likewise.
15328         * math/s_casinhl.c: Likewise.
15329         * math/s_ccos.c: Rely entire on ccosh.
15330         * math/s_ccosf.c: Rely entire on ccoshf.
15331         * math/s_ccosl.c: Rely entirely on ccoshl.
15332         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15333         Remove tests for FE_INVALID.
15334         * math/s_ccoshf.c: Likewise.
15335         * math/s_ccoshl.c: Likewise.
15336         * math/s_csin.c: Likewise.
15337         * math/s_csinf.c: Likewise.
15338         * math/s_csinh.c Likewise.
15339         * math/s_csinhf.c: Likewise.
15340         * math/s_csinhl.c: Likewise.
15341         * math/s_csinl.c: Likewise.
15342         * math/s_ctan.c: Likewise.
15343         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15344         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15345         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15346
15347 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15348
15349         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15350         compilation problems.
15351
15352         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15353         __builtin_expect.
15354
15355 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15356
15357         * sysdeps/i386/configure.in: Test for -mfma4 option.
15358         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15359         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15360         COMMON_CPUID_INDEX_80000001.
15361         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15362         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15363         use it if FMA3 is not supported.
15364         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15365
15366         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15367         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15368
15369 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15370
15371         [BZ #12892]
15372         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15373         it would create a cycle with a link time dependency.
15374
15375 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15376
15377         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15378         instruction.
15379         * string/Makefile (strop-tests): Add rawmemchr.
15380         * string/test-rawmemchr.c: New file.
15381
15382         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15383         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15384         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15385         when compiling str{,n}casecmp and when AVX is available.  Hook up
15386         new optimized code in initializers.
15387
15388 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15389
15390         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15391         __feraiseexcept instead of feraiseexcept.
15392
15393 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15394
15395         * math/math_private.h: Define defaults for libc_fetestexcept and
15396         libc_feupdateenv.
15397         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15398         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15399         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15400         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15401         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15402         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15403         libc_fetestexcept and libc_feupdateenv.
15404
15405         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15406         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15407         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15408         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15409         libc_feholdexcept_setround.
15410
15411         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15412         Add s_nearbyint-c and s_nearbyintf-c.
15413         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15414         nearbyintf inlines.
15415         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15416         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15417         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15418         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15419
15420         * math/math_private.h: Define defaults for libc_fegetround,
15421         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15422         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15423         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15424         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15425         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15426         standard functions.
15427         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15428         Remove comments and hacks for old compiler versions.
15429         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15430         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15431         libc_feholdexceptl.
15432
15433 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15434
15435         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15436         (__feraiseexcept_renamed): Add __NTH.
15437         (feraiseexcept): Add __NTH.  Rename local variables to fix
15438         namespace violations.
15439
15440 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15441
15442         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15443
15444         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15445
15446         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15447         recently added interfaces.
15448         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15449
15450         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15451         about macro parameter expansion.
15452
15453         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15454         __NO_MATH_INLINES is defined.  Cleanups.
15455
15456         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15457         and __floorf is target has SSE4.1.
15458         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15459         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15460         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15461         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15462
15463         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15464         name.
15465         (floorf): Likewise.
15466
15467         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15468
15469 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15470
15471         * misc/sys/cdefs.h: Fix last change.
15472
15473         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15474         database lookup.
15475
15476 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15477
15478         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15479
15480         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15481         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15482         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15483         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15484         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15485         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15486         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15487         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15488         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15489         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15490         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15491         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15492         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15493         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15494         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15495         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15496         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15497         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15498         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15499         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15500         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15501         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15502
15503         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15504         ceil, ceilf, floor, floorf.
15505
15506         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15507         Perform IRELATIVE relocations last.
15508
15509         * elf/do-rel.h: Add another parameter nrelative, replacing the
15510         local variable with the same name.  Change name of the function
15511         to end in Rel or Rela (uppercase).
15512         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15513         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15514         elf_dynamic_do_##reloc function.
15515
15516 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15517
15518         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15519         is sufficient, at least on modern CPUs.
15520
15521         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15522
15523         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15524         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15525
15526         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15527         __expl_finite.
15528         * math/bits/math-finite.h: Add entries for exp.
15529         * math/e_expl.c: Add __*_finite alias.
15530         * sysdeps/i386/fpu/e_exp.S: Likewise.
15531         * sysdeps/i386/fpu/e_expf.S: Likewise.
15532         * sysdeps/i386/fpu/e_expl.c: Likewise.
15533         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15534         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15535         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15536         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15537         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15538         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15539         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15540
15541         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15542         is sufficient, at least on modern CPUs.
15543
15544         * ctype/ctype-info.c (__ctype_init): Define.
15545         * include/ctype.h (__ctype_init): Declare.
15546         (__ctype_b_loc): The variable is always initialized.
15547         (__ctype_toupper_loc): Likewise.
15548         (__ctype_tolower_loc): Likewise.
15549         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15550         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15551
15552 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15553
15554         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15555
15556         * configure.in: Also look in $cxxmachine/include for C++ system
15557         headers.
15558
15559 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15560
15561         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15562         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15563         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15564         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15565         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15566         (USE_AS_WMEMCMP): New macro.
15567         Fixing indents.
15568         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15569         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15570         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15571         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15572         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15573         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15574         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15575         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15576         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15577         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15578         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15579         (USE_AS_WMEMCMP): New macro.
15580         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15581         * sysdeps/string/test-memcmp.c: Update.
15582         Fix simple_wmemcmp.
15583         Add new tests.
15584         * wcsmbs/wmemcmp.c: Update.
15585         (WMEMCMP): New macro.
15586         Fix overflow bug.
15587
15588 2011-10-12  Andreas Jaeger  <aj@suse.de>
15589
15590         [BZ #13268]
15591         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15592
15593 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15594
15595         * libio/iofwide.c (do_length): Avoid warning.
15596
15597         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15598
15599 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15600
15601         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15602
15603         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15604         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15605         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15606         * sysdeps/i386/i686/fpu/e_log.S: New file.
15607         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15608         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15609
15610         * ctype/ctype.h: Add support for inlined isXXX functions when
15611         compiling C++ code.
15612
15613 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15614
15615         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15616
15617         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15618
15619 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15620
15621         [BZ #13291]
15622         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15623
15624 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15625
15626         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15627         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15628         feraiseexcept.
15629
15630         * sysdeps/x86_64/memrchr.S: Check for zero size.
15631
15632         * string/stratcliff.c: Add memrchr tests.
15633
15634 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15635
15636         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15637         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15638         rawmemchr-sse2 rawmemchr-sse2-bsf.
15639         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15640         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15641         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15642         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15643         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15644         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15645         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15646         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15647         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15648         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15649         * string/memrchr.c (MEMRCHR): New macro.
15650
15651 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15652
15653         Add integration with gcc's -ffinite-math-only and optimize wrapper
15654         functions in libm.
15655         * Versions.def: Define GLIBC_2.15 version for libm.
15656         * math/Makefile (headers): Add bits/math-finite.h.
15657         * math/bits/math-finite.h: New file.
15658         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15659         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15660         * math/e_acoshl.c: Add __*_finite alias.
15661         * math/e_acosl.c: Likewise.
15662         * math/e_asinl.c: Likewise.
15663         * math/e_atan2l.c: Likewise.
15664         * math/e_atanhl.c: Likewise.
15665         * math/e_coshl.c: Likewise.
15666         * math/e_exp10.c: Likewise.
15667         * math/e_exp10f.c: Likewise.
15668         * math/e_exp10l.c: Likewise.
15669         * math/e_exp2l.c: Likewise.
15670         * math/e_fmodl.c: Likewise.
15671         * math/e_gammal_r.c: Likewise.
15672         * math/e_hypotl.c: Likewise.
15673         * math/e_j0l.c: Likewise.
15674         * math/e_j1l.c: Likewise.
15675         * math/e_jnl.c: Likewise.
15676         * math/e_lgammal_r.c: Likewise.
15677         * math/e_log10l.c: Likewise.
15678         * math/e_log2l.c: Likewise.
15679         * math/e_logl.c: Likewise.
15680         * math/e_powl.c: Likewise.
15681         * math/e_sinhl.c: Likewise.
15682         * math/e_sqrtl.c: Likewise.
15683         * math/e_scalb.c: Completely rewritten and optimized.
15684         * math/e_scalbf.c: Likewise.
15685         * math/e_scalbl.c: Likewise.
15686         * math/w_acos.c: Likewise.
15687         * math/w_acosf.c: Likewise.
15688         * math/w_acosl.c: Likewise.
15689         * math/w_acosh.c: Likewise.
15690         * math/w_acoshf.c: Likewise.
15691         * math/w_acoshl.c: Likewise.
15692         * math/w_asin.c: Likewise.
15693         * math/w_asinf.c: Likewise.
15694         * math/w_asinl.c: Likewise.
15695         * math/w_atan2.c: Likewise.
15696         * math/w_atan2f.c: Likewise.
15697         * math/w_atan2l.c: Likewise.
15698         * math/w_atanh.c: Likewise.
15699         * math/w_atanhf.c: Likewise.
15700         * math/w_atanhl.c: Likewise.
15701         * math/w_exp10.c: Likewise.
15702         * math/w_exp10f.c: Likewise.
15703         * math/w_exp10l.c: Likewise.
15704         * math/w_fmod.c: Likewise.
15705         * math/w_fmodf.c: Likewise.
15706         * math/w_fmodl.c: Likewise.
15707         * math/w_j0.c: Likewise.
15708         * math/w_j0f.c: Likewise.
15709         * math/w_j0l.c: Likewise.
15710         * math/w_j1.c: Likewise.
15711         * math/w_j1f.c: Likewise.
15712         * math/w_j1l.c: Likewise.
15713         * math/w_jn.c: Likewise.
15714         * math/w_jnf.c: Likewise.
15715         * math/w_log.c: Likewise.
15716         * math/w_logf.c: Likewise.
15717         * math/w_logl.c: Likewise.
15718         * math/w_log10.c: Likewise.
15719         * math/w_log10f.c: Likewise.
15720         * math/w_log10l.c: Likewise.
15721         * math/w_log2.c: Likewise.
15722         * math/w_log2f.c: Likewise.
15723         * math/w_log2l.c: Likewise.
15724         * math/w_pow.c: Likewise.
15725         * math/w_powf.c: Likewise.
15726         * math/w_powl.c: Likewise.
15727         * math/w_remainder.c: Likewise.
15728         * math/w_remainderf.c: Likewise.
15729         * math/w_remainderl.c: Likewise.
15730         * math/w_scalb.c: Likewise.
15731         * math/w_scalbf.c: Likewise.
15732         * math/w_scalbl.c: Likewise.
15733         * math/w_sqrt.c: Likewise.
15734         * math/w_sqrtf.c: Likewise.
15735         * math/w_sqrtl.c: Likewise.
15736         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15737         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15738         used.
15739         * math/math_private.h: Declare __kernel_standard_f.
15740         * math/w_cosh.c: Remove cruft and optimize a bit.
15741         * math/w_coshf.c: Likewise.
15742         * math/w_coshl.c: Likewise.
15743         * math/w_exp2.c: Likewise.
15744         * math/w_exp2f.c: Likewise.
15745         * math/w_exp2l.c: Likewise.
15746         * math/w_hypot.c: Likewise.
15747         * math/w_hypotf.c: Likewise.
15748         * math/w_hypotl.c: Likewise.
15749         * math/w_lgamma.c: Likewise.
15750         * math/w_lgamma_r.c: Likewise.
15751         * math/w_lgammaf.c: Likewise.
15752         * math/w_lgammaf_r.c: Likewise.
15753         * math/w_lgammal.c: Likewise.
15754         * math/w_lgammal_r.c: Likewise.
15755         * math/w_sinh.c: Likewise.
15756         * math/w_sinhf.c: Likewise.
15757         * math/w_sinhl.c: Likewise.
15758         * math/w_tgamma.c: Likewise.
15759         * math/w_tgammaf.c: Likewise.
15760         * math/w_tgammal.c: Likewise.
15761         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15762         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15763         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15764         Minor optimizations.  Pretty printing.  Remove cruft.
15765         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15766         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15767         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15768         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15769         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15770         * sysdeps/i386/fpu/e_asin.S: Likewise.
15771         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15772         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15773         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15774         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15775         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15776         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15777         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15778         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15779         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15780         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15781         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15782         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15783         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15784         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15785         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15786         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15787         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15788         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15789         * sysdeps/i386/fpu/e_log.S: Likewise.
15790         * sysdeps/i386/fpu/e_log10.S: Likewise.
15791         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15792         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15793         * sysdeps/i386/fpu/e_log2.S: Likewise.
15794         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15795         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15796         * sysdeps/i386/fpu/e_logf.S: Likewise.
15797         * sysdeps/i386/fpu/e_logl.S: Likewise.
15798         * sysdeps/i386/fpu/e_pow.S: Likewise.
15799         * sysdeps/i386/fpu/e_powf.S: Likewise.
15800         * sysdeps/i386/fpu/e_powl.S: Likewise.
15801         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15802         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15803         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15804         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15805         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15806         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15807         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15808         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15809         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15810         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15811         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15812         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15813         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15814         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15815         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15816         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15817         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15818         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15819         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15820         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15821         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15822         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15823         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15824         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15825         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15826         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15827         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15828         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15829         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15830         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15831         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15832         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15833         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15834         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15835         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15836         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15837         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15838         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15839         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15840         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15841         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15842         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15843         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15844         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15845         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15846         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15847         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15848         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15849         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15850         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15851         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15852         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15853         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15854         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15855         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15856         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15857         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15858         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15859         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15860         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15861         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15862         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15863         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15864         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15865         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15866         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15867         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15868         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15869         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15870         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15871         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15872         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15873         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15874         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15875         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15876         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15877         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15878         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15879         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15880         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15881         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15882         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15883         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15884         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15885         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15886         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15887         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15888         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15889         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15890         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15891         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15892         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15893         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15894         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15895         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15896         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15897         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15898         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15899         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15900         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15901         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15902         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15903         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15904         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15905         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15906         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15907         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15908         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15909         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15910         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15911         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15912         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15913         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15914         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15915         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15916         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15917         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15918         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15919         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15920         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15921         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15922         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15923         (__isnanf): Likewise.
15924         (__isinf_ns): Likewise.
15925         (__isinf_nsf): Likewise.
15926         (__finite): Likewise.
15927         (__finitef): Likewise.
15928         (__ieee754_sqrt): Define as macro.
15929         (__ieee754_sqrtf): Define as macro.
15930         (__ieee754_sqrtl): Define as macro.
15931         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15932         inlined copy.
15933         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15934         __FINITE_MATH_ONLY__ consistent.
15935         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15936
15937 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15938
15939         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15940         of rawmemchr.
15941
15942         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15943
15944 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15945
15946         * po/ja.po: Update from translation team.
15947
15948 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15949
15950         * locale/programs/locarchive.c (prepare_address_space): New function.
15951         (create_archive, enlarge_archive, open_archive): Use it.
15952
15953         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15954         inside [SHARED], where it is used.
15955
15956         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15957
15958         * nss/getent.c (netgroup_keys): Remove unused variable.
15959         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15960
15961 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15962
15963         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15964         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15965         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15966         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15967         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15968         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15969         * math/Makefile (libm-calls): Add s_isinf_ns.
15970         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15971         * math/multc3.c: Likewise.
15972         * math/s_casin.c: Likewise.
15973         * math/s_casinf.c: Likewise.
15974         * math/s_casinl.c: Likewise.
15975         * math/s_ccos.c: Likewise.
15976         * math/s_ccosf.c: Likewise.
15977         * math/s_ccosl.c: Likewise.
15978         * math/s_ctan.c: Likewise.
15979         * math/s_ctanf.c: Likewise.
15980         * math/s_ctanh.c: Likewise.
15981         * math/s_ctanhf.c: Likewise.
15982         * math/s_ctanhl.c: Likewise.
15983         * math/s_ctanl.c: Likewise.
15984         * math/w_fmod.c: Likewise.
15985         * math/w_fmodf.c: Likewise.
15986         * math/w_fmodl.c: Likewise.
15987         * math/w_remainder.c: Likewise.
15988         * math/w_remainderf.c: Likewise.
15989         * math/w_remainderl.c: Likewise.
15990         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
15991         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
15992         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
15993         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
15994         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
15995         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
15996         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
15997         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
15998
15999         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16000         of the number.
16001         * stdio-common/printf_fphex.c: Likewise.
16002         * stdio-common/printf_size.c: Likewise.
16003
16004         * math/e_exp10.c: Include math_private.h using <...> not "...".
16005         * math/e_exp10f.c: Likewise.
16006         * math/e_exp10l.c: Likewise.
16007         * math/e_exp2l.c: Likewise.
16008         * math/e_j0l.c: Likewise.
16009         * math/e_j1l.c: Likewise.
16010         * math/e_jnl.c: Likewise.
16011         * math/e_lgammal_r.c: Likewise.
16012         * math/e_rem_pio2l.c: Likewise.
16013         * math/e_scalb.c: Likewise.
16014         * math/e_scalbf.c: Likewise.
16015         * math/e_scalbl.c: Likewise.
16016         * math/k_cosl.c: Likewise.
16017         * math/k_sinl.c: Likewise.
16018         * math/k_tanl.c: Likewise.
16019         * math/s_cacoshf.c: Likewise.
16020         * math/s_catan.c: Likewise.
16021         * math/s_catanf.c: Likewise.
16022         * math/s_catanh.c: Likewise.
16023         * math/s_catanhf.c: Likewise.
16024         * math/s_catanhl.c: Likewise.
16025         * math/s_catanl.c: Likewise.
16026         * math/s_ccosh.c: Likewise.
16027         * math/s_ccoshf.c: Likewise.
16028         * math/s_ccoshl.c: Likewise.
16029         * math/s_cexp.c: Likewise.
16030         * math/s_cexpf.c: Likewise.
16031         * math/s_cexpl.c: Likewise.
16032         * math/s_clog.c: Likewise.
16033         * math/s_clog10.c: Likewise.
16034         * math/s_clog10f.c: Likewise.
16035         * math/s_clog10l.c: Likewise.
16036         * math/s_clogf.c: Likewise.
16037         * math/s_clogl.c: Likewise.
16038         * math/s_csin.c: Likewise.
16039         * math/s_csinf.c: Likewise.
16040         * math/s_csinh.c: Likewise.
16041         * math/s_csinhf.c: Likewise.
16042         * math/s_csinhl.c: Likewise.
16043         * math/s_csinl.c: Likewise.
16044         * math/s_csqrt.c: Likewise.
16045         * math/s_csqrtf.c: Likewise.
16046         * math/s_csqrtl.c: Likewise.
16047         * math/s_ctan.c: Likewise.
16048         * math/s_ctanf.c: Likewise.
16049         * math/s_ctanh.c: Likewise.
16050         * math/s_ctanhf.c: Likewise.
16051         * math/s_ctanhl.c: Likewise.
16052         * math/s_ctanl.c: Likewise.
16053         * math/s_ldexp.c: Likewise.
16054         * math/s_ldexpf.c: Likewise.
16055         * math/s_ldexpl.c: Likewise.
16056         * math/s_significand.c: Likewise.
16057         * math/s_significandf.c: Likewise.
16058         * math/s_significandl.c: Likewise.
16059         * math/w_acos.c: Likewise.
16060         * math/w_acosf.c: Likewise.
16061         * math/w_acosh.c: Likewise.
16062         * math/w_acoshf.c: Likewise.
16063         * math/w_acoshl.c: Likewise.
16064         * math/w_acosl.c: Likewise.
16065         * math/w_asin.c: Likewise.
16066         * math/w_asinf.c: Likewise.
16067         * math/w_asinl.c: Likewise.
16068         * math/w_atan2.c: Likewise.
16069         * math/w_atan2f.c: Likewise.
16070         * math/w_atan2l.c: Likewise.
16071         * math/w_atanh.c: Likewise.
16072         * math/w_atanhf.c: Likewise.
16073         * math/w_atanhl.c: Likewise.
16074         * math/w_cosh.c: Likewise.
16075         * math/w_coshf.c: Likewise.
16076         * math/w_coshl.c: Likewise.
16077         * math/w_dremf.c: Likewise.
16078         * math/w_exp10.c: Likewise.
16079         * math/w_exp10f.c: Likewise.
16080         * math/w_exp10l.c: Likewise.
16081         * math/w_exp2.c: Likewise.
16082         * math/w_exp2f.c: Likewise.
16083         * math/w_fmod.c: Likewise.
16084         * math/w_fmodf.c: Likewise.
16085         * math/w_fmodl.c: Likewise.
16086         * math/w_hypot.c: Likewise.
16087         * math/w_hypotf.c: Likewise.
16088         * math/w_hypotl.c: Likewise.
16089         * math/w_j0.c: Likewise.
16090         * math/w_j0f.c: Likewise.
16091         * math/w_j0l.c: Likewise.
16092         * math/w_j1.c: Likewise.
16093         * math/w_j1f.c: Likewise.
16094         * math/w_j1l.c: Likewise.
16095         * math/w_jn.c: Likewise.
16096         * math/w_jnf.c: Likewise.
16097         * math/w_jnl.c: Likewise.
16098         * math/w_lgamma.c: Likewise.
16099         * math/w_lgamma_r.c: Likewise.
16100         * math/w_lgammaf.c: Likewise.
16101         * math/w_lgammaf_r.c: Likewise.
16102         * math/w_lgammal.c: Likewise.
16103         * math/w_lgammal_r.c: Likewise.
16104         * math/w_log.c: Likewise.
16105         * math/w_log10.c: Likewise.
16106         * math/w_log10f.c: Likewise.
16107         * math/w_log10l.c: Likewise.
16108         * math/w_log2.c: Likewise.
16109         * math/w_log2f.c: Likewise.
16110         * math/w_log2l.c: Likewise.
16111         * math/w_logf.c: Likewise.
16112         * math/w_logl.c: Likewise.
16113         * math/w_pow.c: Likewise.
16114         * math/w_powf.c: Likewise.
16115         * math/w_powl.c: Likewise.
16116         * math/w_remainder.c: Likewise.
16117         * math/w_remainderf.c: Likewise.
16118         * math/w_remainderl.c: Likewise.
16119         * math/w_scalb.c: Likewise.
16120         * math/w_scalbf.c: Likewise.
16121         * math/w_scalbl.c: Likewise.
16122         * math/w_sinh.c: Likewise.
16123         * math/w_sinhf.c: Likewise.
16124         * math/w_sinhl.c: Likewise.
16125         * math/w_sqrt.c: Likewise.
16126         * math/w_sqrtf.c: Likewise.
16127         * math/w_sqrtl.c: Likewise.
16128         * math/w_tgamma.c: Likewise.
16129         * math/w_tgammaf.c: Likewise.
16130         * math/w_tgammal.c: Likewise.
16131
16132         * po/ja.po: Update from translation team.
16133
16134 2011-09-29  Andreas Jaeger  <aj@suse.de>
16135
16136         [BZ #13179]
16137         * sunrpc/netname.c (netname2host): Fix logic.
16138
16139         [BZ #6779]
16140         [BZ #6783]
16141         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16142         correctly.
16143         * math/w_remainder.c (__remainder): Likewise.
16144         * math/w_remainderf.c (__remainderf): Likewise.
16145         * math/libm-test.inc (remainder_test): Add test cases.
16146
16147 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16148
16149         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16150         sdiv_qrnnd.
16151
16152 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16153
16154         * string/test-memcmp.c: Avoid unncessary #defines.
16155         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16156
16157 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16158
16159         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16160         Use new sse2 version for core i3 - i7 as it's faster
16161         than sse42 version.
16162         (bit_Prefer_PMINUB_for_stringop): New.
16163         * sysdeps/x86_64/rawmemchr.S: Update.
16164         Replace with faster SSE2 version.
16165         * sysdeps/x86_64/memrchr.S: New file.
16166         * sysdeps/x86_64/memchr.S: Update.
16167         Replace with faster SSE2 version.
16168
16169 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16170
16171         * elf/dl-load.c (lose): Add cast to avoid warning.
16172
16173 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16174
16175         * po/ca.po: Update from translation team.
16176
16177         * inet/getnetgrent_r.c: Hook up nscd.
16178         * nscd/Makefile (routines): Add nscd_netgroup.
16179         (nscd-modules): Add netgroupcache.
16180         (CFLAGS-netgroupcache.c): Define.
16181         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16182         (cache_search): Add const to second parameter.
16183         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16184         INNETGR.
16185         (dbs): Add netgrdb entry.
16186         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16187         (verify_persistent_db): Handle netgrdb.
16188         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16189         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16190         GETFDNETGR.
16191         (netgroup_response_header): Define.
16192         (innetgroup_response_header): Define.
16193         (datahead): Add netgroup_response_header and innetgroup_response_header
16194         elements.
16195         * nscd/nscd.conf: Add entries for netgroup cache.
16196         * nscd/nscd.h (dbtype): Add netgrdb.
16197         (_PATH_NSCD_NETGROUP_DB): Define.
16198         (netgroup_iov_disabled): Declare.
16199         (xmalloc, xcalloc, xrealloc): Move declarations here.
16200         (cache_search): Adjust prototype.
16201         Add netgroup-related prototypes.
16202         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16203         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16204         (__nscd_innetgr): Declare.
16205         * nscd/selinux.c (perms): Use access_vector_t as element type and
16206         add netgroup-related initializers.
16207         * nscd/netgroupcache.c: New file.
16208         * nscd/nscd_netgroup.c: New file.
16209         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16210         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16211         For four parameters use innetgr.
16212         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16213         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16214         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16215         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16216
16217         * nscd/connections.c (register_traced_file): Don't register file
16218         for disabled databases.
16219
16220 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16221
16222         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16223
16224         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16225         from tree and freeing node.
16226
16227 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16228
16229         * nss/nsswitch.c (__nss_database_lookup): Handle
16230         nss_parse_service_list out of memory case.
16231
16232 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16233
16234         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16235         out of memory case.
16236
16237 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16238
16239         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16240         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16241         pass it down.
16242         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16243         elf_machine_rela, elf_machine_lazy_rel.
16244         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16245         (ELF_DYNAMIC_DO_REL): Likewise.
16246         (ELF_DYNAMIC_DO_RELA): Likewise.
16247         (ELF_DYNAMIC_RELOCATE): Likewise.
16248         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16249         to ELF_DYNAMIC_DO_REL.
16250         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16251         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16252         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16253         elf_machine_rela.
16254         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16255         skip_ifunc, don't call ifunc function if non-zero.
16256         (elf_machine_rela): Likewise.
16257         (elf_machine_lazy_rel): Likewise.
16258         (elf_machine_lazy_rela): Likewise.
16259         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16260         (elf_machine_lazy_rel): Likewise.
16261         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16262         Likewise.
16263         (elf_machine_lazy_rel): Likewise.
16264         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16265         Likewise.
16266         (elf_machine_lazy_rel): Likewise.
16267         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16268         (elf_machine_lazy_rel): Likewise.
16269         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16270         (elf_machine_lazy_rel): Likewise.
16271         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16272         (elf_machine_lazy_rel): Likewise.
16273         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16274         (elf_machine_lazy_rel): Likewise.
16275         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16276         (elf_machine_lazy_rel): Likewise.
16277         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16278         (elf_machine_lazy_rel): Likewise.
16279
16280 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16281
16282         * nss/nss_files/files-init.c (_nss_files_init): Use static
16283         initialization for all the *_traced_file variables.
16284
16285 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16286
16287         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16288
16289 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16290
16291         [BZ #13226]
16292         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16293
16294 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16295
16296         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16297         Reread the line before reparsing it.
16298
16299 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16300
16301         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16302
16303 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16304             Maxim Kuvyrkov  <maxim@codesourcery.com>
16305             Joseph Myers  <joseph@codesourcery.com>
16306
16307         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16308         if needed for __stack_chk_guard.
16309
16310 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16311
16312         * sysdeps/posix/spawni.c (script_execute): Always define it.
16313         It will be optimized away if unused.
16314         (maybe_script_execute): New function.
16315         (__spawni): Call it.
16316
16317         * Makerules: Don't include tls.make.
16318         (config-tls): Always set to thread.
16319         * tls.make.c: File removed.
16320
16321 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16322
16323         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16324         * config.make.in (CPPFLAGS-config): New substituted variable.
16325
16326 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16327
16328         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16329
16330         [BZ #13192]
16331         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16332         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16333
16334 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16335
16336         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16337         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16338         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16339         (CALL_FAIL): Likewise.
16340         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16341         (CALL_FAIL): Macro removed.
16342         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16343
16344 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16345
16346         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16347         for __FINITE_MATH_ONLY__ == 1.
16348
16349 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16350
16351         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16352         __ieee754_sqrt instead of sqrt.
16353         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16354         __ieee754_sqrtf instead of sqrtf.
16355         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16356         __floorf instead of floorf.
16357         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16358         __floorf, __truncf instead of floorf, truncf.
16359
16360 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16361
16362         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16363
16364         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16365         __extern_always_inline.
16366         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16367         32-bit.
16368
16369 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16370
16371         * elf/rtld.c (dl_main): Also relocate in dependency order when
16372         doing symbol dependency testing.
16373
16374 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16375
16376         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16377         Always define `refsym'.
16378
16379 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16380
16381         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16382         (__FD_ELT): Renamed from __FDELT.
16383         * misc/bits/select2.h (__FD_ELT): Likewise.
16384         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16385         __FD_MASK instead of __FDELT, __FDMASK.
16386         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16387         Likewise.
16388         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16389         Likewise.
16390
16391         * elf/Makefile (gen-ldd): Fix pattern.
16392
16393         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16394         (init_tls): Likewise.
16395
16396 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16397
16398         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16399
16400 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16401
16402         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16403         `struct cmsghdr *' instead of `void *'.
16404         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16405         Likewise.
16406
16407 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16408
16409         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16410         if non-absolute.
16411         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16412         ldd_rewrite_script.
16413
16414 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16415
16416         * configure.in: Remove --with-tls option.
16417         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16418         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16419         out in case it is missing.
16420         * sysdeps/ia64/elf/configure.in: Likewise.
16421         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16422         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16423         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16424         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16425         * sysdeps/sh/elf/configure.in: Likewise.
16426         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16427         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16428         * sysdeps/x86_64/elf/configure.in: Likewise.
16429         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16430         * sysdeps/mach/hurd/tls.h: Likewise.
16431
16432         [BZ #13067]
16433         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16434
16435         [BZ #13090]
16436         * configure.in: Fix use of AC_INIT.
16437
16438         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16439
16440 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16441
16442         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16443         __set_errno.
16444         * malloc/hooks.c: Likewise.
16445
16446         [BZ #11929]
16447         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16448         variables statically.
16449         (narenas): Initialize.
16450         (list_lock): Initialize.
16451         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16452         initializtion of main_arena and list_lock.  Small cleanups.
16453         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16454         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16455         Add initializers to main_arena and mp_.
16456         (malloc_state): Remove pagesize member.  Change all users to use
16457         GLRO(dl_pagesize).
16458
16459         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16460         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16461         is always initialized.
16462
16463         * malloc/malloc.c: Removed unused configurations and dead code.
16464         * malloc/arena.c: Likewise.
16465         * malloc/hooks.c: Likewise.
16466         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16467
16468         * include/tls.h: Removed.  USE___THREAD must always be defined.
16469         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16470         * elf/dl-libc.c: Likewise.
16471         * elf/dl-tsd.c: Likewise.
16472         * include/errno.h: Likewise.
16473         * include/netdb.h: Likewise.
16474         * include/resolv.h: Likewise.
16475         * inet/herrno-loc.c: Likewise.
16476         * inet/herrno.c: Likewise.
16477         * malloc/arena.c: Likewise.
16478         * malloc/hooks.c: Likewise.
16479         * malloc/malloc.c: Likewise.
16480         * resolv/res-state.c: Likewise.
16481         * resolv/res_libc.c: Likewise.
16482         * sysdeps/i386/dl-machine.h: Likewise.
16483         * sysdeps/ia64/dl-machine.h: Likewise.
16484         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16485         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16486         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16487         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16488         * sysdeps/sh/dl-machine.h: Likewise.
16489         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16490         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16491         * sysdeps/unix/i386/sysdep.S: Likewise.
16492         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16493         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16494         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16495         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16496         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16497         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16498         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16499         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16500         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16501         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16502         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16503         * sysdeps/x86_64/dl-machine.h: Likewise.
16504         * tls.make.c: Likewise.
16505
16506         * configure.in: Remove --with-__thread option.  Make tests for
16507         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16508         tls_model attribute fail if no support is available.  Remove
16509         USE_IN_LIBIO.
16510         * Makeconfig: Adjust for dropped configure option.  All features are
16511         now mandatory.
16512         * Makerules: Likewise.
16513         * Versions.def: Likewise.
16514         * argp/argp-fmtstream.c: Likewise.
16515         * argp/argp-fmtstream.h: Likewise.
16516         * argp/argp-help.c: Likewise.
16517         * assert/assert.c: Likewise.
16518         * config.h.in: Likewise.
16519         * config.make.in: Likewise.
16520         * configure: Likewise.
16521         * configure.in: Likewise.
16522         * csu/Versions: Likewise.
16523         * csu/init.c: Likewise.
16524         * elf/tst-audit2.c: Likewise.
16525         * elf/tst-tls10.c: Likewise.
16526         * elf/tst-tls10.h: Likewise.
16527         * elf/tst-tls11.c: Likewise.
16528         * elf/tst-tls12.c: Likewise.
16529         * elf/tst-tls14.c: Likewise.
16530         * elf/tst-tlsmod11.c: Likewise.
16531         * elf/tst-tlsmod12.c: Likewise.
16532         * elf/tst-tlsmod13.c: Likewise.
16533         * elf/tst-tlsmod13a.c: Likewise.
16534         * elf/tst-tlsmod14a.c: Likewise.
16535         * elf/tst-tlsmod15b.c: Likewise.
16536         * elf/tst-tlsmod16a.c: Likewise.
16537         * elf/tst-tlsmod16b.c: Likewise.
16538         * elf/tst-tlsmod7.c: Likewise.
16539         * elf/tst-tlsmod8.c: Likewise.
16540         * elf/tst-tlsmod9.c: Likewise.
16541         * gmon/gmon.c: Likewise.
16542         * grp/fgetgrent_r.c: Likewise.
16543         * grp/putgrent.c: Likewise.
16544         * hurd/fopenport.c: Likewise.
16545         * include/libc-symbols.h: Likewise.
16546         * include/tls.h: Likewise.
16547         * intl/gettextP.h: Likewise.
16548         * intl/loadinfo.h: Likewise.
16549         * locale/global-locale.c: Likewise.
16550         * locale/localeinfo.h: Likewise.
16551         * mach/devstream.c: Likewise.
16552         * malloc/arena.c: Likewise.
16553         * malloc/set-freeres.c: Likewise.
16554         * misc/err.c: Likewise.
16555         * misc/getttyent.c: Likewise.
16556         * misc/mntent_r.c: Likewise.
16557         * posix/getopt.c: Likewise.
16558         * posix/wordexp.c: Likewise.
16559         * pwd/fgetpwent_r.c: Likewise.
16560         * resolv/Versions: Likewise.
16561         * resolv/res_hconf.c: Likewise.
16562         * shadow/fgetspent_r.c: Likewise.
16563         * shadow/putspent.c: Likewise.
16564         * stdio-common/printf_fphex.c: Likewise.
16565         * stdio-common/tmpfile.c: Likewise.
16566         * stdlib/abort.c: Likewise.
16567         * stdlib/fmtmsg.c: Likewise.
16568         * sunrpc/auth_unix.c: Likewise.
16569         * sunrpc/clnt_perr.c: Likewise.
16570         * sunrpc/clnt_tcp.c: Likewise.
16571         * sunrpc/clnt_udp.c: Likewise.
16572         * sunrpc/clnt_unix.c: Likewise.
16573         * sunrpc/openchild.c: Likewise.
16574         * sunrpc/svc_simple.c: Likewise.
16575         * sunrpc/svc_tcp.c: Likewise.
16576         * sunrpc/svc_udp.c: Likewise.
16577         * sunrpc/svc_unix.c: Likewise.
16578         * sunrpc/xdr.c: Likewise.
16579         * sunrpc/xdr_array.c: Likewise.
16580         * sunrpc/xdr_rec.c: Likewise.
16581         * sunrpc/xdr_ref.c: Likewise.
16582         * sunrpc/xdr_stdio.c: Likewise.
16583
16584 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16585
16586         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16587
16588 2011-07-03  Andreas Jaeger  <aj@suse.de>
16589
16590         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16591         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16592         regenerate with gen-libm-tests.pl.
16593
16594 2010-05-12  Petr Baudis  <pasky@suse.cz>
16595
16596         [BZ #11589]
16597         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16598         around j0() zero points by switching to j1().
16599         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16600         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16601         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16602         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16603
16604 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16605
16606         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16607         instead of 0.
16608         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16609         instead of 0.                              .
16610         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16611         Patch in part by Pavel Roskin <proski@gnu.org>.
16612
16613         [BZ #13138]
16614         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16615         realloc.
16616         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16617         Free memory block if necessary.
16618
16619         [BZ #12847]
16620         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16621         be NULL.  Don't lock in this case.
16622
16623 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16624
16625         * elf/elf.h (ELFOSABI_GNU): New macro.
16626         (ELFOSABI_LINUX): Define to that.
16627
16628 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16629
16630         * string/strncat.c (strncat): Undef the symbol in case it has been
16631         defined in bits/string.h.
16632
16633 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16634
16635         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16636
16637         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16638         link map.
16639
16640 2011-08-17  Andreas Jaeger  <aj@suse.de>
16641
16642         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16643
16644 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16645             Ian Lance Taylor  <iant@google.com>
16646
16647         * math/libm-test.inc (lround_test): New testcase.
16648         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16649
16650 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16651
16652         * Makefile: Remove support for automatic cvs check-ins.
16653         * Makerules: Likewise.
16654         * config.make.in: Likewise.
16655         * configure.in: Likewise.
16656         * intl/Makefile: Likewise.
16657         * locale/Makefile: Likewise.
16658         * po/Makefile: Likewise.
16659         * posix/Makefile: Likewise.
16660         * sysdeps/gnu/Makefile: Likewise.
16661         * sysdeps/mach/hurd/Makefile: Likewise.
16662         * sysdeps/sparc/sparc32/Makefile: Likewise.
16663
16664         [BZ #13118]
16665         * posix/Makefile (bug-regex32-ENV): Define.
16666         Patch by John Stanley <jpsinthemix@verizon.net>.
16667
16668         * misc/Makefile (headers): Add bits/select2.h.
16669         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16670         * misc/bits/select2.h: New file.
16671         * include/bits/select2.h: New file.
16672         * debug/Makefile (routines): Add fdelt_chk.
16673         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16674         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16675         FD_ISSET.
16676         * debug/fdelt_chk.c: New file.
16677
16678         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16679         * wcsmbs/test-wmemcmp.c: Likewise.
16680         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16681         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16682
16683 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16684
16685         * string/Makefile (strop-tests): Add memcmp.
16686         * string/test-wmemcmp.c: New file.
16687         * string/test-memcmp.c: Add wmemcmp support.
16688
16689 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16690
16691         [BZ #13153]
16692         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16693         2011-07-19 change.
16694
16695         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16696         garbage value in a __mach_port_mod_refs call in the cases of the
16697         task-self and thread-self ports.
16698
16699 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16700
16701         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16702
16703 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16704
16705         * elf/dl-load.c (lose): Check for non-null L.
16706
16707 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16708
16709         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16710
16711         * elf/dl-libc.c (dlerror_run): Pass back error code from
16712         dl_catch_error.
16713
16714         [BZ #13123]
16715         * elf/dl-load.c (lose): Free l_origin if it is valid.
16716
16717         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16718         names.
16719         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16720         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16721         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16722         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16723         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16724         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16725
16726 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16727
16728         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16729         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16730         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16731         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16732         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16733         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16734         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16735         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16736         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16737         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16738
16739 2011-08-15  Alan Modra  <amodra@gmail.com>
16740
16741         [BZ #13092]
16742         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16743         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16744         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16745         ppc_mcount to static-only-routines.
16746         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16747         __mcount_internal.
16748         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16749         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16750
16751 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16752
16753         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16754         for finite and infinity parameters.
16755
16756 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16757
16758         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16759         and add nop instructions for throughput optimization.
16760         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16761
16762 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16763
16764         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16765         aligned copy for power7 with vector-scalar instructions.
16766         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16767
16768 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16769
16770         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16771         AVX check.
16772
16773 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16774
16775         [BZ #13144]
16776         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16777         last change.
16778
16779 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16780
16781         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16782         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16783         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16784         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16785         clock_gettime.
16786
16787 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16788
16789         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16790         Forgot to demangle the pointer.
16791
16792         * sysdeps/i386/sysdep.h: Define atom_text_section.
16793         * sysdeps/x86_64/sysdep.h: Likewise.
16794         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16795         section with atom_text_section.
16796         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16797         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16798         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16799         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16800         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16801
16802         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16803         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16804         already be defined.  Change to take two parameters and don't assign
16805         result to variable.  Adjust all users.
16806         Define INTERNAL_GETTIME if not already defined.
16807         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16808         call.
16809         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16810         HAVE_CLOCK_GETTIME_VSYSCALL.
16811         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16812
16813         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16814         gettimeofday vsyscall, just use time.
16815
16816 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16817
16818         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16819         <errno.h>.
16820
16821 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16822
16823         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16824         syscall on x86-64.
16825         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16826         syscall.
16827         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16828         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16829         syscall if possible.
16830
16831 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16832
16833         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16834         e_ident.  Don't pass to find_mapsXX.
16835         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16836
16837 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16838
16839         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16840         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16841         * sysdeps/x86_64/multiarch/strchr.S: Update.
16842         Check bit_slow_BSF bit.
16843         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16844         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16845         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16846
16847 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16848
16849         [BZ #13134]
16850         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16851         before glibc 2.15.
16852         (tryshell): Define.
16853         (__spawni): Change last parameter to be flag.  Test
16854         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16855         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16856         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16857         * posix/spawni.c: Likewise.
16858         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16859         * posix/spawnp.c: Likewise.  Change normal version to use
16860         SPAWN_XFLAGS_USE_PATH.
16861         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16862         SPAWN_XFLAGS_TRY_SHELL.
16863
16864         [BZ #13150]
16865         * posix/glob.h: Remove gcc 1.x support.
16866
16867         [BZ #13068]
16868         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16869
16870 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16871
16872         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16873         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16874         strrchr-sse2-bsf
16875         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16876         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16877         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16878         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16879         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16880         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16881
16882 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16883
16884         * sysdeps/x86_64/wcscmp.S: New file.
16885
16886         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16887         wcscmp-c wcscmp-sse2
16888         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16889         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16890         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16891         * wcsmbs/wcscmp.c: Allow renaming.
16892
16893 2011-09-05  David S. Miller  <davem@davemloft.net>
16894
16895         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16896         stack slot, rather than the struct return pointer slot.
16897         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16898         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16899         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16900         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16901
16902 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16903
16904         * po/ja.po: Update from translation team.
16905
16906         [BZ #13144]
16907         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16908         kernel in 64-bit binaries.
16909
16910 2011-09-01  David S. Miller  <davem@davemloft.net>
16911
16912         * elf/elf.h (HWCAP_SPARC_*): Move to..
16913         * sysdeps/sparc/sysdep.h: this new file and add new values.
16914         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16915         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16916         _DL_HWCAP_COUNT to 24.
16917         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16918         entries.
16919         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16920         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16921         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16922         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16923         instead of magic constants.
16924         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16925
16926 2011-08-31  David S. Miller  <davem@davemloft.net>
16927
16928         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16929         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16930         Reimplement to do errno handling inline.
16931         (SYSCALL_ERROR_HANDLER): New macro.
16932         (__SYSCALL_STRING): Do not do errno handling in asm.
16933         (__CLONE_SYSCALL_STRING): Delete.
16934         (__INTERNAL_SYSCALL_STRING): Delete.
16935         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16936         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16937         (PSEUDO): Reimplement to do errno handling inline.
16938         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16939         (SYSCALL_ERROR_HANDLER): New macro.
16940         (__SYSCALL_STRING): Do not do errno handling in asm.
16941         (__CLONE_SYSCALL_STRING): Delete.
16942         (__INTERNAL_SYSCALL_STRING): Delete.
16943         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16944         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16945         i386.
16946         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16947         (inline_syscall*): Add 'err' argument.
16948         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16949         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16950         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16951         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16952
16953         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16954         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16955
16956 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16957
16958         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16959
16960 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16961
16962         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16963         directive.
16964
16965 2011-08-24  David S. Miller  <davem@davemloft.net>
16966
16967         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16968
16969 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16970
16971         * elf/Makefile: Add rules to build and run unload8 test.
16972         * elf/unload8.c: New file.
16973         * elf/unload8mod1.c: New file.
16974         * elf/unload8mod1x.c: New file.
16975         * elf/unload8mod2.c: New file.
16976         * elf/unload8mod3.c: New file.
16977
16978         * elf/dl-close.c (_dl_close_worker): Reset private search list if
16979         it wasn't used.
16980
16981 2011-08-23  David S. Miller  <davem@davemloft.net>
16982
16983         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
16984         subtract stack bias.
16985         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
16986         %sp not %fp in calculations.
16987         (_JMPBUF_UNWINDS_ADJ): Likewise.
16988
16989         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
16990         (aio_suspend): Call it to force an exception region around the
16991         AIO_MISC_WAIT() invocation.
16992
16993 2011-08-23  Andreas Schwab  <schwab@redhat.com>
16994
16995         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
16996         backslash.
16997
16998 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
16999
17000         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17001         protection macro.
17002         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17003         and <dl-machine.h>.
17004         (Elf64_FuncDesc): Remove.
17005
17006 2011-08-22  David S. Miller  <davem@davemloft.net>
17007
17008         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17009         sigaltstack check, add missing cfi directives.
17010         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17011         missing cfi directives, and sigaltstack handling.
17012
17013 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17014
17015         [BZ #11724]
17016         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17017         object is seen twice.
17018         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17019
17020         * elf/Makefile (distribute): Add tst-initorder2.c.
17021         (tests): Add tst-initorder2.
17022         (modules-names): Add tst-initorder2a tst-initorder2b
17023         tst-initorder2c tst-initorder2d.  Add rules to build them.
17024         ($(objpfx)tst-initorder2.out): New rule.
17025         * elf/tst-initorder2.c: New file.
17026         * elf/tst-initorder2.exp: New file.
17027
17028 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17029
17030         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17031
17032         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17033         dependencies back to end of function.
17034
17035         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17036         $(elfobjdir)/ld.so.
17037
17038 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17039
17040         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17041         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17042         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17043         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17044         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17045         of __vdso_gettimeofday.
17046         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17047         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17048         attribute_hidden.
17049         (_libc_vdso_platform_setup): Remove initialization of
17050         __vdso_gettimeofday and __vdso_time.
17051
17052 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17053
17054         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17055         and fgetc_unlocked.
17056         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17057         getc_unlocked.
17058
17059         * elf/dl-open.c (add_to_global): Report additions to the global scope
17060         for LD_DEBUG=scopes.
17061         (dl_open_worker): Also print scope of newly loaded dependencies.
17062         (_dl_show_scope): Indicate if there is no scope.
17063
17064         [BZ #13114]
17065         * stdio-common/Makefile (tests): Add bug24.
17066         * stdio-common/bug24.c: New file.
17067
17068 2011-08-19  Andreas Jaeger  <aj@suse.de>
17069
17070         [BZ #13114]
17071         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17072         non-existant file when using close-on-exec mode.
17073
17074 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17075
17076         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17077         the very first instruction.
17078
17079         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17080         the CFI state in the end.
17081         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17082         inclusion of dl-trampoline.h.
17083         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17084
17085 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17086
17087         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17088         expectations for long double.
17089
17090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17091         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17092
17093 2011-08-14  David S. Miller  <davem@davemloft.net>
17094
17095         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17096         artificual limit depends upon the system page size.
17097
17098 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17099
17100         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17101         * resolv/Makefile: Define CFLAGS-libresolv.
17102
17103 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17104
17105         * nss/makedb.c (compute_tables): Make variables used in nested
17106         function static.
17107
17108 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17109
17110         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17111         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17112         if buffer was too small.
17113
17114         * elf/pldd.c (main): Attach to all threads in the process.
17115         Rewrite /proc handling to use *at functions.
17116
17117 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17118
17119         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17120         specifies first scope to show.
17121         (dl_open_worker): Update callers.  Move printing scope of new
17122         object to before the relocation.
17123         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17124         * sysdeps/generic/ldsodefs.h: Update declaration.
17125
17126         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17127         string for the scope number.
17128
17129 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17130
17131         * nscd/servicescache.c (cache_addserv): Make sure written is always
17132         initialized.
17133
17134 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17135
17136         * sysdeps/i386/i486/bits/atomic.h
17137         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17138         statement expression, so as to suppress "set but not used" warning.
17139         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17140
17141         * string/strncat.c (STRNCAT): Use prototype definition.
17142
17143         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17144         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17145         -Iprograms here.
17146         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17147         (localedef-modules): Add localedef.
17148         (locale-modules): Add locale.
17149
17150         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17151         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17152         to avoid a warning.
17153
17154 2011-08-14  David S. Miller  <davem@davemloft.net>
17155
17156         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17157         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17158
17159 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17160
17161         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17162         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17163         * elf/rtld.c (dl_main): Set l_name of vDSO.
17164         Call _dl_show_scope when DL_DEBUG_SCOPES.
17165         (process_dl_debug): Recognize scopes flag and also set it for all.
17166         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17167         Declare _dl_show_scope.
17168
17169         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17170         (do_dlopen): Pass caller_dlopen to dl_open.
17171         (__libc_dlopen_mode): Initialize caller_dlopen.
17172
17173         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17174         of libc.  Make tolower call locale-independent.  Optimize a bit by
17175         using isdigit instead of isalnum.
17176         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17177
17178 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17179
17180         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17181         was a dependency or dynamically loaded.
17182
17183 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17184
17185         * intl/l10nflist.c: Allow architecture-specific pop function.
17186         * sysdeps/x86_64/l10nflist.c: New file.
17187
17188         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17189         classification.
17190
17191 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17192
17193         * include/dirent.h: Add libc_hidden_proto for scandirat and
17194         scandirat64.  Don't declare __scandirat64.
17195         * dirent/scandirat.c: Add libc_hidden_def.
17196         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17197         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17198
17199 2011-08-10  David S. Miller  <davem@davemloft.net>
17200
17201         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17202         enum.
17203         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17204         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17205         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17206
17207 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17208
17209         * Versions.def [libc]: Add GLIBC_2.15.
17210         * dirent/Makefile (routines): Add scandirat and scandirat64.
17211         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17212         GLIBC_2.15.
17213         * dirent/dirent.h: Declare scandirat and scandirat64.
17214         * dirent/scandirat.c: New file.
17215         * dirent/scandirat64.c: New file.
17216         * sysdeps/wordsize-64/scandirat.c: New file.
17217         * sysdeps/wordsize-64/scandirat64.c: New file.
17218         * dirent/opendir.c: Define opendirat.
17219         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17220         using scandirat.
17221         * dirent/scandir64.c: Adjust for scandir.c change.
17222         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17223         __scandirat64, and __scandir_cancel_handler.
17224         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17225         additional parameter and use openat instead of open (outside of ld.so).
17226         Add new __opendir as wrapper around __opendirat.
17227         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17228         here without requiring old scandirat implementation.
17229
17230 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17231
17232         * dirent/scandir.c (cancel_handler): Renamed to
17233         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17234         defined.  Adjust users.
17235         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17236         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17237
17238 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17239
17240         * string/test-string.h (IMPL): Use __STRING to expand name and then
17241         stringify it.
17242
17243         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17244         of cleanups.
17245
17246 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17247
17248         * string/Makefile: Update.
17249         (strop-tests): Append strncat.
17250         * string/test-wcscmp.c: New file.
17251         New comprehensive test for wcscmp.
17252         * string/test-strcmp.c: Update.
17253         (WIDE): New define.
17254
17255 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17256
17257         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17258         line.
17259
17260 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17261
17262         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17263         encoding to ACE if AI_IDN.
17264
17265 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17266
17267         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17268         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17269
17270 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17271
17272         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17273         Fix overflow bug in strncat.
17274         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17275
17276         * string/test-strncat.c: Update.
17277         Add new tests for checking overflow bugs.
17278
17279 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17280
17281         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17282         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17283         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17284         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17285         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17286         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17287         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17288         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17289         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17290
17291         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17292         (USE_AS_STRCAT): Define.
17293         Add strcat and strncat support.
17294         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17295
17296 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17297
17298         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17299         __n bigger than INT_MAX+1.
17300         (__strncmp_g): Likewise.
17301
17302 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17303
17304         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17305         * libio/stido.h: Likewise.
17306
17307         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17308         (AF_NFC): Define.
17309         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17310         (AF_NFC): Define.
17311
17312         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17313         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17314         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17315         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17316         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17317
17318         [BZ #13021]
17319         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17320         installed.
17321
17322         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17323         typo.
17324         (_dl_x86_64_save_sse): Likewise.
17325
17326 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17327
17328         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17329         OSXSAVE.
17330         (_dl_x86_64_save_sse): Likewise.
17331
17332         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17333
17334         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17335
17336 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17337
17338         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17339         change.
17340         (_dl_x86_64_save_sse): Use correct AVX check.
17341
17342 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17343
17344         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17345         bug in strncpy/strncat.
17346         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17347
17348 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17349
17350         * string/tester.c (test_strcat): Add tests for different alignments
17351         of source and destination.
17352         (test_strncat): Likewise.
17353
17354 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17355
17356         [BZ #12852]
17357         * posix/glob.c (glob): Check passed in values before using them in
17358         expressions to avoid some overflows.
17359         (glob_in_dir): Likewise.
17360
17361         [BZ #13007]
17362         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17363         check for AVX enablement so that we don't crash with old kernels and
17364         new hardware.
17365         * elf/tst-audit4.c: Add same checks here.
17366         * elf/tst-audit6.c: Likewise.
17367
17368         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17369
17370 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17371
17372         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17373
17374 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17375
17376         * po/cs.po: Update from translation team.
17377         * po/bg.po: Likewise.
17378
17379 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17380
17381         * misc/sys/cdefs.h: Add support for const attribute.
17382         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17383         to gnu_dev_{major,minor,makedev} functions.
17384
17385 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17386
17387         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17388
17389 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17390
17391         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17392         strlen results.
17393
17394 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17395
17396         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17397         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17398         register in order to avoid conflicts with the soft frame pointer
17399         being held in r11 when necessary.
17400         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17401         (INTERNAL_VSYSCALL_NCS): Likewise.
17402
17403 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17404
17405         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17406         * elf/dl-fini.c (_dl_fini): Adjust caller.
17407         * elf/dl-close.c (_dl_close_worker): Likewise.
17408         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17409
17410 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17411
17412         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17413         "aux_cache->nlibs < 0".
17414
17415         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17416         in the reload-count case.
17417
17418 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17419
17420         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17421         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17422         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17423         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17424         * sysdeps/x86_64/multiarch/strcat.S: New file.
17425         * sysdeps/x86_64/multiarch/strncat.S: New file.
17426         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17427         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17428         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17429         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17430         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17431         (USE_AS_STRCAT): Define.
17432         Add strcat and strncat support.
17433         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17434         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17435         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17436         * string/strncat.c: Update.
17437         (USE_AS_STRNCAT): Define.
17438         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17439         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17440         and i7.
17441         * sysdeps/x86_64/multiarch/init-arch.h
17442         (bit_Prefer_PMINUB_for_stringop): New.
17443         (index_Prefer_PMINUB_for_stringop): Likewise.
17444         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17445         bit_Prefer_PMINUB_for_stringop.
17446
17447 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17448
17449         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17450         buffer64.
17451         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17452         of casting of buffer.
17453         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17454         buffer32 and buffer64.
17455         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17456         writes instead of casting of buffer.
17457         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17458         buffer32.
17459         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17460         casting of buffer.
17461
17462 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17463
17464         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17465
17466 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17467
17468         * nscd/nscd.c (termination_handler): Don't do anything for a database
17469         if it has not yet been initialized.
17470
17471 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17472
17473         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17474
17475 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17476
17477         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17478
17479 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17480
17481         * po/nl.po: Update from translation team.
17482         * po/sv.po: Likewise.
17483
17484 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17485
17486         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17487         now disallowed by GCC.
17488
17489         * configure.in (use-default-link): Default to yes if a test -shared
17490         link meets our qualifications.
17491         * configure: Regenerated.
17492
17493         * config.make.in (output-format): New variable.
17494         * configure.in: Check for ld --print-output-format support.
17495         * configure: Regenerated.
17496         * Makerules ($(common-objpfx)format.lds)
17497         [$(output-format) != unknown]: Just use $(output-format),
17498         instead of the linker-script munging.
17499
17500 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17501
17502         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17503         of $(common-objpfx)shlib.lds.
17504         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17505
17506         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17507         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17508
17509         * configure.in (-z relro check): Adjust test code to add a large
17510         writable data section after it.
17511         * configure: Regenerated.
17512
17513 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17514
17515         * configure.in (-z relro check): Fix test code to make the variable
17516         truly const.
17517         * configure: Regenerated.
17518
17519 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17520
17521         * nscd/nscd.h (struct traced_file): Define.
17522         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17523         elements.  Add traced_files.
17524         (inotify_fd): Declare.
17525         (register_traced_file): Declare.
17526         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17527         (inotify_fd): Export.
17528         (resolv_conf_descr): Remove.
17529         (nscd_init): Move inotify descriptor creation to main.
17530         Don't register files for notification here.
17531         (register_traced_file): New function.
17532         (invalidate_cache): Don't use reset_res to determine whether to call
17533         res_init, go through the list of registered files.
17534         (main_loop_poll): The inotify descriptors are now stored in the
17535         structures for the traced files.
17536         (main_loop_epoll): Likewise
17537         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17538         to __nss_disable_nscd.
17539         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17540         for a database anymore.  Check the records for all the registered
17541         files instead.
17542         * nss/Makefile (libnss_files-routines): Add files-init.
17543         (libnss_db-routines): Add db-init.
17544         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17545         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17546         * nss/nss_db/db-init.c: New file.
17547         * nss/nss_files/files-init.c: New file.
17548         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17549         __nss_lookup_function.
17550         (__nss_lookup_function): Call nss_load_library.
17551         (nss_load_all_libraries): New function.
17552         (__nss_disable_nscd): Take parameter with callback function for files
17553         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17554         used for the cached services.
17555         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17556         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17557         options for features to all the files in nscd.
17558
17559         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17560
17561 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17562
17563         * csu/elf-init.c (__libc_csu_init): Comment typo.
17564
17565 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17566
17567         * po/pl.po: Update from translation team.
17568         * po/ja.po: Likewise.
17569         * po/ru.po: Likewise.
17570         * po/ko.po: Likewise.
17571         * po/fr.po: Likewise.
17572
17573 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17574
17575         * configure.in (.ctors/.dtors header and trailer check):
17576         Use an empirical test on a built program.
17577         * configure: Regenerated.
17578
17579         * configure.in (-z relro check): Use an empirical test on a built DSO.
17580         Detect, but do not require, on ia64.
17581         * configure: Regenerated.
17582
17583         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17584         Update tests that use readelf to use $READELF instead.
17585         * configure: Regenerated.
17586
17587 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17588
17589         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17590         if the result is not used.
17591
17592 2011-07-05  Andreas Jaeger  <aj@suse.de>
17593
17594         [BZ#9696]
17595         * stdlib/tst-strtod.c: Add testcase.
17596
17597 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17598
17599         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17600         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17601         The latter has a higher limit.  Take additional parameter to pass to
17602         the new function.
17603         (__pathconf): Pass file to __statfs_link_max.
17604         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17605         __statfs_link_max.
17606         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17607         __statfs_link_max.
17608
17609         [BZ #12868]
17610         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17611         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17612         Handle Lustre.
17613         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17614         (__statfs_filesize_max): Likewise.
17615         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17616
17617 2011-07-05  Andreas Jaeger  <aj@suse.de>
17618
17619         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17620
17621 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17622
17623         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17624         `status' variable.
17625         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17626         Likewise.
17627
17628 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17629
17630         * Makefile (strop-tests): Add strncat.
17631         * string/test-strncat.c: New file.
17632
17633 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17634
17635         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17636
17637 2011-06-21  Andreas Jaeger  <aj@suse.de>
17638
17639         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17640         Copy rule from iconvdata/Makefile.
17641
17642 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17643
17644         [BZ #12922]
17645         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17646         but no long options are defined, just return 'W'.
17647
17648 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17649
17650         [BZ #9696]
17651         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17652
17653 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17654
17655         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17656         netgroups to read.
17657         (innetgr): Likewise.
17658
17659 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17660
17661         * config.make.in (install_root): Default to $(DESTDIR).
17662
17663 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17664
17665         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17666
17667 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17668
17669         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17670
17671         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17672         containing directory rather than embedding absolute directory names.
17673
17674         * scripts/check-local-headers.sh: Rewritten using awk.
17675         Match by word, not by line.  Print error messages for matches.
17676         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17677
17678         * Makerules [shlib-lds-flags empty]:
17679         ($(common-objpfx)libc_pic.opts): New target.
17680         ($(common-objpfx)libc_pic.os.clean): New target.
17681         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17682
17683         * config.make.in (OBJCOPY): New variable.
17684         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17685         * configure: Regenerated.
17686
17687         * config.make.in (use-default-link): New variable.
17688         * configure.in (use_default_link): Grok --with-default-link to set it.
17689         * configure: Regenerated.
17690         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17691         (shlib-lds, shlib-lds-flags): Define to empty.
17692
17693         * Makerules (shlib-lds): New variable.
17694         (shlib-lds-flags): New variable.
17695         (build-shlib, build-moduile, build-module-asneeded): Use it.
17696         ($(common-objpfx)libc.so): Use $(shlib-lds).
17697         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17698         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17699
17700         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17701         DT_FLAGS/DT_FLAGS_1 with zero flags.
17702
17703         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17704         linker script munging.
17705
17706 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17707
17708         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17709         as 128-bit value.
17710         * crypt/sha512.c (sha512_process_block): Perform total addition using
17711         128-bit if possible.
17712         (__sha512_finish_ctx): Likewise.
17713         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17714         as 64-bit value.
17715         * crypt/sha256.c (SWAP64): Define.
17716         (sha256_process_block): Perform total addition using 64-bit if
17717         possible.
17718         (__sha256_finish_ctx): Likewise.
17719
17720 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17721
17722         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17723         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17724         * nscd/hstcache.c (cache_addhst): Likewise.
17725         * nscd/grpcache.c (cache_addgr): Likewise.
17726         * nscd/aicache.c (addhstaiX): Likewise
17727         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17728
17729 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17730
17731         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17732         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17733         * nscd/hstcache.c (cache_addhst): Likewise.
17734         * nscd/grpcache.c (cache_addgr): Likewise.
17735         * nscd/aicache.c (addhstaiX): Likewise
17736
17737 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17738
17739         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17740         domain only when needed.
17741
17742 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17743
17744         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17745         is always restored.
17746
17747 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17748
17749         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17750         are re-adding the entry.
17751         * nscd/servicescache.c (cache_addserv): Likewise.
17752
17753 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17754
17755         * sysdeps/generic/dl-irel.h: fix protection against multiple
17756         inclusions.
17757         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17758
17759 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17760
17761         [BZ #12935]
17762         * malloc/memusage.sh: Fix quoting in message.
17763         * debug/xtrace.sh: Likewise.
17764
17765         * configure.in: Remove support for --experimental-malloc option, make
17766         it the default.
17767         * config.make.in: Likewise.
17768         * malloc/Makefile: Likewise.
17769
17770 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17771
17772         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17773         two-byte characters.
17774
17775 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17776
17777         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17778         AC_CACHE_CHECK invocation.
17779         * configure: Regenerated.
17780
17781         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17782
17783 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17784
17785         [BZ #12350]
17786         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17787         bit from old_res_options.
17788
17789         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17790
17791         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17792         value type for setfct.
17793
17794 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17795
17796         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17797         __gettimeofday instead of gettimeofday.
17798
17799 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17800
17801         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17802
17803 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17804
17805         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17806
17807         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17808         info.
17809
17810 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17811
17812         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17813         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17814         strcpy-sse2-unaligned strncpy-sse2-unaligned
17815         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17816         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17817         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17818         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17819         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17820         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17821         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17822         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17823         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17824         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17825         (STRCPY): Support SSE2 and SSSE3 versions.
17826
17827 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17828
17829         [BZ #12874]
17830         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17831         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17832         kernels which artificially limit size of requests.
17833
17834 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17835
17836         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17837         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17838         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17839         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17840         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17841         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17842         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17843         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17844         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17845         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17846         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17847         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17848         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17849         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17850         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17851         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17852         Enable unaligned load optimization for Intel Core i3, i5 and i7
17853         processors.
17854         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17855         Define.
17856         (index_Fast_Unaligned_Load): Define.
17857         (HAS_FAST_UNALIGNED_LOAD): Define.
17858
17859 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17860
17861         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17862
17863 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17864
17865         [BZ #12907]
17866         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17867         until it is clear that the information is realy needed.
17868         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17869
17870 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17871
17872         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17873
17874 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17875
17876         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17877         /sys/devices/system/cpu/online if it is usable.
17878
17879         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17880         reading the information from the /proc filesystem to once a second.
17881
17882 2011-06-21  Andreas Jaeger  <aj@suse.de>
17883
17884         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17885         NULL after inclusion of kernel headers.
17886
17887 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17888
17889         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17890         calls to internal_setent.
17891
17892         [BZ #12885]
17893         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17894         addresses using gethostbyname4_r ignore IPv4 addresses.
17895
17896         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17897         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17898
17899         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17900
17901 2011-06-20  David S. Miller  <davem@davemloft.net>
17902
17903         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17904         inclusions.
17905         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17906
17907         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17908         (elf_irel): Use it.
17909         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17910         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17911         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17912         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17913         * sysdeps/x86_64/dl-irel.h: Likewise.
17914
17915         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17916         * elf/dl-sym.c: Likewise.
17917
17918 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17919
17920         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17921         need to dereference resplen2.
17922
17923 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17924
17925         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17926
17927 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17928
17929         * Makeconfig: Define vardbdir and inst_vardbdir.
17930         * nss/Makefile: Add rules to install db-Makefile.
17931
17932         * nss/nss_db/db-XXX.c: Cleanup.
17933
17934         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17935         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17936         GLIBC_PRIVATE.
17937         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17938         * nss/makedb.c: Implement -g option to specify that value strings
17939         are generated and should not be added to table iterated over for
17940         get*ent calls.
17941         * nss/nss_db/db-initgroups.c: New file.
17942
17943         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17944         interface.
17945
17946         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17947         (internal_getgrouplist): Adjust to name change.
17948         Update use_initgroups_entry if this is not the first call.
17949         * nss/databases.def: Add initgroups entry.
17950
17951         * nss/makedb.c (compute_tables): Check result of multiple hash table
17952         sizes to minimize maximum chain length.
17953
17954 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17955
17956         * Versions.def: Add entry for libnss_db.
17957         * shlib-versions: Likewise.
17958         * nss/Makefile: Add rules to build libnss_db.
17959         * nss/Versions: Add libnss_db information.  Organize libnss_files
17960         entries better.
17961         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17962         makedb progra.  Some minor improvements to generate smaller files.
17963         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17964         here from...
17965         * nss/makedb.c: ...here.
17966         Improve database format to be smaller and require less memory at
17967         runtime.
17968         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17969         db anymore.
17970         * nss/nss_db/db-netgrp.c: Likewise.
17971         * nss/nss_db/db-open.c: Likewise.
17972         * nss/nss_files/flies-XXX.x: Adjust comments.
17973         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17974         * nss/nss_files/files-grp.c: Likewise.
17975         * nss/nss_files/files-hosts.c: Likewise.
17976         * nss/nss_files/files-network.c: Likewise.
17977         * nss/nss_files/files-proto.c: Likewise.
17978         * nss/nss_files/files-pwd.c: Likewise.
17979         * nss/nss_files/files-rpc.c: Likewise.
17980         * nss/nss_files/files-service.c: Likewise.
17981         * nss/nss_files/files-sgrp.c: Likewise.
17982         * nss/nss_files/files-spwd.c: Likewise.
17983         * nss/nss_db/db-alias.c: Removed.
17984         * nss/nss_db/dummy-db.h: Removed.
17985
17986 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
17987
17988         * nss/makedb.c: Rewritten to not use database library.
17989         * nss/Makefile: Update to build new makedb program.
17990
17991 2011-06-14  Andreas Jaeger  <aj@suse.de>
17992
17993         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
17994         memset declaration.
17995
17996 2011-06-10  Andreas Schwab  <schwab@redhat.com>
17997
17998         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
17999         tmpbuf.
18000
18001 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18002
18003         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18004         * elf/Makefile ($(objpfx)ld.so): Likewise.
18005
18006         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18007         Don't list ld.so twice in dependencies.
18008
18009         * posix/bug-regex31.c: Include <stdlib.h>.
18010
18011         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18012
18013         * nis/nss_compat/compat-spwd.c
18014         (getspent_next_nss_netgr): Remove unused variable.
18015         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18016
18017         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18018         nonmembers" output to use the right array.
18019
18020         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18021
18022         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18023
18024         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18025         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18026         * catgets/gencat.c (read_input_file): Likewise.
18027         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18028
18029         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18030         variable definition inside #if's controlling its use.
18031
18032         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18033
18034         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18035
18036         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18037
18038         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18039         unreachable code.
18040
18041         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18042
18043         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18044         * configure: Regenerated.
18045
18046         * Makerules: Revert last change.
18047         * elf/Makefile: Likewise.
18048
18049 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18050
18051         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18052         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18053         (reloc-link): Likewise.
18054
18055 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18056
18057         * elf/Makefile: Add rules to build pldd.
18058         * elf/pldd.c: New file.
18059         * elf/pldd-xx.c: New file.
18060
18061 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18062
18063         * version.h: Update for 2.15 development version.
18064
18065 2011-06-07  David S. Miller  <davem@davemloft.net>
18066
18067         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18068         ifuncs.
18069         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18070         elf_machine_lazy_rel): Likewise.
18071         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18072         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18073         elf_machine_lazy_rel): Likewise.
18074         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18075         dl_hwcap via passed in argument.
18076         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18077         Likewise.
18078
18079 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18080
18081         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18082
18083 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18084
18085         [BZ #12849]
18086         * manual/fdl-1.1.texi: New file, verbatim from:
18087         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18088         * manual/lgpl-2.1.texi: New file, verbatim from:
18089         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18090         * manual/Makefile (licenses): New variable, list those new file names.
18091         (texis): Use it.
18092         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18093
18094         * manual/fdl.texi: File removed.
18095         * manual/lesser.texi: File removed.
18096         * manual/libc.texinfo (Copying, Documentation License):
18097         Use new @include file names, put @appendix directive before @include.
18098
18099 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18100
18101         [BZ #12841]
18102         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18103         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18104         (mq_open): Add __NTH.
18105
18106 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18107
18108         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18109         Assume Intel Core i3/i5/i7 processor if AVX is available.
18110
18111 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18112
18113         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18114         typo.
18115
18116 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18117
18118         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18119         memory.  Use alloca_account.  Fix memory leak when retrying.
18120
18121 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18122
18123         * version.h (RELEASE): Bump for 2.14 release.
18124         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18125
18126         * config.make.in (RANLIB): Remove entry.
18127
18128 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18129
18130         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18131         (libc.pot): Work around missing support for .ksh extension in xgettext.
18132
18133         [BZ #12684]
18134         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18135         if both request failed.
18136         (send_dg): In case of server errors clear resplen or *resplen2.
18137
18138         [BZ #12454]
18139         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18140         when there are multiple maps.
18141         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18142         (_dl_fini): Remove test here.
18143
18144         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18145
18146 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18147
18148         [BZ #12350]
18149         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18150         bit from old_res_options.
18151         (gaih_inet): Likewise.
18152
18153         [BZ #11099]
18154         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18155         as signed.
18156
18157         * resolv/res_init.c (res_setoptions): Make the code more compact.
18158
18159         [BZ #11558]
18160         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18161         set RES_USEVC.
18162
18163         [BZ #11634]
18164         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18165
18166         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18167
18168         [BZ #11781]
18169         * malloc/malloc.h: Declare malloc hook variables as volatile.
18170
18171         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18172         in last patch.
18173
18174         [BZ #11799]
18175         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18176         raise in the comment.
18177         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18178         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18179         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18180
18181 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18182
18183         [BZ #12811]
18184         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18185         grow the buffers more if it already has to be sufficient.
18186         (build_wcs_upper_buffer): Likewise.
18187         * posix/regexec.c (check_matching): Likewise.
18188         (clean_state_log_if_needed): Likewise.
18189         (extend_buffers): Don't enlarge buffers beyond size of the input
18190         buffer.
18191         Patches mostly by Emil Wojak <emil@wojak.eu>.
18192         * posix/bug-regex32.c: New file.
18193         * posix/Makefile (tests): Add bug-regex32.
18194
18195         * locale/findlocale.c (_nl_find_locale): Return right away if
18196         _nl_explode_name failed.
18197         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18198
18199         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18200
18201         * debug/xtrace.sh: Unify messages.
18202         * malloc/memusage.sh: Likewise.
18203
18204         [BZ #12813]
18205         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18206         time symbol from vDSO.  Substitute with vsyscall if not available.
18207         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18208         __vdso_time.
18209
18210         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18211         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18212         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18213         Add sendmmsg and internal_sendmmsg.
18214         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18215         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18216         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18217
18218         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18219         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18220         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18221
18222 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18223
18224         [BZ #12813]
18225         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18226         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18227         available.
18228         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18229         __vdso_getcpu.
18230
18231         [BZ #12814]
18232         * iconvdata/Makefile (tests): Add bug-iconv9.
18233         * iconvdata/bug-iconv9.c: New file.
18234
18235 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18236
18237         [BZ #12814]
18238         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18239
18240 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18241
18242         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18243         (struct user_regs_struct): Change intcs field back to cs.
18244
18245 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18246
18247         * po/ja.po: Update from translation team.
18248
18249 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18250
18251         [BZ #12795]
18252         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18253         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18254
18255 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18256
18257         * stdlib/longlong.h: Update from GCC.
18258
18259 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18260
18261         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18262         parameter name.
18263         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18264         Add parameter name.
18265         (__sysconf): Pass it down.
18266
18267 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18268
18269         [BZ #12671]
18270         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18271         some situations.
18272         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18273         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18274         add in in __libc_use_alloca calls.  Adjust callers.
18275         (glob): Use malloc in some situations.
18276
18277         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18278         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18279         pltexit.
18280
18281 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18282
18283         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18284         and CLOCK_BOOTTIME_ALARM.
18285
18286         [BZ #12782]
18287         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18288         is returned.
18289
18290         * string/_strerror.c (__strerror_r): Print negative errors as signed
18291         numbers.
18292
18293         [BZ #12777]
18294         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18295         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18296         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18297
18298         * configure.in: Fix typo in redirection and correct removal of test
18299         files in two cases.
18300
18301         [BZ #12788]
18302         * locale/setlocale.c (new_composite_name): Fix test to check for
18303         identical name of all categories.
18304
18305         [BZ #12792]
18306         * libio/filedoalloc.c (local_isatty): New function.
18307         (_IO_file_doallocate): Use local_isatty.
18308         * stdio-common/perror.c (perror): In case a new stream is used
18309         forward the stream error.
18310         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18311         error flag.
18312
18313 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18314
18315         [BZ #11869]
18316         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18317         alloca.
18318         * include/alloca.h (extend_alloca_account): Define.
18319
18320         [BZ #11857]
18321         * posix/regex.h: Fix comments with documentation of user-accessible
18322         fields after compilation and describe correct free'ing of pattern
18323         after re_compile_pattern.
18324         Patch by Reuben Thomas <rrt@sc3d.org>.
18325
18326 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18327
18328         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18329         and -mno-altivec to prevent the compiler from using Altivec and/or
18330         VSX instructions when the corresponding registers are not available.
18331
18332 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18333
18334         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18335
18336 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18337
18338         * libio/freopen.c (freopen): Use __dup2, not dup2.
18339         * libio/freopen64.c (freopen64): Likewise.
18340
18341 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18342
18343         [BZ #12775]
18344         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18345         * math/Makefile (tests): Add test-powl.
18346         (CFLAGS-test-powl.c): Define.
18347         * math/test-powl.c: New file.
18348
18349 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18350
18351         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18352
18353 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18354
18355         [BZ #11837]
18356         * iconvdata/gb18030.c: Update to GB18020-2005.
18357
18358 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18359
18360         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18361         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18362         Patch by Aharon Robbins <arnold@skeeve.com>.
18363
18364         [BZ #11892]
18365         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18366         on the stack.
18367
18368         [BZ #11895]
18369         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18370         through underflows.
18371
18372         [BZ #12766]
18373         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18374         point to strings before performing equality test for error_one_per_line
18375         mode.
18376
18377         [BZ #11697]
18378         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18379
18380         [BZ #11820]
18381         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18382         (struct user_fpregs_struct): Avoid __uint*_t types.
18383
18384         [BZ #6420]
18385         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18386         symbol info.  Use it instead of calling _dl_addr locally.
18387         (lock_and_info): New function.
18388         (tr_freehook): Call lock_and_info and pass symbol info as additional
18389         parameter to tr_where.
18390         (tr_mallochook): Likewise.
18391         (tr_reallochook): Likewise.
18392         (tr_memalignhook): Likewise.
18393
18394         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18395         used and couldn't be at all thread-safe.
18396
18397 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18398
18399         * libio/freopen.c (freopen): Don't close old file descriptor
18400         before the new one is opened.  Instead dup the new file descriptor
18401         to the old one after the new stream is created.
18402         * libio/freopen64.c (freopen64): Likewise.
18403         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18404         * libio/fileops.c (_IO_new_file_close_it): Handle new
18405         _IO_FLAGS2_NOCLOSE flag.
18406         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18407         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18408         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18409         _IO_FLAGS2_NOCLOSE flag.
18410         * include/unistd.h: Add hidden_proto for dup3.
18411         Define __have_dup3.
18412         * io/dup3.c: Define hidden symbol.
18413         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18414
18415         [BZ #7101]
18416         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18417         when an incomplete long option is used.
18418         * posix/tst-getopt_long1.c: New file.
18419         * posix/Makefile (tests): Add tst-getopt_long1.
18420
18421         [BZ #10138]
18422         * scripts/config.guess: Update from autoconf-2.68.
18423         * scripts/config.sub: Likewise.
18424
18425         [BZ #10157]
18426         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18427         tests into ...
18428         (has_cpuclock): ...this.  New function.
18429         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18430         macro here based on has_cpuclock code.
18431
18432         [BZ #10149]
18433         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18434         First byte (not low byte) is now always NUL.
18435         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18436
18437         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18438         Use non-cancelable interfaces.
18439
18440         [BZ #9809]
18441         * locale/iso-639.def: Add entry for Sorani.
18442
18443         [BZ #11901]
18444         * include/stdlib.h: Move include protection to the right place.
18445         Define abort_msg_s.  Declare __abort_msg with it.
18446         * stdlib/abort.c (__abort_msg): Adjust type.
18447         * assert/assert.c (__assert_fail_base): New function.  Majority
18448         of code from __assert_fail.  Allocate memory for __abort_msg with
18449         mmap.
18450         (__assert_fail): Now call __assert_fail_base.
18451         * assert/assert-perr.c: Remove bulk of implementation.  Use
18452         __assert_fail_base.
18453         * include/assert.hL Declare __assert_fail_base.
18454         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18455         mmap.
18456         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18457
18458 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18459
18460         [BZ #11952]
18461         [BZ #12453]
18462         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18463         until all modules are registered in the DTV.
18464         * elf/Makefile: Add rules to build and run tst-tls19.
18465         * elf/tst-tls19.c: New file.
18466         * elf/tst-tls19mod1.c: New file.
18467         * elf/tst-tls19mod2.c: New file.
18468         * elf/tst-tls19mod3.c: New file.
18469         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18470
18471         [BZ #12083]
18472         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18473         correctly.
18474
18475         [BZ #12601]
18476         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18477         two-byte sequence errors.
18478         * iconvdata/Makefile (tests): Add bug-iconv8.
18479         * iconvdata/bug-iconv8.c: New file.
18480
18481         [BZ #12626]
18482         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18483         buf2 definition.
18484
18485         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18486
18487         [BZ #12432]
18488         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18489         (dummy_getcfa): New function.
18490         (init): Get _Unwind_GetCFA address, use dummy if not found.
18491         (backtrace_helper): In recursion check, also check whether CFA changes.
18492         (__backtrace): Completely initialize arg.
18493
18494         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18495         storing incomplete byte sequence in state object.  Avoid testing for
18496         guaranteed too small input if we know there is enough data available.
18497
18498 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18499
18500         * Makeconfig (+link-pie): Indent.
18501         * Rules (binaries-pie): Define if $(have-fpie) and
18502         $(build-shared).
18503         (binaries-shared): Also filter out $(binaries-pie).
18504         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18505         * nscd/Makefile (others-pie): Add nscd.
18506         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18507         ($(objpfx)nscd): Remove command override.
18508         * login/Makefile (others-pie): Add pt_chown.
18509         ($(objpfx)pt_chown): Remove command override.
18510         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18511         remove command overrides.
18512
18513 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18514
18515         * libio/tst_putwc.c: Fix error messages.
18516
18517         [BZ #12724]
18518         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18519         currently writing and seek to current position when not.
18520         * libio/Makefile (tests): Add bug-fclose1.
18521         * libio/bug-fclose1.c: New file.
18522
18523 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18524
18525         [BZ #12511]
18526         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18527         don't set DF_1_NODELETE here.
18528         (do_lookup_x): When entering new entry test for copy relocation
18529         and if necessary set DF_1_NODELETE flag.
18530         * elf/tst-unique4.cc: New file.
18531         * elf/tst-unique4.h: New file.
18532         * elf/tst-unique4lib.cc: New file.
18533         * elf/Makefile: Add rules to build and run tst-unique4.
18534         Patch by Piotr Bury <pbury@goahead.com>.
18535
18536 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18537
18538         [BZ #12052]
18539         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18540
18541         [BZ #12625]
18542         * misc/mntent_r.c (addmntent): Flush the stream after the output
18543
18544         [BZ #12393]
18545         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18546         (is_trusted_path_normalize): Skip initial colon.  Append slash
18547         to empty buffer.  Duplicate is_trusted_path code but allow
18548         constructed patch to be prefix.
18549         (is_dst): Allow $ORIGIN followed by /.
18550         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18551         Correct testing of result of is_trusted_path_normalize
18552         (decompose_rpath): Fix warning.
18553
18554 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18555
18556         [BZ #11257]
18557         * grp/initgroups.c (internal_getgrouplist): When we found the service
18558         list through the initgroups entry in nsswitch.conf do not always
18559         continue on a successful lookup.  Don't always use the
18560         __nss_group_database value if it is set.
18561         * nss/nsswitch.conf (initgroups): Change action for successful db
18562         lookup to continue for compatibility.
18563
18564 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18565
18566         [BZ #11532]
18567         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18568         and CP774 modules.
18569         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18570         and CP774 modules.
18571         * iconvdata/tst-tables.sh: Likewise.
18572         * iconvdata/cp770.c: New file.
18573         * iconvdata/cp771.c: New file.
18574         * iconvdata/cp772.c: New file.
18575         * iconvdata/cp773.c: New file.
18576         * iconvdata/cp774.c: New file.
18577         * iconvdata/testdata/CP770: New file.
18578         * iconvdata/testdata/CP770..UTF8: New file.
18579         * iconvdata/testdata/CP771: New file.
18580         * iconvdata/testdata/CP771..UTF8: New file.
18581         * iconvdata/testdata/CP772: New file.
18582         * iconvdata/testdata/CP772..UTF8: New file.
18583         * iconvdata/testdata/CP773: New file.
18584         * iconvdata/testdata/CP773..UTF8: New file.
18585         * iconvdata/testdata/CP774: New file.
18586         * iconvdata/testdata/CP774..UTF8: New file.
18587
18588         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18589         END CHARMAP line.
18590         * iconvdata/gen-8bit-gap.sh: Likewise.
18591         * iconvdata/gen-8bit.sh: Likewise.
18592
18593         * locale/iso-639.def: Add ary entry.
18594
18595         [BZ #11258]
18596         * locale/C-translit.h.in: Add U20A1 transliteration.
18597
18598         [BZ #12178]
18599         * locale/iso-639.def: Add wae entry.
18600         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18601
18602         [BZ #12545]
18603         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18604         for n.
18605
18606         [BZ #12711]
18607         * locale/C-translit.h.in: Add entry for U20B9.
18608         Patch by pravin.d.s@gmail.com.
18609
18610 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18611
18612         [BZ #12713]
18613         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18614         ENAMETOOLONG use generic getcwd.
18615         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18616         in rtld.  Use *stat64.
18617         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18618         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18619         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18620         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18621         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18622         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18623         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18624         __fstatat64 macros.
18625         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18626         * dirent/rewinddir.c: Add libc_hidden_def.
18627         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18628         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18629
18630         * include/dirent.h (__alloc_dir): Add flags parameter.
18631         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18632         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18633         __alloc_dir.
18634         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18635         from fdopendir if O_CLOEXEC is already set.
18636
18637 2011-03-15  Alan Modra  <amodra@gmail.com>
18638
18639         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18640         l_tls_firstbyte_offset non-zero.  Save padding offset in
18641         l_tls_firstbyte_offset for later use.
18642         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18643         freeing static tls block.
18644
18645 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18646
18647         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18648         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18649         being defined by the kernel headers.
18650
18651 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18652
18653         [BZ #12734]
18654         * resolv/resolv.h: Define RES_NOTLDQUERY.
18655         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18656         no-tld-query and set RES_NOTLDQUERY.
18657         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18658         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18659         modern BIND to search name as TLD unless forbidden.
18660
18661 2011-05-07  Petr Baudis  <pasky@suse.cz>
18662             Ulrich Drepper  <drepper@gmail.com>
18663
18664         [BZ #12393]
18665         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18666         (is_trusted_path): ...to here.
18667         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18668         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18669         using is_trusted_path_normalize() in setuid scripts.
18670
18671 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18672
18673         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18674         __BEGIN/__END_DECLS.
18675
18676 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18677
18678         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18679         NSS_STATUS_NOTFOUND if no record was found.
18680
18681 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18682
18683         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18684         (headers-not-in-tirpc): Remove rpc/netdb.h
18685         * resolv/netdb.h: Revert last change.
18686
18687 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18688
18689         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18690         circular dependency between libgcc.a and libc.a.
18691
18692 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18693
18694         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18695         * nis/Makefile: Don't install rpcsvc/*.
18696         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18697         instead of <rpc/types.h>.
18698         (MAXHOSTNAMELEN): Define.
18699
18700 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18701
18702         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18703
18704 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18705
18706         [BZ #12714]
18707         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18708         gethostbyname4_r when IPv6 results are possible.
18709
18710 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18711
18712         [BZ #12723]
18713         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18714         _PC_PIPE_BUF handling.
18715
18716 2011-04-30  Bruno Haible  <bruno@clisp.org>
18717
18718         [BZ #12717]
18719         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18720         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18721         to 'int'.
18722         * inet/getnameinfo.c (getnameinfo): Likewise.
18723
18724 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18725
18726         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18727         to groups setting in database lookup.
18728         * nss/nsswitch.conf: Add initgroups entry.
18729
18730 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18731
18732         [BZ #12685]
18733         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18734         mode string.
18735         Patch by Eric Blake <eblake@redhat.com>.
18736
18737 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18738
18739         * sunrpc/Makefile (need-export-routines): Add svc_run.
18740         (routines): Remove svc_run.
18741         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18742         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18743         * sunrpc/svc_run.c (svc_run): Likewise.
18744         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18745
18746 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18747
18748         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18749         problem in reallocation in last patch.
18750
18751 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18752
18753         * sunrpc/Makefile: Move inclusion of Rules.
18754
18755 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18756
18757         * nss/nss_files/files-initgroups.c: New file.
18758         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18759         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18760         _nss_files_initgroups_dyn.
18761
18762 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18763
18764         * elf/elf.h (R_ARM_IRELATIVE): Define.
18765
18766 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18767
18768         * po/ru.po: Update from translation team.
18769
18770 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18771
18772         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18773         dependencies.
18774
18775 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18776
18777         [BZ #12653]
18778         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18779         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18780         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18781         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18782         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18783
18784 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18785
18786         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18787         differing bytes.
18788         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18789         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18790         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18791
18792 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18793
18794         [BZ #12420]
18795         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18796         storing it.
18797         * stdlib/bug-getcontext.c: New file.
18798         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18799
18800 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18801
18802         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18803         instructions into .machine "z9-109".
18804         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18805         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18806
18807 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18808
18809         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18810         between environment variables and auxiliary vector.
18811
18812 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18813
18814         * Makefile: Add rules to build linkobj/libc.so.
18815         * include/libc-symbols.h: Define libc_hidden_nolink.
18816         * include/rpc/auth.h: Mark functions which are to be hidden.
18817         * include/rpc/auth_des.h: Likewise.
18818         * include/rpc/auth_unix.h: Likewise.
18819         * include/rpc/clnt.h: Likewise.
18820         * include/rpc/des_crypt.h: Likewise.
18821         * include/rpc/key_prot.h: Likewise.
18822         * include/rpc/pmap_clnt.h: Likewise.
18823         * include/rpc/pmap_prot.h: Likewise.
18824         * include/rpc/pmap_rmt.h: Likewise.
18825         * include/rpc/rpc_msg.h: Likewise.
18826         * include/rpc/svc.h: Likewise.
18827         * include/rpc/svc_auth.h: Likewise.
18828         * include/rpc/xdr.h: Likewise.
18829         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18830         * nss/Makefile: Likewise.
18831         * sunrpc/Makefile: Don't install headers.  Build library with normal
18832         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18833         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18834         for the compat linking library.  Remove use of INTDEF/INTUSE.
18835         * sunrpc/auth_none.c: Likewise.
18836         * sunrpc/auth_unix.c: Likewise.
18837         * sunrpc/authdes_prot.c: Likewise.
18838         * sunrpc/authuxprot.c: Likewise.
18839         * sunrpc/clnt_gen.c: Likewise.
18840         * sunrpc/clnt_perr.c: Likewise.
18841         * sunrpc/clnt_raw.c: Likewise.
18842         * sunrpc/clnt_simp.c: Likewise.
18843         * sunrpc/clnt_tcp.c: Likewise.
18844         * sunrpc/clnt_udp.c: Likewise.
18845         * sunrpc/clnt_unix.c: Likewise.
18846         * sunrpc/des_crypt.c: Likewise.
18847         * sunrpc/des_soft.c: Likewise.
18848         * sunrpc/get_myaddr.c: Likewise.
18849         * sunrpc/key_call.c: Likewise.
18850         * sunrpc/key_prot.c: Likewise.
18851         * sunrpc/netname.c: Likewise.
18852         * sunrpc/pm_getmaps.c: Likewise.
18853         * sunrpc/pm_getport.c: Likewise.
18854         * sunrpc/pmap_clnt.c: Likewise.
18855         * sunrpc/pmap_prot.c: Likewise.
18856         * sunrpc/pmap_prot2.c: Likewise.
18857         * sunrpc/pmap_rmt.c: Likewise.
18858         * sunrpc/publickey.c: Likewise.
18859         * sunrpc/rpc_cmsg.c: Likewise.
18860         * sunrpc/rpc_common.c: Likewise.
18861         * sunrpc/rpc_dtable.c: Likewise.
18862         * sunrpc/rpc_prot.c: Likewise.
18863         * sunrpc/rpc_thread.c: Likewise.
18864         * sunrpc/rtime.c: Likewise.
18865         * sunrpc/svc.c: Likewise.
18866         * sunrpc/svc_auth.c: Likewise.
18867         * sunrpc/svc_authux.c: Likewise.
18868         * sunrpc/svc_raw.c: Likewise.
18869         * sunrpc/svc_run.c: Likewise.
18870         * sunrpc/svc_simple.c: Likewise.
18871         * sunrpc/svc_tcp.c: Likewise.
18872         * sunrpc/svc_udp.c: Likewise.
18873         * sunrpc/svc_unix.c: Likewise.
18874         * sunrpc/svcauth_des.c: Likewise.
18875         * sunrpc/xcrypt.c: Likewise.
18876         * sunrpc/xdr.c: Likewise.
18877         * sunrpc/xdr_array.c: Likewise.
18878         * sunrpc/xdr_float.c: Likewise.
18879         * sunrpc/xdr_intXX_t.c: Likewise.
18880         * sunrpc/xdr_mem.c: Likewise.
18881         * sunrpc/xdr_rec.c: Likewise.
18882         * sunrpc/xdr_ref.c: Likewise.
18883         * sunrpc/xdr_sizeof.c: Likewise.
18884         * sunrpc/xdr_stdio.c: Likewise.
18885
18886 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18887
18888         [BZ #12650]
18889         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18890         * sysdeps/ia64/dl-tls.h: Likewise.
18891         * sysdeps/powerpc/dl-tls.h: Likewise.
18892         * sysdeps/s390/dl-tls.h: Likewise.
18893         * sysdeps/sh/dl-tls.h: Likewise.
18894         * sysdeps/sparc/dl-tls.h: Likewise.
18895         * sysdeps/x86_64/dl-tls.h: Likewise.
18896         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18897
18898 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18899
18900         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18901         rpath element also skip the following colon.
18902         (expand_dynamic_string_token): Add is_path parameter and pass
18903         down to DL_DST_REQUIRED and _dl_dst_substitute.
18904         (decompose_rpath): Call expand_dynamic_string_token with
18905         non-zero is_path.  Ignore empty rpaths.
18906         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18907         with zero is_path.
18908
18909 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18910
18911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18912         Make cancelable.
18913
18914 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18915
18916         [BZ #12655]
18917         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18918         Patch by Filipe David Manana <fdmanana@apache.org>.
18919
18920 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18921
18922         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18923         Maintain aligned stack.
18924         (CHECK_RSP): Remove unused macro.
18925
18926 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18927
18928         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18929         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18930
18931 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18932
18933         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18934
18935         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18936
18937 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18938
18939         [BZ #12518]
18940         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18941         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18942         * sysdeps/x86_64/memmove.c: New file.
18943         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18944         (memcpy): Renamed to ...
18945         (__new_memcpy): This.
18946         (memcpy): Provide GLIBC_2_14 memcpy.
18947         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18948         (memcpy): Provide GLIBC_2_2_5 memcpy.
18949
18950 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18951
18952         [BZ #12631]
18953         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18954
18955 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18956
18957         * misc/syncfs.c: New file.
18958         * misc/Makefile (routines): Add syncfs.
18959         * posix/unistd.h: Declare syncfs.
18960         * sysdeps/unix/syscalls.list: Add syncfs.
18961
18962 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18963
18964         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18965         open_by_handle_at.
18966         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18967         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18968         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18969         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18970         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18971         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18972         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18973
18974 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18975
18976         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
18977         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18978         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
18979         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18980         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18981         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18982         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18983
18984         * io/Makefile: Compile fallocate.c, fallocate64.c, and
18985         sync_file_range.c with -fexceptions.
18986         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
18987         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
18988         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18989         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18990         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
18991         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
18992         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
18993         sync_file_range as cancellation point
18994         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
18995         now a wrapper around __call_sync_file_range with cancellation handling.
18996         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
18997         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
18998         function name to __call_sync_file_range.
18999         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19000         Add call_sync_file_range.
19001
19002 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19003
19004         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19005         bits/timex.h.
19006
19007 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19008
19009         * iconv/iconv.h: Fix typo in comment.
19010         * io/fcntl.h: Likewise.
19011         * libio/stdio.h: Likewise.
19012         * posix/spawn.h: Likewise.
19013         * posix/unistd.h: Likewise.
19014         * stdlib/stdlib.h: Likewise.
19015         * time/time.h: Likewise.
19016         * wcsmbs/wchar.h: Likewise.
19017
19018         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19019         open_by_handle): Add.
19020         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19021         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19022         Augment a few comments.
19023         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19024         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19025         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19026         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19027         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19028         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19029         open_by_handle.
19030
19031         * io/fcntl.h (AT_EMPTY_PATH): Define.
19032
19033 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19034
19035         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19036         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19037         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19038         to...
19039         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19040         * Versions.def: Add GLIBC_2.14.
19041         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19042         Export.
19043
19044 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19045
19046         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19047         round counter.
19048         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19049
19050 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19051
19052         [BZ #12597]
19053         * string/test-strncmp.c (do_page_test): New function.
19054         (check2): Likewise.
19055         (test_main): Call check2.
19056         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19057
19058 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19059
19060         [BZ #12587]
19061         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19062         Handle cache information in CPU leaf 4.
19063         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19064
19065 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19066
19067         [BZ #12583]
19068         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19069         character representation.
19070         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19071
19072 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19073
19074         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19075         END(__isnan) to END(__isnanf) to match function entry point/label
19076         EALIGN(__isnanf,...).
19077
19078 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19079
19080         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19081
19082 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19083
19084         [BZ #12510]
19085         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19086         copy from the symbol referenced in the relocation to initialize the
19087         used variable.
19088         Patch by Piotr Bury <pbury@goahead.com>.
19089         * elf/Makefile: Add rules to build and tst-unique3.
19090         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19091         * elf/tst-unique3.cc: New file.
19092         * elf/tst-unique3.h: New file.
19093         * elf/tst-unique3lib.cc: New file.
19094         * elf/tst-unique3lib2.cc: New file.
19095
19096         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19097
19098 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19099
19100         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19101         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19102         to _start.
19103
19104 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19105
19106         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19107         to-be-loaded object along a path to loader is ld.so.
19108
19109 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19110             Ulrich Drepper  <drepper@gmail.com>
19111
19112         * sysdeps/x86_64/memset.S: After aligning destination, code
19113         branches to different locations depending on the value of
19114         misalignment, when multiarch is enabled. Fix this.
19115
19116 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19117
19118         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19119         Set _x86_64_preferred_memory_instruction for AMD processsors.
19120         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19121         Set bit_Prefer_SSE_for_memop for AMD processors.
19122
19123 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19124
19125         * libio/fmemopen.c (fmemopen): Optimize a bit.
19126
19127 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19128
19129         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19130
19131 2011-03-03  Roland McGrath  <roland@redhat.com>
19132
19133         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19134
19135 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19136
19137         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19138         __bzero_ultra1 instead of __memset_ultra1.
19139
19140 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19141             Ulrich Drepper  <drepper@gmail.com>
19142
19143         [BZ #12509]
19144         * include/link.h (struct link_map): Add l_orig_initfini.
19145         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19146         returning unsuccessfully.
19147         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19148         close of a file loaded at startup, restore the original l_initfini
19149         list.
19150         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19151         list, store the pointer.
19152         * elf/Makefile ($(objpfx)noload-mem): New rule.
19153         (noload-ENV): Define.
19154         (tests): Add $(objpfx)noload-mem.
19155         * elf/noload.c: Include <memcheck.h>.
19156         (main): Call mtrace.  Close all opened handles.
19157
19158 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19159
19160         [BZ #12454]
19161         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19162         dependencies are missing.
19163
19164 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19165
19166         Fix __if_freereq crash: Unlike the generic version which uses free,
19167         Hurd needs munmap.
19168         * sysdeps/mach/hurd/ifreq.h: New file.
19169
19170 2011-01-27  Petr Baudis  <pasky@suse.cz>
19171             Ulrich Drepper  <drepper@gmail.com>
19172
19173         [BZ 12445]#
19174         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19175         to extend_alloca().
19176         * stdio-common/bug23.c: New file.
19177         * stdio-common/Makefile (tests): Add bug23.
19178
19179 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19180             Ulrich Drepper  <drepper@gmail.com>
19181
19182         [BZ #12489]
19183         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19184         before performing relro protection.  At old place add assertion
19185         to make sure nothing changed.
19186
19187 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19188             Glauber de Oliveira Costa  <glommer@gmail.com>
19189
19190         * elf/elf.h: Add new ARM TLS relocs.
19191
19192 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19193
19194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19195         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19196         cast from r3.
19197         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19198         'tests' variable.
19199         * sysdeps/wordsize-64/tst-writev.c: New file.
19200
19201 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19202
19203         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19204         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19205         insns in _dl_start to prevent a TOC reference before relocs are
19206         resolved.
19207
19208 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19209
19210         [BZ #12469]
19211         * Makeconfig: Remove RANLIB definition.
19212         * Makerules: Don't use RANLIB.
19213         * aclocal.m4: Remove ranlib test.
19214         * configure.in: No need to check for ranlib.
19215         * elf/rtld-Rules: Don't use RANLIB.
19216
19217 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19218
19219         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19220         protection macro.
19221         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19222         inclusion protection macro.
19223
19224         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19225         SIGRTMIN and SIGRTMAX and print information in that case only when
19226         SIGRTMIN is defined.
19227
19228 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19229
19230         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19231         arginfo fn returning -1.
19232
19233         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19234         and thousands string is zero terminated.
19235
19236 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19237
19238         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19239         sysdeps/unix/sysv/linux/bits/socket.h.
19240
19241 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19242
19243         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19244         (__CPU_COUNT): Remove old macros.
19245         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19246         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19247         (__CPU_ALLOC, __CPU_FREE): Add macros.
19248         (__sched_cpualloc, __sched_cpufree): Add declarations.
19249
19250 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19251
19252         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19253         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19254         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19255         (readdhstai): Return value of addhstaiX call.
19256         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19257         (addgrbyX): Return value returned by cache_addgr.
19258         (readdgrbyname): Return value returned by addgrbyX.
19259         (readdgrbygid): Likewise.
19260         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19261         (addpwbyX): Return value returned by cache_addpw.
19262         (readdpwbyname): Return value returned by addhstbyX.
19263         (readdpwbyuid): Likewise.
19264         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19265         (addservbyX): Return value returned by cache_addserv.
19266         (readdservbyname): Return value returned by addservbyX:
19267         (readdservbyport): Likewise.
19268         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19269         (addhstbyX): Return value returned by cache_addhst.
19270         (readdhstbyname): Return value returned by addhstbyX.
19271         (readdhstbyaddr): Likewise.
19272         (readdhstbynamev6): Likewise.
19273         (readdhstbyaddrv6): Likewise.
19274         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19275         (readdinitgroups): Return value returned by addinitgroupsX.
19276         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19277         (prune_cache): Keep track of timeout value of re-added entries.
19278         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19279         * nscd/nscd.h: Adjust prototypes of readd* functions.
19280
19281 2011-02-04  Roland McGrath  <roland@redhat.com>
19282
19283         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19284         (nis_stats): Likewise.
19285         * nis/nis_modify.c (nis_modify): Likewise.
19286         * nis/nis_remove.c (nis_remove): Likewise.
19287         * nis/nis_add.c (nis_add): Likewise.
19288
19289         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19290
19291         * posix/fnmatch_loop.c: Add some consts.
19292
19293         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19294
19295 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19296
19297         [BZ #12460]
19298         * config.make.in (config-cflags-novzeroupper): Define.
19299         * configure.in: Substitute libc_cv_cc_novzeroupper.
19300         * elf/Makefile (AVX-CFLAGS): Define.
19301         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19302         (CFLAGS-tst-auditmod4a.c): Likewise.
19303         (CFLAGS-tst-auditmod4b.c): Likewise.
19304         (CFLAGS-tst-auditmod6b.c): Likewise.
19305         (CFLAGS-tst-auditmod6c.c): Likewise.
19306         (CFLAGS-tst-auditmod7b.c): Likewise.
19307         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19308
19309 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19310
19311         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19312         function to the callback.
19313         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19314
19315 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19316
19317         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19318         of errno.
19319
19320 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19321
19322         [BZ #11724]
19323         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19324         of constructors.
19325         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19326         of destructors.
19327         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19328
19329         [BZ #11724]
19330         * elf/Makefile: Add rules to build and run new test.
19331         * elf/tst-initorder.c: New file.
19332         * elf/tst-initorder.exp: New file.
19333         * elf/tst-initordera1.c: New file.
19334         * elf/tst-initordera2.c: New file.
19335         * elf/tst-initordera3.c: New file.
19336         * elf/tst-initordera4.c: New file.
19337         * elf/tst-initorderb1.c: New file.
19338         * elf/tst-initorderb2.c: New file.
19339         * elf/tst-order-a1.c: New file.
19340         * elf/tst-order-a2.c: New file.
19341         * elf/tst-order-a3.c: New file.
19342         * elf/tst-order-a4.c: New file.
19343         * elf/tst-order-b1.c: New file.
19344         * elf/tst-order-b2.c: New file.
19345         * elf/tst-order-main.c: New file.
19346         New test case by George Gensure <werkt0@gmail.com>.
19347
19348 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19349
19350         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19351         decoding ACE if AI_CANONIDN.
19352
19353 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19354
19355         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19356
19357 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19358
19359         * version.h (RELEASE): Bump for 2.13 release.
19360         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19361
19362         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19363
19364         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19365         MADV_NOHUGEPAGE.
19366         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19367         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19368         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19369         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19370         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19371         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19372
19373         * posix/getconf.c: Update copyright year.
19374         * catgets/gencat.c: Likewise.
19375         * csu/version.c: Likewise.
19376         * debug/catchsegv.sh: Likewise.
19377         * debug/xtrace.sh: Likewise.
19378         * elf/ldconfig.c: Likewise.
19379         * elf/ldd.bash.in: Likewise.
19380         * elf/sprof.c (print_version): Likewise.
19381         * iconv/iconv_prog.c: Likewise.
19382         * iconv/iconvconfig.c: Likewise.
19383         * locale/programs/locale.c: Likewise.
19384         * locale/programs/localedef.c: Likewise.
19385         * malloc/memusage.sh: Likewise.
19386         * malloc/mtrace.pl: Likewise.
19387         * nscd/nscd.c (print_version): Likewise.
19388         * nss/getent.c: Likewise.
19389
19390         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19391         PF_CAIF, and PF_ALG.
19392         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19393
19394 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19395
19396         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19397         (modules-names): Use them.
19398         (ifunc-test-modules, ifunc-pie-tests): Define.
19399         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19400         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19401         (test-extras): Likewise.
19402         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19403         $(compile-command.c).
19404         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19405         (all-built-dso): Define.
19406         (check-textrel.out, check-execstack.out): Depend on it.
19407
19408         * configure.in: Don't override --enable-multi-arch.
19409
19410 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19411
19412         [BZ #6812]
19413         * nscd/hstcache.c (tryagain): Define.
19414         (cache_addhst): Return tryagain not notfound for temporary errors.
19415         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19416         failed.
19417
19418 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19419
19420         [BZ #10563]
19421         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19422         to make the syscall.
19423         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19424
19425         [BZ #12378]
19426         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19427         and fall back to matching as normal character if the string ends before
19428         the matching ']' is found.  This is what POSIX requires.
19429         * posix/testfnm.c: Adjust test result.
19430         * posix/globtest.sh: Adjust test result.  Add new test.
19431         * posix/tst-fnmatch.input: Likewise.
19432         * posix/tst-fnmatch2.c: Add new test.
19433
19434 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19435
19436         * elf/Makefile (check-execstack): Revert last change.  Depend on
19437         check-execstack.h.
19438         (check-execstack.h): New target.
19439         (generated): Add check-execstack.h.
19440         * elf/check-execstack.c: Include "check-execstack.h".
19441         (main): Revert last change.
19442         (handle_file): Return zero if GNU_STACK is absent and
19443         DEFAULT_STACK_PERMS doesn't include PF_X.
19444
19445 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19446
19447         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19448         in child fails because the descriptor is already closed.
19449         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19450         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19451         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19452
19453         [BZ #12397]
19454         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19455         syscall.
19456
19457         [BZ #10484]
19458         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19459         temporary buffer used to handle multi lookups locally.
19460         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19461
19462 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19463
19464         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19465         loader is ld.so.
19466
19467 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19468
19469         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19470         alignment for SSE2.
19471
19472 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19473
19474         [BZ #12394]
19475         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19476         characters.  When rounding increased number of integer digits recompute
19477         number of groups.
19478         * stdio-common/tst-grouping.c: New file.
19479         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19480
19481 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19482
19483         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19484         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19485
19486         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19487         void.
19488         * bits/select.h: Likewise.
19489
19490 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19491
19492         * po/ja.po: Update from translation team.
19493
19494 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19495
19496         [BZ #11155]
19497         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19498         implementation just like for lxstat, fxstatat, et al.
19499
19500 2010-12-27  Jim Meyering  <meyering@redhat.com>
19501
19502         [BZ #12348]
19503         * posix/regexec.c (build_trtable): Return failure indication upon
19504         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19505
19506 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19507
19508         [BZ #12201]
19509         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19510         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19511         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19512         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19513
19514         [BZ #12207]
19515         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19516
19517         [BZ #12204]
19518         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19519         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19520
19521 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19522
19523         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19524         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19525         script has SORT_BY_INIT_PRIORITY.
19526         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19527         NO_CTORS_DTORS_SECTIONS is defined.
19528         * elf/soinit.c: Likewise.
19529         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19530         NO_CTORS_DTORS_SECTIONS is defined.
19531         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19532         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19533         * sysdeps/sh/init-first.c: Likewise.
19534         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19535
19536 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19537
19538         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19539         always use the slow path.
19540
19541 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19542
19543         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19544         similar rule which adds the sysdep directories to the header search in
19545         order to pick up the correct platform stackinfo.h.
19546         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19547         perform test if it is, otherwise return successfully without testing.
19548         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19549         DEFAULT_STACK_PERMS define in stackinfo.h.
19550         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19551         defined in stackinfo.h.
19552         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19553         DEFAULT_STACK_PERMS defined in stackinfo.h.
19554         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19555         * sysdeps/ia64/stackinfo.h: Likewise.
19556         * sysdeps/s390/stackinfo.h: Likewise.
19557         * sysdeps/sh/stackinfo.h: Likewise.
19558         * sysdeps/sparc/stackinfo.h: Likewise.
19559         * sysdeps/x86_64/stackinfo.h: Likewise.
19560         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19561         PF_X for powerpc64.  Retain PF_X for powerpc32.
19562
19563 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19564
19565         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19566         accurately.
19567         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19568         GETDENTS_64BIT_ALIGNED.
19569
19570 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19571
19572         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19573
19574 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19575
19576         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19577         _GNU_SOURCE.
19578
19579         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19580         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19581         Remove __restrict.
19582         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19583         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19584
19585 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19586
19587         [BZ #11655]
19588         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19589         are initialized.
19590
19591 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19592
19593         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19594
19595 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19596
19597         * po/it.po: Update from translation team.
19598
19599 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19600
19601         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19602         unused codes.
19603
19604 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19605
19606         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19607
19608 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19609
19610         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19611         specially.
19612         (gaih_getanswer_slice): Likewise.
19613
19614 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19615
19616         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19617
19618 2010-05-31  Petr Baudis  <pasky@suse.cz>
19619
19620         [BZ #11149]
19621         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19622         silently even in the chroot mode.
19623
19624 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19625
19626         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19627         last patch a bit.  Pretty printing
19628
19629 2010-05-31  Petr Baudis <pasky@suse.cz>
19630
19631         [BZ #10085]
19632         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19633         initialization of skip_initgroups_dyn.
19634
19635 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19636
19637         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19638         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19639
19640 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19641
19642         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19643
19644 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19645
19646         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19647         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19648         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19649         ($(objpfx)tst-fnmatch-mem): New rule.
19650         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19651         * posix/tst-fnmatch.c (main): Call mtrace.
19652
19653 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19654
19655         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19656         Support Intel processor model 6 and model 0x2c.
19657
19658 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19659
19660         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19661           signed comparison.
19662
19663 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19664
19665         [BZ #12205]
19666         * string/test-strncasecmp.c (check_result): New function.
19667         (do_one_test): Use it.
19668         (check1): New function.
19669         (test_main): Use it.
19670         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19671         Support strcasecmp and strncasecmp.
19672
19673 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19674
19675         [BZ #12194]
19676         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19677         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19678
19679 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19680
19681         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19682         IFUNC support.
19683         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19684         memset-x86-64.
19685         * sysdeps/x86_64/multiarch/bzero.S: New file.
19686         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19687         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19688         * sysdeps/x86_64/multiarch/memset.S: New file.
19689         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19690         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19691         Set bit_Prefer_SSE_for_memop for Intel processors.
19692         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19693         Define.
19694         (index_Prefer_SSE_for_memop): Define.
19695         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19696
19697 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19698
19699         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19700         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19701
19702 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19703
19704         [BZ #12191]
19705         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19706         (__x86_64_raw_data_cache_size_half): Likewise.
19707         (__x86_64_raw_shared_cache_size): Likewise.
19708         (__x86_64_raw_shared_cache_size_half): Likewise.
19709
19710         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19711         (__x86_64_raw_data_cache_size_half): Likewise.
19712         (__x86_64_raw_shared_cache_size): Likewise.
19713         (__x86_64_raw_shared_cache_size_half): Likewise.
19714         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19715         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19716         and __x86_64_raw_shared_cache_size_half.  Round
19717         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19718         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19719         to multiple of 256 bytes.
19720
19721 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19722
19723         [BZ #12167]
19724         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19725         of inacessible symlinks.  Verify result of symlink before returning it.
19726         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19727         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19728
19729 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19730
19731         * math/math.h (isinf): Fix typo in comment.
19732
19733 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19734
19735         * po/da.po: Update from translation team.
19736
19737 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19738
19739         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19740         is added to the list.
19741
19742 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19743             Ulrich Drepper  <drepper@gmail.com>
19744
19745         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19746         the global list here.  Move code to...
19747         (_dl_add_to_namespace_list): ...here.  New function.
19748         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19749         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19750         * elf/dl-load.c (lose): Don't remove the element from the list.
19751         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19752         (_dl_map_object): Likewise.
19753
19754 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19755
19756         [BZ #12159]
19757         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19758         into all bytes of SSE register.
19759         Patch by Richard Li <richardpku@gmail.com>.
19760
19761 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19762
19763         [BZ #12140]
19764         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19765         perturbing.
19766
19767 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19768
19769         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19770         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19771         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19772         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19774         submachine.
19775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19776
19777 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19778
19779         * include/dlfcn.h (__RTLD_SECURE): Define.
19780         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19781         mode & __RTLD_SECURE instead.
19782         (open_path): Rename preloaded parameter to secure.
19783         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19784         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19785         * elf/dl-deps.c (openaux): Likewise.
19786         * elf/rtld.c (struct map_args): Remove is_preloaded.
19787         (map_doit): Don't use it.
19788         (dl_main): Likewise.
19789         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19790         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19791
19792 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19793
19794         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19795         (sysd-rules-targets): Remove duplicates.
19796         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19797         rtld-%.$o dependency.
19798
19799 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19800
19801         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19802         _dl_map_object do it.
19803
19804 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19805
19806         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19807         fast fma builtins, define the macros in the C99 standard.
19808         (FP_FAST_FMAF): Likewise.
19809         (FP_FAST_FMAL): Likewise.
19810         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19811
19812         * bits/mathdef.h: Update copyright year.
19813         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19814
19815 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19816
19817         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19818         builtins, define the macros in the C99 standard.
19819         (FP_FAST_FMAF): Likewise.
19820         (FP_FAST_FMAL): Likewise.
19821         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19822         multiply/add.
19823         (FP_FAST_FMAF): Likewise.
19824
19825 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19826
19827         [BZ #3268]
19828         * math/libm-test.inc (fma_test): Some new testcases.
19829         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19830         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19831         y and infinite z.  Do multiplication by C already in long double.
19832         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19833         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19834         y and infinite z.  Do bitwise or of inexact bit into u.d.
19835         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19836         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19837         * sysdeps/i386/fpu/s_fma.S: Removed.
19838         * sysdeps/i386/fpu/s_fmal.S: Removed.
19839
19840 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19841
19842         [BZ #3268]
19843         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19844         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19845         computation is not scheduled after fetestexcept.  Fix value
19846         of minimum denormal long double.
19847
19848 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19849
19850         [BZ #3268]
19851         * math/libm-test.inc (fma_test): Add some more tests.
19852         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19853         correctly.
19854
19855 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19856
19857         * scripts/data/localplt-s390-linux-gnu.data: New file.
19858         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19859
19860 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19861
19862         [BZ #3268]
19863         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19864         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19865         instead of dbl-64.
19866         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19867         inlines.
19868         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19869         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19870         if one of x and y is very large and the other is subnormal.
19871         * sysdeps/s390/fpu/s_fmaf.c: New file.
19872         * sysdeps/s390/fpu/s_fma.c: New file.
19873         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19874         * sysdeps/powerpc/fpu/s_fma.S: New file.
19875         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19876         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19877         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19878
19879 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19880
19881         [BZ #3268]
19882         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19883         fma tests.
19884         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19885         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19886         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19887         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19888         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19889         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19890         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19891
19892 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19893
19894         [BZ #12078]
19895         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19896         * posix/bug-regex31.input: Add test case.
19897
19898 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19899
19900         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19901         * posix/bug-regex31.input: New file.
19902
19903         [BZ #12078]
19904         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19905         (parse_sub_exp): Fix last change, use postorder.
19906
19907         * posix/bug-regex31.c: New file.
19908         * posix/Makefile: Add rules to build and run bug-regex31.
19909
19910         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19911
19912         [BZ #12078]
19913         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19914
19915         [BZ #12108]
19916         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19917         to have entries in sys_siglist.
19918
19919         [BZ #12093]
19920         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19921         be NULL.
19922
19923 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19924
19925         [BZ #3268]
19926         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19927         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19928         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19929         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19930         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19931         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19932         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19933         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19934         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19935         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19936         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19937         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19938         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19939         * math/ftestexcept.c (fetestexcept): Likewise.
19940         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19941         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19942         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19943         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19944         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19945         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19946         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19947
19948 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19949
19950         [BZ #12107]
19951         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19952         newline.
19953
19954 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19955
19956         * string/bug-strstr1.c: New file.
19957         * string/Makefile: Add rules to build and run bug-strstr1.
19958
19959 2010-10-05  Eric Blake  <eblake@redhat.com>
19960
19961         [BZ #12092]
19962         * string/str-two-way.h (two_way_long_needle): Always clear memory
19963         when skipping input due to the shift table.
19964
19965 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19966
19967         [BZ #12005]
19968         * malloc/mcheck.c: Handle large requests.
19969
19970         [BZ #12077]
19971         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19972         for strncmp and strncasecmp.
19973         * string/stratcliff.c: Add tests for strcmp and strncmp.
19974         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
19975
19976 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19977
19978         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
19979         __set_fpscr.
19980
19981 2010-09-30  Andreas Jaeger  <aj@suse.de>
19982
19983         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
19984         (CGROUP_SUPER_MAGIC): Define.
19985         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19986         Handle btrfs and cgroup file systems.
19987         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19988         Likewise.
19989
19990 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
19991
19992         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
19993         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
19994
19995 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19996
19997         [BZ #12067]
19998         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
19999         trying to locate the ELF header.
20000
20001 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20002
20003         [BZ #11611]
20004         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20005         Mask out sign-bit copies when constructing f_fsid.
20006
20007 2010-09-24  Petr Baudis <pasky@suse.cz>
20008
20009         * debug/stack_chk_fail_local.c: Add missing licence exception.
20010         * debug/warning-nop.c: Likewise.
20011
20012 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20013
20014         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20015         implementing getdents64 using getdents syscall, set d_type if
20016         __ASSUME_GETDENTS32_D_TYPE.
20017
20018 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20019
20020         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20021         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20022
20023 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20024
20025         [BZ #12037]
20026         * posix/unistd.h: Undo change of feature selection for ftruncate from
20027         2010-01-11.
20028
20029 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20030
20031         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20032         detection.
20033
20034 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20035
20036         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20037         fanotify_mark.
20038         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20039
20040 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20041
20042         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20043         variables after CHECK_SP call.
20044         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20045
20046 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20047             Ulrich Drepper  <drepper@redhat.com>
20048
20049         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20050         re-relocationg ld.so.
20051         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20052         _dl_init_paths call.
20053         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20054         here anymore.
20055
20056 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20057
20058         * resolv/res_init.c (__res_vinit): Count the default server we added.
20059
20060 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20061             Ulrich Drepper  <drepper@redhat.com>
20062
20063         [BZ #11968]
20064         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20065         (____longjmp_chk): Use %ebx for saving value across system call.
20066         Add unwind info.
20067
20068 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20069
20070         * manual/Makefile: Don't mix pattern rules with normal rules.
20071
20072 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20073
20074         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20075         operation.
20076         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20077         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20078         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20079         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20080         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20081         Likewise.
20082
20083 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20084
20085         [BZ #11979]
20086         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20087         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20088
20089 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20090
20091         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20092         * sysdeps/x86_64/addmul_1.S: Likewise.
20093         * sysdeps/x86_64/lshift.S: Likewise.
20094         * sysdeps/x86_64/mul_1.S: Likewise.
20095         * sysdeps/x86_64/rshift.S: Likewise.
20096         * sysdeps/x86_64/sub_n.S: Likewise.
20097         * sysdeps/x86_64/submul_1.S: Likewise.
20098
20099 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20100
20101         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20102         Define __sched_param instead of SCHED_* and sched_param when
20103         <bits/sched.h> is included with __need_schedparam defined.
20104         * bits/sched.h [__need_schedparam]
20105         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20106         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20107         (__defined_schedparam): Define to 1.
20108         (__sched_param): New structure, identical to sched_param.
20109         (__need_schedparam): Undefine.
20110
20111 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20112
20113         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20114         (epoll_create1): Declare.
20115
20116         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20117
20118 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20119
20120         [BZ #7066]
20121         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20122         shifting retval into place.
20123
20124 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20125
20126         * nis/rpcsvc/nis.h: Update copyright notice.
20127         * nis/rpcsvc/nis.x: Likewise.
20128         * nis/rpcsvc/nis_callback.h: Likewise.
20129         * nis/rpcsvc/nis_callback.x: Likewise.
20130         * nis/rpcsvc/nis_object.x: Likewise.
20131         * nis/rpcsvc/nis_tags.h: Likewise.
20132         * nis/rpcsvc/yp.h: Likewise.
20133         * nis/rpcsvc/yp.x: Likewise.
20134         * nis/rpcsvc/ypupd.h: Likewise.
20135         * nis/yp_xdr.c: Likewise.
20136         * nis/ypupdate_xdr.c: Likewise.
20137
20138         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20139         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20140         (pmap_getport): Use __libc_rpc_getport.
20141         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20142         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20143         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20144
20145 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20146
20147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20148         fanotify_mark.
20149
20150 2010-08-27  Roland McGrath  <roland@redhat.com>
20151
20152         * sysdeps/i386/i686/multiarch/Makefile
20153         (CFLAGS-varshift.c): New variable.
20154
20155 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20156
20157         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20158         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20159
20160         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20161
20162         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20163
20164 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20165
20166         * sysdeps/x86_64/strlen.S: Unroll the loop.
20167         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20168         strlen-sse2 strlen-sse2-bsf.
20169         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20170         __strlen_no_bsf if bit_Slow_BSF is set.
20171         (__strlen_sse42): Removed.
20172         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20173         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20174
20175 2010-08-25  Roland McGrath  <roland@redhat.com>
20176
20177         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20178         * sysdeps/x86_64/multiarch/varshift.c: New file.
20179         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20180         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20181         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20182         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20183
20184 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20185
20186         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20187         strlen-sse2 strlen-sse2-bsf.
20188         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20189         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20190         (__strlen_sse2): Removed.
20191         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20192         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20193         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20194         bit_Slow_BSF for Atom.
20195         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20196         (index_Slow_BSF): Define.
20197         (HAS_SLOW_BSF): Define.
20198
20199 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20200
20201         [BZ #10851]
20202         * resolv/res_init.c (__res_vinit): When no server address at all
20203         is given default to loopback.
20204
20205 2010-08-24  Roland McGrath  <roland@redhat.com>
20206
20207         * configure.in: Remove config-name.h generation.
20208         * configure: Regenerated.
20209         * config-name.in: File removed.
20210         * scripts/config-uname.sh: New file.
20211         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20212         ($(objdir)config-name.h): New target.
20213
20214         * sunrpc/rpc_parse.h: Avoid nested comment.
20215
20216 2010-08-24  Richard Henderson  <rth@redhat.com>
20217             Ulrich Drepper  <drepper@redhat.com>
20218             H.J. Lu  <hongjiu.lu@intel.com>
20219
20220         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20221         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20222         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20223         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20224         _mm_alignr_epi8 with _mm_loadu_si128.
20225         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20226         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20227         (__m128i_shift_right): Removed.
20228         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20229         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20230         * sysdeps/x86_64/multiarch/varshift.h: New file.
20231         * sysdeps/x86_64/multiarch/varshift.S: New file.
20232
20233 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20234
20235         * configure.in: Move assembler checks to before sysdep dir checking.
20236
20237 2010-08-20  Petr Baudis  <pasky@suse.cz>
20238
20239         * LICENSES: Sync the sunrpc license.
20240
20241 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20242
20243         * sunrpc/auth_des.c: Update copyright notice once again.
20244         * sunrpc/auth_none.c: Likewise.
20245         * sunrpc/auth_unix.c: Likewise.
20246         * sunrpc/authdes_prot.c: Likewise.
20247         * sunrpc/authuxprot.c: Likewise.
20248         * sunrpc/bindrsvprt.c: Likewise.
20249         * sunrpc/clnt_gen.c: Likewise.
20250         * sunrpc/clnt_perr.c: Likewise.
20251         * sunrpc/clnt_raw.c: Likewise.
20252         * sunrpc/clnt_simp.c: Likewise.
20253         * sunrpc/clnt_tcp.c: Likewise.
20254         * sunrpc/clnt_udp.c: Likewise.
20255         * sunrpc/clnt_unix.c: Likewise.
20256         * sunrpc/des_crypt.c: Likewise.
20257         * sunrpc/des_soft.c: Likewise.
20258         * sunrpc/get_myaddr.c: Likewise.
20259         * sunrpc/getrpcport.c: Likewise.
20260         * sunrpc/key_call.c: Likewise.
20261         * sunrpc/key_prot.c: Likewise.
20262         * sunrpc/openchild.c: Likewise.
20263         * sunrpc/pm_getmaps.c: Likewise.
20264         * sunrpc/pm_getport.c: Likewise.
20265         * sunrpc/pmap_clnt.c: Likewise.
20266         * sunrpc/pmap_prot.c: Likewise.
20267         * sunrpc/pmap_prot2.c: Likewise.
20268         * sunrpc/pmap_rmt.c: Likewise.
20269         * sunrpc/rpc/auth.h: Likewise.
20270         * sunrpc/rpc/auth_unix.h: Likewise.
20271         * sunrpc/rpc/clnt.h: Likewise.
20272         * sunrpc/rpc/des_crypt.h: Likewise.
20273         * sunrpc/rpc/key_prot.h: Likewise.
20274         * sunrpc/rpc/netdb.h: Likewise.
20275         * sunrpc/rpc/pmap_clnt.h: Likewise.
20276         * sunrpc/rpc/pmap_prot.h: Likewise.
20277         * sunrpc/rpc/pmap_rmt.h: Likewise.
20278         * sunrpc/rpc/rpc.h: Likewise.
20279         * sunrpc/rpc/rpc_des.h: Likewise.
20280         * sunrpc/rpc/rpc_msg.h: Likewise.
20281         * sunrpc/rpc/svc.h: Likewise.
20282         * sunrpc/rpc/svc_auth.h: Likewise.
20283         * sunrpc/rpc/types.h: Likewise.
20284         * sunrpc/rpc/xdr.h: Likewise.
20285         * sunrpc/rpc_clntout.c: Likewise.
20286         * sunrpc/rpc_cmsg.c: Likewise.
20287         * sunrpc/rpc_common.c: Likewise.
20288         * sunrpc/rpc_cout.c: Likewise.
20289         * sunrpc/rpc_dtable.c: Likewise.
20290         * sunrpc/rpc_hout.c: Likewise.
20291         * sunrpc/rpc_main.c: Likewise.
20292         * sunrpc/rpc_parse.c: Likewise.
20293         * sunrpc/rpc_parse.h: Likewise.
20294         * sunrpc/rpc_prot.c: Likewise.
20295         * sunrpc/rpc_sample.c: Likewise.
20296         * sunrpc/rpc_scan.c: Likewise.
20297         * sunrpc/rpc_scan.h: Likewise.
20298         * sunrpc/rpc_svcout.c: Likewise.
20299         * sunrpc/rpc_tblout.c: Likewise.
20300         * sunrpc/rpc_util.c: Likewise.
20301         * sunrpc/rpc_util.h: Likewise.
20302         * sunrpc/rpcinfo.c: Likewise.
20303         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20304         * sunrpc/rpcsvc/key_prot.x: Likewise.
20305         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20306         * sunrpc/rpcsvc/mount.x: Likewise.
20307         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20308         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20309         * sunrpc/rpcsvc/rex.x: Likewise.
20310         * sunrpc/rpcsvc/rstat.x: Likewise.
20311         * sunrpc/rpcsvc/rusers.x: Likewise.
20312         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20313         * sunrpc/rpcsvc/spray.x: Likewise.
20314         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20315         * sunrpc/rtime.c: Likewise.
20316         * sunrpc/svc.c: Likewise.
20317         * sunrpc/svc_auth.c: Likewise.
20318         * sunrpc/svc_authux.c: Likewise.
20319         * sunrpc/svc_raw.c: Likewise.
20320         * sunrpc/svc_run.c: Likewise.
20321         * sunrpc/svc_simple.c: Likewise.
20322         * sunrpc/svc_tcp.c: Likewise.
20323         * sunrpc/svc_udp.c: Likewise.
20324         * sunrpc/svc_unix.c: Likewise.
20325         * sunrpc/svcauth_des.c: Likewise.
20326         * sunrpc/xcrypt.c: Likewise.
20327         * sunrpc/xdr.c: Likewise.
20328         * sunrpc/xdr_array.c: Likewise.
20329         * sunrpc/xdr_float.c: Likewise.
20330         * sunrpc/xdr_mem.c: Likewise.
20331         * sunrpc/xdr_rec.c: Likewise.
20332         * sunrpc/xdr_ref.c: Likewise.
20333         * sunrpc/xdr_sizeof.c: Likewise.
20334         * sunrpc/xdr_stdio.c: Likewise.
20335
20336         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20337         handling.
20338
20339 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20340
20341         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20342
20343 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20344
20345         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20346         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20347         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20348         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20349         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20350         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20351         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20352         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20353         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20354         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20355         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20356         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20357         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20358         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20359
20360 2010-07-26  Anton Blanchard  <anton@samba.org>
20361
20362         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20363         * malloc/arena.c (heap_trim): Likewise.
20364
20365 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20366
20367         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20368         here.  Not...
20369         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20370         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20371
20372 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20373
20374         * sysdeps/i386/elf/Makefile: New file.
20375
20376 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20377
20378         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20379         from fanotify_init.
20380         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20381         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20382
20383 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20384
20385         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20386         of strncasecmp_l.
20387         * sysdeps/multiarch/strcmp.S: Likewise.
20388
20389 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20390
20391         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20392         strncase_l-nonascii.
20393         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20394         Add strncase_l-ssse3.
20395         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20396         * sysdeps/x86_64/strcmp.S: Likewise.
20397         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20398         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20399         * sysdeps/x86_64/strncase.S: New file.
20400         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20401         * sysdeps/x86_64/strncase_l.S: New file.
20402         * string/Makefile (strop-tests): Add strncasecmp.
20403         * string/test-strncasecmp.c: New file.
20404
20405         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20406         warning.
20407
20408         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20409         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20410
20411 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20412
20413         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20414
20415 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20416
20417         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20418         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20419         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20420
20421 2010-05-01  Alan Modra  <amodra@gmail.com>
20422
20423         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20424         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20425         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20426         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20427         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20428         tidying.  Don't tail-call __sigjmp_save for static lib.
20429         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20430         save location.
20431         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20432         (CALL_MCOUNT): Add eh info, and nop after bl.
20433         (TAIL_CALL_SYSCALL_ERROR): New macro.
20434         (PSEUDO_RET): Use it.
20435         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20436         Correct save location of integer regs and cr.
20437         (_dl_profile_resolve): Correct cr save location.  Delete nops
20438         after bl when SHARED.  Reduce cfi size a little by better
20439         placement of cfi directives.
20440         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20441         make a stack frame.  Instead use parm save area as a temp.
20442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20443         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20445         Don't make a stack frame for parent, use parm save area.
20446         Increase child stack frame to 112 bytes.  Don't save unused reg,
20447         and adjust reg usage.  Set up cfi on error recovery and
20448         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20450         (__makecontext): Add dummy nop after jump to exit.
20451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20452         Use correct parm save area and cr save, reduce stack frame.
20453         Correct cfi for possible PSEUDO_RET frame setup.
20454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20455         Branch to local label emitted by PSEUDO_RET rather than
20456         __syscall_error.
20457
20458 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20459
20460         [BZ #11904]
20461         * locale/programs/locale.c (print_assignment): New function.
20462         (show_locale_vars): Use it.
20463
20464 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20465
20466         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20467         field.
20468         (struct statfs64): Likewise.
20469         (_STATFS_F_FLAGS): Define.
20470         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20471         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20472         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20473         (ST_VALID): Define locally.
20474         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20475         __statvfs_getflags, use the provided value.
20476         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20477         __ASSUME_STATFS_F_FLAGS.
20478
20479         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20480
20481         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20482         Add sys/fanotify.h.
20483         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20484         fanotify_mask for GLIBC_2.13.
20485         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20486         fanotify_init and fanotify_mark.
20487         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20488         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20489
20490         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20491         Add prlimit.
20492         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20493         prlimit64 for GLIBC_2.13.
20494         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20495         prlimit64.
20496         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20497         syscall.
20498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20499         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20500         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20501         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20502         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20503         add prlimit alias.
20504         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20505
20506         [BZ #11903]
20507         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20508         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20509
20510         * nss/Makefile: Add rules to build and run tst-nss-test1.
20511         * shlib-versions: Add entry for libnss_test1.
20512         * nss/nss_test1.c: New file.
20513         * nss/tst-nss-test1.c: New file.
20514
20515         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20516         (__nss_configure_lookup): Set appropriate entry in
20517         __nss_configure_lookup to true.
20518         * nss/nsswitch.h: Define enum with indeces of databases in
20519         databases and __nss_database_custom arrays.  Declare
20520         __nss_database_custom.
20521         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20522         to avoid using nscd when custom rules are installed.
20523         * nss/getXXbyYY_r.c: Likewise.
20524         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20525
20526         * nss/nss_files/files-parse.c: Whitespace fixes.
20527
20528 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20529
20530         [BZ #11883]
20531         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20532         * posix/fnmatch_loop.c: Likewise.
20533
20534 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20535
20536         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20537         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20538         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20539         * Versions.def [GLIBC_2.13]: Add.
20540
20541 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20542
20543         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20544         Also fail if tpwd after pwuid call is NULL.
20545
20546 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20547
20548         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20549         when converting to ms.
20550
20551 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20552
20553         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20554         EOPNOTSUPP errors with ENOTTY.
20555         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20556         EOPNOTSUPP errors with ENOTTY.
20557
20558 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20559
20560         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20561         Add strcasecmp_l-ssse3.
20562         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20563         strcasecmp.
20564         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20565         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20566         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20567
20568 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20569
20570         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20571
20572         * string/Makefile (strop-tests): Add strcasecmp.
20573         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20574         strcasecmp_l-nonascii.
20575         (gen-as-const-headers): Add locale-defines.sym.
20576         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20577         * sysdeps/x86_64/strcasecmp.S: New file.
20578         * sysdeps/x86_64/strcasecmp_l.S: New file.
20579         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20580         * sysdeps/x86_64/locale-defines.sym: New file.
20581         * string/test-strcasecmp.c: New file.
20582
20583         * string/test-strcasestr.c: Test both ends of the range of characters.
20584         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20585
20586 2010-07-29  Roland McGrath  <roland@redhat.com>
20587
20588         [BZ #11856]
20589         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20590
20591 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20592
20593         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20594         for ld.so.
20595
20596 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20597
20598         * manual/memory.texi (Malloc Tunable Parameters): Document
20599         M_PERTURB.
20600
20601 2010-07-26  Roland McGrath  <roland@redhat.com>
20602
20603         [BZ #11840]
20604         * configure.in (-fgnu89-inline check): Set and substitute
20605         gnu89_inline, not libc_cv_gnu89_inline.
20606         * configure: Regenerated.
20607         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20608
20609 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20610
20611         * string/test-strnlen.c: New file.
20612         * string/Makefile (strop-tests): Add strnlen.
20613         * string/tester.c (test_strnlen): Add a few more test cases.
20614         * string/tst-strlen.c: Better error reporting.
20615
20616         * sysdeps/x86_64/strnlen.S: New file.
20617
20618 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20619
20620         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20621         lower-latency instructions.
20622
20623 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20624
20625         * string/test-strcasestr.c: New file.
20626         * string/test-strstr.c: New file.
20627         * string/Makefile (strop-tests): Add strstr and strcasestr.
20628         * string/str-two-way.h: Don't undefine MAX.
20629         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20630
20631 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20632
20633         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20634         strcasestr-nonascii.
20635         (CFLAGS-strcasestr-nonascii.c): Define.
20636         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20637         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20638         Remove unused attribute.
20639
20640 2010-07-20  Roland McGrath  <roland@redhat.com>
20641
20642         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20643         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20644         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20645         like LD_HWCAP_MASK can disable hwcaps.
20646
20647 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20648
20649         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20650
20651 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20652
20653         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20654         call in strcasestr.
20655         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20656         __strcasestr_sse42_nonascii.
20657         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20658         strcasestr-nonascii.c.
20659         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20660
20661 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20662
20663         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20664         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20665         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20666         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20667
20668 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20669
20670         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20671         fcntl.
20672
20673 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20674
20675         [BZ #11577]
20676         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20677         dl_signal_cerror.
20678
20679 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20680
20681         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20682         _PC_PIPE_BUF using F_GETPIPE_SZ.
20683
20684 2010-07-05  Roland McGrath  <roland@redhat.com>
20685
20686         * manual/arith.texi (Rounding Functions): Fix rint description
20687         implicit in round description.
20688
20689 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20690
20691         * elf/Makefile: Fix linking for a few tests to make recent linker
20692         happy.
20693
20694 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20695
20696         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20697         $(common-objpfx)libc_nonshared.a.
20698
20699 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20700
20701         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20702         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20703         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20704         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20705         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20706         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20707         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20708         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20723         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20724         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20725         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20726         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20727         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20728         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20729         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20730         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20731         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20732         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20733         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20734         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20738         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20744         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20749
20750 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20751
20752         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20753         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20754         * string/memmove.c (memmove): Renamed to ...
20755         (MEMMOVE): ...this.  Default to memmove.
20756         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20757         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20758         (END_CHK): Define.
20759         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20760         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20761         mempcpy-ssse3-back memmove-ssse3-back.
20762         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20763         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20764         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20765         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20766         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20767         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20768         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20769         * sysdeps/x86_64/multiarch/memmove.c: New file.
20770         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20771         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20772         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20773         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20774         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20775         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20776         Define.
20777         (index_Fast_Copy_Backward): Define.
20778         (HAS_ARCH_FEATURE): Define.
20779         (HAS_FAST_REP_STRING): Define.
20780         (HAS_FAST_COPY_BACKWARD): Define.
20781
20782 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20783
20784         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20785         Restore proper fallback handling.
20786
20787 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20788
20789         [BZ #11701]
20790         * posix/group_member.c (__group_member): Correct checking loop.
20791
20792         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20793         OOM in getpwuid_r correctly.  Return error number when the caller
20794         should return, otherwise -1.
20795         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20796         call returning > 0 value.
20797         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20798
20799 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20800
20801         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20802         libc_nonshared.a from targets in modules-names.
20803
20804 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20805
20806         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20807         requires it.
20808
20809 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20810
20811         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20812         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20813         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20814         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20815
20816 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20817
20818         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20819
20820 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20821
20822         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20823         and F_GETPIPE_SZ.
20824         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20825         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20826         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20827         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20828         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20829         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20830
20831 2010-06-14  Roland McGrath  <roland@redhat.com>
20832
20833         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20834
20835 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20836
20837         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20838         __REDIRECT followed by __THROW.
20839         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20840         * posix/getopt.h (getopt): Likewise.
20841
20842 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20843
20844         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20845         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20846         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20847         in AT_FLAGS.
20848         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20849         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20850
20851 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20852
20853         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20854
20855 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20856
20857         [BZ #11640]
20858         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20859         Properly check family and model.
20860
20861 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20862
20863         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20864
20865 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20866
20867         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20868
20869 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20870
20871         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20872         symbol reference.
20873
20874 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20875
20876         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20877         symbol reference.
20878
20879 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20880
20881         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20882         and internal_recvmmsg.
20883         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20884         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20885         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20886         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20887
20888         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20889         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20890         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20891
20892 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20893
20894         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20895
20896 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20897
20898         POWER7 optimizations.
20899         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20900         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20901
20902 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20903
20904         * version.h: Update for 2.13 development version.
20905
20906 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20907
20908         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20909         exceptions.  Return 0.
20910
20911 2010-05-07  Roland McGrath  <roland@redhat.com>
20912
20913         * elf/ldconfig.c (main): Add a const.
20914
20915 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20916
20917         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20918         (args_options): Add no-idn option.
20919         (ahosts_keys_int): Add idn_flags to ai_flags.
20920         (parse_option): Handle 'i' option to clear idn_flags.
20921
20922         * malloc/malloc.c (_int_free): Possible race in the most recently
20923         added check.  Only act on the data if no current modification
20924         happened.
20925
20926 See ChangeLog.17 for earlier changes.